The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V06. Rings, fields and ordered algebra

Mathlib.Algebra.CharP.Two

37 declarations. Mathlib docs · Source

theorem CharTwo.of_one_ne_zero_of_two_eq_zero E1 #

∀ {R : Type u_1} [inst : AddMonoidWithOne R], 1 ≠ 0 → 2 = 0 → CharP R 2

The only hypotheses required to build a CharP R 2 instance are 1 ≠ 0 and 2 = 0.

theorem CharTwo.two_eq_zero E1 #

∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharP R 2], 2 = 0

theorem CharTwo.natCast_eq_ite E1 #

∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharP R 2] (n : ℕ), ↑n = if Even n then 0 else 1

theorem CharTwo.range_natCast E0 #

∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharP R 2], Set.range Nat.cast = {0, 1}

theorem CharTwo.natCast_cases E1 #

∀ (R : Type u_1) [inst : AddMonoidWithOne R] [CharP R 2] (n : ℕ), ↑n = 0 ∨ ↑n = 1

theorem CharTwo.natCast_eq_mod E1 #

∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharP R 2] (n : ℕ), ↑n = ↑(n % 2)

theorem CharTwo.ofNat_eq_mod E1 #

∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharP R 2] (n : ℕ) [inst_2 : n.AtLeastTwo],
  OfNat.ofNat n = ↑(OfNat.ofNat n % 2)

theorem CharTwo.neg_one_eq_one E1 #

∀ {R : Type u_1} [inst : AddGroupWithOne R] [CharP R 2], -1 = 1

theorem CharTwo.neg_natCast_eq E0 #

∀ {R : Type u_1} [inst : AddGroupWithOne R] [CharP R 2] (n : ℕ), -↑n = ↑n

theorem CharTwo.intCast_eq_ite E1 #

∀ {R : Type u_1} [inst : AddGroupWithOne R] [CharP R 2] (n : ℤ), ↑n = if Even n then 0 else 1

theorem CharTwo.range_intCast E0 #

∀ {R : Type u_1} [inst : AddGroupWithOne R] [CharP R 2], Set.range Int.cast = {0, 1}

theorem CharTwo.intCast_cases E1 #

∀ (R : Type u_1) [inst : AddGroupWithOne R] [CharP R 2] (n : ℤ), ↑n = 0 ∨ ↑n = 1

theorem CharTwo.intCast_eq_mod E1 #

∀ {R : Type u_1} [inst : AddGroupWithOne R] [CharP R 2] (n : ℤ), ↑n = ↑(n % 2)

theorem CharTwo.add_self_eq_zero E1 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] [CharP R 2] (x : R), x + x = 0

theorem CharTwo.two_nsmul E1 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] [CharP R 2] (x : R), 2 • x = 0

theorem CharTwo.add_cancel_left E1 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] [CharP R 2] (a b : R), a + (a + b) = b

theorem CharTwo.add_cancel_right E1 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] [CharP R 2] (a b : R), a + b + b = a

theorem CharTwo.add_eq_zero E1 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] [CharP R 2] {a b : R}, a + b = 0 ↔ a = b

theorem CharTwo.add_eq_iff_eq_add E1 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] [CharP R 2] {a b c : R}, a + b = c ↔ a = c + b

theorem CharTwo.neg_eq E0 #

∀ {R : Type u_1} [inst : NonAssocRing R] [CharP R 2] (x : R), -x = x

theorem CharTwo.neg_eq' E1 #

∀ {R : Type u_1} [inst : NonAssocRing R] [CharP R 2], Neg.neg = id

theorem CharTwo.sub_eq_add E1 #

∀ {R : Type u_1} [inst : NonAssocRing R] [CharP R 2] (x y : R), x - y = x + y

theorem CharTwo.two_zsmul E1 #

∀ {R : Type u_1} [inst : NonAssocRing R] [CharP R 2] (x : R), 2 • x = 0

theorem CharTwo.add_mul_self E1 #

∀ {R : Type u_1} [inst : NonAssocCommSemiring R] [CharP R 2] (x y : R), (x + y) * (x + y) = x * x + y * y

theorem CharTwo.list_sum_mul_self E1 #

∀ {R : Type u_1} [inst : NonAssocCommSemiring R] [CharP R 2] (l : List R),
  l.sum * l.sum = (List.map (fun x ↦ x * x) l).sum

theorem CharTwo.multiset_sum_mul_self E1 #

∀ {R : Type u_1} [inst : NonAssocCommSemiring R] [CharP R 2] (l : Multiset R),
  l.sum * l.sum = (Multiset.map (fun x ↦ x * x) l).sum

theorem CharTwo.sum_mul_self E1 #

∀ {R : Type u_1} {ι : Type u_2} [inst : NonAssocCommSemiring R] [CharP R 2] (s : Finset ι) (f : ι → R),
  (∑ i ∈ s, f i) * ∑ i ∈ s, f i = ∑ i ∈ s, f i * f i

theorem CharTwo.mul_self_injective E1 #

∀ {R : Type u_1} [inst : NonAssocCommSemiring R] [CharP R 2] [NoZeroDivisors R], Function.Injective fun x ↦ x * x

theorem CharTwo.mul_self_inj E1 #

∀ {R : Type u_1} [inst : NonAssocCommSemiring R] [CharP R 2] [NoZeroDivisors R] {x y : R}, x * x = y * y ↔ x = y

theorem CharTwo.add_sq E1 #

∀ {R : Type u_1} [inst : CommSemiring R] [CharP R 2] (x y : R), (x + y) ^ 2 = x ^ 2 + y ^ 2

theorem CharTwo.list_sum_sq E1 #

∀ {R : Type u_1} [inst : CommSemiring R] [CharP R 2] (l : List R), l.sum ^ 2 = (List.map (fun x ↦ x ^ 2) l).sum

theorem CharTwo.multiset_sum_sq E1 #

∀ {R : Type u_1} [inst : CommSemiring R] [CharP R 2] (l : Multiset R), l.sum ^ 2 = (Multiset.map (fun x ↦ x ^ 2) l).sum

theorem CharTwo.sum_sq E1 #

∀ {R : Type u_1} {ι : Type u_2} [inst : CommSemiring R] [CharP R 2] (s : Finset ι) (f : ι → R),
  (∑ i ∈ s, f i) ^ 2 = ∑ i ∈ s, f i ^ 2

theorem CharTwo.sq_injective E1 #

∀ {R : Type u_1} [inst : CommSemiring R] [CharP R 2] [NoZeroDivisors R], Function.Injective fun x ↦ x ^ 2

theorem CharTwo.sq_inj E1 #

∀ {R : Type u_1} [inst : CommSemiring R] [CharP R 2] [NoZeroDivisors R] {x y : R}, x ^ 2 = y ^ 2 ↔ x = y

theorem IsSelfNeg.one E0 #

∀ {R : Type u_1} [inst : AddGroupWithOne R] [CharP R 2], IsSelfNeg 1

theorem neg_one_eq_one_iff E0 #

∀ {R : Type u_1} [inst : NonAssocRing R] [Nontrivial R], -1 = 1 ↔ ringChar R = 2