From f5082bd5f35494d4c4fecc10e3549edf8bcf854a Mon Sep 17 00:00:00 2001 From: Zhen Zhang <izgzhen@gmail.com> Date: Tue, 4 Oct 2016 17:50:57 +0200 Subject: [PATCH] tweak the Qp lemmas --- algebra/frac.v | 3 --- prelude/numbers.v | 7 +++++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/algebra/frac.v b/algebra/frac.v index 6bd8528eb..11cb32dea 100644 --- a/algebra/frac.v +++ b/algebra/frac.v @@ -35,6 +35,3 @@ Global Instance frac_full_exclusive : Exclusive 1%Qp. Proof. move=> y /Qcle_not_lt [] /=. by rewrite -{1}(Qcplus_0_r 1) -Qcplus_lt_mono_l. Qed. - -Lemma invalid_plus_q: ∀ (q: Qp), ¬ ✓ (1 + q)%Qp. -Proof. intros q H. by apply (Qp_ge_1 q). Qed. diff --git a/prelude/numbers.v b/prelude/numbers.v index 9d0b2e481..f54b03435 100644 --- a/prelude/numbers.v +++ b/prelude/numbers.v @@ -567,9 +567,12 @@ Proof. apply Qp_eq; simpl. ring. Qed. -Lemma Qp_ge_1 (q: Qp): ¬ ((1 + q)%Qp ≤ 1%Qp)%Qc. +Lemma Qp_not_plus_q_ge_1 (q: Qp): ¬ ((1 + q)%Qp ≤ 1%Qp)%Qc. Proof. intros Hle. apply (Qcplus_le_mono_l q 0 1) in Hle. - apply Qcle_ngt in Hle. by destruct q. + apply Qcle_ngt in Hle. apply Hle, Qp_prf. Qed. + +Lemma Qp_ge_0 (q: Qp): (0 ≤ q)%Qc. +Proof. apply Qclt_le_weak, Qp_prf. Qed. -- GitLab