The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Algebra.Lemmas
37 declarations. Mathlib docs · Source
Lemmas for the algebra tactic.
theorem Mathlib.Tactic.Algebra.isInt_negOfNat_eq E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : Algebra R A] {a : A} {lit : ℕ},
Mathlib.Meta.NormNum.IsInt a (Int.negOfNat lit) → a = (algebraMap R A) ((Int.negOfNat lit).rawCast + 0) + 0
theorem Mathlib.Tactic.Algebra.isNNRat_eq_rawCast E1 #
∀ {R : Type u_1} {A : Type u_2} [inst : Semifield R] [inst_1 : Semifield A] [inst_2 : Algebra R A] {a : A} {n d : ℕ},
Mathlib.Meta.NormNum.IsNNRat a n d → a = (algebraMap R A) (NNRat.rawCast n d + 0) + 0
theorem Mathlib.Tactic.Algebra.isRat_eq_rawCast E1 #
∀ {R : Type u_1} {A : Type u_2} [inst : Field R] [inst_1 : Field A] [inst_2 : Algebra R A] {a : A} {n d : ℕ},
Mathlib.Meta.NormNum.IsRat a (Int.negOfNat n) d → a = (algebraMap R A) (Rat.rawCast (Int.negOfNat n) d + 0) + 0
theorem Mathlib.Tactic.Algebra.isNat_zero_eq E0 #
∀ {A : Type u_2} [sA : CommSemiring A] {a : A}, Mathlib.Meta.NormNum.IsNat a 0 → a = 0
theorem Mathlib.Tactic.Algebra.isNat_eq_rawCast E1 #
∀ {R : Type u_1} {A : Type u_2} [sR : CommSemiring R] [sA : CommSemiring A] [sAlg : Algebra R A] {a : A} {lit : ℕ},
Mathlib.Meta.NormNum.IsNat a lit → a = (algebraMap R A) (↑lit + 0) + 0
theorem Mathlib.Tactic.Algebra.add_assoc_rev E1 #
∀ {R : Type u_1} [sR : CommSemiring R] (a b c : R), a + (b + c) = a + b + c
theorem Mathlib.Tactic.Algebra.mul_assoc_rev E1 #
∀ {R : Type u_1} [sR : CommSemiring R] (a b c : R), a * (b * c) = a * b * c
theorem Mathlib.Tactic.Algebra.mul_neg E1 #
∀ {R : Type u_3} [inst : Ring R] (a b : R), a * -b = -(a * b)
theorem Mathlib.Tactic.Algebra.add_neg E1 #
∀ {R : Type u_3} [inst : Ring R] (a b : R), a + -b = a - b
theorem Mathlib.Tactic.Algebra.nat_rawCast_0 E1 #
∀ {R : Type u_1} [sR : CommSemiring R], Nat.rawCast 0 = 0
theorem Mathlib.Tactic.Algebra.nat_rawCast_1 E1 #
∀ {R : Type u_1} [sR : CommSemiring R], Nat.rawCast 1 = 1
theorem Mathlib.Tactic.Algebra.nat_rawCast_2 E1 #
∀ {R : Type u_1} [sR : CommSemiring R] {n : ℕ} [inst : n.AtLeastTwo], n.rawCast = OfNat.ofNat n
theorem Mathlib.Tactic.Algebra.int_rawCast_neg E1 #
∀ {n : ℕ} {R : Type u_3} [inst : Ring R], (Int.negOfNat n).rawCast = -n.rawCast
theorem Mathlib.Tactic.Algebra.nnrat_rawCast E1 #
∀ {n d : ℕ} {R : Type u_3} [inst : DivisionSemiring R], NNRat.rawCast n d = n.rawCast / d.rawCast
theorem Mathlib.Tactic.Algebra.rat_rawCast_neg E1 #
∀ {n d : ℕ} {R : Type u_3} [inst : DivisionRing R],
Rat.rawCast (Int.negOfNat n) d = (Int.negOfNat n).rawCast / d.rawCast
theorem Mathlib.Tactic.Algebra.ofNat_smul E1 #
∀ {n : ℕ} {R : Type u_3} {A : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring A] [inst_2 : Algebra R A]
[inst_3 : n.AtLeastTwo] {a : A}, OfNat.ofNat n • a = OfNat.ofNat n * a
theorem Mathlib.Tactic.Algebra.neg_ofNat_smul E1 #
∀ {n : ℕ} {R : Type u_3} {A : Type u_4} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : Algebra R A] {a : A}
[inst_3 : n.AtLeastTwo], -OfNat.ofNat n • a = -OfNat.ofNat n * a
theorem Mathlib.Tactic.Algebra.neg_1_smul E1 #
∀ {R : Type u_3} {A : Type u_4} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : Algebra R A] {a : A}, -1 • a = -a
theorem Mathlib.Tactic.Algebra.nnRat_ofNat_smul_1 E1 #
∀ {d : ℕ} {R : Type u_3} {A : Type u_4} [inst : Semifield R] [inst_1 : Semifield A] [inst_2 : Algebra R A] {a : A}
[inst_3 : d.AtLeastTwo], (1 / OfNat.ofNat d) • a = 1 / OfNat.ofNat d * a
theorem Mathlib.Tactic.Algebra.nnRat_ofNat_smul_2 E1 #
∀ {n d : ℕ} {R : Type u_3} {A : Type u_4} [inst : Semifield R] [inst_1 : Semifield A] [inst_2 : Algebra R A] {a : A}
[inst_3 : n.AtLeastTwo] [inst_4 : d.AtLeastTwo],
(OfNat.ofNat n / OfNat.ofNat d) • a = OfNat.ofNat n / OfNat.ofNat d * a
theorem Mathlib.Tactic.Algebra.rat_ofNat_smul_1 E1 #
∀ {d : ℕ} {R : Type u_3} {A : Type u_4} [inst : Field R] [inst_1 : Field A] [inst_2 : Algebra R A] {a : A}
[inst_3 : d.AtLeastTwo], (-1 / OfNat.ofNat d) • a = -1 / OfNat.ofNat d * a
theorem Mathlib.Tactic.Algebra.rat_ofNat_smul_2 E1 #
∀ {n d : ℕ} {R : Type u_3} {A : Type u_4} [inst : Field R] [inst_1 : Field A] [inst_2 : Algebra R A] {a : A}
[inst_3 : n.AtLeastTwo] [inst_4 : d.AtLeastTwo],
(-OfNat.ofNat n / OfNat.ofNat d) • a = -OfNat.ofNat n / OfNat.ofNat d * a
theorem Mathlib.Tactic.Algebra.smul_one_eq_zero E1 #
∀ {R : Type u_1} {A : Type u_2} [sR : CommSemiring R] [sA : CommSemiring A] [sAlg : Algebra R A] {r : R},
r = 0 → r • 1 = 0
theorem Mathlib.Tactic.Algebra.add_eq_zero E1 #
∀ {A : Type u_2} [sA : CommSemiring A] {a b : A}, a = 0 → b = 0 → a + b = 0
theorem Mathlib.Tactic.Algebra.smul_one_eq_smul_one' E1 #
∀ {R : Type u_1} {A : Type u_2} [sR : CommSemiring R] [sA : CommSemiring A] [sAlg : Algebra R A] {r s : R},
r = s → r • 1 = s • 1
theorem Mathlib.Tactic.Algebra.add_eq_of_zero_add E1 #
∀ {A : Type u_2} [sA : CommSemiring A] {a₁ a₂ b₁ b₂ : A}, a₁ = 0 → a₂ = b₁ + b₂ → a₁ + a₂ = b₁ + b₂
theorem Mathlib.Tactic.Algebra.add_eq_of_add_zero E1 #
∀ {A : Type u_2} [sA : CommSemiring A] {a₁ a₂ b₁ b₂ : A}, b₁ = 0 → a₁ + a₂ = b₂ → a₁ + a₂ = b₁ + b₂
theorem Mathlib.Tactic.Algebra.add_eq_of_eq_eq E0 #
∀ {A : Type u_2} [sA : CommSemiring A] {a₁ a₂ b₁ b₂ : A}, a₁ = b₁ → a₂ = b₂ → a₁ + a₂ = b₁ + b₂
theorem Mathlib.Tactic.Algebra.mul_eq_mul_of_eq E0 #
∀ {A : Type u_2} [sA : CommSemiring A] {c a b : A}, a = b → c * a = c * b
theorem Mathlib.Tactic.Algebra.add_algebraMap E1 #
∀ {R : Type u_1} {A : Type u_2} [sR : CommSemiring R] [sA : CommSemiring A] [sAlg : Algebra R A] {r s t : R},
r + s = t → (algebraMap R A) r + (algebraMap R A) s = (algebraMap R A) t
theorem Mathlib.Tactic.Algebra.add_algebraMap_isNat_zero E1 #
∀ {R : Type u_1} {A : Type u_2} [sR : CommSemiring R] [sA : CommSemiring A] [sAlg : Algebra R A] {r s : R},
r + s = 0 → Mathlib.Meta.NormNum.IsNat ((algebraMap R A) r + (algebraMap R A) s) 0
theorem Mathlib.Tactic.Algebra.cast_zero_smul_eq_zero_mul E1 #
∀ {R : Type u_1} {A : Type u_2} [sR : CommSemiring R] [sA : CommSemiring A] [sAlg : Algebra R A] {R' : Type u_3}
[inst : HSMul R' A A] {r' : R'} {r : R}, r = 0 → (∀ (a : A), r • a = r' • a) → ∀ (a : A), r' • a = 0 * a
theorem Mathlib.Tactic.Algebra.cast_smul_eq_mul E1 #
∀ {R : Type u_1} {A : Type u_2} [sR : CommSemiring R] [sA : CommSemiring A] [sAlg : Algebra R A] {R' : Type u_3}
[inst : HSMul R' A A] {r' : R'} {r r'' : R},
r = r'' → (∀ (a : A), r • a = r' • a) → ∀ (a : A), r' • a = ((algebraMap R A) r'' + 0) * a
theorem Mathlib.Tactic.Algebra.neg_algebraMap E1 #
∀ {R : Type u_3} {A : Type u_4} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : Algebra R A] {r t : R},
-r = t → -(algebraMap R A) r = (algebraMap R A) t
theorem Mathlib.Tactic.Algebra.pow_algebraMap E1 #
∀ {R : Type u_1} {A : Type u_2} [sR : CommSemiring R] [sA : CommSemiring A] [sAlg : Algebra R A] {r s : R} {b : ℕ},
r ^ b = s → (algebraMap R A) r ^ b = (algebraMap R A) s
theorem Mathlib.Tactic.Algebra.inv_algebraMap E1 #
∀ {R : Type u_3} {A : Type u_4} [inst : Semifield R] [inst_1 : Semifield A] [inst_2 : Algebra R A] {r s : R},
r⁻¹ = s → ((algebraMap R A) r)⁻¹ = (algebraMap R A) s
theorem Mathlib.Tactic.Algebra.isOne_algebraMap E1 #
∀ {R : Type u_1} {A : Type u_2} [sR : CommSemiring R] [sA : CommSemiring A] [sAlg : Algebra R A] {r : R},
Mathlib.Meta.NormNum.IsNat r 1 → Mathlib.Meta.NormNum.IsNat ((algebraMap R A) (r + 0)) 1