op874_no_auxiliary_two_cycle
In a strongly connected no-even auxiliary graph, two distinct vertices cannot be joined by arcs in both directions.
Statement
theorem op874_no_auxiliary_two_cycle {X : Type*} [Fintype X] [DecidableEq X] (p q : Equiv.Perm X) (hstrong : ∀ u v, ∃ w : List Bool, w.foldl (fun x bit => if bit then p x else q x) u = v) (hno : ∀ b : X → Bool, ∃ x, b x = b (p x) ∧ b x = b (q x)) (r x : X) (hne : r ≠ x) (hrx : p r = x ∨ q r = x) (hxr : p x = r ∨ q x = r) : False
- Source
- The no-even-cycle lemma excludes directed two-cycles.
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- op874_no_even_auxiliary_cycleThe no-global-mixed-bits hypothesis excludes every nonempty simple even directed cycle.
The proof, explained
The theorem asserts that two distinct vertices in a strongly connected no-even auxiliary graph cannot be connected by arcs in both directions. The proof recognizes such a mutual pair as a directed 2-cycle and derives a contradiction by applying the general theorem that no even-length cycle can exist in such a graph (`op874_no_even_auxiliary_cycle`). The injectivity of the 2-cycle follows from the distinctness of the two vertices, and the cycle conditions match the given forward and backward arc hypotheses.
A contradiction follows if the two-element sequence (r, x) forms an even-length simple cycle in the auxiliary graph.
We invoke `op874_no_even_auxiliary_cycle` with cycle length n = 2, which is even (verified by computation). This general theorem states that no even directed cycle can exist in a strongly connected graph satisfying the no-monochromatic-component condition. Applying it to the candidate cycle c = (r, x) leaves two subgoals: proving that c is an injective sequence, and proving that every transition along c is an arc given by p or q.
uses
op874_no_even_auxiliary_cycleapply op874_no_even_auxiliary_cycle p q hstrong hno 2 (by decide) (![r,x] : Fin 2 → X)
The sequence (r, x) is injective.
Let i, j ∈ {0, 1} be indices such that c(i) = c(j). Checking all four possible pairs: if i = j, the indices are identical. If i ≠ j, the assumption c(i) = c(j) implies r = x, which directly contradicts the hypothesis r ≠ x.
· intro i j hij fin_cases i <;> fin_cases j <;> simp_all
Every transition in the sequence (r, x) is an arc of the auxiliary graph.
For an index i ∈ {0, 1}, we check whether the transition from c(i) to c(i + 1) (modulo 2) follows an arc. For i = 0, this is the step from c(0) = r to c(1) = x, which holds because p(r) = x or q(r) = x by hypothesis (`hrx`). For i = 1, wrapping around gives the step from c(1) = x to c(0) = r, which holds because p(x) = r or q(x) = r by hypothesis (`hxr`).
· intro i fin_cases i <;> simp_all
op874_no_even_auxiliary_cycle- In a finite, strongly connected auxiliary graph with no monochromatic component, there is no simple directed cycle of even length.
- The evenness of 2 is decided by kernel computation (`decide`). Exhaustive case analysis over `Fin 2` and simplification with the hypotheses are handled by `fin_cases` and `simp_all`.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem op874_no_auxiliary_two_cycle {X : Type*} [Fintype X] [DecidableEq X] (p q : Equiv.Perm X) (hstrong : ∀ u v, ∃ w : List Bool, w.foldl (fun x bit => if bit then p x else q x) u = v) (hno : ∀ b : X → Bool, ∃ x, b x = b (p x) ∧ b x = b (q x)) (r x : X) (hne : r ≠ x) (hrx : p r = x ∨ q r = x) (hxr : p x = r ∨ q x = r) : False := by apply op874_no_even_auxiliary_cycle p q hstrong hno 2 (by decide) (![r,x] : Fin 2 → X) · intro i j hij fin_cases i <;> fin_cases j <;> simp_all · intro i fin_cases i <;> simp_all