Mathlib.Data.Rat.Cast.Lemmas
9 declarations. Mathlib docs · Source
theorem Rat.cast_pow E0 #
∀ {α : Type u_1} [inst : DivisionRing α] (p : ℚ) (n : ℕ), ↑(p ^ n) = ↑p ^ n
theorem Rat.cast_inv_nat E0 #
∀ {α : Type u_1} [inst : DivisionRing α] (n : ℕ), ↑(↑n)⁻¹ = (↑n)⁻¹
theorem Rat.cast_inv_int E0 #
∀ {α : Type u_1} [inst : DivisionRing α] (n : ℤ), ↑(↑n)⁻¹ = (↑n)⁻¹
theorem Rat.cast_nnratCast E0 #
∀ {K : Type u_2} [inst : DivisionRing K] (q : ℚ≥0), ↑↑q = ↑q
theorem Rat.cast_ofScientific E0 #
∀ {K : Type u_2} [inst : 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.
theorem NNRat.cast_pow E0 #
∀ {K : Type u_1} [inst : DivisionSemiring K] (q : ℚ≥0) (n : ℕ), ↑(q ^ n) = ↑q ^ n
theorem NNRat.cast_zpow_of_ne_zero E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] (q : ℚ≥0) (z : ℤ), ↑q.num ≠ 0 → ↑(q ^ z) = ↑q ^ z
theorem NNRat.cast_mk E0 #
∀ {K : Type u_1} [inst : DivisionRing K] (q : ℚ) (h : 0 ≤ q), ↑⟨q, h⟩ = ↑q
theorem NNRat.Nonneg.coe_ofScientific E0 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : LinearOrder K] [inst_2 : IsStrictOrderedRing K] (m : ℕ) (s : Bool) (e : ℕ),
↑(OfScientific.ofScientific m s e) = OfScientific.ofScientific m s e