AFTD Auto-Formalizing Theoretical Domains

op874_prescribed_root_double_cross_refutation

theoremverifiedoriginal

The following universal assertion is false. For every finite type X with decidable equality, every pair of fixed-point-free permutations p and q, and every root r, assume that any element can be reached from any other by a finite sequence of applications of p and q, and assume that every Boolean assignment b has some x with b(x)=b(p(x))=b(q(x)). Then there is a Boolean assignment b such that for every y other than r, at least one of the inequalities b(y)≠b(p(y)) or b(y)≠b(q(y)) holds, and either both b(p(r)) differs from b(p(p(r))) and b(p(r)) differs from b(q(p(r))), or both b(q(r)) differs from b(p(q(r))) and b(q(r)) differs from b(q(q(r))). The negation is witnessed by a 14-element type.

Statement

theorem op874_prescribed_root_double_cross_refutation : ¬ (∀ {X : Type} [Fintype X] [DecidableEq X] (p q : Equiv.Perm X) (hfixed : ∀ x, p x ≠ x ∧ q x ≠ x) (hstrong : ∀ u v, ∃ w : List Bool, w.foldl (fun x flag => if flag 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, ∃ b : X → Bool, (∀ x, x ≠ r → b x ≠ b (p x) ∨ b x ≠ b (q x)) ∧ ((b (p r) ≠ b (p (p r)) ∧ b (p r) ≠ b (q (p r))) ∨ (b (q r) ≠ b (p (q r)) ∧ b (q r) ≠ b (q (q r)))))
Related work
Refutes the prescribed-root double-cross conjecture using the explicit fourteen-vertex counterexample in experiments 36471 and 36475.
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1

Read back from the Lean

The theorem asserts the negation of the following statement: For every type X with [Fintype X] and [DecidableEq X], and for all permutations p, q : Equiv.Perm X, assuming: 1. (hfixed) for all x : X, p x ≠ x and q x ≠ x (both p and q are fixed-point free); 2. (hstrong) for all u, v : X, there exists a list of booleans w such that folding over w starting from u—applying p on true and q on false—results in v (i.e., the action generated by p and q is transitive); 3. (hno) for every 2-coloring b : X → Bool, there exists x : X such that b x = b (p x) and b x = b (q x) (every 2-coloring has a monochromatic triad {x, p x, q x}); then for every r : X, there exists a 2-coloring b : X → Bool such that: - for all x : X with x ≠ r, b x ≠ b (p x) ∨ b x ≠ b (q x) (so r is the only candidate for a monochromatic triad {x, p x, q x}); and - at least one of the following holds: - b (p r) ≠ b (p (p r)) ∧ b (p r) ≠ b (q (p r)) - b (q r) ≠ b (p (q r)) ∧ b (q r) ≠ b (q (q r)).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The universal claim is refuted by constructing an explicit counterexample on the 14-element set Fin 14 with two fixed-point-free permutations P and Q and choosing root r = 0. The permutations incorporate two symmetric five-element gadgets ('lobes') attached to vertices 1 and 2, which force any assignment that is non-monochromatic away from 0 to satisfy b(1) = b(4) and b(2) = b(9) via the lemma `op874_bool_lobe_forces_equal`. These forced equalities destroy both branches of the required 'double cross' condition at root 0, while an exhaustive truth-table check on the remaining vertices proves that every Boolean assignment has at least one monochromatic triple. Strong transitivity of P and Q is verified by supplying explicit paths to and from root 0 for every element.

  1. Assume for contradiction that the universal claim holds, and define the candidate permutations P and Q on Fin 14.

    We introduce the hypothesis `claim` asserting the universal statement. We then define two concrete transformations P and Q on Fin 14 using explicit 14-element arrays.

    lines 2–5

      intro claim
      let P (i : Fin 14) : Fin 14 := ![2,4,3,0,7,6,8,1,5,12,11,13,10,9] i
      let Q (i : Fin 14) : Fin 14 := ![1,3,9,0,7,6,8,5,4,12,11,13,2,10] i
      
  2. Any Boolean assignment b that avoids monochromatic triples at all vertices other than 0 must satisfy b(1) = b(4).

    The vertices 4, 5, 6, 7, 8 form a five-element gadget (the first lobe) connected to vertices 1 and 4. The non-monochromatic condition at each of these vertices supplies the exact hypotheses needed by `op874_bool_lobe_forces_equal`, which forces b(1) = b(4).

    lines 6–14

    uses op874_bool_lobe_forces_equal

      have first_lobe (b : Fin 14 → Bool)
          (h : ∀ i : Fin 14, i ≠ 0 → b i ≠ b (P i) ∨ b i ≠ b (Q i)) : b 1 = b 4 := by
        apply op874_bool_lobe_forces_equal (b 1) (b 4) (b 5) (b 6) (b 7) (b 8)
        · simpa [P,Q] using h 4 (by decide)
        · simpa [P,Q] using h 5 (by decide)
        · simpa [P,Q] using h 6 (by decide)
        · simpa [P,Q] using h 7 (by decide)
        · simpa [P,Q] using (h 8 (by decide)).symm
      
  3. Any Boolean assignment b that avoids monochromatic triples at all vertices other than 0 must satisfy b(2) = b(9).

    Symmetrically, the vertices 9, 10, 11, 12, 13 form a second five-element gadget (the second lobe) connected to vertices 2 and 9. Applying `op874_bool_lobe_forces_equal` with the conditions at these vertices forces b(2) = b(9).

    lines 15–23

    uses op874_bool_lobe_forces_equal

      have second_lobe (b : Fin 14 → Bool)
          (h : ∀ i : Fin 14, i ≠ 0 → b i ≠ b (P i) ∨ b i ≠ b (Q i)) : b 2 = b 9 := by
        apply op874_bool_lobe_forces_equal (b 2) (b 9) (b 10) (b 11) (b 12) (b 13)
        · simpa [P,Q] using h 9 (by decide)
        · simpa [P,Q] using h 10 (by decide)
        · simpa [P,Q] using h 11 (by decide)
        · simpa [P,Q] using (h 12 (by decide)).symm
        · simpa [P,Q] using h 13 (by decide)
      
  4. No Boolean assignment b that is non-monochromatic outside 0 can satisfy the double-cross condition at root 0.

    Evaluating P and Q at root 0 simplifies the double-cross requirement to (b(2) ≠ b(3) ∧ b(2) ≠ b(9)) ∨ (b(1) ≠ b(4) ∧ b(1) ≠ b(3)). Since the lobe lemmas establish b(1) = b(4) and b(2) = b(9), both conjuncts b(2) ≠ b(9) and b(1) ≠ b(4) are false, so propositional reasoning disproves the double cross.

    lines 24–32

    uses Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one

      have no_double_cross (b : Fin 14 → Bool)
          (h : ∀ i : Fin 14, i ≠ 0 → b i ≠ b (P i) ∨ b i ≠ b (Q i)) :
          ¬ ((b (P 0) ≠ b (P (P 0)) ∧ b (P 0) ≠ b (Q (P 0))) ∨
             (b (Q 0) ≠ b (P (Q 0)) ∧ b (Q 0) ≠ b (Q (Q 0)))) := by
        have h1 := first_lobe b h
        have h2 := second_lobe b h
        simp only [P,Q, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one]
        tauto
      
  5. Every Boolean assignment b on Fin 14 must have at least one monochromatic vertex x such that b(x) = b(P(x)) = b(Q(x)).

    Assuming no such vertex exists, the non-monochromatic condition holds everywhere, so both lobe lemmas apply and force b(1) = b(4) and b(2) = b(9). Combining these with the conditions at vertices 0, 1, 2, and 3 leaves only four variables b(0), b(1), b(2), b(3); an exhaustive 16-case truth-table analysis shows that every assignment leads to a contradiction.

    lines 33–50

    uses Or.inr, Or.inl, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one

      have no_even_witness (b : Fin 14 → Bool) : ∃ i, b i = b (P i) ∧ b i = b (Q i) := by
        by_contra hn
        push_neg at hn
        have h (i : Fin 14) (_ : i ≠ 0) : b i ≠ b (P i) ∨ b i ≠ b (Q i) := by
          by_cases hi : b i = b (P i)
          · exact Or.inr (hn i hi)
          · exact Or.inl hi
        have h1 := first_lobe b h
        have h2 := second_lobe b h
        have j1 := h 1 (by decide)
        have j2 := h 2 (by decide)
        have j3 := h 3 (by decide)
        have j0 := hn 0
        simp only [P,Q, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one] at j0 j1 j2 j3
        cases e0 : b 0 <;> cases e1 : b 1 <;> cases e2 : b 2 <;> cases e3 : b 3 <;> simp_all
      
      
      
  6. P and Q define fixed-point-free permutations PE and QE on Fin 14.

    The maps P and Q are verified to be bijective on Fin 14 by computation, producing permutations via `Equiv.ofBijective`. A decision procedure confirms that neither permutation fixes any of the 14 elements.

    lines 51–55

    uses Equiv.ofBijective

      let PE : Equiv.Perm (Fin 14) := Equiv.ofBijective P (by decide)
      let QE : Equiv.Perm (Fin 14) := Equiv.ofBijective Q (by decide)
      
      have p_nofix : ∀ i, PE i ≠ i ∧ QE i ≠ i := by decide
      
  7. Every vertex in Fin 14 can reach 0 via a sequence of applications of PE and QE.

    By case analysis on all 14 elements of Fin 14, an explicit sequence of Boolean choices (where true applies PE and false applies QE) is provided for each vertex, and computation verifies that it evaluates to 0.

    lines 56–72

      have to_zero (v : Fin 14) : ∃ w : List Bool, w.foldl (fun x bit => if bit then PE x else QE x) v = 0 := by
        fin_cases v
        · exact ⟨[], by decide⟩
        · exact ⟨[false, true], by decide⟩
        · exact ⟨[true, true], by decide⟩
        · exact ⟨[true], by decide⟩
        · exact ⟨[true, true, false, true], by decide⟩
        · exact ⟨[true, true, false, true, true, false, true], by decide⟩
        · exact ⟨[true, false, true, true, false, true], by decide⟩
        · exact ⟨[true, false, true], by decide⟩
        · exact ⟨[false, true, true, false, true], by decide⟩
        · exact ⟨[true, false, true, true], by decide⟩
        · exact ⟨[true, true, true, true, false, true, true], by decide⟩
        · exact ⟨[true, true, true, false, true, true], by decide⟩
        · exact ⟨[false, true, true], by decide⟩
        · exact ⟨[true, true, false, true, true], by decide⟩
      
  8. The root 0 can reach every vertex in Fin 14 via a sequence of applications of PE and QE.

    Similarly, for each target vertex in Fin 14, an explicit sequence of operations starting from 0 is provided and verified by computation to reach that target.

    lines 73–89

      have from_zero (v : Fin 14) : ∃ w : List Bool, w.foldl (fun x bit => if bit then PE x else QE x) 0 = v := by
        fin_cases v
        · exact ⟨[], by decide⟩
        · exact ⟨[false], by decide⟩
        · exact ⟨[true], by decide⟩
        · exact ⟨[true, true], by decide⟩
        · exact ⟨[false, true], by decide⟩
        · exact ⟨[false, true, true, false], by decide⟩
        · exact ⟨[false, true, true, false, true], by decide⟩
        · exact ⟨[false, true, true], by decide⟩
        · exact ⟨[false, true, true, false, true, true], by decide⟩
        · exact ⟨[true, false], by decide⟩
        · exact ⟨[true, false, true, true], by decide⟩
        · exact ⟨[true, false, true, true, true], by decide⟩
        · exact ⟨[true, false, true], by decide⟩
        · exact ⟨[true, false, true, true, true, true], by decide⟩
      
  9. The permutations PE and QE act strongly transitively: any vertex u can reach any vertex v.

    For any u and v, concatenating the path from u to 0 with the path from 0 to v produces a path from u to v; `List.foldl_append` verifies that list folding respects concatenation.

    lines 90–96

    uses List.foldl_append

      have strong : ∀ u v, ∃ w : List Bool, w.foldl (fun x bit => if bit then PE x else QE x) u = v := by
        intro u v
        obtain ⟨wu, hu⟩ := to_zero u
        obtain ⟨wv, hv⟩ := from_zero v
        refine ⟨wu ++ wv, ?_⟩
        simp only [List.foldl_append, hu, hv]
      
  10. There exists a 14-element counterexample system satisfying all hypotheses of the conjecture but failing the conclusion at root 0.

    We instantiate the existential claim with PE and QE. They are fixed-point-free, strongly transitive, every Boolean coloring contains a monochromatic triple, yet at root 0 no coloring can satisfy both the non-monochromatic condition outside 0 and the double cross at 0.

    lines 97–108

      have full_counterexample : ∃ p q : Equiv.Perm (Fin 14),
          (∀ i, p i ≠ i ∧ q i ≠ i) ∧
          (∀ u v, ∃ w : List Bool, w.foldl (fun x bit => if bit then p x else q x) u = v) ∧
          (∀ b : Fin 14 → Bool, ∃ i, b i = b (p i) ∧ b i = b (q i)) ∧
          ¬ ∃ b : Fin 14 → Bool, (∀ i, i ≠ 0 → b i ≠ b (p i) ∨ b i ≠ b (q i)) ∧
            ((b (p 0) ≠ b (p (p 0)) ∧ b (p 0) ≠ b (q (p 0))) ∨
             (b (q 0) ≠ b (p (q 0)) ∧ b (q 0) ≠ b (q (q 0)))) := by
        refine ⟨PE, QE, p_nofix, strong, ?_, ?_⟩
        · intro b
          exact no_even_witness b
        · rintro ⟨b, hb, hd⟩
          exact no_double_cross b hb hd
  11. The universal conjecture is refuted.

    Unpacking the counterexample and instantiating the assumed universal claim with PE, QE, and root r = 0 yields the existence of an assignment that satisfies both conditions at 0, which directly contradicts the counterexample's established property and derives False.

    lines 109–110

      obtain ⟨p, q, hpq, hs, hn, hbad⟩ := full_counterexample
      exact hbad (claim p q hpq hs hn 0)
op874_bool_lobe_forces_equal
For any six Boolean values x, a, b, c, d, e, if a ≠ d, b ≠ c, c ≠ e, and d differs from at least one of x or b, and e differs from at least one of a or b, then x must equal a.
Matrix.cons_val_zero
Evaluating a vector formed by prepending an element x to a vector u at index 0 yields x.
Matrix.cons_val_one
Evaluating a vector formed by prepending an element x to a vector u at index 1 yields the first element u(0) of u.
Matrix.cons_val_fin_one
Evaluating a vector of length 1 at its unique index yields its single element.
Or.inr
Proves a disjunction a ∨ b from a proof of the right disjunct b.
Or.inl
Proves a disjunction a ∨ b from a proof of the left disjunct a.
Equiv.ofBijective
A bijective function between two types produces an equivalence (permutation) between them.
List.foldl_append
Left-folding an operation over the concatenation of two lists l ++ l' equals left-folding over l' starting from the result of folding over l.

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

theorem op874_prescribed_root_double_cross_refutation : ¬ (∀ {X : Type} [Fintype X] [DecidableEq X] (p q : Equiv.Perm X) (hfixed : ∀ x, p x ≠ x ∧ q x ≠ x) (hstrong : ∀ u v, ∃ w : List Bool, w.foldl (fun x flag => if flag 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, ∃ b : X → Bool, (∀ x, x ≠ r → b x ≠ b (p x) ∨ b x ≠ b (q x)) ∧ ((b (p r) ≠ b (p (p r)) ∧ b (p r) ≠ b (q (p r))) ∨ (b (q r) ≠ b (p (q r)) ∧ b (q r) ≠ b (q (q r))))) := by  intro claim  let P (i : Fin 14) : Fin 14 := ![2,4,3,0,7,6,8,1,5,12,11,13,10,9] i  let Q (i : Fin 14) : Fin 14 := ![1,3,9,0,7,6,8,5,4,12,11,13,2,10] i    have first_lobe (b : Fin 14 → Bool)      (h : ∀ i : Fin 14, i ≠ 0 → b i ≠ b (P i) ∨ b i ≠ b (Q i)) : b 1 = b 4 := by    apply op874_bool_lobe_forces_equal (b 1) (b 4) (b 5) (b 6) (b 7) (b 8)    · simpa [P,Q] using h 4 (by decide)    · simpa [P,Q] using h 5 (by decide)    · simpa [P,Q] using h 6 (by decide)    · simpa [P,Q] using h 7 (by decide)    · simpa [P,Q] using (h 8 (by decide)).symm    have second_lobe (b : Fin 14 → Bool)      (h : ∀ i : Fin 14, i ≠ 0 → b i ≠ b (P i) ∨ b i ≠ b (Q i)) : b 2 = b 9 := by    apply op874_bool_lobe_forces_equal (b 2) (b 9) (b 10) (b 11) (b 12) (b 13)    · simpa [P,Q] using h 9 (by decide)    · simpa [P,Q] using h 10 (by decide)    · simpa [P,Q] using h 11 (by decide)    · simpa [P,Q] using (h 12 (by decide)).symm    · simpa [P,Q] using h 13 (by decide)    have no_double_cross (b : Fin 14 → Bool)      (h : ∀ i : Fin 14, i ≠ 0 → b i ≠ b (P i) ∨ b i ≠ b (Q i)) :      ¬ ((b (P 0) ≠ b (P (P 0)) ∧ b (P 0) ≠ b (Q (P 0))) ∨         (b (Q 0) ≠ b (P (Q 0)) ∧ b (Q 0) ≠ b (Q (Q 0)))) := by    have h1 := first_lobe b h    have h2 := second_lobe b h    simp only [P,Q, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one]    tauto    have no_even_witness (b : Fin 14 → Bool) : ∃ i, b i = b (P i) ∧ b i = b (Q i) := by    by_contra hn    push_neg at hn    have h (i : Fin 14) (_ : i ≠ 0) : b i ≠ b (P i) ∨ b i ≠ b (Q i) := by      by_cases hi : b i = b (P i)      · exact Or.inr (hn i hi)      · exact Or.inl hi    have h1 := first_lobe b h    have h2 := second_lobe b h    have j1 := h 1 (by decide)    have j2 := h 2 (by decide)    have j3 := h 3 (by decide)    have j0 := hn 0    simp only [P,Q, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one] at j0 j1 j2 j3    cases e0 : b 0 <;> cases e1 : b 1 <;> cases e2 : b 2 <;> cases e3 : b 3 <;> simp_all        let PE : Equiv.Perm (Fin 14) := Equiv.ofBijective P (by decide)  let QE : Equiv.Perm (Fin 14) := Equiv.ofBijective Q (by decide)    have p_nofix : ∀ i, PE i ≠ i ∧ QE i ≠ i := by decide    have to_zero (v : Fin 14) : ∃ w : List Bool, w.foldl (fun x bit => if bit then PE x else QE x) v = 0 := by    fin_cases v    · exact ⟨[], by decide⟩    · exact ⟨[false, true], by decide⟩    · exact ⟨[true, true], by decide⟩    · exact ⟨[true], by decide⟩    · exact ⟨[true, true, false, true], by decide⟩    · exact ⟨[true, true, false, true, true, false, true], by decide⟩    · exact ⟨[true, false, true, true, false, true], by decide⟩    · exact ⟨[true, false, true], by decide⟩    · exact ⟨[false, true, true, false, true], by decide⟩    · exact ⟨[true, false, true, true], by decide⟩    · exact ⟨[true, true, true, true, false, true, true], by decide⟩    · exact ⟨[true, true, true, false, true, true], by decide⟩    · exact ⟨[false, true, true], by decide⟩    · exact ⟨[true, true, false, true, true], by decide⟩    have from_zero (v : Fin 14) : ∃ w : List Bool, w.foldl (fun x bit => if bit then PE x else QE x) 0 = v := by    fin_cases v    · exact ⟨[], by decide⟩    · exact ⟨[false], by decide⟩    · exact ⟨[true], by decide⟩    · exact ⟨[true, true], by decide⟩    · exact ⟨[false, true], by decide⟩    · exact ⟨[false, true, true, false], by decide⟩    · exact ⟨[false, true, true, false, true], by decide⟩    · exact ⟨[false, true, true], by decide⟩    · exact ⟨[false, true, true, false, true, true], by decide⟩    · exact ⟨[true, false], by decide⟩    · exact ⟨[true, false, true, true], by decide⟩    · exact ⟨[true, false, true, true, true], by decide⟩    · exact ⟨[true, false, true], by decide⟩    · exact ⟨[true, false, true, true, true, true], by decide⟩    have strong : ∀ u v, ∃ w : List Bool, w.foldl (fun x bit => if bit then PE x else QE x) u = v := by    intro u v    obtain ⟨wu, hu⟩ := to_zero u    obtain ⟨wv, hv⟩ := from_zero v    refine ⟨wu ++ wv, ?_⟩    simp only [List.foldl_append, hu, hv]    have full_counterexample : ∃ p q : Equiv.Perm (Fin 14),      (∀ i, p i ≠ i ∧ q i ≠ i) ∧      (∀ u v, ∃ w : List Bool, w.foldl (fun x bit => if bit then p x else q x) u = v) ∧      (∀ b : Fin 14 → Bool, ∃ i, b i = b (p i) ∧ b i = b (q i)) ∧      ¬ ∃ b : Fin 14 → Bool, (∀ i, i ≠ 0 → b i ≠ b (p i) ∨ b i ≠ b (q i)) ∧        ((b (p 0) ≠ b (p (p 0)) ∧ b (p 0) ≠ b (q (p 0))) ∨         (b (q 0) ≠ b (p (q 0)) ∧ b (q 0) ≠ b (q (q 0)))) := by    refine ⟨PE, QE, p_nofix, strong, ?_, ?_⟩    · intro b      exact no_even_witness b    · rintro ⟨b, hb, hd⟩      exact no_double_cross b hb hd  obtain ⟨p, q, hpq, hs, hn, hbad⟩ := full_counterexample  exact hbad (claim p q hpq hs hn 0)
See it in the graphDiscuss this resultChallenge it