From dc677ddf8e3cf907479264060565aa3e04f65d59 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Wed, 14 Apr 2010 14:06:35 +0000 Subject: [PATCH] ... From: sacerdot --- helm/software/matita/nlibrary/arithmetics/R.ma | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/helm/software/matita/nlibrary/arithmetics/R.ma b/helm/software/matita/nlibrary/arithmetics/R.ma index 813dec9fb..805a0a37f 100644 --- a/helm/software/matita/nlibrary/arithmetics/R.ma +++ b/helm/software/matita/nlibrary/arithmetics/R.ma @@ -25,6 +25,8 @@ naxiom Qtimes: Q → Q → Q. naxiom Qdivides: Q → Q → Q. naxiom Qle : Q → Q → Prop. naxiom Qlt: Q → Q → Prop. +naxiom Qmin: Q → Q → Q. +naxiom Qmax: Q → Q → Q. interpretation "Q plus" 'plus x y = (Qplus x y). interpretation "Q minus" 'minus x y = (Qminus x y). interpretation "Q times" 'times x y = (Qtimes x y). @@ -243,4 +245,17 @@ nrecord Pt (A: Ax_pro) : Type[1] ≝ pt_inhabited: ∃a. a ∈ pt_set; pt_filtering: ∀a,b. a ∈ pt_set → b ∈ pt_set → ∃c. c ∈ (singleton … a) ↓ (singleton … b) → c ∈ pt_set; pt_closed: {b | b ⋉ pt_set} ⊆ pt_set - }. \ No newline at end of file + }. + +ndefinition Rd ≝ Pt Rax. + +naxiom daemon: False. + +ndefinition Q_to_R: Q → Rd. + #q; @ + [ napply { c | fst … c < q ∧ q < snd … c } + | @ [ @ (Qminus q 1) (Qplus q 1) | ncases daemon ] +##| #c; #d; #Hc; #Hd; @ [ @ (Qmin (fst … c) (fst … d)) (Qmax (snd … c) (snd … d)) | ncases daemon] +##| #a; #H; nlapply (ftcoreflexivity … H); /2/ ] +nqed. + -- 2.39.2