Exact Lean source
Nonadditivity.FreeGroupCut
Download original .lean · View on GitHub · Jump to source
Direct imports
Mathlib.GroupTheory.FreeGroup.ReducedependencyMathlib.Data.List.Chaindependency
Imported by project modules
2 direct reverse imports
Relationships above come from literal import commands. The declarations below link to types and references extracted from Lean’s environment. Source text is complete and unchanged.
Declarations in this module
2 project constants, including generated, internal and private declarations.
2 declarations
Nonadditivity.FreeGroupCut.getLast?_mul_of_length_le_oneNonadditivity.FreeGroupCut.getLast?_ne_inv_of_reduced_append
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Mathlib.GroupTheory.FreeGroup.Reduce7import Mathlib.Data.List.Chain89/-! # The identity is a cut vertex in a free Cayley graph -/1011namespace Nonadditivity.FreeGroupCut1213variable {α : Type*} [DecidableEq α]1415/-- A single left step cannot change the final letter without passing through16the identity. This is the elementary tree-separation fact used in last-return17factorizations. -/18theorem getLast?_mul_of_length_le_one (a u : FreeGroup α)19(ha : a.toWord.length ≤ 1) (hu : u ≠ 1) (hau : a * u ≠ 1) :20(a * u).toWord.getLast? = u.toWord.getLast? := by21cases he : a.toWord with22| nil =>23have : a = 1 := FreeGroup.toWord_eq_nil_iff.mp he24simp [this]25| cons s v =>26have hv : v = [] := by simpa [he] using ha27subst v28cases huword : u.toWord with29| nil => exact (hu (FreeGroup.toWord_eq_nil_iff.mp huword)).elim30| cons t v =>31have hred : FreeGroup.reduce (t :: v) = t :: v := by32simpa [huword] using FreeGroup.reduce_toWord u33rw [FreeGroup.toWord_mul, he, huword, List.singleton_append, FreeGroup.reduce.cons,34hred]35dsimp only36split_ifs with hcancel37· cases v with38| nil =>39exfalso40apply hau41apply FreeGroup.toWord_eq_nil_iff.mp42rw [FreeGroup.toWord_mul, he, huword, List.singleton_append,43FreeGroup.reduce.cons, hred]44simp [hcancel]45| cons v vs => simp46· simp4748/-- The two sides of a reduced concatenation lie in distinct components of49the Cayley graph with the identity removed. -/50theorem getLast?_ne_inv_of_reduced_append (g h : FreeGroup α)51(hh : h ≠ 1) (hred : FreeGroup.IsReduced (g.toWord ++ h.toWord)) :52g.toWord.getLast? ≠ h⁻¹.toWord.getLast? := by53cases hword : h.toWord with54| nil => exact (hh (FreeGroup.toWord_eq_nil_iff.mp hword)).elim55| cons s w =>56have hlast : h⁻¹.toWord.getLast? = some (s.1, !s.2) := by57simp [FreeGroup.toWord_inv, hword, FreeGroup.invRev]58intro heq59have hb := (List.isChain_append.mp hred).2.2 (s.1, !s.2)60(by rw [heq, hlast]; rfl) s (by simp [hword]) rfl61cases s.2 <;> simp at hb6263end Nonadditivity.FreeGroupCut