Lemmas about rings of characteristic two #
This file contains results about CharP R 2
, in the CharTwo
namespace.
The lemmas in this file with a _sq
suffix are just special cases of the _pow_char
lemmas
elsewhere, with a shorter name for ease of discovery, and no need for a [Fact (Prime 2)]
argument.
theorem
CharTwo.multiset_sum_sq
{R : Type u_1}
[CommSemiring R]
[CharP R 2]
(l : Multiset R)
:
Multiset.sum l ^ 2 = Multiset.sum (Multiset.map (fun (x : R) => x ^ 2) l)
theorem
CharTwo.multiset_sum_mul_self
{R : Type u_1}
[CommSemiring R]
[CharP R 2]
(l : Multiset R)
:
Multiset.sum l * Multiset.sum l = Multiset.sum (Multiset.map (fun (x : R) => x * x) l)
theorem
CharTwo.sum_sq
{R : Type u_1}
{ι : Type u_2}
[CommSemiring R]
[CharP R 2]
(s : Finset ι)
(f : ι → R)
:
(Finset.sum s fun (i : ι) => f i) ^ 2 = Finset.sum s fun (i : ι) => f i ^ 2
theorem
CharTwo.sum_mul_self
{R : Type u_1}
{ι : Type u_2}
[CommSemiring R]
[CharP R 2]
(s : Finset ι)
(f : ι → R)
:
((Finset.sum s fun (i : ι) => f i) * Finset.sum s fun (i : ι) => f i) = Finset.sum s fun (i : ι) => f i * f i
@[simp]