proposition: Lemma minusNonnegativeRationals_le : ∏ x y : NonnegativeRationals, x - y <= x.
proof: Proof. intros x y. apply_pr2 (plusNonnegativeRationals_lecompat_r y). generalize (isdecrel_leNonnegativeRationals y x) ; apply sumofmaps ; [intros Hle | intros Hlt]. - rewrite minusNonnegativeRationals_plus_r. + now apply plusNonnegativeRationals_le_r. + exact Hle. - rewrite minusNonnegativeRationals_eq_zero. + rewrite islunit_zeroNonnegativeRationals. apply plusNonnegativeRationals_le_l. + apply lt_leNonnegativeRationals. now apply notge_ltNonnegativeRationals. 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