proposition: Lemma minusNonnegativeRationals_ltcompat_l: ∏ x y z : NonnegativeRationals, x < y -> z < y -> x - z < y - z.
proof: Proof. intros x y z Hxy Hyz. generalize (isdecrel_leNonnegativeRationals x z) ; apply sumofmaps ; intros Hxz. - rewrite minusNonnegativeRationals_eq_zero. + apply ispositive_minusNonnegativeRationals. exact Hyz. + exact Hxz. - apply (notge_ltNonnegativeRationals z x) in Hxz. apply_pr2 (plusNonnegativeRationals_ltcompat_r z) ; rewrite !minusNonnegativeRationals_plus_r. + exact Hxy. + now apply lt_leNonnegativeRationals, Hyz. + now apply lt_leNonnegativeRationals, Hxz. Qed.
imports: UniMath.MoreFoundations.Tactics UniMath.MoreFoundations.PartA UniMath.MoreFoundations.Sets UniMath.MoreFoundations.Orders UniMath.RealNumbers.Sets UniMath.RealNumbers.Fields UniMath.Algebra.DivisionRig UniMath.OrderTheory.Lattice.Lattice UniMath.RealNumbers.Prelim