Mathlib.GroupTheory.FreeGroup.Reduce
127 declarations. Mathlib docs · Source
def FreeGroup.reduce E1 #
{α : Type u_1} → [DecidableEq α] → List (α × Bool) → List (α × Bool)
The maximal reduction of a word. It is computable
iff α has decidable equality.
def FreeAddGroup.reduce E1 #
{α : Type u_1} → [DecidableEq α] → List (α × Bool) → List (α × Bool)
The maximal reduction of a word. It is computable iff α has decidable equality.
theorem FreeAddGroup.reduce_nil E0 #
∀ {α : Type u_1} [inst : DecidableEq α], FreeAddGroup.reduce [] = []
theorem FreeGroup.reduce_nil E0 #
∀ {α : Type u_1} [inst : DecidableEq α], FreeGroup.reduce [] = []
theorem FreeAddGroup.reduce_singleton E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (s : α × Bool), FreeAddGroup.reduce [s] = [s]
theorem FreeGroup.reduce_singleton E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (s : α × Bool), FreeGroup.reduce [s] = [s]
theorem FreeGroup.reduce.cons E0 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α] (x : α × Bool),
FreeGroup.reduce (x :: L) =
List.casesOn (FreeGroup.reduce L) [x] fun hd tl ↦ if x.1 = hd.1 ∧ x.2 = !hd.2 then tl else x :: hd :: tl
theorem FreeAddGroup.reduce.cons E0 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α] (x : α × Bool),
FreeAddGroup.reduce (x :: L) =
List.casesOn (FreeAddGroup.reduce L) [x] fun hd tl ↦ if x.1 = hd.1 ∧ x.2 = !hd.2 then tl else x :: hd :: tl
theorem FreeAddGroup.reduce_replicate E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (n : ℕ) (x : α × Bool),
FreeAddGroup.reduce (List.replicate n x) = List.replicate n x
theorem FreeGroup.reduce_replicate E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (n : ℕ) (x : α × Bool),
FreeGroup.reduce (List.replicate n x) = List.replicate n x
theorem FreeGroup.reduce.red E1 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α], FreeGroup.Red L (FreeGroup.reduce L)
The first theorem that characterises the function reduce: a word reduces to its maximal
reduction.
theorem FreeAddGroup.reduce.red E1 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α], FreeAddGroup.Red L (FreeAddGroup.reduce L)
The first theorem that characterises the function reduce: a word reduces to its
maximal reduction.
theorem FreeGroup.reduce.not E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {p : Prop} {L₁ L₂ L₃ : List (α × Bool)} {x : α} {b : Bool},
FreeGroup.reduce L₁ = L₂ ++ (x, b) :: (x, !b) :: L₃ → p
theorem FreeAddGroup.reduce.not E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {p : Prop} {L₁ L₂ L₃ : List (α × Bool)} {x : α} {b : Bool},
FreeAddGroup.reduce L₁ = L₂ ++ (x, b) :: (x, !b) :: L₃ → p
theorem FreeGroup.reduce.min E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.Red (FreeGroup.reduce L₁) L₂ → FreeGroup.reduce L₁ = L₂
The second theorem that characterises the function reduce: the maximal reduction of a word
only reduces to itself.
theorem FreeAddGroup.reduce.min E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.Red (FreeAddGroup.reduce L₁) L₂ → FreeAddGroup.reduce L₁ = L₂
The second theorem that characterises the function reduce: the maximal
reduction of a word only reduces to itself.
theorem FreeGroup.reduce.idem E0 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.reduce (FreeGroup.reduce L) = FreeGroup.reduce L
reduce is idempotent, i.e. the maximal reduction of the maximal reduction of a word is the
maximal reduction of the word.
theorem FreeAddGroup.reduce.idem E0 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.reduce (FreeAddGroup.reduce L) = FreeAddGroup.reduce L
reduce is idempotent, i.e. the maximal reduction of the maximal
reduction of a word is the maximal reduction of the word.
theorem FreeAddGroup.reduce.Step.eq E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.Red.Step L₁ L₂ → FreeAddGroup.reduce L₁ = FreeAddGroup.reduce L₂
theorem FreeGroup.reduce.Step.eq E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.Red.Step L₁ L₂ → FreeGroup.reduce L₁ = FreeGroup.reduce L₂
theorem FreeGroup.red.reduce_eq E0 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.Red L₁ L₂ → FreeGroup.reduce L₁ = FreeGroup.reduce L₂
Alias of FreeGroup.reduce.eq_of_red.
If a word reduces to another word, then they have a common maximal reduction.
theorem FreeGroup.freeAddGroup.red.reduce_eq E0 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.Red L₁ L₂ → FreeAddGroup.reduce L₁ = FreeAddGroup.reduce L₂
Alias of FreeAddGroup.reduce.eq_of_red.
If a word reduces to another word, then they have a common maximal reduction.
theorem FreeGroup.Red.reduce_right E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.Red L₁ L₂ → FreeGroup.Red L₁ (FreeGroup.reduce L₂)
theorem FreeAddGroup.Red.reduce_right E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.Red L₁ L₂ → FreeAddGroup.Red L₁ (FreeAddGroup.reduce L₂)
theorem FreeGroup.Red.reduce_left E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.Red L₁ L₂ → FreeGroup.Red L₂ (FreeGroup.reduce L₁)
theorem FreeAddGroup.Red.reduce_left E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.Red L₁ L₂ → FreeAddGroup.Red L₂ (FreeAddGroup.reduce L₁)
theorem FreeGroup.reduce.sound E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.mk L₁ = FreeGroup.mk L₂ → FreeGroup.reduce L₁ = FreeGroup.reduce L₂
If two words correspond to the same element in the free group, then they have a common maximal reduction. This is the proof that the function that sends an element of the free group to its maximal reduction is well-defined.
theorem FreeAddGroup.reduce.sound E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.mk L₁ = FreeAddGroup.mk L₂ → FreeAddGroup.reduce L₁ = FreeAddGroup.reduce L₂
If two words correspond to the same element in the additive free group, then they have a common maximal reduction. This is the proof that the function that sends an element of the free group to its maximal reduction is well-defined.
theorem FreeGroup.reduce.exact E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.reduce L₁ = FreeGroup.reduce L₂ → FreeGroup.mk L₁ = FreeGroup.mk L₂
If two words have a common maximal reduction, then they correspond to the same element in the free group.
theorem FreeAddGroup.reduce.exact E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.reduce L₁ = FreeAddGroup.reduce L₂ → FreeAddGroup.mk L₁ = FreeAddGroup.mk L₂
If two words have a common maximal reduction, then they correspond to the same element in the additive free group.
theorem FreeGroup.reduce.self E1 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α], FreeGroup.mk (FreeGroup.reduce L) = FreeGroup.mk L
A word and its maximal reduction correspond to the same element of the free group.
theorem FreeAddGroup.reduce.self E1 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.mk (FreeAddGroup.reduce L) = FreeAddGroup.mk L
A word and its maximal reduction correspond to the same element of the additive free group.
theorem FreeGroup.reduce.rev E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.Red L₁ L₂ → FreeGroup.Red L₂ (FreeGroup.reduce L₁)
If words w₁ w₂ are such that w₁ reduces to w₂, then w₂ reduces to the maximal reduction
of w₁.
theorem FreeAddGroup.reduce.rev E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.Red L₁ L₂ → FreeAddGroup.Red L₂ (FreeAddGroup.reduce L₁)
If words w₁ w₂ are such that w₁ reduces to w₂, then w₂ reduces to the
maximal reduction of w₁.
def FreeGroup.toWord E1 #
{α : Type u_1} → [DecidableEq α] → FreeGroup α → List (α × Bool)
The function that sends an element of the free group to its maximal reduction.
def FreeAddGroup.toWord E1 #
{α : Type u_1} → [DecidableEq α] → FreeAddGroup α → List (α × Bool)
The function that sends an element of the additive free group to its maximal reduction.
theorem FreeGroup.mk_toWord E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {x : FreeGroup α}, FreeGroup.mk x.toWord = x
theorem FreeAddGroup.mk_toWord E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {x : FreeAddGroup α}, FreeAddGroup.mk x.toWord = x
theorem FreeAddGroup.toWord_injective E1 #
∀ {α : Type u_1} [inst : DecidableEq α], Function.Injective FreeAddGroup.toWord
theorem FreeGroup.toWord_injective E1 #
∀ {α : Type u_1} [inst : DecidableEq α], Function.Injective FreeGroup.toWord
theorem FreeAddGroup.toWord_inj E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {x y : FreeAddGroup α}, x.toWord = y.toWord ↔ x = y
theorem FreeGroup.toWord_inj E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {x y : FreeGroup α}, x.toWord = y.toWord ↔ x = y
theorem FreeGroup.toWord_mk E0 #
∀ {α : Type u_1} {L₁ : List (α × Bool)} [inst : DecidableEq α], (FreeGroup.mk L₁).toWord = FreeGroup.reduce L₁
theorem FreeAddGroup.toWord_mk E0 #
∀ {α : Type u_1} {L₁ : List (α × Bool)} [inst : DecidableEq α], (FreeAddGroup.mk L₁).toWord = FreeAddGroup.reduce L₁
theorem FreeAddGroup.toWord_of E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α), (FreeAddGroup.of a).toWord = [(a, true)]
theorem FreeGroup.toWord_of E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α), (FreeGroup.of a).toWord = [(a, true)]
theorem FreeGroup.reduce_toWord E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (x : FreeGroup α), FreeGroup.reduce x.toWord = x.toWord
theorem FreeAddGroup.reduce_toWord E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (x : FreeAddGroup α), FreeAddGroup.reduce x.toWord = x.toWord
theorem FreeGroup.toWord_one E0 #
∀ {α : Type u_1} [inst : DecidableEq α], FreeGroup.toWord 1 = []
theorem FreeAddGroup.toWord_zero E0 #
∀ {α : Type u_1} [inst : DecidableEq α], FreeAddGroup.toWord 0 = []
theorem FreeGroup.toWord_mul E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (x y : FreeGroup α), (x * y).toWord = FreeGroup.reduce (x.toWord ++ y.toWord)
theorem FreeAddGroup.toWord_add E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (x y : FreeAddGroup α),
(x + y).toWord = FreeAddGroup.reduce (x.toWord ++ y.toWord)
theorem FreeGroup.toWord_pow E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (x : FreeGroup α) (n : ℕ),
(x ^ n).toWord = FreeGroup.reduce (List.replicate n x.toWord).flatten
theorem FreeAddGroup.toWord_nsmul E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (x : FreeAddGroup α) (n : ℕ),
(n • x).toWord = FreeAddGroup.reduce (List.replicate n x.toWord).flatten
theorem FreeAddGroup.toWord_eq_nil_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {x : FreeAddGroup α}, x.toWord = [] ↔ x = 0
theorem FreeGroup.toWord_eq_nil_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {x : FreeGroup α}, x.toWord = [] ↔ x = 1
theorem FreeAddGroup.reduce_negRev E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {w : List (α × Bool)},
FreeAddGroup.reduce (FreeAddGroup.negRev w) = FreeAddGroup.negRev (FreeAddGroup.reduce w)
theorem FreeGroup.reduce_invRev E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {w : List (α × Bool)},
FreeGroup.reduce (FreeGroup.invRev w) = FreeGroup.invRev (FreeGroup.reduce w)
theorem FreeGroup.toWord_inv E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (x : FreeGroup α), x⁻¹.toWord = FreeGroup.invRev x.toWord
theorem FreeAddGroup.toWord_neg E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (x : FreeAddGroup α), (-x).toWord = FreeAddGroup.negRev x.toWord
theorem FreeAddGroup.toWord_of_nsmul E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (n : ℕ), (n • FreeAddGroup.of a).toWord = List.replicate n (a, true)
theorem FreeGroup.toWord_of_pow E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (n : ℕ), (FreeGroup.of a ^ n).toWord = List.replicate n (a, true)
theorem FreeGroup.toWord_of_zpow E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (n : ℤ),
(FreeGroup.of a ^ n).toWord = List.replicate n.natAbs (a, decide (0 ≤ n))
theorem FreeAddGroup.toWord_of_zsmul E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (n : ℤ),
(n • FreeAddGroup.of a).toWord = List.replicate n.natAbs (a, decide (0 ≤ n))
theorem FreeAddGroup.reduce_append_reduce_reduce E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeAddGroup.reduce (FreeAddGroup.reduce L₁ ++ FreeAddGroup.reduce L₂) = FreeAddGroup.reduce (L₁ ++ L₂)
theorem FreeGroup.reduce_append_reduce_reduce E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
FreeGroup.reduce (FreeGroup.reduce L₁ ++ FreeGroup.reduce L₂) = FreeGroup.reduce (L₁ ++ L₂)
theorem FreeAddGroup.reduce_cons_reduce E1 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α] (a : α × Bool),
FreeAddGroup.reduce (a :: FreeAddGroup.reduce L) = FreeAddGroup.reduce (a :: L)
theorem FreeGroup.reduce_cons_reduce E1 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α] (a : α × Bool),
FreeGroup.reduce (a :: FreeGroup.reduce L) = FreeGroup.reduce (a :: L)
theorem FreeAddGroup.reduce_negRev_left_cancel E1 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α], FreeAddGroup.reduce (FreeAddGroup.negRev L ++ L) = []
theorem FreeGroup.reduce_invRev_left_cancel E1 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α], FreeGroup.reduce (FreeGroup.invRev L ++ L) = []
theorem FreeGroup.toWord_mul_sublist E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (x y : FreeGroup α), (x * y).toWord.Sublist (x.toWord ++ y.toWord)
theorem FreeAddGroup.toWord_add_sublist E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (x y : FreeAddGroup α), (x + y).toWord.Sublist (x.toWord ++ y.toWord)
def FreeGroup.reduce.churchRosser E1 #
{α : Type u_1} →
{L₁ L₂ L₃ : List (α × Bool)} →
[DecidableEq α] → FreeGroup.Red L₁ L₂ → FreeGroup.Red L₁ L₃ → { L₄ // FreeGroup.Red L₂ L₄ ∧ FreeGroup.Red L₃ L₄ }
Constructive Church-Rosser theorem (compare FreeGroup.Red.church_rosser).
def FreeAddGroup.reduce.churchRosser E1 #
{α : Type u_1} →
{L₁ L₂ L₃ : List (α × Bool)} →
[DecidableEq α] →
FreeAddGroup.Red L₁ L₂ → FreeAddGroup.Red L₁ L₃ → { L₄ // FreeAddGroup.Red L₂ L₄ ∧ FreeAddGroup.Red L₃ L₄ }
Constructive Church-Rosser theorem (compare FreeAddGroup.Red.church_rosser).
instance FreeAddGroup.instDecidableEq E0 #
{α : Type u_1} → [DecidableEq α] → DecidableEq (FreeAddGroup α)
instance FreeGroup.instDecidableEq E0 #
{α : Type u_1} → [DecidableEq α] → DecidableEq (FreeGroup α)
instance FreeGroup.Red.decidableRel E0 #
{α : Type u_1} → [DecidableEq α] → DecidableRel FreeGroup.Red
def FreeGroup.Red.enum E1 #
{α : Type u_1} → [DecidableEq α] → List (α × Bool) → List (List (α × Bool))
A list containing every word that w₁ reduces to.
theorem FreeGroup.Red.enum.sound E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α],
L₂ ∈ List.filter (fun b ↦ decide (FreeGroup.Red L₁ b)) L₁.sublists → FreeGroup.Red L₁ L₂
theorem FreeGroup.Red.enum.complete E1 #
∀ {α : Type u_1} {L₁ L₂ : List (α × Bool)} [inst : DecidableEq α], FreeGroup.Red L₁ L₂ → L₂ ∈ FreeGroup.Red.enum L₁
instance FreeGroup.instFintypeSubtypeListProdBoolRed E0 #
{α : Type u_1} → [DecidableEq α] → (L₁ : List (α × Bool)) → Fintype { L₂ // FreeGroup.Red L₁ L₂ }
theorem FreeGroup.IsReduced.reduce_eq E0 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α], FreeGroup.IsReduced L → FreeGroup.reduce L = L
theorem FreeAddGroup.IsReduced.reduce_eq E0 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α], FreeAddGroup.IsReduced L → FreeAddGroup.reduce L = L
theorem FreeAddGroup.IsReduced.of_reduce_eq E0 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α], FreeAddGroup.reduce L = L → FreeAddGroup.IsReduced L
theorem FreeGroup.IsReduced.of_reduce_eq E0 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α], FreeGroup.reduce L = L → FreeGroup.IsReduced L
theorem FreeGroup.isReduced_iff_reduce_eq E0 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α], FreeGroup.IsReduced L ↔ FreeGroup.reduce L = L
theorem FreeAddGroup.isReduced_iff_reduce_eq E0 #
∀ {α : Type u_1} {L : List (α × Bool)} [inst : DecidableEq α], FreeAddGroup.IsReduced L ↔ FreeAddGroup.reduce L = L
theorem FreeAddGroup.isReduced_toWord E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {x : FreeAddGroup α}, FreeAddGroup.IsReduced x.toWord
theorem FreeGroup.isReduced_toWord E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {x : FreeGroup α}, FreeGroup.IsReduced x.toWord
theorem FreeGroup.toWord_mk_mul_eq E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (b : Bool) (x : FreeGroup α),
(FreeGroup.mk [(a, b)] * x).toWord = if x.toWord.head? = some (a, !b) then x.toWord.tail else (a, b) :: x.toWord
theorem FreeAddGroup.toWord_mk_add_eq E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (b : Bool) (x : FreeAddGroup α),
(FreeAddGroup.mk [(a, b)] + x).toWord = if x.toWord.head? = some (a, !b) then x.toWord.tail else (a, b) :: x.toWord
theorem FreeAddGroup.toWord_add_mk_eq E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (b : Bool) (x : FreeAddGroup α),
(x + FreeAddGroup.mk [(a, b)]).toWord =
if x.toWord.getLast? = some (a, !b) then x.toWord.dropLast else x.toWord.concat (a, b)
theorem FreeGroup.toWord_mul_mk_eq E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (b : Bool) (x : FreeGroup α),
(x * FreeGroup.mk [(a, b)]).toWord =
if x.toWord.getLast? = some (a, !b) then x.toWord.dropLast else x.toWord.concat (a, b)
theorem FreeGroup.idxOf_toWord_of_mul_eq E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {a : α} (x : FreeGroup α) {b : α × Bool},
b.1 ≠ a →
List.idxOf b (FreeGroup.of a * x).toWord =
if x.toWord.head? = some (a, false) then List.idxOf b x.toWord - 1 else List.idxOf b x.toWord + 1
theorem FreeAddGroup.idxOf_toWord_of_add_eq E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {a : α} (x : FreeAddGroup α) {b : α × Bool},
b.1 ≠ a →
List.idxOf b (FreeAddGroup.of a + x).toWord =
if x.toWord.head? = some (a, false) then List.idxOf b x.toWord - 1 else List.idxOf b x.toWord + 1
theorem FreeGroup.idxOf_toWord_mul_of_eq E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {a : α} (x : FreeGroup α) {b : α × Bool},
b.1 ≠ a → b ∈ x.toWord → List.idxOf b (x * FreeGroup.of a).toWord = List.idxOf b x.toWord
theorem FreeAddGroup.idxOf_toWord_add_of_eq E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {a : α} (x : FreeAddGroup α) {b : α × Bool},
b.1 ≠ a → b ∈ x.toWord → List.idxOf b (x + FreeAddGroup.of a).toWord = List.idxOf b x.toWord
theorem FreeGroup.isCyclic_iff_subsingleton E0 #
∀ {α : Type u_1}, IsCyclic (FreeGroup α) ↔ Subsingleton α
theorem FreeAddGroup.isAddCyclic_iff_subsingleton E0 #
∀ {α : Type u_1}, IsAddCyclic (FreeAddGroup α) ↔ Subsingleton α
theorem FreeAddGroup.isAddCommutative_iff_subsingleton E0 #
∀ {α : Type u_1}, IsAddCommutative (FreeAddGroup α) ↔ Subsingleton α
theorem FreeGroup.isMulCommutative_iff_subsingleton E0 #
∀ {α : Type u_1}, IsMulCommutative (FreeGroup α) ↔ Subsingleton α
theorem FreeAddGroup.zero_ne_of E0 #
∀ {α : Type u_1} (a : α), 0 ≠ FreeAddGroup.of a
theorem FreeGroup.one_ne_of E0 #
∀ {α : Type u_1} (a : α), 1 ≠ FreeGroup.of a
theorem FreeGroup.of_ne_one E0 #
∀ {α : Type u_1} (a : α), FreeGroup.of a ≠ 1
theorem FreeAddGroup.of_ne_zero E0 #
∀ {α : Type u_1} (a : α), FreeAddGroup.of a ≠ 0
instance FreeGroup.instNontrivialOfNonempty E0 #
∀ {α : Type u_1} [Nonempty α], Nontrivial (FreeGroup α)
instance FreeAddGroup.instNontrivialOfNonempty E0 #
∀ {α : Type u_1} [Nonempty α], Nontrivial (FreeAddGroup α)
def FreeGroup.norm E1 #
{α : Type u_1} → [DecidableEq α] → FreeGroup α → ℕ
The length of reduced words provides a norm on a free group.
def FreeAddGroup.norm E1 #
{α : Type u_1} → [DecidableEq α] → FreeAddGroup α → ℕ
The length of reduced words provides a norm on an additive free group.
theorem FreeAddGroup.norm_neg_eq E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {x : FreeAddGroup α}, (-x).norm = x.norm
theorem FreeGroup.norm_inv_eq E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {x : FreeGroup α}, x⁻¹.norm = x.norm
theorem FreeAddGroup.norm_eq_zero E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {x : FreeAddGroup α}, x.norm = 0 ↔ x = 0
theorem FreeGroup.norm_eq_zero E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {x : FreeGroup α}, x.norm = 0 ↔ x = 1
theorem FreeAddGroup.norm_zero E0 #
∀ {α : Type u_1} [inst : DecidableEq α], FreeAddGroup.norm 0 = 0
theorem FreeGroup.norm_one E0 #
∀ {α : Type u_1} [inst : DecidableEq α], FreeGroup.norm 1 = 0
theorem FreeAddGroup.norm_of E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α), (FreeAddGroup.of a).norm = 1
theorem FreeGroup.norm_of E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α), (FreeGroup.of a).norm = 1
theorem FreeGroup.norm_mk_le E1 #
∀ {α : Type u_1} {L₁ : List (α × Bool)} [inst : DecidableEq α], (FreeGroup.mk L₁).norm ≤ L₁.length
theorem FreeAddGroup.norm_mk_le E1 #
∀ {α : Type u_1} {L₁ : List (α × Bool)} [inst : DecidableEq α], (FreeAddGroup.mk L₁).norm ≤ L₁.length
theorem FreeGroup.norm_mul_le E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (x y : FreeGroup α), (x * y).norm ≤ x.norm + y.norm
theorem FreeAddGroup.norm_add_le E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (x y : FreeAddGroup α), (x + y).norm ≤ x.norm + y.norm
theorem FreeGroup.norm_of_pow E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (n : ℕ), (FreeGroup.of a ^ n).norm = n
theorem FreeAddGroup.norm_of_nsmul E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (n : ℕ), (n • FreeAddGroup.of a).norm = n
theorem FreeAddGroup.norm_of_zsmul E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (n : ℤ), (n • FreeAddGroup.of a).norm = n.natAbs
theorem FreeGroup.norm_of_zpow E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (a : α) (n : ℤ), (FreeGroup.of a ^ n).norm = n.natAbs
theorem FreeGroup.norm_surjective E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [Nonempty α], Function.Surjective FreeGroup.norm
theorem FreeAddGroup.norm_surjective E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [Nonempty α], Function.Surjective FreeAddGroup.norm