proposition: Lemma NonnegativeRationals_to_NonnegativeReals_minus : ∏ x y : NonnegativeRationals, NonnegativeRationals_to_NonnegativeReals (x - y)%NRat = NonnegativeRationals_to_NonnegativeReals x - NonnegativeRationals_to_NonnegativeReals y.
proof: Proof. intros x y. generalize (isdecrel_leNonnegativeRationals x y) ; apply sumofmaps ; intros Hxy. - rewrite minusNonnegativeRationals_eq_zero, Dcuts_minus_eq_zero. + reflexivity. + apply NonnegativeRationals_to_NonnegativeReals_le. exact Hxy. + exact Hxy. - apply Dcuts_minus_correct_r. rewrite <- NonnegativeRationals_to_NonnegativeReals_plus, minusNonnegativeRationals_plus_r. + reflexivity. + apply lt_leNonnegativeRationals. apply notge_ltNonnegativeRationals. exact Hxy. Qed.
imports: UniMath.MoreFoundations.Orders UniMath.MoreFoundations.Tactics UniMath.MoreFoundations.Notations UniMath.RealNumbers.Sets UniMath.Algebra.ConstructiveStructures UniMath.OrderTheory.Lattice.Lattice UniMath.RealNumbers.Prelim UniMath.RealNumbers.NonnegativeRationals