I am just wondering how is the "less than" relationship defined for real numbers.
I understand that for natural numbers (nat
), <
can be defined recursively in terms of one number being the (1+
) successor S
of another number. I heard that many things about real numbers are axiomatic in Coq and do not compute.
But I am wondering whether there is a minimum set of axioms for real numbers in Coq based upon which other properties/relations can be derived. (e.g. Coq.Reals.RIneq has it that Rplus_0_r : forall r, r + 0 = r.
is an axiom, among others)
In particular, I am interested in whether the relationships such as <
or <=
can be defined on top of the equality relationship. For example, I can imagine that in conventional math, given two numbers r1 r2
:
r1 < r2 <=> exists s, s > 0 /\ r1 + s = r2.
But does this hold in the constructive logic of Coq? And can I use this to at least do some reasoning about inequalities (instead of rewriting axioms all the time)?