Some exiled lemmas about casting #
These lemmas have been removed from Mathlib.Data.Rat.Cast.Defs
to avoiding needing to import Mathlib.Algebra.Field.Basic
there.
In fact, these lemmas don't appear to be used anywhere in Mathlib, so perhaps this file can simply be deleted.
@[simp]
theorem
Rat.cast_ofScientific
{K : Type u_2}
[DivisionRing K]
(m : ℕ)
(s : Bool)
(e : ℕ)
:
↑(OfScientific.ofScientific m s e) = OfScientific.ofScientific m s e
Casting a scientific literal via ℚ
is the same as casting directly.
@[simp]
theorem
NNRat.cast_zpow_of_ne_zero
{K : Type u_1}
[DivisionSemiring K]
(q : ℚ≥0)
(z : ℤ)
(hq : ↑q.num ≠ 0)
:
theorem
NNRat.Nonneg.coe_ofScientific
{K : Type u_1}
[LinearOrderedField K]
(m : ℕ)
(s : Bool)
(e : ℕ)
:
↑(OfScientific.ofScientific m s e) = OfScientific.ofScientific m s e