File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -577,9 +577,6 @@ instance : StarModule ℝ K where
577577theorem ofReal_natCast (n : ℕ) : ((n : ℝ) : K) = n :=
578578 map_natCast (algebraMap ℝ K) n
579579
580- @ [rclike_simps, norm_cast]
581- lemma ofReal_nnratCast (q : ℚ≥0 ) : ((q : ℝ) : K) = q := map_nnratCast (algebraMap ℝ K) _
582-
583580@ [simp, rclike_simps]
584581theorem natCast_re (n : ℕ) : re (n : K) = n := by rw [← ofReal_natCast, ofReal_re]
585582
@@ -614,6 +611,16 @@ theorem intCast_re (n : ℤ) : re (n : K) = n := by rw [← ofReal_intCast, ofRe
614611@ [simp, rclike_simps, norm_cast]
615612theorem intCast_im (n : ℤ) : im (n : K) = 0 := by rw [← ofReal_intCast, ofReal_im]
616613
614+ @ [rclike_simps, norm_cast]
615+ theorem ofReal_nnratCast (n : ℚ≥0 ) : ((n : ℝ) : K) = n :=
616+ map_nnratCast _ n
617+
618+ @ [simp, rclike_simps]
619+ theorem nnratCast_re (q : ℚ≥0 ) : re (q : K) = q := by rw [← ofReal_nnratCast, ofReal_re]
620+
621+ @ [simp, rclike_simps, norm_cast]
622+ theorem nnratCast_im (q : ℚ≥0 ) : im (q : K) = 0 := by rw [← ofReal_nnratCast, ofReal_im]
623+
617624@ [rclike_simps, norm_cast]
618625theorem ofReal_ratCast (n : ℚ) : ((n : ℝ) : K) = n :=
619626 map_ratCast _ n
You can’t perform that action at this time.
0 commit comments