proposition: Lemma NRNRtoR_inv_pos : ∏ (x : NonnegativeReals) Hrn Hr, NRNRtoR (invNonnegativeReals x Hrn) 0%NR = Rinv (NRNRtoR x 0%NR) Hr.
proof: Proof. intros x Hrn Hr. rewrite <- (isrunit_CFone_CFmult (NRNRtoR (invNonnegativeReals x Hrn) 0%NR)), <- (isrunit_CFone_CFmult (Rinv (NRNRtoR x 0%NR) Hr)). rewrite <- (isrinv_CFinv (X := Reals) (NRNRtoR x 0%NR) Hr). rewrite <- !(isassoc_CFmult (X := Reals)). apply (maponpaths (λ x, (x * _)%CF)). rewrite <- NRNRtoR_mult. unfold Rinv. rewrite (islinv_CFinv (X := Reals) (NRNRtoR x 0%NR) Hr). rewrite !israbsorb_zero_multNonnegativeReals, islabsorb_zero_multNonnegativeReals. rewrite !isrunit_zero_plusNonnegativeReals. rewrite islinv_invNonnegativeReals. apply NRNRtoR_one. Qed.
imports: UniMath.Algebra.Groups UniMath.Foundations.Preamble UniMath.MoreFoundations.Orders UniMath.MoreFoundations.Tactics UniMath.OrderTheory.Lattice.Lattice UniMath.RealNumbers.Prelim UniMath.RealNumbers.Sets UniMath.RealNumbers.NonnegativeRationals UniMath.RealNumbers.NonnegativeReals