Mathlib.GroupTheory.FreeGroup.Basic
265 declarations and 20 deprecated aliases. Mathlib docs · Source
Free groups
This file defines free groups over a type. For the result that FreeGroup is the left adjoint to
the forgetful functor from groups to types, see Mathlib/Algebra/Category/Grp/Adjunctions.lean.
Main definitions
FreeGroup/FreeAddGroup: the free group (resp. free additive group) associated to a typeαdefined as the words overa : α × Boolmodulo the relationa * x * x⁻¹ * b = a * b.FreeGroup.mk/FreeAddGroup.mk: the canonical quotient mapList (α × Bool) → FreeGroup α.FreeGroup.of/FreeAddGroup.of: the canonical injectionα → FreeGroup α.FreeGroup.lift f/FreeAddGroup.lift: the canonical group homomorphismFreeGroup α →* Ggiven a groupGand a functionf : α → G.
Main statements
FreeGroup.Red.church_rosser/FreeAddGroup.Red.church_rosser: The Church-Rosser theorem for word reduction (also known as Newman's diamond lemma).FreeGroup.freeGroupUnitEquivInt: The free group over the one-point type is isomorphic to the integers.
Implementation notes
First we introduce the one step reduction relation FreeGroup.Red.Step:
w * x * x⁻¹ * v ~> w * v, its reflexive transitive closure FreeGroup.Red.trans
and prove that its join is an equivalence relation. Then we introduce FreeGroup α as a quotient
over FreeGroup.Red.Step.
For the additive version we introduce the same relation under a different name so that we can distinguish the quotient types more easily.
Tags
free group, Newman's diamond lemma, Church-Rosser theorem
Reduced words
theorem Quot.map.congr_simp E1 #
∀ {α : Sort u_1} {β : Sort u_2} {ra : α → α → Prop} {rb : β → β → Prop} (f f_1 : α → β) (e_f : f = f_1)
(h : ∀ ⦃a b : α⦄, ra a b → rb (f a) (f b)) (a a_1 : Quot ra), a = a_1 → Quot.map f h a = Quot.map f_1 ⋯ a_1
inductive FreeAddGroup.Red.Step E1 #
{α : Type u} → List (α × Bool) → List (α × Bool) → Prop
Reduction step for the additive free group relation: w + x + (-x) + v ~> w + v
ctor FreeAddGroup.Red.Step.not E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {x : α} {b : Bool},
FreeAddGroup.Red.Step (L₁ ++ (x, b) :: (x, !b) :: L₂) (L₁ ++ L₂)
inductive FreeGroup.Red.Step E1 #
{α : Type u} → List (α × Bool) → List (α × Bool) → Prop
Reduction step for the multiplicative free group relation: w * x * x⁻¹ * v ~> w * v
ctor FreeGroup.Red.Step.not E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {x : α} {b : Bool},
FreeGroup.Red.Step (L₁ ++ (x, b) :: (x, !b) :: L₂) (L₁ ++ L₂)
def FreeGroup.Red E1 #
{α : Type u} → List (α × Bool) → List (α × Bool) → Prop
Reflexive-transitive closure of Red.Step
def FreeAddGroup.Red E1 #
{α : Type u} → List (α × Bool) → List (α × Bool) → Prop
Reflexive-transitive closure of Red.Step
theorem FreeAddGroup.Red.refl E1 #
∀ {α : Type u} {L : List (α × Bool)}, FreeAddGroup.Red L L
theorem FreeGroup.Red.refl E1 #
∀ {α : Type u} {L : List (α × Bool)}, FreeGroup.Red L L
theorem FreeGroup.Red.trans E1 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)}, FreeGroup.Red L₁ L₂ → FreeGroup.Red L₂ L₃ → FreeGroup.Red L₁ L₃
theorem FreeAddGroup.Red.trans E1 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)}, FreeAddGroup.Red L₁ L₂ → FreeAddGroup.Red L₂ L₃ → FreeAddGroup.Red L₁ L₃
theorem FreeGroup.Red.Step.length E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.Red.Step L₁ L₂ → L₂.length + 2 = L₁.length
Predicate asserting that the word w₁ can be reduced to w₂ in one step, i.e. there are words
w₃ w₄ and letter x such that w₁ = w₃xx⁻¹w₄ and w₂ = w₃w₄
theorem FreeAddGroup.Red.Step.length E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.Red.Step L₁ L₂ → L₂.length + 2 = L₁.length
Predicate asserting that the word w₁ can be reduced to w₂ in one step, i.e.
there are words w₃ w₄ and letter x such that w₁ = w₃ + x + (-x) + w₄ and w₂ = w₃w₄
theorem FreeGroup.Red.Step.not_rev E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {x : α} {b : Bool},
FreeGroup.Red.Step (L₁ ++ (x, !b) :: (x, b) :: L₂) (L₁ ++ L₂)
theorem FreeAddGroup.Red.Step.not_rev E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {x : α} {b : Bool},
FreeAddGroup.Red.Step (L₁ ++ (x, !b) :: (x, b) :: L₂) (L₁ ++ L₂)
theorem FreeAddGroup.Red.Step.cons_not E0 #
∀ {α : Type u} {L : List (α × Bool)} {x : α} {b : Bool}, FreeAddGroup.Red.Step ((x, b) :: (x, !b) :: L) L
theorem FreeGroup.Red.Step.cons_not E0 #
∀ {α : Type u} {L : List (α × Bool)} {x : α} {b : Bool}, FreeGroup.Red.Step ((x, b) :: (x, !b) :: L) L
theorem FreeGroup.Red.Step.cons_not_rev E0 #
∀ {α : Type u} {L : List (α × Bool)} {x : α} {b : Bool}, FreeGroup.Red.Step ((x, !b) :: (x, b) :: L) L
theorem FreeAddGroup.Red.Step.cons_not_rev E0 #
∀ {α : Type u} {L : List (α × Bool)} {x : α} {b : Bool}, FreeAddGroup.Red.Step ((x, !b) :: (x, b) :: L) L
theorem FreeAddGroup.Red.Step.append_left E1 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)}, FreeAddGroup.Red.Step L₂ L₃ → FreeAddGroup.Red.Step (L₁ ++ L₂) (L₁ ++ L₃)
theorem FreeGroup.Red.Step.append_left E1 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)}, FreeGroup.Red.Step L₂ L₃ → FreeGroup.Red.Step (L₁ ++ L₂) (L₁ ++ L₃)
theorem FreeAddGroup.Red.Step.cons E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {x : α × Bool},
FreeAddGroup.Red.Step L₁ L₂ → FreeAddGroup.Red.Step (x :: L₁) (x :: L₂)
theorem FreeGroup.Red.Step.cons E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {x : α × Bool},
FreeGroup.Red.Step L₁ L₂ → FreeGroup.Red.Step (x :: L₁) (x :: L₂)
theorem FreeAddGroup.Red.Step.append_right E1 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)}, FreeAddGroup.Red.Step L₁ L₂ → FreeAddGroup.Red.Step (L₁ ++ L₃) (L₂ ++ L₃)
theorem FreeGroup.Red.Step.append_right E1 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)}, FreeGroup.Red.Step L₁ L₂ → FreeGroup.Red.Step (L₁ ++ L₃) (L₂ ++ L₃)
theorem FreeGroup.Red.not_step_nil E1 #
∀ {α : Type u} {L : List (α × Bool)}, ¬FreeGroup.Red.Step [] L
theorem FreeAddGroup.Red.not_step_nil E1 #
∀ {α : Type u} {L : List (α × Bool)}, ¬FreeAddGroup.Red.Step [] L
theorem FreeAddGroup.Red.Step.cons_left_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {a : α} {b : Bool},
FreeAddGroup.Red.Step ((a, b) :: L₁) L₂ ↔ (∃ L, FreeAddGroup.Red.Step L₁ L ∧ L₂ = (a, b) :: L) ∨ L₁ = (a, !b) :: L₂
theorem FreeGroup.Red.Step.cons_left_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {a : α} {b : Bool},
FreeGroup.Red.Step ((a, b) :: L₁) L₂ ↔ (∃ L, FreeGroup.Red.Step L₁ L ∧ L₂ = (a, b) :: L) ∨ L₁ = (a, !b) :: L₂
theorem FreeAddGroup.Red.not_step_singleton E1 #
∀ {α : Type u} {L : List (α × Bool)} {p : α × Bool}, ¬FreeAddGroup.Red.Step [p] L
theorem FreeGroup.Red.not_step_singleton E1 #
∀ {α : Type u} {L : List (α × Bool)} {p : α × Bool}, ¬FreeGroup.Red.Step [p] L
theorem FreeAddGroup.Red.Step.cons_cons_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {p : α × Bool},
FreeAddGroup.Red.Step (p :: L₁) (p :: L₂) ↔ FreeAddGroup.Red.Step L₁ L₂
theorem FreeGroup.Red.Step.cons_cons_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {p : α × Bool},
FreeGroup.Red.Step (p :: L₁) (p :: L₂) ↔ FreeGroup.Red.Step L₁ L₂
theorem FreeAddGroup.Red.Step.append_left_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} (L : List (α × Bool)),
FreeAddGroup.Red.Step (L ++ L₁) (L ++ L₂) ↔ FreeAddGroup.Red.Step L₁ L₂
theorem FreeGroup.Red.Step.append_left_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} (L : List (α × Bool)),
FreeGroup.Red.Step (L ++ L₁) (L ++ L₂) ↔ FreeGroup.Red.Step L₁ L₂
theorem FreeAddGroup.Red.Step.diamond_aux E0 #
∀ {α : Type u} {L₁ L₂ L₃ L₄ : List (α × Bool)} {x1 : α} {b1 : Bool} {x2 : α} {b2 : Bool},
L₁ ++ (x1, b1) :: (x1, !b1) :: L₂ = L₃ ++ (x2, b2) :: (x2, !b2) :: L₄ →
L₁ ++ L₂ = L₃ ++ L₄ ∨ ∃ L₅, FreeAddGroup.Red.Step (L₁ ++ L₂) L₅ ∧ FreeAddGroup.Red.Step (L₃ ++ L₄) L₅
theorem FreeGroup.Red.Step.diamond_aux E0 #
∀ {α : Type u} {L₁ L₂ L₃ L₄ : List (α × Bool)} {x1 : α} {b1 : Bool} {x2 : α} {b2 : Bool},
L₁ ++ (x1, b1) :: (x1, !b1) :: L₂ = L₃ ++ (x2, b2) :: (x2, !b2) :: L₄ →
L₁ ++ L₂ = L₃ ++ L₄ ∨ ∃ L₅, FreeGroup.Red.Step (L₁ ++ L₂) L₅ ∧ FreeGroup.Red.Step (L₃ ++ L₄) L₅
theorem FreeGroup.Red.Step.diamond E1 #
∀ {α : Type u} {L₁ L₂ L₃ L₄ : List (α × Bool)},
FreeGroup.Red.Step L₁ L₃ →
FreeGroup.Red.Step L₂ L₄ → L₁ = L₂ → L₃ = L₄ ∨ ∃ L₅, FreeGroup.Red.Step L₃ L₅ ∧ FreeGroup.Red.Step L₄ L₅
theorem FreeAddGroup.Red.Step.diamond E1 #
∀ {α : Type u} {L₁ L₂ L₃ L₄ : List (α × Bool)},
FreeAddGroup.Red.Step L₁ L₃ →
FreeAddGroup.Red.Step L₂ L₄ → L₁ = L₂ → L₃ = L₄ ∨ ∃ L₅, FreeAddGroup.Red.Step L₃ L₅ ∧ FreeAddGroup.Red.Step L₄ L₅
theorem FreeGroup.Red.Step.to_red E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.Red.Step L₁ L₂ → FreeGroup.Red L₁ L₂
theorem FreeAddGroup.Red.Step.to_red E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.Red.Step L₁ L₂ → FreeAddGroup.Red L₁ L₂
theorem FreeGroup.Red.church_rosser E3 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)},
FreeGroup.Red L₁ L₂ → FreeGroup.Red L₁ L₃ → Relation.Join FreeGroup.Red L₂ L₃
Church-Rosser theorem for word reduction: If w1 w2 w3 are words such that w1 reduces
to w2 and w3 respectively, then there is a word w4 such that w2 and w3 reduce to w4
respectively. This is also known as Newman's diamond lemma.
theorem FreeAddGroup.Red.church_rosser E3 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)},
FreeAddGroup.Red L₁ L₂ → FreeAddGroup.Red L₁ L₃ → Relation.Join FreeAddGroup.Red L₂ L₃
Church-Rosser theorem for word reduction: If w1 w2 w3 are words such that w1 reduces
to w2 and w3 respectively, then there is a word w4 such that w2 and w3 reduce to w4
respectively. This is also known as Newman's diamond lemma.
theorem FreeAddGroup.Red.cons_cons E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {p : α × Bool}, FreeAddGroup.Red L₁ L₂ → FreeAddGroup.Red (p :: L₁) (p :: L₂)
theorem FreeGroup.Red.cons_cons E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {p : α × Bool}, FreeGroup.Red L₁ L₂ → FreeGroup.Red (p :: L₁) (p :: L₂)
theorem FreeGroup.Red.cons_cons_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} (p : α × Bool), FreeGroup.Red (p :: L₁) (p :: L₂) ↔ FreeGroup.Red L₁ L₂
theorem FreeAddGroup.Red.cons_cons_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} (p : α × Bool), FreeAddGroup.Red (p :: L₁) (p :: L₂) ↔ FreeAddGroup.Red L₁ L₂
theorem FreeGroup.Red.append_append_left_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} (L : List (α × Bool)), FreeGroup.Red (L ++ L₁) (L ++ L₂) ↔ FreeGroup.Red L₁ L₂
theorem FreeAddGroup.Red.append_append_left_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} (L : List (α × Bool)),
FreeAddGroup.Red (L ++ L₁) (L ++ L₂) ↔ FreeAddGroup.Red L₁ L₂
theorem FreeGroup.Red.append_append E1 #
∀ {α : Type u} {L₁ L₂ L₃ L₄ : List (α × Bool)},
FreeGroup.Red L₁ L₃ → FreeGroup.Red L₂ L₄ → FreeGroup.Red (L₁ ++ L₂) (L₃ ++ L₄)
theorem FreeAddGroup.Red.append_append E1 #
∀ {α : Type u} {L₁ L₂ L₃ L₄ : List (α × Bool)},
FreeAddGroup.Red L₁ L₃ → FreeAddGroup.Red L₂ L₄ → FreeAddGroup.Red (L₁ ++ L₂) (L₃ ++ L₄)
theorem FreeGroup.Red.to_append_iff E0 #
∀ {α : Type u} {L L₁ L₂ : List (α × Bool)},
FreeGroup.Red L (L₁ ++ L₂) ↔ ∃ L₃ L₄, L = L₃ ++ L₄ ∧ FreeGroup.Red L₃ L₁ ∧ FreeGroup.Red L₄ L₂
theorem FreeAddGroup.Red.to_append_iff E0 #
∀ {α : Type u} {L L₁ L₂ : List (α × Bool)},
FreeAddGroup.Red L (L₁ ++ L₂) ↔ ∃ L₃ L₄, L = L₃ ++ L₄ ∧ FreeAddGroup.Red L₃ L₁ ∧ FreeAddGroup.Red L₄ L₂
theorem FreeGroup.Red.nil_iff E0 #
∀ {α : Type u} {L : List (α × Bool)}, FreeGroup.Red [] L ↔ L = []
The empty word [] only reduces to itself.
theorem FreeAddGroup.Red.nil_iff E0 #
∀ {α : Type u} {L : List (α × Bool)}, FreeAddGroup.Red [] L ↔ L = []
The empty word [] only reduces to itself.
theorem FreeGroup.Red.singleton_iff E0 #
∀ {α : Type u} {L₁ : List (α × Bool)} {x : α × Bool}, FreeGroup.Red [x] L₁ ↔ L₁ = [x]
A letter only reduces to itself.
theorem FreeAddGroup.Red.singleton_iff E0 #
∀ {α : Type u} {L₁ : List (α × Bool)} {x : α × Bool}, FreeAddGroup.Red [x] L₁ ↔ L₁ = [x]
A letter only reduces to itself.
theorem FreeGroup.Red.cons_nil_iff_singleton E1 #
∀ {α : Type u} {L : List (α × Bool)} {x : α} {b : Bool}, FreeGroup.Red ((x, b) :: L) [] ↔ FreeGroup.Red L [(x, !b)]
If x is a letter and w is a word such that xw reduces to the empty word, then w reduces
to x⁻¹
theorem FreeAddGroup.Red.cons_nil_iff_singleton E1 #
∀ {α : Type u} {L : List (α × Bool)} {x : α} {b : Bool},
FreeAddGroup.Red ((x, b) :: L) [] ↔ FreeAddGroup.Red L [(x, !b)]
If x is a letter and w is a word such that x + w reduces to the empty word, then w
reduces to -x.
theorem FreeAddGroup.Red.red_iff_addIrreducible E1 #
∀ {α : Type u} {L : List (α × Bool)} {x1 : α} {b1 : Bool} {x2 : α} {b2 : Bool},
(x1, b1) ≠ (x2, b2) → (FreeAddGroup.Red [(x1, !b1), (x2, b2)] L ↔ L = [(x1, !b1), (x2, b2)])
theorem FreeGroup.Red.red_iff_irreducible E1 #
∀ {α : Type u} {L : List (α × Bool)} {x1 : α} {b1 : Bool} {x2 : α} {b2 : Bool},
(x1, b1) ≠ (x2, b2) → (FreeGroup.Red [(x1, !b1), (x2, b2)] L ↔ L = [(x1, !b1), (x2, b2)])
theorem FreeGroup.Red.inv_of_red_of_ne E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {x1 : α} {b1 : Bool} {x2 : α} {b2 : Bool},
(x1, b1) ≠ (x2, b2) → FreeGroup.Red ((x1, b1) :: L₁) ((x2, b2) :: L₂) → FreeGroup.Red L₁ ((x1, !b1) :: (x2, b2) :: L₂)
If x and y are distinct letters and w₁ w₂ are words such that xw₁ reduces to yw₂, then
w₁ reduces to x⁻¹yw₂.
theorem FreeAddGroup.Red.neg_of_red_of_ne E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {x1 : α} {b1 : Bool} {x2 : α} {b2 : Bool},
(x1, b1) ≠ (x2, b2) →
FreeAddGroup.Red ((x1, b1) :: L₁) ((x2, b2) :: L₂) → FreeAddGroup.Red L₁ ((x1, !b1) :: (x2, b2) :: L₂)
If x and y are distinct letters and w₁ w₂ are words such that x + w₁
reduces to y + w₂, then w₁ reduces to -x + y + w₂.
theorem FreeAddGroup.Red.Step.sublist E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.Red.Step L₁ L₂ → L₂.Sublist L₁
theorem FreeGroup.Red.Step.sublist E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.Red.Step L₁ L₂ → L₂.Sublist L₁
theorem FreeGroup.Red.sublist E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.Red L₁ L₂ → L₂.Sublist L₁
If w₁ w₂ are words such that w₁ reduces to w₂, then w₂ is a sublist of w₁.
theorem FreeAddGroup.Red.sublist E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.Red L₁ L₂ → L₂.Sublist L₁
If w₁ w₂ are words such that w₁ reduces to w₂, then w₂ is a sublist of w₁.
theorem FreeGroup.Red.length_le E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.Red L₁ L₂ → L₂.length ≤ L₁.length
theorem FreeAddGroup.Red.length_le E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.Red L₁ L₂ → L₂.length ≤ L₁.length
theorem FreeAddGroup.Red.length E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.Red L₁ L₂ → ∃ n, L₁.length = L₂.length + 2 * n
theorem FreeGroup.Red.length E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.Red L₁ L₂ → ∃ n, L₁.length = L₂.length + 2 * n
theorem FreeAddGroup.Red.antisymm E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.Red L₁ L₂ → FreeAddGroup.Red L₂ L₁ → L₁ = L₂
theorem FreeGroup.Red.antisymm E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.Red L₁ L₂ → FreeGroup.Red L₂ L₁ → L₁ = L₂
theorem FreeGroup.equivalence_join_red E1 #
∀ {α : Type u}, Equivalence (Relation.Join FreeGroup.Red)
theorem FreeAddGroup.equivalence_join_red E1 #
∀ {α : Type u}, Equivalence (Relation.Join FreeAddGroup.Red)
theorem FreeGroup.join_red_of_step E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.Red.Step L₁ L₂ → Relation.Join FreeGroup.Red L₁ L₂
theorem FreeAddGroup.join_red_of_step E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.Red.Step L₁ L₂ → Relation.Join FreeAddGroup.Red L₁ L₂
theorem FreeGroup.eqvGen_step_iff_join_red E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, Relation.EqvGen FreeGroup.Red.Step L₁ L₂ ↔ Relation.Join FreeGroup.Red L₁ L₂
theorem FreeAddGroup.eqvGen_step_iff_join_red E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)},
Relation.EqvGen FreeAddGroup.Red.Step L₁ L₂ ↔ Relation.Join FreeAddGroup.Red L₁ L₂
def FreeGroup.IsReduced E1 #
{α : Type u} → List (α × Bool) → Prop
Predicate asserting that the word L admits no reduction steps, i.e., no two neighboring
elements of the word cancel.
def FreeAddGroup.IsReduced E1 #
{α : Type u} → List (α × Bool) → Prop
Predicate asserting the word L admits no reduction steps,
i.e., no two neighboring elements of the word cancel.
theorem FreeGroup.IsReduced.nil E0 #
∀ {α : Type u}, FreeGroup.IsReduced []
theorem FreeAddGroup.IsReduced.nil E0 #
∀ {α : Type u}, FreeAddGroup.IsReduced []
theorem FreeAddGroup.IsReduced.singleton E0 #
∀ {α : Type u} {a : α × Bool}, FreeAddGroup.IsReduced [a]
theorem FreeGroup.IsReduced.singleton E0 #
∀ {α : Type u} {a : α × Bool}, FreeGroup.IsReduced [a]
theorem FreeAddGroup.isReduced_cons_cons E0 #
∀ {α : Type u} {L : List (α × Bool)} {a b : α × Bool},
FreeAddGroup.IsReduced (a :: b :: L) ↔ (a.1 = b.1 → a.2 = b.2) ∧ FreeAddGroup.IsReduced (b :: L)
theorem FreeGroup.isReduced_cons_cons E0 #
∀ {α : Type u} {L : List (α × Bool)} {a b : α × Bool},
FreeGroup.IsReduced (a :: b :: L) ↔ (a.1 = b.1 → a.2 = b.2) ∧ FreeGroup.IsReduced (b :: L)
theorem FreeAddGroup.IsReduced.not_step E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.IsReduced L₁ → ¬FreeAddGroup.Red.Step L₁ L₂
theorem FreeGroup.IsReduced.not_step E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.IsReduced L₁ → ¬FreeGroup.Red.Step L₁ L₂
theorem FreeGroup.IsReduced.of_forall_not_step E1 #
∀ {α : Type u} {L₁ : List (α × Bool)}, (∀ (L₂ : List (α × Bool)), ¬FreeGroup.Red.Step L₁ L₂) → FreeGroup.IsReduced L₁
theorem FreeAddGroup.IsReduced.of_forall_not_step E1 #
∀ {α : Type u} {L₁ : List (α × Bool)},
(∀ (L₂ : List (α × Bool)), ¬FreeAddGroup.Red.Step L₁ L₂) → FreeAddGroup.IsReduced L₁
theorem FreeGroup.isReduced_iff_not_step E1 #
∀ {α : Type u} {L₁ : List (α × Bool)}, FreeGroup.IsReduced L₁ ↔ ∀ (L₂ : List (α × Bool)), ¬FreeGroup.Red.Step L₁ L₂
theorem FreeAddGroup.isReduced_iff_not_step E1 #
∀ {α : Type u} {L₁ : List (α × Bool)},
FreeAddGroup.IsReduced L₁ ↔ ∀ (L₂ : List (α × Bool)), ¬FreeAddGroup.Red.Step L₁ L₂
theorem FreeAddGroup.IsReduced.red_iff_eq E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.IsReduced L₁ → (FreeAddGroup.Red L₁ L₂ ↔ L₂ = L₁)
theorem FreeGroup.IsReduced.red_iff_eq E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.IsReduced L₁ → (FreeGroup.Red L₁ L₂ ↔ L₂ = L₁)
theorem FreeGroup.IsReduced.append_overlap E1 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)},
FreeGroup.IsReduced (L₁ ++ L₂) → FreeGroup.IsReduced (L₂ ++ L₃) → L₂ ≠ [] → FreeGroup.IsReduced (L₁ ++ L₂ ++ L₃)
theorem FreeAddGroup.IsReduced.append_overlap E1 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)},
FreeAddGroup.IsReduced (L₁ ++ L₂) →
FreeAddGroup.IsReduced (L₂ ++ L₃) → L₂ ≠ [] → FreeAddGroup.IsReduced (L₁ ++ L₂ ++ L₃)
theorem FreeGroup.IsReduced.infix E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.IsReduced L₂ → L₁ <:+: L₂ → FreeGroup.IsReduced L₁
theorem FreeAddGroup.IsReduced.infix E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.IsReduced L₂ → L₁ <:+: L₂ → FreeAddGroup.IsReduced L₁
def FreeGroup E3 #
Type u → Type u
If α is a type, then FreeGroup α is the free group generated by α.
This is a group equipped with a function FreeGroup.of : α → FreeGroup α which has
the following universal property: if G is any group, and f : α → G is any function,
then this function is the composite of FreeGroup.of and a unique group homomorphism
FreeGroup.lift f : FreeGroup α →* G.
A typical element of FreeGroup α is a formal product of
elements of α and their formal inverses, quotient by reduction.
For example if x and y are terms of type α then x⁻¹ * y * y * x * y⁻¹ is a
"typical" element of FreeGroup α. In particular if α is empty
then FreeGroup α is isomorphic to the trivial group, and if α has one term
then FreeGroup α is isomorphic to Multiplicative ℤ.
If α has two or more terms then FreeGroup α is not commutative.
def FreeAddGroup E3 #
Type u → Type u
If α is a type, then FreeAddGroup α is the free additive group generated by α.
This is a group equipped with a function FreeAddGroup.of : α → FreeAddGroup α which has
the following universal property: if G is any group, and f : α → G is any function,
then this function is the composite of FreeAddGroup.of and a unique group homomorphism
FreeAddGroup.lift f : FreeAddGroup α →+ G.
A typical element of FreeAddGroup α is a formal sum of
elements of α and their formal inverses, quotient by reduction.
For example if x and y are terms of type α then -x + y + y + x + -y is a
"typical" element of FreeAddGroup α. In particular if α is empty
then FreeAddGroup α is isomorphic to the trivial group, and if α has one term
then FreeAddGroup α is isomorphic to ℤ.
If α has two or more terms then FreeAddGroup α is not commutative.
def FreeGroup.mk E3 #
{α : Type u} → List (α × Bool) → FreeGroup α
The canonical map from List (α × Bool) to the free group on α.
def FreeAddGroup.mk E3 #
{α : Type u} → List (α × Bool) → FreeAddGroup α
The canonical map from List (α × Bool) to the free additive group on α.
theorem FreeAddGroup.quot_mk_eq_mk E0 #
∀ {α : Type u} {L : List (α × Bool)}, Quot.mk FreeAddGroup.Red.Step L = FreeAddGroup.mk L
theorem FreeGroup.quot_mk_eq_mk E0 #
∀ {α : Type u} {L : List (α × Bool)}, Quot.mk FreeGroup.Red.Step L = FreeGroup.mk L
theorem FreeAddGroup.quot_lift_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} (β : Type v) (f : List (α × Bool) → β)
(H : ∀ (L₁ L₂ : List (α × Bool)), FreeAddGroup.Red.Step L₁ L₂ → f L₁ = f L₂), Quot.lift f H (FreeAddGroup.mk L) = f L
theorem FreeGroup.quot_lift_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} (β : Type v) (f : List (α × Bool) → β)
(H : ∀ (L₁ L₂ : List (α × Bool)), FreeGroup.Red.Step L₁ L₂ → f L₁ = f L₂), Quot.lift f H (FreeGroup.mk L) = f L
theorem FreeAddGroup.quot_liftOn_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} (β : Type v) (f : List (α × Bool) → β)
(H : ∀ (L₁ L₂ : List (α × Bool)), FreeAddGroup.Red.Step L₁ L₂ → f L₁ = f L₂),
Quot.liftOn (FreeAddGroup.mk L) f H = f L
theorem FreeGroup.quot_liftOn_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} (β : Type v) (f : List (α × Bool) → β)
(H : ∀ (L₁ L₂ : List (α × Bool)), FreeGroup.Red.Step L₁ L₂ → f L₁ = f L₂), Quot.liftOn (FreeGroup.mk L) f H = f L
theorem FreeAddGroup.quot_map_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} (β : Type v) (f : List (α × Bool) → List (β × Bool))
(H : Relator.LiftFun FreeAddGroup.Red.Step FreeAddGroup.Red.Step f f),
Quot.map f H (FreeAddGroup.mk L) = FreeAddGroup.mk (f L)
theorem FreeGroup.quot_map_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} (β : Type v) (f : List (α × Bool) → List (β × Bool))
(H : Relator.LiftFun FreeGroup.Red.Step FreeGroup.Red.Step f f), Quot.map f H (FreeGroup.mk L) = FreeGroup.mk (f L)
instance FreeGroup.instOne E0 #
{α : Type u} → One (FreeGroup α)
instance FreeAddGroup.instZero E0 #
{α : Type u} → Zero (FreeAddGroup α)
theorem FreeAddGroup.zero_eq_mk E0 #
∀ {α : Type u}, 0 = FreeAddGroup.mk []
theorem FreeGroup.one_eq_mk E0 #
∀ {α : Type u}, 1 = FreeGroup.mk []
instance FreeAddGroup.instInhabited E0 #
{α : Type u} → Inhabited (FreeAddGroup α)
instance FreeGroup.instInhabited E0 #
{α : Type u} → Inhabited (FreeGroup α)
instance FreeGroup.instUniqueOfIsEmpty E0 #
{α : Type u} → [IsEmpty α] → Unique (FreeGroup α)
instance FreeAddGroup.instUniqueOfIsEmpty E0 #
{α : Type u} → [IsEmpty α] → Unique (FreeAddGroup α)
instance FreeAddGroup.instAdd E0 #
{α : Type u} → Add (FreeAddGroup α)
instance FreeGroup.instMul E0 #
{α : Type u} → Mul (FreeGroup α)
theorem FreeAddGroup.add_mk E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.mk L₁ + FreeAddGroup.mk L₂ = FreeAddGroup.mk (L₁ ++ L₂)
theorem FreeGroup.mul_mk E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.mk L₁ * FreeGroup.mk L₂ = FreeGroup.mk (L₁ ++ L₂)
def FreeGroup.invRev E1 #
{α : Type u} → List (α × Bool) → List (α × Bool)
Transform a word representing a free group element into a word representing its inverse.
def FreeAddGroup.negRev E1 #
{α : Type u} → List (α × Bool) → List (α × Bool)
Transform a word representing a free group element into a word representing its negative.
theorem FreeGroup.invRev_length E0 #
∀ {α : Type u} {L₁ : List (α × Bool)}, (FreeGroup.invRev L₁).length = L₁.length
theorem FreeAddGroup.negRev_length E0 #
∀ {α : Type u} {L₁ : List (α × Bool)}, (FreeAddGroup.negRev L₁).length = L₁.length
theorem FreeGroup.invRev_invRev E0 #
∀ {α : Type u} {L₁ : List (α × Bool)}, FreeGroup.invRev (FreeGroup.invRev L₁) = L₁
theorem FreeAddGroup.negRev_negRev E0 #
∀ {α : Type u} {L₁ : List (α × Bool)}, FreeAddGroup.negRev (FreeAddGroup.negRev L₁) = L₁
theorem FreeGroup.invRev_empty E0 #
∀ {α : Type u}, FreeGroup.invRev [] = []
theorem FreeAddGroup.negRev_empty E0 #
∀ {α : Type u}, FreeAddGroup.negRev [] = []
theorem FreeAddGroup.negRev_append E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)},
FreeAddGroup.negRev (L₁ ++ L₂) = FreeAddGroup.negRev L₂ ++ FreeAddGroup.negRev L₁
theorem FreeGroup.invRev_append E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.invRev (L₁ ++ L₂) = FreeGroup.invRev L₂ ++ FreeGroup.invRev L₁
theorem FreeGroup.invRev_cons E1 #
∀ {α : Type u} {L : List (α × Bool)} {a : α × Bool},
FreeGroup.invRev (a :: L) = FreeGroup.invRev L ++ FreeGroup.invRev [a]
theorem FreeAddGroup.negRev_cons E1 #
∀ {α : Type u} {L : List (α × Bool)} {a : α × Bool},
FreeAddGroup.negRev (a :: L) = FreeAddGroup.negRev L ++ FreeAddGroup.negRev [a]
theorem FreeAddGroup.negRev_involutive E1 #
∀ {α : Type u}, Function.Involutive FreeAddGroup.negRev
theorem FreeGroup.invRev_involutive E1 #
∀ {α : Type u}, Function.Involutive FreeGroup.invRev
theorem FreeAddGroup.negRev_injective E1 #
∀ {α : Type u}, Function.Injective FreeAddGroup.negRev
theorem FreeGroup.invRev_injective E1 #
∀ {α : Type u}, Function.Injective FreeGroup.invRev
theorem FreeGroup.invRev_surjective E1 #
∀ {α : Type u}, Function.Surjective FreeGroup.invRev
theorem FreeAddGroup.negRev_surjective E1 #
∀ {α : Type u}, Function.Surjective FreeAddGroup.negRev
theorem FreeAddGroup.negRev_bijective E1 #
∀ {α : Type u}, Function.Bijective FreeAddGroup.negRev
theorem FreeGroup.invRev_bijective E1 #
∀ {α : Type u}, Function.Bijective FreeGroup.invRev
instance FreeGroup.instInv E0 #
{α : Type u} → Inv (FreeGroup α)
instance FreeAddGroup.instNeg E0 #
{α : Type u} → Neg (FreeAddGroup α)
theorem FreeAddGroup.neg_mk E0 #
∀ {α : Type u} {L : List (α × Bool)}, -FreeAddGroup.mk L = FreeAddGroup.mk (FreeAddGroup.negRev L)
theorem FreeGroup.inv_mk E0 #
∀ {α : Type u} {L : List (α × Bool)}, (FreeGroup.mk L)⁻¹ = FreeGroup.mk (FreeGroup.invRev L)
theorem FreeAddGroup.Red.Step.negRev E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)},
FreeAddGroup.Red.Step L₁ L₂ → FreeAddGroup.Red.Step (FreeAddGroup.negRev L₁) (FreeAddGroup.negRev L₂)
theorem FreeGroup.Red.Step.invRev E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)},
FreeGroup.Red.Step L₁ L₂ → FreeGroup.Red.Step (FreeGroup.invRev L₁) (FreeGroup.invRev L₂)
theorem FreeAddGroup.Red.negRev E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)},
FreeAddGroup.Red L₁ L₂ → FreeAddGroup.Red (FreeAddGroup.negRev L₁) (FreeAddGroup.negRev L₂)
theorem FreeGroup.Red.invRev E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)},
FreeGroup.Red L₁ L₂ → FreeGroup.Red (FreeGroup.invRev L₁) (FreeGroup.invRev L₂)
theorem FreeGroup.Red.step_invRev_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)},
FreeGroup.Red.Step (FreeGroup.invRev L₁) (FreeGroup.invRev L₂) ↔ FreeGroup.Red.Step L₁ L₂
theorem FreeAddGroup.Red.step_negRev_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)},
FreeAddGroup.Red.Step (FreeAddGroup.negRev L₁) (FreeAddGroup.negRev L₂) ↔ FreeAddGroup.Red.Step L₁ L₂
theorem FreeGroup.red_invRev_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)},
FreeGroup.Red (FreeGroup.invRev L₁) (FreeGroup.invRev L₂) ↔ FreeGroup.Red L₁ L₂
theorem FreeAddGroup.red_negRev_iff E0 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)},
FreeAddGroup.Red (FreeAddGroup.negRev L₁) (FreeAddGroup.negRev L₂) ↔ FreeAddGroup.Red L₁ L₂
instance FreeAddGroup.instAddGroup E0 #
{α : Type u} → AddGroup (FreeAddGroup α)
instance FreeGroup.instGroup E0 #
{α : Type u} → Group (FreeGroup α)
theorem FreeAddGroup.nsmul_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} (n : ℕ), n • FreeAddGroup.mk L = FreeAddGroup.mk (List.replicate n L).flatten
theorem FreeGroup.pow_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} (n : ℕ), FreeGroup.mk L ^ n = FreeGroup.mk (List.replicate n L).flatten
def FreeGroup.of E3 #
{α : Type u} → α → FreeGroup α
of is the canonical injection from the type to the free group over that type by sending each
element to the equivalence class of the letter that is the element.
def FreeAddGroup.of E3 #
{α : Type u} → α → FreeAddGroup α
of is the canonical injection from the type to the free group over that type
by sending each element to the equivalence class of the letter that is the element.
theorem FreeGroup.induction_on E1 #
∀ {α : Type u} {motive : FreeGroup α → Prop} (z : FreeGroup α),
motive 1 →
(∀ (x : α), motive (FreeGroup.of x)) →
(∀ (x : α), motive (FreeGroup.of x) → motive (FreeGroup.of x)⁻¹) →
(∀ (x y : FreeGroup α), motive x → motive y → motive (x * y)) → motive z
theorem FreeAddGroup.induction_on E1 #
∀ {α : Type u} {motive : FreeAddGroup α → Prop} (z : FreeAddGroup α),
motive 0 →
(∀ (x : α), motive (FreeAddGroup.of x)) →
(∀ (x : α), motive (FreeAddGroup.of x) → motive (-FreeAddGroup.of x)) →
(∀ (x y : FreeAddGroup α), motive x → motive y → motive (x + y)) → motive z
theorem FreeGroup.ext_hom E1 #
∀ {α : Type u} {M : Type u_1} [inst : Monoid M] (f g : FreeGroup α →* M),
(∀ (a : α), f (FreeGroup.of a) = g (FreeGroup.of a)) → f = g
Two homomorphisms out of a free group are equal if they are equal on generators.
See note [partially-applied ext lemmas].
theorem FreeGroup.ext_hom_iff E0 #
∀ {α : Type u} {M : Type u_1} [inst : Monoid M] {f g : FreeGroup α →* M},
f = g ↔ ∀ (a : α), f (FreeGroup.of a) = g (FreeGroup.of a)
theorem FreeAddGroup.ext_hom_iff E0 #
∀ {α : Type u} {M : Type u_1} [inst : AddMonoid M] {f g : FreeAddGroup α →+ M},
f = g ↔ ∀ (a : α), f (FreeAddGroup.of a) = g (FreeAddGroup.of a)
theorem FreeAddGroup.ext_hom E1 #
∀ {α : Type u} {M : Type u_1} [inst : AddMonoid M] (f g : FreeAddGroup α →+ M),
(∀ (a : α), f (FreeAddGroup.of a) = g (FreeAddGroup.of a)) → f = g
Two homomorphisms out of a free additive group are equal if they are equal on generators. See note [partially-applied ext lemmas].
theorem FreeAddGroup.Red.exact E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeAddGroup.mk L₁ = FreeAddGroup.mk L₂ ↔ Relation.Join FreeAddGroup.Red L₁ L₂
theorem FreeGroup.Red.exact E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)}, FreeGroup.mk L₁ = FreeGroup.mk L₂ ↔ Relation.Join FreeGroup.Red L₁ L₂
theorem FreeGroup.of_injective E1 #
∀ {α : Type u}, Function.Injective FreeGroup.of
The canonical map from the type to the free group is an injection.
theorem FreeAddGroup.of_injective E1 #
∀ {α : Type u}, Function.Injective FreeAddGroup.of
The canonical map from the type to the additive free group is an injection.
theorem FreeAddGroup.mk_eq_of E1 #
∀ {α : Type u} (x : α), FreeAddGroup.mk [(x, true)] = FreeAddGroup.of x
theorem FreeGroup.mk_eq_of E1 #
∀ {α : Type u} (x : α), FreeGroup.mk [(x, true)] = FreeGroup.of x
theorem FreeAddGroup.mk_eq_neg_of E1 #
∀ {α : Type u} (x : α), FreeAddGroup.mk [(x, false)] = -FreeAddGroup.of x
theorem FreeGroup.mk_eq_inv_of E1 #
∀ {α : Type u} (x : α), FreeGroup.mk [(x, false)] = (FreeGroup.of x)⁻¹
def FreeGroup.Lift.aux E1 #
{α : Type u} → {β : Type v} → [Group β] → (α → β) → List (α × Bool) → β
Given f : α → β with β a group, the canonical map List (α × Bool) → β
def FreeAddGroup.Lift.aux E1 #
{α : Type u} → {β : Type v} → [AddGroup β] → (α → β) → List (α × Bool) → β
Given f : α → β with β an additive group, the canonical map
List (α × Bool) → β
theorem FreeAddGroup.Red.Step.lift E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {β : Type v} [inst : AddGroup β] {f : α → β},
FreeAddGroup.Red.Step L₁ L₂ → FreeAddGroup.Lift.aux f L₁ = FreeAddGroup.Lift.aux f L₂
theorem FreeGroup.Red.Step.lift E1 #
∀ {α : Type u} {L₁ L₂ : List (α × Bool)} {β : Type v} [inst : Group β] {f : α → β},
FreeGroup.Red.Step L₁ L₂ → FreeGroup.Lift.aux f L₁ = FreeGroup.Lift.aux f L₂
def FreeGroup.lift E3 #
{α : Type u} → {β : Type v} → [inst : Group β] → (α → β) ≃ (FreeGroup α →* β)
If β is a group, then any function from α to β extends uniquely to a group homomorphism
from the free group over α to β
theorem FreeGroup.lift_symm_apply E0 #
∀ {α : Type u} {β : Type v} [inst : Group β] (g : FreeGroup α →* β) (a : α),
FreeGroup.lift.symm g a = (⇑g ∘ FreeGroup.of) a
def FreeAddGroup.lift E1 #
{α : Type u} → {β : Type v} → [inst : AddGroup β] → (α → β) ≃ (FreeAddGroup α →+ β)
If β is an additive group, then any function from α to β extends uniquely to an
additive group homomorphism from the free additive group over α to β
theorem FreeAddGroup.lift_symm_apply E0 #
∀ {α : Type u} {β : Type v} [inst : AddGroup β] (g : FreeAddGroup α →+ β) (a : α),
FreeAddGroup.lift.symm g a = (⇑g ∘ FreeAddGroup.of) a
theorem FreeAddGroup.lift_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} {β : Type v} [inst : AddGroup β] {f : α → β},
(FreeAddGroup.lift f) (FreeAddGroup.mk L) = (List.map (fun x ↦ bif x.2 then f x.1 else -f x.1) L).sum
theorem FreeGroup.lift_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} {β : Type v} [inst : Group β] {f : α → β},
(FreeGroup.lift f) (FreeGroup.mk L) = (List.map (fun x ↦ bif x.2 then f x.1 else (f x.1)⁻¹) L).prod
theorem FreeGroup.lift_apply_of E0 #
∀ {α : Type u} {β : Type v} [inst : Group β] {f : α → β} {x : α}, (FreeGroup.lift f) (FreeGroup.of x) = f x
theorem FreeAddGroup.lift_apply_of E0 #
∀ {α : Type u} {β : Type v} [inst : AddGroup β] {f : α → β} {x : α}, (FreeAddGroup.lift f) (FreeAddGroup.of x) = f x
theorem FreeAddGroup.lift_unique E1 #
∀ {α : Type u} {β : Type v} [inst : AddGroup β] {f : α → β} (g : FreeAddGroup α →+ β),
(∀ (x : α), g (FreeAddGroup.of x) = f x) → ∀ {x : FreeAddGroup α}, g x = (FreeAddGroup.lift f) x
theorem FreeGroup.lift_unique E1 #
∀ {α : Type u} {β : Type v} [inst : Group β] {f : α → β} (g : FreeGroup α →* β),
(∀ (x : α), g (FreeGroup.of x) = f x) → ∀ {x : FreeGroup α}, g x = (FreeGroup.lift f) x
theorem FreeGroup.lift_of_eq_id E1 #
∀ (α : Type u_1), FreeGroup.lift FreeGroup.of = MonoidHom.id (FreeGroup α)
theorem FreeAddGroup.lift_of_eq_id E1 #
∀ (α : Type u_1), FreeAddGroup.lift FreeAddGroup.of = AddMonoidHom.id (FreeAddGroup α)
theorem FreeAddGroup.lift_of_apply E0 #
∀ {α : Type u} (x : FreeAddGroup α), (FreeAddGroup.lift FreeAddGroup.of) x = x
theorem FreeGroup.lift_of_apply E0 #
∀ {α : Type u} (x : FreeGroup α), (FreeGroup.lift FreeGroup.of) x = x
theorem FreeAddGroup.range_lift_le E1 #
∀ {α : Type u} {β : Type v} [inst : AddGroup β] {f : α → β} {s : AddSubgroup β},
Set.range f ⊆ ↑s → (FreeAddGroup.lift f).range ≤ s
theorem FreeGroup.range_lift_le E1 #
∀ {α : Type u} {β : Type v} [inst : Group β] {f : α → β} {s : Subgroup β},
Set.range f ⊆ ↑s → (FreeGroup.lift f).range ≤ s
theorem FreeGroup.range_lift_eq_closure E1 #
∀ {α : Type u} {β : Type v} [inst : Group β] {f : α → β}, (FreeGroup.lift f).range = Subgroup.closure (Set.range f)
theorem FreeAddGroup.range_lift_eq_closure E1 #
∀ {α : Type u} {β : Type v} [inst : AddGroup β] {f : α → β},
(FreeAddGroup.lift f).range = AddSubgroup.closure (Set.range f)
theorem FreeAddGroup.lift_surjective_iff_closure_range_eq_top E1 #
∀ {α : Type u} {β : Type v} [inst : AddGroup β] {f : α → β},
Function.Surjective ⇑(FreeAddGroup.lift f) ↔ AddSubgroup.closure (Set.range f) = ⊤
theorem FreeGroup.lift_surjective_iff_closure_range_eq_top E1 #
∀ {α : Type u} {β : Type v} [inst : Group β] {f : α → β},
Function.Surjective ⇑(FreeGroup.lift f) ↔ Subgroup.closure (Set.range f) = ⊤
theorem FreeAddGroup.closure_eq_range E1 #
∀ {β : Type v} [inst : AddGroup β] (s : Set β), AddSubgroup.closure s = (FreeAddGroup.lift Subtype.val).range
theorem FreeGroup.closure_eq_range E1 #
∀ {β : Type v} [inst : Group β] (s : Set β), Subgroup.closure s = (FreeGroup.lift Subtype.val).range
theorem FreeGroup.closure_range_of E0 #
∀ (α : Type u_1), Subgroup.closure (Set.range FreeGroup.of) = ⊤
The generators of FreeGroup α generate FreeGroup α. That is, the subgroup closure of the
set of generators equals ⊤.
theorem FreeAddGroup.closure_range_of E0 #
∀ (α : Type u_1), AddSubgroup.closure (Set.range FreeAddGroup.of) = ⊤
The generators of FreeAddGroup α generate FreeAddGroup α. That
is, the additive subgroup closure of the set of generators equals ⊤.
theorem FreeGroup.lift_surjective_of_surjective E1 #
∀ {α : Type u} {β : Type v} [inst : Group β] {f : α → β},
Function.Surjective f → Function.Surjective ⇑(FreeGroup.lift f)
theorem FreeAddGroup.lift_surjective_of_surjective E1 #
∀ {α : Type u} {β : Type v} [inst : AddGroup β] {f : α → β},
Function.Surjective f → Function.Surjective ⇑(FreeAddGroup.lift f)
def FreeGroup.map E1 #
{α : Type u} → {β : Type v} → (α → β) → FreeGroup α →* FreeGroup β
Any function from α to β extends uniquely to a group homomorphism from the free group over
α to the free group over β.
def FreeAddGroup.map E1 #
{α : Type u} → {β : Type v} → (α → β) → FreeAddGroup α →+ FreeAddGroup β
Any function from α to β extends uniquely to an additive group homomorphism
from the additive free group over α to the additive free group over β.
theorem FreeGroup.map.mk E0 #
∀ {α : Type u} {L : List (α × Bool)} {β : Type v} {f : α → β},
(FreeGroup.map f) (FreeGroup.mk L) = FreeGroup.mk (List.map (fun x ↦ (f x.1, x.2)) L)
theorem FreeAddGroup.map.mk E0 #
∀ {α : Type u} {L : List (α × Bool)} {β : Type v} {f : α → β},
(FreeAddGroup.map f) (FreeAddGroup.mk L) = FreeAddGroup.mk (List.map (fun x ↦ (f x.1, x.2)) L)
theorem FreeAddGroup.map.id E0 #
∀ {α : Type u} (x : FreeAddGroup α), (FreeAddGroup.map id) x = x
theorem FreeGroup.map.id E0 #
∀ {α : Type u} (x : FreeGroup α), (FreeGroup.map id) x = x
theorem FreeAddGroup.map.id' E0 #
∀ {α : Type u} (x : FreeAddGroup α), (FreeAddGroup.map fun z ↦ z) x = x
theorem FreeGroup.map.id' E0 #
∀ {α : Type u} (x : FreeGroup α), (FreeGroup.map fun z ↦ z) x = x
theorem FreeAddGroup.map.comp E1 #
∀ {α : Type u} {β : Type v} {γ : Type w} (f : α → β) (g : β → γ) (x : FreeAddGroup α),
(FreeAddGroup.map g) ((FreeAddGroup.map f) x) = (FreeAddGroup.map (g ∘ f)) x
theorem FreeGroup.map.comp E1 #
∀ {α : Type u} {β : Type v} {γ : Type w} (f : α → β) (g : β → γ) (x : FreeGroup α),
(FreeGroup.map g) ((FreeGroup.map f) x) = (FreeGroup.map (g ∘ f)) x
theorem FreeGroup.map.of E0 #
∀ {α : Type u} {β : Type v} {f : α → β} {x : α}, (FreeGroup.map f) (FreeGroup.of x) = FreeGroup.of (f x)
theorem FreeAddGroup.map.of E0 #
∀ {α : Type u} {β : Type v} {f : α → β} {x : α}, (FreeAddGroup.map f) (FreeAddGroup.of x) = FreeAddGroup.of (f x)
theorem FreeAddGroup.map.unique E1 #
∀ {α : Type u} {β : Type v} {f : α → β} (g : FreeAddGroup α →+ FreeAddGroup β),
(∀ (x : α), g (FreeAddGroup.of x) = FreeAddGroup.of (f x)) → ∀ {x : FreeAddGroup α}, g x = (FreeAddGroup.map f) x
theorem FreeGroup.map.unique E1 #
∀ {α : Type u} {β : Type v} {f : α → β} (g : FreeGroup α →* FreeGroup β),
(∀ (x : α), g (FreeGroup.of x) = FreeGroup.of (f x)) → ∀ {x : FreeGroup α}, g x = (FreeGroup.map f) x
theorem FreeAddGroup.map_eq_lift E0 #
∀ {α : Type u} {β : Type v} {f : α → β}, FreeAddGroup.map f = FreeAddGroup.lift (FreeAddGroup.of ∘ f)
theorem FreeGroup.map_eq_lift E0 #
∀ {α : Type u} {β : Type v} {f : α → β}, FreeGroup.map f = FreeGroup.lift (FreeGroup.of ∘ f)
theorem FreeGroup.range_map E1 #
∀ {α : Type u} {β : Type v} {f : α → β}, (FreeGroup.map f).range = Subgroup.closure (FreeGroup.of '' Set.range f)
theorem FreeAddGroup.range_map E1 #
∀ {α : Type u} {β : Type v} {f : α → β},
(FreeAddGroup.map f).range = AddSubgroup.closure (FreeAddGroup.of '' Set.range f)
theorem FreeGroup.map_surjective E0 #
∀ {α : Type u} {β : Type v} {f : α → β}, Function.Surjective f → Function.Surjective ⇑(FreeGroup.map f)
If α and β are arbitrary types and there is a surjection between them,
then the induced map on their free groups is also surjective.
theorem FreeAddGroup.map_surjective E0 #
∀ {α : Type u} {β : Type v} {f : α → β}, Function.Surjective f → Function.Surjective ⇑(FreeAddGroup.map f)
If α and β are arbitrary types and there is a surjection between them,
then the induced map on their additive free groups is also surjective.
theorem FreeGroup.map_injective E0 #
∀ {α : Type u} {β : Type v} {f : α → β}, Function.Injective f → Function.Injective ⇑(FreeGroup.map f)
If α and β are arbitrary types and there is an injection between them,
then the induced map on their free groups is also injective.
theorem FreeAddGroup.map_injective E0 #
∀ {α : Type u} {β : Type v} {f : α → β}, Function.Injective f → Function.Injective ⇑(FreeAddGroup.map f)
If α and β are arbitrary types and there is an injection between them,
then the induced map on their additive free groups is also injective.
theorem FreeGroup.map_bijective E0 #
∀ {α : Type u} {β : Type v} {f : α → β}, Function.Bijective f → Function.Bijective ⇑(FreeGroup.map f)
If α and β are arbitrary types and there is a bijection between them,
then the induced map on their free groups is also bijective.
theorem FreeAddGroup.map_bijective E0 #
∀ {α : Type u} {β : Type v} {f : α → β}, Function.Bijective f → Function.Bijective ⇑(FreeAddGroup.map f)
If α and β are arbitrary types and there is a bijection between them,
then the induced map on their additive free groups is also bijective.
def FreeGroup.freeGroupCongr E1 #
{α : Type u_1} → {β : Type u_2} → α ≃ β → FreeGroup α ≃* FreeGroup β
Equivalent types give rise to multiplicatively equivalent free groups.
The converse can be found in Mathlib/GroupTheory/FreeGroup/GeneratorEquiv.lean, as
Equiv.ofFreeGroupEquiv.
theorem FreeAddGroup.freeAddGroupCongr_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) (a : FreeAddGroup α),
(FreeAddGroup.freeAddGroupCongr e) a = (FreeAddGroup.map ⇑e) a
def FreeAddGroup.freeAddGroupCongr E1 #
{α : Type u_1} → {β : Type u_2} → α ≃ β → FreeAddGroup α ≃+ FreeAddGroup β
Equivalent types give rise to additively equivalent additive free groups.
theorem FreeGroup.freeGroupCongr_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) (a : FreeGroup α), (FreeGroup.freeGroupCongr e) a = (FreeGroup.map ⇑e) a
theorem FreeGroup.freeGroupCongr_refl E0 #
∀ {α : Type u}, FreeGroup.freeGroupCongr (Equiv.refl α) = MulEquiv.refl (FreeGroup α)
theorem FreeAddGroup.freeAddGroupCongr_refl E0 #
∀ {α : Type u}, FreeAddGroup.freeAddGroupCongr (Equiv.refl α) = AddEquiv.refl (FreeAddGroup α)
theorem FreeAddGroup.freeAddGroupCongr_symm E0 #
∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β),
(FreeAddGroup.freeAddGroupCongr e).symm = FreeAddGroup.freeAddGroupCongr e.symm
theorem FreeGroup.freeGroupCongr_symm E0 #
∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β), (FreeGroup.freeGroupCongr e).symm = FreeGroup.freeGroupCongr e.symm
theorem FreeGroup.freeGroupCongr_trans E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : α ≃ β) (f : β ≃ γ),
(FreeGroup.freeGroupCongr e).trans (FreeGroup.freeGroupCongr f) = FreeGroup.freeGroupCongr (e.trans f)
theorem FreeAddGroup.freeAddGroupCongr_trans E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : α ≃ β) (f : β ≃ γ),
(FreeAddGroup.freeAddGroupCongr e).trans (FreeAddGroup.freeAddGroupCongr f) =
FreeAddGroup.freeAddGroupCongr (e.trans f)
def FreeGroup.prod E1 #
{α : Type u} → [inst : Group α] → FreeGroup α →* α
If α is a group, then any function from α to α extends uniquely to a homomorphism from the
free group over α to α. This is the multiplicative version of FreeGroup.sum.
def FreeAddGroup.sum E1 #
{α : Type u} → [inst : AddGroup α] → FreeAddGroup α →+ α
If α is an additive group, then any function from α to α extends uniquely
to an additive homomorphism from the additive free group over α to α.
theorem FreeAddGroup.sum_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} [inst : AddGroup α],
FreeAddGroup.sum (FreeAddGroup.mk L) = (List.map (fun x ↦ bif x.2 then x.1 else -x.1) L).sum
theorem FreeGroup.prod_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} [inst : Group α],
FreeGroup.prod (FreeGroup.mk L) = (List.map (fun x ↦ bif x.2 then x.1 else x.1⁻¹) L).prod
theorem FreeGroup.prod.of E0 #
∀ {α : Type u} [inst : Group α] {x : α}, FreeGroup.prod (FreeGroup.of x) = x
theorem FreeAddGroup.sum.of E0 #
∀ {α : Type u} [inst : AddGroup α] {x : α}, FreeAddGroup.sum (FreeAddGroup.of x) = x
theorem FreeAddGroup.sum.unique E1 #
∀ {α : Type u} [inst : AddGroup α] (g : FreeAddGroup α →+ α),
(∀ (x : α), g (FreeAddGroup.of x) = x) → ∀ {x : FreeAddGroup α}, g x = FreeAddGroup.sum x
theorem FreeGroup.prod.unique E1 #
∀ {α : Type u} [inst : Group α] (g : FreeGroup α →* α),
(∀ (x : α), g (FreeGroup.of x) = x) → ∀ {x : FreeGroup α}, g x = FreeGroup.prod x
theorem FreeAddGroup.sum_surjective E1 #
∀ {α : Type u} [inst : AddGroup α], Function.Surjective ⇑FreeAddGroup.sum
theorem FreeGroup.prod_surjective E1 #
∀ {α : Type u} [inst : Group α], Function.Surjective ⇑FreeGroup.prod
theorem FreeAddGroup.lift_eq_sum_map E1 #
∀ {α : Type u} {β : Type v} [inst : AddGroup β] {f : α → β} {x : FreeAddGroup α},
(FreeAddGroup.lift f) x = FreeAddGroup.sum ((FreeAddGroup.map f) x)
theorem FreeGroup.lift_eq_prod_map E1 #
∀ {α : Type u} {β : Type v} [inst : Group β] {f : α → β} {x : FreeGroup α},
(FreeGroup.lift f) x = FreeGroup.prod ((FreeGroup.map f) x)
def FreeGroup.sum E1 #
{α : Type u} → [AddGroup α] → FreeGroup α → α
If α is a group, then any function from α to α extends uniquely to a homomorphism from the
free group over α to α. This is the additive version of Prod.
theorem FreeGroup.sum_mk E0 #
∀ {α : Type u} {L : List (α × Bool)} [inst : AddGroup α],
(FreeGroup.mk L).sum = (List.map (fun x ↦ bif x.2 then x.1 else -x.1) L).sum
theorem FreeGroup.sum.of E0 #
∀ {α : Type u} [inst : AddGroup α] {x : α}, (FreeGroup.of x).sum = x
theorem FreeGroup.sum.map_mul E0 #
∀ {α : Type u} [inst : AddGroup α] {x y : FreeGroup α}, (x * y).sum = x.sum + y.sum
theorem FreeGroup.sum.map_one E0 #
∀ {α : Type u} [inst : AddGroup α], FreeGroup.sum 1 = 0
theorem FreeGroup.sum.map_inv E0 #
∀ {α : Type u} [inst : AddGroup α] {x : FreeGroup α}, x⁻¹.sum = -x.sum
def FreeGroup.freeGroupUnitEquivInt E3 #
FreeGroup Unit ≃ ℤ
The bijection between the free group on a singleton, and the integers.
def FreeGroup.equivIntOfUnique E1 #
{α : Type u} → [Unique α] → FreeGroup α ≃ ℤ
The bijection between the free group on a unique type and the integers.
def FreeGroup.mulEquivIntOfUnique E1 #
{α : Type u} → [Unique α] → FreeGroup α ≃* Multiplicative ℤ
The isomorphism between the free group on a unique type and the integers.
def FreeAddGroup.addEquivIntOfUnique E1 #
{α : Type u} → [Unique α] → FreeAddGroup α ≃+ ℤ
The isomorphism between the free additive group on a unique type and the integers.
instance FreeAddGroup.instIsAddCyclicOfSubsingleton E0 #
∀ {α : Type u} [Subsingleton α], IsAddCyclic (FreeAddGroup α)
A free additive group on ≤ 1 generators is an instance of a cyclic group.
Note: this instance is named explicitly to match what @[to_additive existing] on the multiplicative
instance below expects.
instance FreeGroup.instIsCyclicOfSubsingleton E0 #
∀ {α : Type u} [Subsingleton α], IsCyclic (FreeGroup α)
A free group on ≤ 1 generators is an instance of a cyclic group.
def FreeGroup.freeGroupEquivMultiplicative E1 #
{α : Type u} → FreeGroup α ≃* Multiplicative (FreeAddGroup α)
Multiplicative free groups are isomorphic to Multiplicative additive free groups.
def FreeAddGroup.freeAddGroupEquivAdditive E1 #
{α : Type u} → FreeAddGroup α ≃+ Additive (FreeGroup α)
Additive free groups are isomorphic to Additive multiplicative free groups.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
FreeAddGroup.add_bind | 2026-11-17 | |
FreeAddGroup.instLawfulMonad | 2026-11-17 | |
FreeAddGroup.instMonad | 2026-11-17 | |
FreeAddGroup.map_add | 2026-11-17 | |
FreeAddGroup.map_neg | 2026-11-17 | |
FreeAddGroup.map_pure | 2026-11-17 | |
FreeAddGroup.map_zero | 2026-11-17 | |
FreeAddGroup.neg_bind | 2026-11-17 | |
FreeAddGroup.pure_bind | 2026-11-17 | |
FreeAddGroup.zero_bind | 2026-11-17 | |
FreeGroup.instLawfulMonad | 2026-11-17 | |
FreeGroup.instMonad | 2026-11-17 | |
FreeGroup.inv_bind | 2026-11-17 | |
FreeGroup.map_inv | 2026-11-17 | |
FreeGroup.map_mul | 2026-11-17 | |
FreeGroup.map_one | 2026-11-17 | |
FreeGroup.map_pure | 2026-11-17 | |
FreeGroup.mul_bind | 2026-11-17 | |
FreeGroup.one_bind | 2026-11-17 | |
FreeGroup.pure_bind | 2026-11-17 |