proposition: Lemma minusNonnegativeRationals_lecompat_l' : ∏ k x y : NonnegativeRationals, k <= y -> x - k <= y - k -> x <= y.
proof: Proof. intros k x y Hky H. generalize (isdecrel_leNonnegativeRationals k x) ; apply sumofmaps ; intros Hkx. - rewrite <- (minusNonnegativeRationals_plus_r _ _ Hkx), <- (minusNonnegativeRationals_plus_r _ _ Hky). apply plusNonnegativeRationals_lecompat_r. exact H. - apply istrans_leNonnegativeRationals with k. + apply lt_leNonnegativeRationals. now apply notge_ltNonnegativeRationals. + exact Hky. 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