Mathlib.GroupTheory.CoprodI
159 declarations. Mathlib docs · Source
The coproduct (a.k.a. the free product) of groups or monoids
Given an ι-indexed family M of monoids,
we define their coproduct (a.k.a. free product) Monoid.CoprodI M.
As usual, we use the suffix I for an indexed (co)product,
leaving Coprod for the coproduct of two monoids.
When ι and all M i have decidable equality,
the free product bijects with the type Monoid.CoprodI.Word M of reduced words.
This bijection is constructed
by defining an action of Monoid.CoprodI M on Monoid.CoprodI.Word M.
When M i are all groups, Monoid.CoprodI M is also a group
(and the coproduct in the category of groups).
Main definitions
Monoid.CoprodI M: the free product, defined as a quotient of a free monoid.Monoid.CoprodI.of {i} : M i →* Monoid.CoprodI M.Monoid.CoprodI.lift : (∀ {i}, M i →* N) ≃ (Monoid.CoprodI M →* N): the universal property.Monoid.CoprodI.Word M: the type of reduced words.Monoid.CoprodI.Word.equiv M : Monoid.CoprodI M ≃ word M.Monoid.CoprodI.NeWord M i j: an inductive description of non-empty words with first letter fromM iand last letter fromM j, together with an API (singleton,append,head,tail,to_word,Prod,inv). Used in the proof of the Ping-Pong-lemma.Monoid.CoprodI.lift_injective_of_ping_pong: The Ping-Pong-lemma, proving injectivity of thelift. See the documentation of that theorem for more information.
Remarks
There are many answers to the question "what is the coproduct of a family M of monoids?",
and they are all equivalent but not obviously equivalent.
We provide two answers.
The first, almost tautological answer is given by Monoid.CoprodI M,
which is a quotient of the type of words in the alphabet Σ i, M i.
It's straightforward to define and easy to prove its universal property.
But this answer is not completely satisfactory,
because it's difficult to tell when two elements x y : Monoid.CoprodI M are distinct
since Monoid.CoprodI M is defined as a quotient.
The second, maximally efficient answer is given by Monoid.CoprodI.Word M.
An element of Monoid.CoprodI.Word M is a word in the alphabet Σ i, M i,
where the letter ⟨i, 1⟩ doesn't occur and no adjacent letters share an index i.
Since we only work with reduced words, there is no need for quotienting,
and it is easy to tell when two elements are distinct.
However it's not obvious that this is even a monoid!
We prove that every element of Monoid.CoprodI M can be represented by a unique reduced word,
i.e. Monoid.CoprodI M and Monoid.CoprodI.Word M are equivalent types.
This means that Monoid.CoprodI.Word M can be given a monoid structure,
and it lets us tell when two elements of Monoid.CoprodI M are distinct.
There is also a completely tautological, maximally inefficient answer
given by MonCat.Colimits.ColimitType.
Whereas Monoid.CoprodI M at least ensures that
(any instance of) associativity holds by reflexivity,
in this answer associativity holds because of quotienting.
Yet another answer, which is constructively more satisfying,
could be obtained by showing that Monoid.CoprodI.Rel is confluent.
References
[van der Waerden, Free products of groups][MR25465]
theorem Monoid.CoprodI.NeWord.singleton.injEq E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (x : M i) (a : x ≠ 1) (x_1 : M i)
(a_1 : x_1 ≠ 1), (Monoid.CoprodI.NeWord.singleton x a = Monoid.CoprodI.NeWord.singleton x_1 a_1) = (x = x_1)
abbrev Monoid.CoprodI.NeWord.ctorElimType E1 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
{motive : (a a_1 : ι) → Monoid.CoprodI.NeWord M a a_1 → Sort u} →
ℕ →
Sort
(max 1 (imax (u_1 + 1) (u_1 + 1) (u_1 + 1) (u_1 + 1) (max (u_1 + 1) (u_2 + 1)) (max (u_1 + 1) (u_2 + 1)) u)
(imax (u_1 + 1) (u_2 + 1) u))
theorem Monoid.CoprodI.NeWord.toList.match_1.congr_eq_2 E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)]
(motive : (x x_1 : ι) → Monoid.CoprodI.NeWord M x x_1 → Sort u_3) (x x_1 : ι) (x_2 : Monoid.CoprodI.NeWord M x x_1)
(h_1 : (i : ι) → (x : M i) → (a : x ≠ 1) → motive i i (Monoid.CoprodI.NeWord.singleton x a))
(h_2 :
(x x_3 j k : ι) →
(w₁ : Monoid.CoprodI.NeWord M x j) →
(_hne : j ≠ k) → (w₂ : Monoid.CoprodI.NeWord M k x_3) → motive x x_3 (w₁.append _hne w₂))
(x_3 x_4 j k : ι) (w₁ : Monoid.CoprodI.NeWord M x_3 j) (_hne : j ≠ k) (w₂ : Monoid.CoprodI.NeWord M k x_4),
x = x_3 →
x_1 = x_4 →
x_2 ≍ w₁.append _hne w₂ →
(match x, x_1, x_2 with
| i, .(i), Monoid.CoprodI.NeWord.singleton x a => h_1 i x a
| x, x_5, w₁.append _hne w₂ => h_2 x x_5 j k w₁ _hne w₂) ≍
h_2 x_3 x_4 j k w₁ _hne w₂
def Monoid.CoprodI.Word.ctorIdx E1 #
{ι : Type u_1} → {M : ι → Type u_2} → {inst : (i : ι) → Monoid (M i)} → Monoid.CoprodI.Word M → ℕ
def Monoid.CoprodI.Word.Pair.ctorIdx E1 #
{ι : Type u_1} → {M : ι → Type u_2} → {inst : (i : ι) → Monoid (M i)} → {i : ι} → Monoid.CoprodI.Word.Pair M i → ℕ
theorem Monoid.CoprodI.NeWord.replaceHead.congr_simp E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j : ι} (x x_1 : M i) (e_x : x = x_1)
(_hnotone : x ≠ 1) (_w _w_1 : Monoid.CoprodI.NeWord M i j),
_w = _w_1 → Monoid.CoprodI.NeWord.replaceHead x _hnotone _w = Monoid.CoprodI.NeWord.replaceHead x_1 ⋯ _w_1
theorem Con.ker.congr_simp E1 #
∀ {M : Type u_1} {N : Type u_2} {F : Type u_4} [inst : Mul M] [inst_1 : Mul N] [inst_2 : FunLike F M N]
[inst_3 : MulHomClass F M N] (f f_1 : F), f = f_1 → Con.ker f = Con.ker f_1
theorem Monoid.CoprodI.NeWord.mulHead.congr_simp E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j : ι} (w w_1 : Monoid.CoprodI.NeWord M i j)
(e_w : w = w_1) (x x_1 : M i) (e_x : x = x_1) (hnotone : x * w.head ≠ 1), w.mulHead x hnotone = w_1.mulHead x_1 ⋯
theorem Monoid.CoprodI.NeWord.toList.induct_unfolding E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)]
(motive : {i j : ι} → Monoid.CoprodI.NeWord M i j → List ((i : ι) × M i) → Prop),
(∀ (i : ι) (x : M i) (a : x ≠ 1), motive (Monoid.CoprodI.NeWord.singleton x a) [⟨i, x⟩]) →
(∀ (x x_1 j k : ι) (w₁ : Monoid.CoprodI.NeWord M x j) (_hne : j ≠ k) (w₂ : Monoid.CoprodI.NeWord M k x_1),
motive w₁ w₁.toList → motive w₂ w₂.toList → motive (w₁.append _hne w₂) (w₁.toList ++ w₂.toList)) →
∀ {i j : ι} (_w : Monoid.CoprodI.NeWord M i j), motive _w _w.toList
theorem Monoid.CoprodI.NeWord.append.inj E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} {inst : (i : ι) → Monoid (M i)} {i j k l : ι} {_w₁ : Monoid.CoprodI.NeWord M i j}
{_hne : j ≠ k} {_w₂ : Monoid.CoprodI.NeWord M k l} {j_1 k_1 : ι} {_w₁_1 : Monoid.CoprodI.NeWord M i j_1}
{_hne_1 : j_1 ≠ k_1} {_w₂_1 : Monoid.CoprodI.NeWord M k_1 l},
_w₁.append _hne _w₂ = _w₁_1.append _hne_1 _w₂_1 → j = j_1 ∧ k = k_1 ∧ _w₁ ≍ _w₁_1 ∧ _w₂ ≍ _w₂_1
theorem Monoid.CoprodI.Word.Pair.mk.congr_simp E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (head head_1 : M i),
head = head_1 →
∀ (tail tail_1 : Monoid.CoprodI.Word M) (e_tail : tail = tail_1) (fstIdx_ne : tail.fstIdx ≠ some i),
{ head := head, tail := tail, fstIdx_ne := fstIdx_ne } = { head := head_1, tail := tail_1, fstIdx_ne := ⋯ }
theorem Monoid.CoprodI.NeWord.append.injEq E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j k l : ι} (_w₁ : Monoid.CoprodI.NeWord M i j)
(_hne : j ≠ k) (_w₂ : Monoid.CoprodI.NeWord M k l) (j_1 k_1 : ι) (_w₁_1 : Monoid.CoprodI.NeWord M i j_1)
(_hne_1 : j_1 ≠ k_1) (_w₂_1 : Monoid.CoprodI.NeWord M k_1 l),
(_w₁.append _hne _w₂ = _w₁_1.append _hne_1 _w₂_1) = (j = j_1 ∧ k = k_1 ∧ _w₁ ≍ _w₁_1 ∧ _w₂ ≍ _w₂_1)
theorem Monoid.CoprodI.NeWord.replaceHead.match_1.congr_eq_1 E1 #
∀ {ι : Type u_2} {M : ι → Type u_1} [inst : (i : ι) → Monoid (M i)]
(motive : (x x_1 : ι) → (x_2 : M x) → x_2 ≠ 1 → Monoid.CoprodI.NeWord M x x_1 → Sort u_3) (x x_1 : ι) (x_2 : M x)
(x_3 : x_2 ≠ 1) (x_4 : Monoid.CoprodI.NeWord M x x_1)
(h_1 :
(x : ι) →
(x_5 : M x) →
(h : x_5 ≠ 1) → (x_6 : M x) → (a : x_6 ≠ 1) → motive x x x_5 h (Monoid.CoprodI.NeWord.singleton x_6 a))
(h_2 :
(x x_5 : ι) →
(x_6 : M x) →
(h : x_6 ≠ 1) →
(j k : ι) →
(w₁ : Monoid.CoprodI.NeWord M x j) →
(hne : j ≠ k) → (w₂ : Monoid.CoprodI.NeWord M k x_5) → motive x x_5 x_6 h (w₁.append hne w₂))
(x_5 : ι) (x_6 : M x_5) (h : x_6 ≠ 1) (x_7 : M x_5) (a : x_7 ≠ 1),
x = x_5 →
x_1 = x_5 →
x_2 ≍ x_6 →
x_3 ≍ h →
x_4 ≍ Monoid.CoprodI.NeWord.singleton x_7 a →
(match x, x_1, x_2, x_3, x_4 with
| x, .(x), x_8, h, Monoid.CoprodI.NeWord.singleton x_9 a => h_1 x x_8 h x_9 a
| x, x_8, x_9, h, w₁.append hne w₂ => h_2 x x_8 x_9 h j k w₁ hne w₂) ≍
h_1 x_5 x_6 h x_7 a
def Monoid.CoprodI.NeWord.ctorIdx E1 #
{ι : Type u_1} → {M : ι → Type u_2} → {inst : (i : ι) → Monoid (M i)} → {a a_1 : ι} → Monoid.CoprodI.NeWord M a a_1 → ℕ
theorem Monoid.CoprodI.NeWord.singleton.inj E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} {inst : (i : ι) → Monoid (M i)} {i : ι} {x : M i} {a : x ≠ 1} {x_1 : M i}
{a_1 : x_1 ≠ 1}, Monoid.CoprodI.NeWord.singleton x a = Monoid.CoprodI.NeWord.singleton x_1 a_1 → x = x_1
theorem Monoid.CoprodI.NeWord.inv.match_1.congr_eq_2 E1 #
∀ {ι : Type u_1} {G : ι → Type u_2} [inst : (i : ι) → Group (G i)]
(motive : (x x_1 : ι) → Monoid.CoprodI.NeWord G x x_1 → Sort u_3) (x x_1 : ι) (x_2 : Monoid.CoprodI.NeWord G x x_1)
(h_1 : (x : ι) → (x_3 : G x) → (h : x_3 ≠ 1) → motive x x (Monoid.CoprodI.NeWord.singleton x_3 h))
(h_2 :
(x x_3 j k : ι) →
(w₁ : Monoid.CoprodI.NeWord G x j) →
(h : j ≠ k) → (w₂ : Monoid.CoprodI.NeWord G k x_3) → motive x x_3 (w₁.append h w₂))
(x_3 x_4 j k : ι) (w₁ : Monoid.CoprodI.NeWord G x_3 j) (h : j ≠ k) (w₂ : Monoid.CoprodI.NeWord G k x_4),
x = x_3 →
x_1 = x_4 →
x_2 ≍ w₁.append h w₂ →
(match x, x_1, x_2 with
| x, .(x), Monoid.CoprodI.NeWord.singleton x_5 h => h_1 x x_5 h
| x, x_5, w₁.append h w₂ => h_2 x x_5 j k w₁ h w₂) ≍
h_2 x_3 x_4 j k w₁ h w₂
theorem Monoid.CoprodI.NeWord.replaceHead.match_1.congr_eq_2 E1 #
∀ {ι : Type u_2} {M : ι → Type u_1} [inst : (i : ι) → Monoid (M i)]
(motive : (x x_1 : ι) → (x_2 : M x) → x_2 ≠ 1 → Monoid.CoprodI.NeWord M x x_1 → Sort u_3) (x x_1 : ι) (x_2 : M x)
(x_3 : x_2 ≠ 1) (x_4 : Monoid.CoprodI.NeWord M x x_1)
(h_1 :
(x : ι) →
(x_5 : M x) →
(h : x_5 ≠ 1) → (x_6 : M x) → (a : x_6 ≠ 1) → motive x x x_5 h (Monoid.CoprodI.NeWord.singleton x_6 a))
(h_2 :
(x x_5 : ι) →
(x_6 : M x) →
(h : x_6 ≠ 1) →
(j k : ι) →
(w₁ : Monoid.CoprodI.NeWord M x j) →
(hne : j ≠ k) → (w₂ : Monoid.CoprodI.NeWord M k x_5) → motive x x_5 x_6 h (w₁.append hne w₂))
(x_5 x_6 : ι) (x_7 : M x_5) (h : x_7 ≠ 1) (j k : ι) (w₁ : Monoid.CoprodI.NeWord M x_5 j) (hne : j ≠ k)
(w₂ : Monoid.CoprodI.NeWord M k x_6),
x = x_5 →
x_1 = x_6 →
x_2 ≍ x_7 →
x_3 ≍ h →
x_4 ≍ w₁.append hne w₂ →
(match x, x_1, x_2, x_3, x_4 with
| x, .(x), x_8, h, Monoid.CoprodI.NeWord.singleton x_9 a => h_1 x x_8 h x_9 a
| x, x_8, x_9, h, w₁.append hne w₂ => h_2 x x_8 x_9 h j k w₁ hne w₂) ≍
h_2 x_5 x_6 x_7 h j k w₁ hne w₂
theorem Monoid.CoprodI.NeWord.brecOn.eq E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)]
{motive : (a a_1 : ι) → Monoid.CoprodI.NeWord M a a_1 → Sort u} {a a_1 : ι} (t : Monoid.CoprodI.NeWord M a a_1)
(F_1 : (a a_2 : ι) → (t : Monoid.CoprodI.NeWord M a a_2) → Monoid.CoprodI.NeWord.below t → motive a a_2 t),
Monoid.CoprodI.NeWord.brecOn t F_1 = F_1 a a_1 t (Monoid.CoprodI.NeWord.brecOn.go t F_1).2
theorem Monoid.CoprodI.NeWord.append.congr_simp E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j k l : ι}
(_w₁ _w₁_1 : Monoid.CoprodI.NeWord M i j),
_w₁ = _w₁_1 →
∀ (_hne : j ≠ k) (_w₂ _w₂_1 : Monoid.CoprodI.NeWord M k l),
_w₂ = _w₂_1 → _w₁.append _hne _w₂ = _w₁_1.append _hne _w₂_1
theorem Monoid.CoprodI.Word.Pair.mk.inj E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} {inst : (i : ι) → Monoid (M i)} {i : ι} {head : M i} {tail : Monoid.CoprodI.Word M}
{fstIdx_ne : tail.fstIdx ≠ some i} {head_1 : M i} {tail_1 : Monoid.CoprodI.Word M}
{fstIdx_ne_1 : tail_1.fstIdx ≠ some i},
{ head := head, tail := tail, fstIdx_ne := fstIdx_ne } =
{ head := head_1, tail := tail_1, fstIdx_ne := fstIdx_ne_1 } →
head = head_1 ∧ tail = tail_1
theorem Monoid.toMulOneClass.hcongr_2 E1 #
∀ (M M' : Type u_2),
M = M' → ∀ (self : Monoid M) (self' : Monoid M'), self ≍ self' → self.toMulOneClass ≍ self'.toMulOneClass
theorem Monoid.CoprodI.NeWord.singleton.congr_simp E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (x x_1 : M i) (e_x : x = x_1) (a : x ≠ 1),
Monoid.CoprodI.NeWord.singleton x a = Monoid.CoprodI.NeWord.singleton x_1 ⋯
theorem Monoid.CoprodI.Word.mk.inj E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} {inst : (i : ι) → Monoid (M i)} {toList : List ((i : ι) × M i)}
{ne_one : ∀ l ∈ toList, l.snd ≠ 1} {chain_ne : List.IsChain (fun l l' ↦ l.fst ≠ l'.fst) toList}
{toList_1 : List ((i : ι) × M i)} {ne_one_1 : ∀ l ∈ toList_1, l.snd ≠ 1}
{chain_ne_1 : List.IsChain (fun l l' ↦ l.fst ≠ l'.fst) toList_1},
{ toList := toList, ne_one := ne_one, chain_ne := chain_ne } =
{ toList := toList_1, ne_one := ne_one_1, chain_ne := chain_ne_1 } →
toList = toList_1
theorem Monoid.CoprodI.Word.mk.injEq E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] (toList : List ((i : ι) × M i))
(ne_one : ∀ l ∈ toList, l.snd ≠ 1) (chain_ne : List.IsChain (fun l l' ↦ l.fst ≠ l'.fst) toList)
(toList_1 : List ((i : ι) × M i)) (ne_one_1 : ∀ l ∈ toList_1, l.snd ≠ 1)
(chain_ne_1 : List.IsChain (fun l l' ↦ l.fst ≠ l'.fst) toList_1),
({ toList := toList, ne_one := ne_one, chain_ne := chain_ne } =
{ toList := toList_1, ne_one := ne_one_1, chain_ne := chain_ne_1 }) =
(toList = toList_1)
theorem Monoid.CoprodI.NeWord.toList.match_1.congr_eq_1 E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)]
(motive : (x x_1 : ι) → Monoid.CoprodI.NeWord M x x_1 → Sort u_3) (x x_1 : ι) (x_2 : Monoid.CoprodI.NeWord M x x_1)
(h_1 : (i : ι) → (x : M i) → (a : x ≠ 1) → motive i i (Monoid.CoprodI.NeWord.singleton x a))
(h_2 :
(x x_3 j k : ι) →
(w₁ : Monoid.CoprodI.NeWord M x j) →
(_hne : j ≠ k) → (w₂ : Monoid.CoprodI.NeWord M k x_3) → motive x x_3 (w₁.append _hne w₂))
(i : ι) (x_3 : M i) (a : x_3 ≠ 1),
x = i →
x_1 = i →
x_2 ≍ Monoid.CoprodI.NeWord.singleton x_3 a →
(match x, x_1, x_2 with
| i, .(i), Monoid.CoprodI.NeWord.singleton x a => h_1 i x a
| x, x_4, w₁.append _hne w₂ => h_2 x x_4 j k w₁ _hne w₂) ≍
h_1 i x_3 a
theorem Monoid.CoprodI.Word.mk.congr_simp E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] (toList toList_1 : List ((i : ι) × M i))
(e_toList : toList = toList_1) (ne_one : ∀ l ∈ toList, l.snd ≠ 1)
(chain_ne : List.IsChain (fun l l' ↦ l.fst ≠ l'.fst) toList),
{ toList := toList, ne_one := ne_one, chain_ne := chain_ne } = { toList := toList_1, ne_one := ⋯, chain_ne := ⋯ }
theorem Monoid.CoprodI.Word.cons.congr_simp E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (m m_1 : M i) (e_m : m = m_1)
(w w_1 : Monoid.CoprodI.Word M) (e_w : w = w_1) (hmw : w.fstIdx ≠ some i) (h1 : m ≠ 1),
Monoid.CoprodI.Word.cons m w hmw h1 = Monoid.CoprodI.Word.cons m_1 w_1 ⋯ ⋯
theorem Monoid.CoprodI.NeWord.inv.match_1.congr_eq_1 E1 #
∀ {ι : Type u_1} {G : ι → Type u_2} [inst : (i : ι) → Group (G i)]
(motive : (x x_1 : ι) → Monoid.CoprodI.NeWord G x x_1 → Sort u_3) (x x_1 : ι) (x_2 : Monoid.CoprodI.NeWord G x x_1)
(h_1 : (x : ι) → (x_3 : G x) → (h : x_3 ≠ 1) → motive x x (Monoid.CoprodI.NeWord.singleton x_3 h))
(h_2 :
(x x_3 j k : ι) →
(w₁ : Monoid.CoprodI.NeWord G x j) →
(h : j ≠ k) → (w₂ : Monoid.CoprodI.NeWord G k x_3) → motive x x_3 (w₁.append h w₂))
(x_3 : ι) (x_4 : G x_3) (h : x_4 ≠ 1),
x = x_3 →
x_1 = x_3 →
x_2 ≍ Monoid.CoprodI.NeWord.singleton x_4 h →
(match x, x_1, x_2 with
| x, .(x), Monoid.CoprodI.NeWord.singleton x_5 h => h_1 x x_5 h
| x, x_5, w₁.append h w₂ => h_2 x x_5 j k w₁ h w₂) ≍
h_1 x_3 x_4 h
theorem MulOneClass.toMulOne.hcongr_2 E1 #
∀ (M M' : Type u_2),
M = M' → ∀ (self : MulOneClass M) (self' : MulOneClass M'), self ≍ self' → self.toMulOne ≍ self'.toMulOne
theorem Monoid.CoprodI.Word.Pair.mk.injEq E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (head : M i) (tail : Monoid.CoprodI.Word M)
(fstIdx_ne : tail.fstIdx ≠ some i) (head_1 : M i) (tail_1 : Monoid.CoprodI.Word M)
(fstIdx_ne_1 : tail_1.fstIdx ≠ some i),
({ head := head, tail := tail, fstIdx_ne := fstIdx_ne } =
{ head := head_1, tail := tail_1, fstIdx_ne := fstIdx_ne_1 }) =
(head = head_1 ∧ tail = tail_1)
theorem MulOne.toOne.hcongr_2 E1 #
∀ (M M' : Type u_2), M = M' → ∀ (self : MulOne M) (self' : MulOne M'), self ≍ self' → self.toOne ≍ self'.toOne
abbrev Monoid.CoprodI.NeWord.brecOn.go E1 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
{motive : (a a_1 : ι) → Monoid.CoprodI.NeWord M a a_1 → Sort u} →
{a a_1 : ι} →
(t : Monoid.CoprodI.NeWord M a a_1) →
((a a_2 : ι) → (t : Monoid.CoprodI.NeWord M a a_2) → Monoid.CoprodI.NeWord.below t → motive a a_2 t) →
motive a a_1 t ×' Monoid.CoprodI.NeWord.below t
theorem One.toOfNat1.hcongr_2 E1 #
∀ (α α' : Type u_1), α = α' → ∀ (inst : One α) (inst' : One α'), inst ≍ inst' → One.toOfNat1 ≍ One.toOfNat1
inductive Monoid.CoprodI.Rel E1 #
{ι : Type u_1} →
(M : ι → Type u_2) → [(i : ι) → Monoid (M i)] → FreeMonoid ((i : ι) × M i) → FreeMonoid ((i : ι) × M i) → Prop
A relation on the free monoid on alphabet Σ i, M i,
relating ⟨i, 1⟩ with 1 and ⟨i, x⟩ * ⟨i, y⟩ with ⟨i, x * y⟩.
ctor Monoid.CoprodI.Rel.of_one E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] (i : ι),
Monoid.CoprodI.Rel M (FreeMonoid.of ⟨i, 1⟩) 1
ctor Monoid.CoprodI.Rel.of_mul E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (x y : M i),
Monoid.CoprodI.Rel M (FreeMonoid.of ⟨i, x⟩ * FreeMonoid.of ⟨i, y⟩) (FreeMonoid.of ⟨i, x * y⟩)
def Monoid.CoprodI E1 #
{ι : Type u_1} → (M : ι → Type u_2) → [(i : ι) → Monoid (M i)] → Type (max u_1 u_2)
The free product (categorical coproduct) of an indexed family of monoids.
instance Monoid.instInhabitedCoprodI E0 #
{ι : Type u_1} → (M : ι → Type u_2) → [inst : (i : ι) → Monoid (M i)] → Inhabited (Monoid.CoprodI M)
instance Monoid.instCoprodI E0 #
{ι : Type u_1} → (M : ι → Type u_2) → [inst : (i : ι) → Monoid (M i)] → Monoid (Monoid.CoprodI M)
structure Monoid.CoprodI.Word E1 #
{ι : Type u_1} → (M : ι → Type u_2) → [(i : ι) → Monoid (M i)] → Type (max u_1 u_2)
The type of reduced words. A reduced word cannot contain a letter 1, and no two adjacent
letters can come from the same summand.
theorem Monoid.CoprodI.Word.ext_iff E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} {inst : (i : ι) → Monoid (M i)} {x y : Monoid.CoprodI.Word M},
x = y ↔ x.toList = y.toList
theorem Monoid.CoprodI.Word.ext E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} {inst : (i : ι) → Monoid (M i)} {x y : Monoid.CoprodI.Word M},
x.toList = y.toList → x = y
ctor Monoid.CoprodI.Word.mk E0 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
(toList : List ((i : ι) × M i)) →
(∀ l ∈ toList, l.snd ≠ 1) → List.IsChain (fun l l' ↦ l.fst ≠ l'.fst) toList → Monoid.CoprodI.Word M
abbrev Monoid.CoprodI.Word.toList E1 #
{ι : Type u_1} → {M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → Monoid.CoprodI.Word M → List ((i : ι) × M i)
A Word is a List (Σ i, M i), such that 1 is not in the list, and no
two adjacent letters are from the same summand
theorem Monoid.CoprodI.Word.ne_one E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] (self : Monoid.CoprodI.Word M),
∀ l ∈ self.toList, l.snd ≠ 1
A reduced word does not contain 1
theorem Monoid.CoprodI.Word.chain_ne E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] (self : Monoid.CoprodI.Word M),
List.IsChain (fun l l' ↦ l.fst ≠ l'.fst) self.toList
Adjacent letters are not from the same summand.
def Monoid.CoprodI.of E1 #
{ι : Type u_1} → {M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → {i : ι} → M i →* Monoid.CoprodI M
The inclusion of a summand into the free product.
theorem Monoid.CoprodI.of_apply E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (m : M i),
Monoid.CoprodI.of m = (conGen (Monoid.CoprodI.Rel M)).mk' (FreeMonoid.of ⟨i, m⟩)
theorem Monoid.CoprodI.ext_hom E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {N : Type u_3} [inst_1 : Monoid N]
(f g : Monoid.CoprodI M →* N), (∀ (i : ι), f.comp Monoid.CoprodI.of = g.comp Monoid.CoprodI.of) → f = g
See note [partially-applied ext lemmas].
theorem Monoid.CoprodI.ext_hom_iff E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {N : Type u_3} [inst_1 : Monoid N]
{f g : Monoid.CoprodI M →* N}, f = g ↔ ∀ (i : ι), f.comp Monoid.CoprodI.of = g.comp Monoid.CoprodI.of
def Monoid.CoprodI.lift E1 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
{N : Type u_3} → [inst_1 : Monoid N] → ((i : ι) → M i →* N) ≃ (Monoid.CoprodI M →* N)
A map out of the free product corresponds to a family of maps out of the summands. This is the universal property of the free product, characterizing it as a categorical coproduct.
theorem Monoid.CoprodI.lift_symm_apply E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {N : Type u_3} [inst_1 : Monoid N]
(f : Monoid.CoprodI M →* N) (x : ι), Monoid.CoprodI.lift.symm f x = f.comp Monoid.CoprodI.of
theorem Monoid.CoprodI.lift_comp_of E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {N : Type u_4} [inst_1 : Monoid N]
(fi : (i : ι) → M i →* N) (i : ι), (Monoid.CoprodI.lift fi).comp Monoid.CoprodI.of = fi i
theorem Monoid.CoprodI.lift_of E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {N : Type u_4} [inst_1 : Monoid N]
(fi : (i : ι) → M i →* N) {i : ι} (m : M i), (Monoid.CoprodI.lift fi) (Monoid.CoprodI.of m) = (fi i) m
theorem Monoid.CoprodI.lift_comp_of' E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {N : Type u_4} [inst_1 : Monoid N]
(f : Monoid.CoprodI M →* N), (Monoid.CoprodI.lift fun i ↦ f.comp Monoid.CoprodI.of) = f
theorem Monoid.CoprodI.lift_of' E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)],
(Monoid.CoprodI.lift fun i ↦ Monoid.CoprodI.of) = MonoidHom.id (Monoid.CoprodI M)
theorem Monoid.CoprodI.of_leftInverse E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι] (i : ι),
Function.LeftInverse ⇑(Monoid.CoprodI.lift (Pi.mulSingle i (MonoidHom.id (M i)))) ⇑Monoid.CoprodI.of
theorem Monoid.CoprodI.of_injective E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] (i : ι), Function.Injective ⇑Monoid.CoprodI.of
theorem Monoid.CoprodI.mrange_eq_iSup E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {N : Type u_4} [inst_1 : Monoid N]
(f : (i : ι) → M i →* N), MonoidHom.mrange (Monoid.CoprodI.lift f) = ⨆ i, MonoidHom.mrange (f i)
theorem Monoid.CoprodI.lift_mrange_le E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {N : Type u_4} [inst_1 : Monoid N]
(f : (i : ι) → M i →* N) {s : Submonoid N},
MonoidHom.mrange (Monoid.CoprodI.lift f) ≤ s ↔ ∀ (i : ι), MonoidHom.mrange (f i) ≤ s
theorem Monoid.CoprodI.iSup_mrange_of E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)], ⨆ i, MonoidHom.mrange Monoid.CoprodI.of = ⊤
theorem Monoid.CoprodI.mclosure_iUnion_range_of E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)],
Submonoid.closure (⋃ i, Set.range ⇑Monoid.CoprodI.of) = ⊤
theorem Monoid.CoprodI.induction_left E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {motive : Monoid.CoprodI M → Prop}
(m : Monoid.CoprodI M),
motive 1 → (∀ {i : ι} (m : M i) (x : Monoid.CoprodI M), motive x → motive (Monoid.CoprodI.of m * x)) → motive m
theorem Monoid.CoprodI.induction_on E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {motive : Monoid.CoprodI M → Prop}
(m : Monoid.CoprodI M),
motive 1 →
(∀ (i : ι) (m : M i), motive (Monoid.CoprodI.of m)) →
(∀ (x y : Monoid.CoprodI M), motive x → motive y → motive (x * y)) → motive m
instance Monoid.CoprodI.instInv E0 #
{ι : Type u_1} → (G : ι → Type u_4) → [inst : (i : ι) → Group (G i)] → Inv (Monoid.CoprodI G)
theorem Monoid.CoprodI.inv_def E0 #
∀ {ι : Type u_1} (G : ι → Type u_4) [inst : (i : ι) → Group (G i)] (x : Monoid.CoprodI G),
x⁻¹ =
MulOpposite.unop
((Monoid.CoprodI.lift fun i ↦ (MonoidHom.op Monoid.CoprodI.of).comp (MulEquiv.inv' (G i)).toMonoidHom) x)
instance Monoid.CoprodI.instGroup E0 #
{ι : Type u_1} → (G : ι → Type u_4) → [inst : (i : ι) → Group (G i)] → Group (Monoid.CoprodI G)
theorem Monoid.CoprodI.lift_range_le E1 #
∀ {ι : Type u_1} (G : ι → Type u_4) [inst : (i : ι) → Group (G i)] {N : Type u_5} [inst_1 : Group N]
(f : (i : ι) → G i →* N) {s : Subgroup N}, (∀ (i : ι), (f i).range ≤ s) → (Monoid.CoprodI.lift f).range ≤ s
theorem Monoid.CoprodI.range_eq_iSup E1 #
∀ {ι : Type u_1} (G : ι → Type u_4) [inst : (i : ι) → Group (G i)] {N : Type u_5} [inst_1 : Group N]
(f : (i : ι) → G i →* N), (Monoid.CoprodI.lift f).range = ⨆ i, (f i).range
def Monoid.CoprodI.Word.empty E1 #
{ι : Type u_1} → {M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → Monoid.CoprodI.Word M
The empty reduced word.
theorem Monoid.CoprodI.Word.empty_toList E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)], Monoid.CoprodI.Word.empty.toList = []
instance Monoid.CoprodI.Word.instInhabited E0 #
{ι : Type u_1} → {M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → Inhabited (Monoid.CoprodI.Word M)
def Monoid.CoprodI.Word.prod E1 #
{ι : Type u_1} → {M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → Monoid.CoprodI.Word M → Monoid.CoprodI M
A reduced word determines an element of the free product, given by multiplication.
theorem Monoid.CoprodI.Word.prod_empty E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)], Monoid.CoprodI.Word.empty.prod = 1
def Monoid.CoprodI.Word.fstIdx E1 #
{ι : Type u_1} → {M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → Monoid.CoprodI.Word M → Option ι
fstIdx w is some i if the first letter of w is ⟨i, m⟩ with m : M i. If w is empty
then it's none.
theorem Monoid.CoprodI.Word.fstIdx_ne_iff E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {w : Monoid.CoprodI.Word M} {i : ι},
w.fstIdx ≠ some i ↔ ∀ l ∈ w.toList.head?, i ≠ l.fst
structure Monoid.CoprodI.Word.Pair E1 #
{ι : Type u_1} → (M : ι → Type u_2) → [(i : ι) → Monoid (M i)] → ι → Type (max u_1 u_2)
Given an index i : ι, Pair M i is the type of pairs (head, tail) where head : M i and
tail : Word M, subject to the constraint that first letter of tail can't be ⟨i, m⟩.
By prepending head to tail, one obtains a new word. We'll show that any word can be uniquely
obtained in this way.
theorem Monoid.CoprodI.Word.Pair.ext_iff E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} {inst : (i : ι) → Monoid (M i)} {i : ι} {x y : Monoid.CoprodI.Word.Pair M i},
x = y ↔ x.head = y.head ∧ x.tail = y.tail
theorem Monoid.CoprodI.Word.Pair.ext E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} {inst : (i : ι) → Monoid (M i)} {i : ι} {x y : Monoid.CoprodI.Word.Pair M i},
x.head = y.head → x.tail = y.tail → x = y
ctor Monoid.CoprodI.Word.Pair.mk E0 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
{i : ι} → M i → (tail : Monoid.CoprodI.Word M) → tail.fstIdx ≠ some i → Monoid.CoprodI.Word.Pair M i
abbrev Monoid.CoprodI.Word.Pair.head E3 #
{ι : Type u_1} → {M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → {i : ι} → Monoid.CoprodI.Word.Pair M i → M i
An element of M i, the first letter of the word.
abbrev Monoid.CoprodI.Word.Pair.tail E3 #
{ι : Type u_1} →
{M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → {i : ι} → Monoid.CoprodI.Word.Pair M i → Monoid.CoprodI.Word M
The remaining letters of the word, excluding the first letter
theorem Monoid.CoprodI.Word.Pair.fstIdx_ne E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (self : Monoid.CoprodI.Word.Pair M i),
self.tail.fstIdx ≠ some i
The index first letter of tail of a Pair M i is not equal to i
instance Monoid.CoprodI.Word.instInhabitedPair E0 #
{ι : Type u_1} →
(M : ι → Type u_2) → [inst : (i : ι) → Monoid (M i)] → (i : ι) → Inhabited (Monoid.CoprodI.Word.Pair M i)
def Monoid.CoprodI.Word.cons E1 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
{i : ι} → (m : M i) → (w : Monoid.CoprodI.Word M) → w.fstIdx ≠ some i → m ≠ 1 → Monoid.CoprodI.Word M
Construct a new Word without any reduction. The underlying list of
cons m w _ _ is ⟨_, m⟩::w
theorem Monoid.CoprodI.Word.cons_toList E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (m : M i) (w : Monoid.CoprodI.Word M)
(hmw : w.fstIdx ≠ some i) (h1 : m ≠ 1), (Monoid.CoprodI.Word.cons m w hmw h1).toList = ⟨i, m⟩ :: w.toList
theorem Monoid.CoprodI.Word.fstIdx_cons E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (m : M i) (w : Monoid.CoprodI.Word M)
(hmw : w.fstIdx ≠ some i) (h1 : m ≠ 1), (Monoid.CoprodI.Word.cons m w hmw h1).fstIdx = some i
theorem Monoid.CoprodI.Word.prod_cons E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] (i : ι) (m : M i) (w : Monoid.CoprodI.Word M)
(h1 : m ≠ 1) (h2 : w.fstIdx ≠ some i), (Monoid.CoprodI.Word.cons m w h2 h1).prod = Monoid.CoprodI.of m * w.prod
def Monoid.CoprodI.Word.rcons E1 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
[(i : ι) → DecidableEq (M i)] → {i : ι} → Monoid.CoprodI.Word.Pair M i → Monoid.CoprodI.Word M
Given a pair (head, tail), we can form a word by prepending head to tail, except if head
is 1 : M i then we have to just return Word since we need the result to be reduced.
theorem Monoid.CoprodI.Word.prod_rcons E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : (i : ι) → DecidableEq (M i)] {i : ι}
(p : Monoid.CoprodI.Word.Pair M i), (Monoid.CoprodI.Word.rcons p).prod = Monoid.CoprodI.of p.head * p.tail.prod
theorem Monoid.CoprodI.Word.rcons_inj E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : (i : ι) → DecidableEq (M i)] {i : ι},
Function.Injective Monoid.CoprodI.Word.rcons
theorem Monoid.CoprodI.Word.mem_rcons_iff E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : (i : ι) → DecidableEq (M i)] {i j : ι}
(p : Monoid.CoprodI.Word.Pair M i) (m : M j),
⟨j, m⟩ ∈ (Monoid.CoprodI.Word.rcons p).toList ↔ ⟨j, m⟩ ∈ p.tail.toList ∨ m ≠ 1 ∧ ∃ (h : i = j), m = h ▸ p.head
def Monoid.CoprodI.Word.consRecOn E1 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
{motive : Monoid.CoprodI.Word M → Sort u_4} →
(w : Monoid.CoprodI.Word M) →
motive Monoid.CoprodI.Word.empty →
((i : ι) →
(m : M i) →
(w : Monoid.CoprodI.Word M) →
(h1 : w.fstIdx ≠ some i) → (h2 : m ≠ 1) → motive w → motive (Monoid.CoprodI.Word.cons m w h1 h2)) →
motive w
Induct on a word by adding letters one at a time without reduction,
effectively inducting on the underlying List.
theorem Monoid.CoprodI.Word.consRecOn_empty E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {motive : Monoid.CoprodI.Word M → Sort u_4}
(h_empty : motive Monoid.CoprodI.Word.empty)
(h_cons :
(i : ι) →
(m : M i) →
(w : Monoid.CoprodI.Word M) →
(h1 : w.fstIdx ≠ some i) → (h2 : m ≠ 1) → motive w → motive (Monoid.CoprodI.Word.cons m w h1 h2)),
Monoid.CoprodI.Word.consRecOn Monoid.CoprodI.Word.empty h_empty h_cons = h_empty
theorem Monoid.CoprodI.Word.consRecOn_cons E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {motive : Monoid.CoprodI.Word M → Sort u_4} (i : ι)
(m : M i) (w : Monoid.CoprodI.Word M) (h1 : w.fstIdx ≠ some i) (h2 : m ≠ 1)
(h_empty : motive Monoid.CoprodI.Word.empty)
(h_cons :
(i : ι) →
(m : M i) →
(w : Monoid.CoprodI.Word M) →
(h1 : w.fstIdx ≠ some i) → (h2 : m ≠ 1) → motive w → motive (Monoid.CoprodI.Word.cons m w h1 h2)),
Monoid.CoprodI.Word.consRecOn (Monoid.CoprodI.Word.cons m w h1 h2) h_empty h_cons =
h_cons i m w h1 h2 (Monoid.CoprodI.Word.consRecOn w h_empty h_cons)
def Monoid.CoprodI.Word.equivPair E1 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
[DecidableEq ι] → [(i : ι) → DecidableEq (M i)] → (i : ι) → Monoid.CoprodI.Word M ≃ Monoid.CoprodI.Word.Pair M i
The equivalence between words and pairs. Given a word, it decomposes it as a pair by removing
the first letter if it comes from M i. Given a pair, it prepends the head to the tail.
theorem Monoid.CoprodI.Word.equivPair_symm E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] (i : ι) (p : Monoid.CoprodI.Word.Pair M i),
(Monoid.CoprodI.Word.equivPair i).symm p = Monoid.CoprodI.Word.rcons p
theorem Monoid.CoprodI.Word.equivPair_eq_of_fstIdx_ne E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i : ι} {w : Monoid.CoprodI.Word M} (h : w.fstIdx ≠ some i),
(Monoid.CoprodI.Word.equivPair i) w = { head := 1, tail := w, fstIdx_ne := h }
theorem Monoid.CoprodI.Word.mem_equivPair_tail_iff E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i j : ι} {w : Monoid.CoprodI.Word M} (m : M i),
⟨i, m⟩ ∈ ((Monoid.CoprodI.Word.equivPair j) w).tail.toList ↔
⟨i, m⟩ ∈ w.toList.tail ∨ i ≠ j ∧ ∃ (h : w.toList ≠ []), w.toList.head h = ⟨i, m⟩
theorem Monoid.CoprodI.Word.mem_of_mem_equivPair_tail E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i j : ι} {w : Monoid.CoprodI.Word M} (m : M i),
⟨i, m⟩ ∈ ((Monoid.CoprodI.Word.equivPair j) w).tail.toList → ⟨i, m⟩ ∈ w.toList
theorem Monoid.CoprodI.Word.equivPair_head E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i : ι} {w : Monoid.CoprodI.Word M},
((Monoid.CoprodI.Word.equivPair i) w).head =
if h : ∃ (h : w.toList ≠ []), (w.toList.head h).fst = i then ⋯ ▸ (w.toList.head ⋯).snd else 1
instance Monoid.CoprodI.Word.summandAction E0 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
[DecidableEq ι] → [(i : ι) → DecidableEq (M i)] → (i : ι) → MulAction (M i) (Monoid.CoprodI.Word M)
instance Monoid.CoprodI.Word.instMulAction E0 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
[DecidableEq ι] → [(i : ι) → DecidableEq (M i)] → MulAction (Monoid.CoprodI M) (Monoid.CoprodI.Word M)
theorem Monoid.CoprodI.Word.smul_def E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i : ι} (m : M i) (w : Monoid.CoprodI.Word M),
m • w =
Monoid.CoprodI.Word.rcons
(have __src := (Monoid.CoprodI.Word.equivPair i) w;
{ head := m * ((Monoid.CoprodI.Word.equivPair i) w).head, tail := __src.tail, fstIdx_ne := ⋯ })
theorem Monoid.CoprodI.Word.of_smul_def E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] (i : ι) (w : Monoid.CoprodI.Word M) (m : M i),
Monoid.CoprodI.of m • w =
Monoid.CoprodI.Word.rcons
(have __src := (Monoid.CoprodI.Word.equivPair i) w;
{ head := m * ((Monoid.CoprodI.Word.equivPair i) w).head, tail := __src.tail, fstIdx_ne := ⋯ })
theorem Monoid.CoprodI.Word.equivPair_smul_same E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i : ι} (m : M i) (w : Monoid.CoprodI.Word M),
(Monoid.CoprodI.Word.equivPair i) (Monoid.CoprodI.of m • w) =
{ head := m * ((Monoid.CoprodI.Word.equivPair i) w).head, tail := ((Monoid.CoprodI.Word.equivPair i) w).tail,
fstIdx_ne := ⋯ }
theorem Monoid.CoprodI.Word.equivPair_tail E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i : ι} (p : Monoid.CoprodI.Word.Pair M i),
(Monoid.CoprodI.Word.equivPair i) p.tail = { head := 1, tail := p.tail, fstIdx_ne := ⋯ }
theorem Monoid.CoprodI.Word.smul_eq_of_smul E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i : ι} (m : M i) (w : Monoid.CoprodI.Word M), m • w = Monoid.CoprodI.of m • w
theorem Monoid.CoprodI.Word.mem_smul_iff E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i j : ι} {m₁ : M i} {m₂ : M j} {w : Monoid.CoprodI.Word M},
⟨i, m₁⟩ ∈ (Monoid.CoprodI.of m₂ • w).toList ↔
¬i = j ∧ ⟨i, m₁⟩ ∈ w.toList ∨
m₁ ≠ 1 ∧
∃ (hij : i = j),
⟨i, m₁⟩ ∈ w.toList.tail ∨
(∃ m', ⟨j, m'⟩ ∈ w.toList.head? ∧ m₁ = ⋯ ▸ (m₂ * m')) ∨ w.fstIdx ≠ some j ∧ m₁ = ⋯ ▸ m₂
theorem Monoid.CoprodI.Word.mem_smul_iff_of_ne E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i j : ι},
i ≠ j →
∀ {m₁ : M i} {m₂ : M j} {w : Monoid.CoprodI.Word M},
⟨i, m₁⟩ ∈ (Monoid.CoprodI.of m₂ • w).toList ↔ ⟨i, m₁⟩ ∈ w.toList
theorem Monoid.CoprodI.Word.cons_eq_smul E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i : ι} {m : M i} {ls : Monoid.CoprodI.Word M} {h1 : ls.fstIdx ≠ some i}
{h2 : m ≠ 1}, Monoid.CoprodI.Word.cons m ls h1 h2 = Monoid.CoprodI.of m • ls
theorem Monoid.CoprodI.Word.rcons_eq_smul E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i : ι} (p : Monoid.CoprodI.Word.Pair M i),
Monoid.CoprodI.Word.rcons p = Monoid.CoprodI.of p.head • p.tail
theorem Monoid.CoprodI.Word.equivPair_head_smul_equivPair_tail E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {i : ι} (w : Monoid.CoprodI.Word M),
Monoid.CoprodI.of ((Monoid.CoprodI.Word.equivPair i) w).head • ((Monoid.CoprodI.Word.equivPair i) w).tail = w
theorem Monoid.CoprodI.Word.equivPair_tail_eq_inv_smul E1 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {G : ι → Type u_4} [inst_1 : (i : ι) → Group (G i)]
[inst_2 : (i : ι) → DecidableEq (G i)] {i : ι} (w : Monoid.CoprodI.Word G),
((Monoid.CoprodI.Word.equivPair i) w).tail = (Monoid.CoprodI.of ((Monoid.CoprodI.Word.equivPair i) w).head)⁻¹ • w
theorem Monoid.CoprodI.Word.smul_induction E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] {motive : Monoid.CoprodI.Word M → Prop},
motive Monoid.CoprodI.Word.empty →
(∀ (i : ι) (m : M i) (w : Monoid.CoprodI.Word M), motive w → motive (Monoid.CoprodI.of m • w)) →
∀ (w : Monoid.CoprodI.Word M), motive w
theorem Monoid.CoprodI.Word.prod_smul E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] [inst_1 : DecidableEq ι]
[inst_2 : (i : ι) → DecidableEq (M i)] (m : Monoid.CoprodI M) (w : Monoid.CoprodI.Word M), (m • w).prod = m * w.prod
def Monoid.CoprodI.Word.equiv E1 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
[DecidableEq ι] → [(i : ι) → DecidableEq (M i)] → Monoid.CoprodI M ≃ Monoid.CoprodI.Word M
Each element of the free product corresponds to a unique reduced word.
instance Monoid.CoprodI.Word.instDecidableEq E0 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
[DecidableEq ι] → [(i : ι) → DecidableEq (M i)] → DecidableEq (Monoid.CoprodI.Word M)
instance Monoid.CoprodI.Word.instDecidableEq_1 E0 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] → [DecidableEq ι] → [(i : ι) → DecidableEq (M i)] → DecidableEq (Monoid.CoprodI M)
inductive Monoid.CoprodI.NeWord E1 #
{ι : Type u_1} → (M : ι → Type u_2) → [(i : ι) → Monoid (M i)] → ι → ι → Type (max u_1 u_2)
A NeWord M i j is a representation of a non-empty reduced words where the first letter comes
from M i and the last letter comes from M j. It can be constructed from singletons and via
concatenation, and thus provides a useful induction principle.
ctor Monoid.CoprodI.NeWord.singleton E3 #
{ι : Type u_1} →
{M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → {i : ι} → (x : M i) → x ≠ 1 → Monoid.CoprodI.NeWord M i i
ctor Monoid.CoprodI.NeWord.append E3 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
{i j k l : ι} → Monoid.CoprodI.NeWord M i j → j ≠ k → Monoid.CoprodI.NeWord M k l → Monoid.CoprodI.NeWord M i l
def Monoid.CoprodI.NeWord.toList E1 #
{ι : Type u_1} →
{M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → {i j : ι} → Monoid.CoprodI.NeWord M i j → List ((i : ι) × M i)
The list represented by a given NeWord
theorem Monoid.CoprodI.NeWord.toList_ne_nil E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j : ι} (w : Monoid.CoprodI.NeWord M i j),
w.toList ≠ []
def Monoid.CoprodI.NeWord.head E3 #
{ι : Type u_1} → {M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → {i j : ι} → Monoid.CoprodI.NeWord M i j → M i
The first letter of a NeWord
def Monoid.CoprodI.NeWord.last E1 #
{ι : Type u_1} → {M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → {i j : ι} → Monoid.CoprodI.NeWord M i j → M j
The last letter of a NeWord
theorem Monoid.CoprodI.NeWord.toList_head? E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j : ι} (w : Monoid.CoprodI.NeWord M i j),
w.toList.head? = some ⟨i, w.head⟩
theorem Monoid.CoprodI.NeWord.toList_getLast? E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j : ι} (w : Monoid.CoprodI.NeWord M i j),
w.toList.getLast? = some ⟨j, w.last⟩
def Monoid.CoprodI.NeWord.toWord E1 #
{ι : Type u_1} →
{M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → {i j : ι} → Monoid.CoprodI.NeWord M i j → Monoid.CoprodI.Word M
The Word M represented by a NeWord M i j
theorem Monoid.CoprodI.NeWord.of_word E1 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] (w : Monoid.CoprodI.Word M),
w ≠ Monoid.CoprodI.Word.empty → ∃ i j w', w'.toWord = w
Every nonempty Word M can be constructed as a NeWord M i j
def Monoid.CoprodI.NeWord.prod E1 #
{ι : Type u_1} →
{M : ι → Type u_2} → [inst : (i : ι) → Monoid (M i)] → {i j : ι} → Monoid.CoprodI.NeWord M i j → Monoid.CoprodI M
A non-empty reduced word determines an element of the free product, given by multiplication.
theorem Monoid.CoprodI.NeWord.singleton_head E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (x : M i) (hne_one : x ≠ 1),
(Monoid.CoprodI.NeWord.singleton x hne_one).head = x
theorem Monoid.CoprodI.NeWord.singleton_last E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (x : M i) (hne_one : x ≠ 1),
(Monoid.CoprodI.NeWord.singleton x hne_one).last = x
theorem Monoid.CoprodI.NeWord.prod_singleton E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i : ι} (x : M i) (hne_one : x ≠ 1),
(Monoid.CoprodI.NeWord.singleton x hne_one).prod = Monoid.CoprodI.of x
theorem Monoid.CoprodI.NeWord.append_head E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j k l : ι} {w₁ : Monoid.CoprodI.NeWord M i j}
{hne : j ≠ k} {w₂ : Monoid.CoprodI.NeWord M k l}, (w₁.append hne w₂).head = w₁.head
theorem Monoid.CoprodI.NeWord.append_last E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j k l : ι} {w₁ : Monoid.CoprodI.NeWord M i j}
{hne : j ≠ k} {w₂ : Monoid.CoprodI.NeWord M k l}, (w₁.append hne w₂).last = w₂.last
theorem Monoid.CoprodI.NeWord.append_prod E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j k l : ι} {w₁ : Monoid.CoprodI.NeWord M i j}
{hne : j ≠ k} {w₂ : Monoid.CoprodI.NeWord M k l}, (w₁.append hne w₂).prod = w₁.prod * w₂.prod
def Monoid.CoprodI.NeWord.replaceHead E1 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
{i j : ι} → (x : M i) → x ≠ 1 → Monoid.CoprodI.NeWord M i j → Monoid.CoprodI.NeWord M i j
One can replace the first letter in a non-empty reduced word by an element of the same group
theorem Monoid.CoprodI.NeWord.replaceHead_head E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j : ι} (x : M i) (hnotone : x ≠ 1)
(w : Monoid.CoprodI.NeWord M i j), (Monoid.CoprodI.NeWord.replaceHead x hnotone w).head = x
def Monoid.CoprodI.NeWord.mulHead E1 #
{ι : Type u_1} →
{M : ι → Type u_2} →
[inst : (i : ι) → Monoid (M i)] →
{i j : ι} → (w : Monoid.CoprodI.NeWord M i j) → (x : M i) → x * w.head ≠ 1 → Monoid.CoprodI.NeWord M i j
One can multiply an element from the left to a non-empty reduced word if it does not cancel with the first element in the word.
theorem Monoid.CoprodI.NeWord.mulHead_head E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j : ι} (w : Monoid.CoprodI.NeWord M i j)
(x : M i) (hnotone : x * w.head ≠ 1), (w.mulHead x hnotone).head = x * w.head
theorem Monoid.CoprodI.NeWord.mulHead_prod E0 #
∀ {ι : Type u_1} {M : ι → Type u_2} [inst : (i : ι) → Monoid (M i)] {i j : ι} (w : Monoid.CoprodI.NeWord M i j)
(x : M i) (hnotone : x * w.head ≠ 1), (w.mulHead x hnotone).prod = Monoid.CoprodI.of x * w.prod
def Monoid.CoprodI.NeWord.inv E3 #
{ι : Type u_1} →
{G : ι → Type u_4} →
[inst : (i : ι) → Group (G i)] → {i j : ι} → Monoid.CoprodI.NeWord G i j → Monoid.CoprodI.NeWord G j i
The inverse of a non-empty reduced word
theorem Monoid.CoprodI.NeWord.inv_prod E0 #
∀ {ι : Type u_1} {G : ι → Type u_4} [inst : (i : ι) → Group (G i)] {i j : ι} (w : Monoid.CoprodI.NeWord G i j),
w.inv.prod = w.prod⁻¹
theorem Monoid.CoprodI.NeWord.inv_head E0 #
∀ {ι : Type u_1} {G : ι → Type u_4} [inst : (i : ι) → Group (G i)] {i j : ι} (w : Monoid.CoprodI.NeWord G i j),
w.inv.head = w.last⁻¹
theorem Monoid.CoprodI.NeWord.inv_last E0 #
∀ {ι : Type u_1} {G : ι → Type u_4} [inst : (i : ι) → Group (G i)] {i j : ι} (w : Monoid.CoprodI.NeWord G i j),
w.inv.last = w.head⁻¹
theorem Monoid.CoprodI.lift_word_ping_pong E1 #
∀ {ι : Type u_1} {G : Type u_4} [inst : Group G] {H : ι → Type u_5} [inst_1 : (i : ι) → Group (H i)]
(f : (i : ι) → H i →* G) {α : Type u_6} [inst_2 : MulAction G α] (X : ι → Set α),
(Pairwise fun i j ↦ ∀ (h : H i), h ≠ 1 → (f i) h • X j ⊆ X i) →
∀ {i j k : ι} (w : Monoid.CoprodI.NeWord H i j), j ≠ k → (Monoid.CoprodI.lift f) w.prod • X k ⊆ X i
theorem Monoid.CoprodI.lift_word_prod_nontrivial_of_other_i E1 #
∀ {ι : Type u_1} {G : Type u_4} [inst : Group G] {H : ι → Type u_5} [inst_1 : (i : ι) → Group (H i)]
(f : (i : ι) → H i →* G) {α : Type u_6} [inst_2 : MulAction G α] (X : ι → Set α),
(∀ (i : ι), (X i).Nonempty) →
Pairwise (Function.onFun Disjoint X) →
(Pairwise fun i j ↦ ∀ (h : H i), h ≠ 1 → (f i) h • X j ⊆ X i) →
∀ {i j k : ι} (w : Monoid.CoprodI.NeWord H i j), k ≠ i → k ≠ j → (Monoid.CoprodI.lift f) w.prod ≠ 1
theorem Monoid.CoprodI.lift_word_prod_nontrivial_of_head_eq_last E1 #
∀ {ι : Type u_1} {G : Type u_4} [inst : Group G] {H : ι → Type u_5} [inst_1 : (i : ι) → Group (H i)]
(f : (i : ι) → H i →* G) {α : Type u_6} [inst_2 : MulAction G α] (X : ι → Set α),
(∀ (i : ι), (X i).Nonempty) →
Pairwise (Function.onFun Disjoint X) →
(Pairwise fun i j ↦ ∀ (h : H i), h ≠ 1 → (f i) h • X j ⊆ X i) →
∀ [Nontrivial ι] {i : ι} (w : Monoid.CoprodI.NeWord H i i), (Monoid.CoprodI.lift f) w.prod ≠ 1
theorem Monoid.CoprodI.lift_word_prod_nontrivial_of_head_card E1 #
∀ {ι : Type u_1} {G : Type u_4} [inst : Group G] {H : ι → Type u_5} [inst_1 : (i : ι) → Group (H i)]
(f : (i : ι) → H i →* G) {α : Type u_6} [inst_2 : MulAction G α] (X : ι → Set α),
(∀ (i : ι), (X i).Nonempty) →
Pairwise (Function.onFun Disjoint X) →
(Pairwise fun i j ↦ ∀ (h : H i), h ≠ 1 → (f i) h • X j ⊆ X i) →
∀ [Nontrivial ι] {i j : ι} (w : Monoid.CoprodI.NeWord H i j),
3 ≤ Cardinal.mk (H i) → i ≠ j → (Monoid.CoprodI.lift f) w.prod ≠ 1
theorem Monoid.CoprodI.lift_word_prod_nontrivial_of_not_empty E1 #
∀ {ι : Type u_1} {G : Type u_4} [inst : Group G] {H : ι → Type u_5} [inst_1 : (i : ι) → Group (H i)]
(f : (i : ι) → H i →* G),
(3 ≤ Cardinal.mk ι ∨ ∃ i, 3 ≤ Cardinal.mk (H i)) →
∀ {α : Type u_6} [inst_2 : MulAction G α] (X : ι → Set α),
(∀ (i : ι), (X i).Nonempty) →
Pairwise (Function.onFun Disjoint X) →
(Pairwise fun i j ↦ ∀ (h : H i), h ≠ 1 → (f i) h • X j ⊆ X i) →
∀ [Nontrivial ι] {i j : ι} (w : Monoid.CoprodI.NeWord H i j), (Monoid.CoprodI.lift f) w.prod ≠ 1
theorem Monoid.CoprodI.empty_of_word_prod_eq_one E1 #
∀ {ι : Type u_1} {G : Type u_4} [inst : Group G] {H : ι → Type u_5} [inst_1 : (i : ι) → Group (H i)]
(f : (i : ι) → H i →* G),
(3 ≤ Cardinal.mk ι ∨ ∃ i, 3 ≤ Cardinal.mk (H i)) →
∀ {α : Type u_6} [inst_2 : MulAction G α] (X : ι → Set α),
(∀ (i : ι), (X i).Nonempty) →
Pairwise (Function.onFun Disjoint X) →
(Pairwise fun i j ↦ ∀ (h : H i), h ≠ 1 → (f i) h • X j ⊆ X i) →
∀ [Nontrivial ι] {w : Monoid.CoprodI.Word H},
(Monoid.CoprodI.lift f) w.prod = 1 → w = Monoid.CoprodI.Word.empty
theorem Monoid.CoprodI.lift_injective_of_ping_pong E3 #
∀ {ι : Type u_1} {G : Type u_4} [inst : Group G] {H : ι → Type u_5} [inst_1 : (i : ι) → Group (H i)]
(f : (i : ι) → H i →* G),
(3 ≤ Cardinal.mk ι ∨ ∃ i, 3 ≤ Cardinal.mk (H i)) →
∀ {α : Type u_6} [inst_2 : MulAction G α] (X : ι → Set α),
(∀ (i : ι), (X i).Nonempty) →
Pairwise (Function.onFun Disjoint X) →
(Pairwise fun i j ↦ ∀ (h : H i), h ≠ 1 → (f i) h • X j ⊆ X i) →
∀ [Nontrivial ι], Function.Injective ⇑(Monoid.CoprodI.lift f)
The Ping-Pong-Lemma.
Given a group action of G on X so that the H i acts in a specific way on disjoint subsets
X i we can prove that lift f is injective, and thus the image of lift f is isomorphic to the
free product of the H i.
Often the Ping-Pong-Lemma is stated with regard to subgroups H i that generate the whole group;
we generalize to arbitrary group homomorphisms f i : H i →* G and do not require the group to be
generated by the images.
Usually the Ping-Pong-Lemma requires that one group H i has at least three elements. This
condition is only needed if # ι = 2, and we accept 3 ≤ # ι as an alternative.
def Monoid.CoprodI.FreeGroupBasis.coprodI E1 #
{ι : Type u_4} →
{X : ι → Type u_5} →
{G : ι → Type u_6} →
[inst : (i : ι) → Group (G i)] →
((i : ι) → FreeGroupBasis (X i) (G i)) → FreeGroupBasis ((i : ι) × X i) (Monoid.CoprodI G)
Given a family of free groups with distinguished bases, then their free product is free, with a basis given by the union of the bases of the components.
instance Monoid.CoprodI.instIsFreeGroup E0 #
∀ {ι : Type u_4} (G : ι → Type u_5) [inst : (i : ι) → Group (G i)] [∀ (i : ι), IsFreeGroup (G i)],
IsFreeGroup (Monoid.CoprodI G)
The free product of free groups is itself a free group.
def freeGroupEquivCoprodI E1 #
{ι : Type u_1} → FreeGroup ι ≃* Monoid.CoprodI fun x ↦ FreeGroup Unit
A free group is a free product of copies of the FreeGroup over one generator.
theorem freeGroupEquivCoprodI_symm_apply E0 #
∀ {ι : Type u_1} (a : Monoid.CoprodI fun x ↦ FreeGroup Unit),
freeGroupEquivCoprodI.symm a = (Monoid.CoprodI.lift fun i ↦ FreeGroup.lift fun x ↦ FreeGroup.of i) a
theorem freeGroupEquivCoprodI_apply E0 #
∀ {ι : Type u_1} (a : FreeGroup ι),
freeGroupEquivCoprodI a = (FreeGroup.lift fun i ↦ Monoid.CoprodI.of (FreeGroup.of ())) a
theorem FreeGroup.injective_lift_of_ping_pong E1 #
∀ {ι : Type u_1} [Nontrivial ι] {G : Type u_1} [inst : Group G] (a : ι → G) {α : Type u_4} [inst_1 : MulAction G α]
(X Y : ι → Set α),
(∀ (i : ι), (X i).Nonempty) →
Pairwise (Function.onFun Disjoint X) →
Pairwise (Function.onFun Disjoint Y) →
(∀ (i j : ι), Disjoint (X i) (Y j)) →
(∀ (i : ι), a i • (Y i)ᶜ ⊆ X i) → (∀ (i : ι), a⁻¹ i • (X i)ᶜ ⊆ Y i) → Function.Injective ⇑(FreeGroup.lift a)
The Ping-Pong-Lemma.
Given a group action of G on X so that the generators of the free groups act in specific
ways on disjoint subsets X i and Y i we can prove that lift f is injective, and thus the image
of lift f is isomorphic to the free group.
Often the Ping-Pong-Lemma is stated with regard to group elements that generate the whole group;
we generalize to arbitrary group homomorphisms from the free group to G and do not require the
group to be generated by the elements.