Mathlib.GroupTheory.FreeGroup.CyclicallyReduced
44 declarations. Mathlib docs · Source
def FreeGroup.IsCyclicallyReduced E1 #
{α : Type u} → List (α × Bool) → Prop
Predicate asserting that the word L is cyclically reduced, i.e., it is reduced and furthermore
the first and the last letter of the word do not cancel. The empty word is by convention also
cyclically reduced.
def FreeAddGroup.IsCyclicallyReduced E1 #
{α : Type u} → List (α × Bool) → Prop
Predicate asserting that the word L is cyclically reduced, i.e., it is reduced
and furthermore the first and the last letter of the word do not cancel. The empty word is by
convention also cyclically reduced.
theorem FreeGroup.isCyclicallyReduced_iff E0 #
∀ {α : Type u} {L : List (α × Bool)},
FreeGroup.IsCyclicallyReduced L ↔ FreeGroup.IsReduced L ∧ ∀ a ∈ L.getLast?, ∀ b ∈ L.head?, a.1 = b.1 → a.2 = b.2
theorem FreeAddGroup.isCyclicallyReduced_iff E0 #
∀ {α : Type u} {L : List (α × Bool)},
FreeAddGroup.IsCyclicallyReduced L ↔ FreeAddGroup.IsReduced L ∧ ∀ a ∈ L.getLast?, ∀ b ∈ L.head?, a.1 = b.1 → a.2 = b.2
theorem FreeGroup.isCyclicallyReduced_cons_append_iff E0 #
∀ {α : Type u} {L : List (α × Bool)} {a b : α × Bool},
FreeGroup.IsCyclicallyReduced (b :: L ++ [a]) ↔ FreeGroup.IsReduced (b :: L ++ [a]) ∧ (a.1 = b.1 → a.2 = b.2)
theorem FreeAddGroup.isCyclicallyReduced_cons_append_iff E0 #
∀ {α : Type u} {L : List (α × Bool)} {a b : α × Bool},
FreeAddGroup.IsCyclicallyReduced (b :: L ++ [a]) ↔ FreeAddGroup.IsReduced (b :: L ++ [a]) ∧ (a.1 = b.1 → a.2 = b.2)
theorem FreeAddGroup.IsCyclicallyReduced.nil E0 #
∀ {α : Type u}, FreeAddGroup.IsCyclicallyReduced []
theorem FreeGroup.IsCyclicallyReduced.nil E0 #
∀ {α : Type u}, FreeGroup.IsCyclicallyReduced []
theorem FreeGroup.IsCyclicallyReduced.singleton E0 #
∀ {α : Type u} {x : α × Bool}, FreeGroup.IsCyclicallyReduced [x]
theorem FreeAddGroup.IsCyclicallyReduced.singleton E0 #
∀ {α : Type u} {x : α × Bool}, FreeAddGroup.IsCyclicallyReduced [x]
theorem FreeGroup.IsCyclicallyReduced.isReduced E1 #
∀ {α : Type u} {L : List (α × Bool)}, FreeGroup.IsCyclicallyReduced L → FreeGroup.IsReduced L
theorem FreeAddGroup.IsCyclicallyReduced.isReduced E1 #
∀ {α : Type u} {L : List (α × Bool)}, FreeAddGroup.IsCyclicallyReduced L → FreeAddGroup.IsReduced L
theorem FreeAddGroup.IsCyclicallyReduced.flatten_replicate E1 #
∀ {α : Type u} {L : List (α × Bool)},
FreeAddGroup.IsCyclicallyReduced L → ∀ (n : ℕ), FreeAddGroup.IsCyclicallyReduced (List.replicate n L).flatten
theorem FreeGroup.IsCyclicallyReduced.flatten_replicate E1 #
∀ {α : Type u} {L : List (α × Bool)},
FreeGroup.IsCyclicallyReduced L → ∀ (n : ℕ), FreeGroup.IsCyclicallyReduced (List.replicate n L).flatten
theorem FreeGroup.IsReduced.append_flatten_replicate_append E1 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)},
FreeGroup.IsCyclicallyReduced L₂ →
FreeGroup.IsReduced (L₁ ++ L₂ ++ L₃) →
∀ {n : ℕ}, n ≠ 0 → FreeGroup.IsReduced (L₁ ++ (List.replicate n L₂).flatten ++ L₃)
theorem FreeAddGroup.IsReduced.append_flatten_replicate_append E1 #
∀ {α : Type u} {L₁ L₂ L₃ : List (α × Bool)},
FreeAddGroup.IsCyclicallyReduced L₂ →
FreeAddGroup.IsReduced (L₁ ++ L₂ ++ L₃) →
∀ {n : ℕ}, n ≠ 0 → FreeAddGroup.IsReduced (L₁ ++ (List.replicate n L₂).flatten ++ L₃)
def FreeGroup.reduceCyclically E1 #
{α : Type u} → [DecidableEq α] → List (α × Bool) → List (α × Bool)
This function produces a subword of a word L by cancelling the first and last letters of L
as long as possible. If L is reduced, the resulting word will be cyclically reduced.
def FreeAddGroup.reduceCyclically E1 #
{α : Type u} → [DecidableEq α] → List (α × Bool) → List (α × Bool)
This function produces a subword of a word L by cancelling the first and last
letters of L as long as possible. If L is reduced, the resulting word will be cyclically
reduced.
theorem FreeGroup.reduceCyclically.nil E0 #
∀ {α : Type u} [inst : DecidableEq α], FreeGroup.reduceCyclically [] = []
theorem FreeAddGroup.reduceCyclically.nil E0 #
∀ {α : Type u} [inst : DecidableEq α], FreeAddGroup.reduceCyclically [] = []
theorem FreeAddGroup.reduceCyclically.singleton E0 #
∀ {α : Type u} [inst : DecidableEq α] {a : α × Bool}, FreeAddGroup.reduceCyclically [a] = [a]
theorem FreeGroup.reduceCyclically.singleton E0 #
∀ {α : Type u} [inst : DecidableEq α] {a : α × Bool}, FreeGroup.reduceCyclically [a] = [a]
theorem FreeAddGroup.reduceCyclically.cons_append E1 #
∀ {α : Type u} [inst : DecidableEq α] {a b : α × Bool} (L : List (α × Bool)),
FreeAddGroup.reduceCyclically (a :: (L ++ [b])) =
if b.1 = a.1 ∧ (!b.2) = a.2 then FreeAddGroup.reduceCyclically L else a :: L ++ [b]
theorem FreeGroup.reduceCyclically.cons_append E1 #
∀ {α : Type u} [inst : DecidableEq α] {a b : α × Bool} (L : List (α × Bool)),
FreeGroup.reduceCyclically (a :: (L ++ [b])) =
if b.1 = a.1 ∧ (!b.2) = a.2 then FreeGroup.reduceCyclically L else a :: L ++ [b]
theorem FreeAddGroup.reduceCyclically.isCyclicallyReduced E1 #
∀ {α : Type u} {L : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.IsReduced L → FreeAddGroup.IsCyclicallyReduced (FreeAddGroup.reduceCyclically L)
theorem FreeGroup.reduceCyclically.isCyclicallyReduced E1 #
∀ {α : Type u} {L : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.IsReduced L → FreeGroup.IsCyclicallyReduced (FreeGroup.reduceCyclically L)
def FreeGroup.reduceCyclically.conjugator E1 #
{α : Type u} → [DecidableEq α] → List (α × Bool) → List (α × Bool)
Partner function to reduceCyclically.
See reduceCyclically.conj_conjugator_reduceCyclically.
def FreeAddGroup.reduceCyclically.conjugator E1 #
{α : Type u} → [DecidableEq α] → List (α × Bool) → List (α × Bool)
Partner function to reduceCyclically.
See reduceCyclically.conj_conjugator_reduceCyclically.
theorem FreeAddGroup.reduceCyclically.conjugator.nil E0 #
∀ {α : Type u} [inst : DecidableEq α], FreeAddGroup.reduceCyclically.conjugator [] = []
theorem FreeGroup.reduceCyclically.conjugator.nil E0 #
∀ {α : Type u} [inst : DecidableEq α], FreeGroup.reduceCyclically.conjugator [] = []
theorem FreeAddGroup.reduceCyclically.conjugator.singleton E0 #
∀ {α : Type u} [inst : DecidableEq α] {a : α × Bool}, FreeAddGroup.reduceCyclically.conjugator [a] = []
theorem FreeGroup.reduceCyclically.conjugator.singleton E0 #
∀ {α : Type u} [inst : DecidableEq α] {a : α × Bool}, FreeGroup.reduceCyclically.conjugator [a] = []
theorem FreeGroup.reduceCyclically.conjugator.cons_append E1 #
∀ {α : Type u} [inst : DecidableEq α] {a b : α × Bool} (L : List (α × Bool)),
FreeGroup.reduceCyclically.conjugator (a :: (L ++ [b])) =
if b.1 = a.1 ∧ (!b.2) = a.2 then a :: FreeGroup.reduceCyclically.conjugator L else []
theorem FreeAddGroup.reduceCyclically.conjugator.cons_append E1 #
∀ {α : Type u} [inst : DecidableEq α] {a b : α × Bool} (L : List (α × Bool)),
FreeAddGroup.reduceCyclically.conjugator (a :: (L ++ [b])) =
if b.1 = a.1 ∧ (!b.2) = a.2 then a :: FreeAddGroup.reduceCyclically.conjugator L else []
theorem FreeGroup.reduceCyclically.conj_conjugator_reduceCyclically E1 #
∀ {α : Type u} [inst : DecidableEq α] (L : List (α × Bool)),
FreeGroup.reduceCyclically.conjugator L ++ FreeGroup.reduceCyclically L ++
FreeGroup.invRev (FreeGroup.reduceCyclically.conjugator L) =
L
theorem FreeAddGroup.reduceCyclically.addConj_conjugator_reduceCyclically E1 #
∀ {α : Type u} [inst : DecidableEq α] (L : List (α × Bool)),
FreeAddGroup.reduceCyclically.conjugator L ++ FreeAddGroup.reduceCyclically L ++
FreeAddGroup.negRev (FreeAddGroup.reduceCyclically.conjugator L) =
L
theorem FreeGroup.reduceCyclically.reduce_flatten_replicate_succ E1 #
∀ {α : Type u} {L : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.IsReduced L →
∀ (n : ℕ),
FreeGroup.reduce (List.replicate (n + 1) L).flatten =
FreeGroup.reduceCyclically.conjugator L ++ (List.replicate (n + 1) (FreeGroup.reduceCyclically L)).flatten ++
FreeGroup.invRev (FreeGroup.reduceCyclically.conjugator L)
theorem FreeAddGroup.reduceCyclically.reduce_flatten_replicate_succ E1 #
∀ {α : Type u} {L : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.IsReduced L →
∀ (n : ℕ),
FreeAddGroup.reduce (List.replicate (n + 1) L).flatten =
FreeAddGroup.reduceCyclically.conjugator L ++
(List.replicate (n + 1) (FreeAddGroup.reduceCyclically L)).flatten ++
FreeAddGroup.negRev (FreeAddGroup.reduceCyclically.conjugator L)
theorem FreeAddGroup.reduceCyclically.reduce_flatten_replicate E1 #
∀ {α : Type u} {L : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.IsReduced L →
∀ (n : ℕ),
FreeAddGroup.reduce (List.replicate n L).flatten =
if n = 0 then []
else
FreeAddGroup.reduceCyclically.conjugator L ++ (List.replicate n (FreeAddGroup.reduceCyclically L)).flatten ++
FreeAddGroup.negRev (FreeAddGroup.reduceCyclically.conjugator L)
theorem FreeGroup.reduceCyclically.reduce_flatten_replicate E1 #
∀ {α : Type u} {L : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.IsReduced L →
∀ (n : ℕ),
FreeGroup.reduce (List.replicate n L).flatten =
if n = 0 then []
else
FreeGroup.reduceCyclically.conjugator L ++ (List.replicate n (FreeGroup.reduceCyclically L)).flatten ++
FreeGroup.invRev (FreeGroup.reduceCyclically.conjugator L)
instance FreeGroup.instHasUniqueRoots E0 #
∀ {α : Type u}, HasUniqueRoots (FreeGroup α)
Free groups are torsion-free, i.e., taking powers is injective. Our proof idea is as follows:
if x ^ n = y ^ n, then also x ^ (2 * n) = y ^ (2 * n). We then compare the reduced words
representing the powers in terms of the cyclic reductions of x.toWord and y.toWord using
reduce_flatten_replicate. We conclude that the cyclic reductions of x.toWord and y.toWord must
have the same length, and in fact they have to agree.
instance FreeAddGroup.insthasUniqueDiv E0 #
∀ {α : Type u}, HasUniqueDiv (FreeAddGroup α)
Free additive groups are torsion free, i.e., scalar multiplication by every
non-zero element n : ℕ is injective. See the instance for free groups for an overview over the
proof.
instance FreeGroup.instHasUniqueRootsOfIsFreeGroup E0 #
∀ {G : Type u_1} [inst : Group G] [IsFreeGroup G], HasUniqueRoots G
A group isomorphic to a free group has unique roots.
instance FreeAddGroup.insthasUniqueDivOfIsFreeAddGroup E0 #
∀ {G : Type u_1} [inst : AddGroup G] [IsFreeAddGroup G], HasUniqueDiv G