## Definition ## Let $R$ be a [[Archimedean ordered integral domain]] with a [[dense linear order]], and let $R_{+}$ be the [[semiring]] of positive terms in $R$. A __$R_{+}$-premetric space__ is a type $T$ with a family of types $$a:T, b:T, \epsilon:R_{+} \vdash a \sim_{\epsilon} b \ type$$ called the __$R_{+}$-premetric__, and a family of dependent terms $$a:T, b:T, \epsilon:R_{+} \vdash p(a, b, \epsilon):isProp(a \sim_{\epsilon} b)$$ representing that the $R_{+}$-premetric for $a:T$, $b:T$, $\epsilon:R_{+}$ is a [[proposition]]. ## See also ## * [[Cauchy structure]] ## References ## * Auke B. Booij, Analysis in univalent type theory ([pdf](https://etheses.bham.ac.uk/id/eprint/10411/7/Booij2020PhD.pdf))