AFTD Auto-Formalizing Theoretical Domains

op1525_multipartite_common_card_orientation_counterexample

theoremverified

There are distinct four-entry triple-block profiles related by reversal with the same total numbers of blocks and true vertices and the same mixed-pair score, while singleton-block profiles with three true and one false vertex become self-reversing after one switch.

Statement

theorem op1525_multipartite_common_card_orientation_counterexample :
    ∃ (p q : Fin 4 → ℕ) (s c : Fin 2 → ℕ),
      p ≠ q ∧
      (∀ j : Fin 4, p j = q j.rev) ∧
      (∑ j : Fin 4, p j) = 4 ∧ (∑ j : Fin 4, q j) = 4 ∧
      (∑ j : Fin 4, j.val * p j) = 6 ∧
      (∑ j : Fin 4, j.val * q j) = 6 ∧
      (∑ j : Fin 4, j.val * (3 - j.val) * p j) = 6 ∧
      (∑ j : Fin 4, j.val * (3 - j.val) * q j) = 6 ∧
      s 0 = 1 ∧ s 1 = 3 ∧
      c 0 = 2 ∧ c 1 = 2 ∧
      (∀ j : Fin 2, c j = c j.rev) ∧
      s ≠ (fun j => s j.rev)
Source
The 16-vertex counterexample to choosing an arbitrary common card in the multipartite route for OP-1525.
Verified
17 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The counterexample is established by providing explicit witness vectors for the block profiles: $p = [0, 3, 0, 1]$ and $q = [1, 0, 3, 0]$ on four entries, together with $s = [1, 3]$ and $c = [2, 2]$ on two entries. Since all conditions involve finite sums and finite domain checks over natural numbers, the proof is completed by direct computational evaluation.

  1. The existential quantification is witnessed by the concrete vectors $p = [0, 3, 0, 1]$, $q = [1, 0, 3, 0]$, $s = [1, 3]$, and $c = [2, 2]$.

    We provide explicit candidate vectors for the four functions $p, q : \mathrm{Fin}\;4 \to \mathbb{N}$ and $s, c : \mathrm{Fin}\;2 \to \mathbb{N}$, leaving a single goal consisting of the conjunction of all specified equalities and inequalities evaluated at these witnesses.

    line 14

      refine ⟨![0, 3, 0, 1], ![1, 0, 3, 0], ![1, 3], ![2, 2], ?_⟩
  2. All required identities and inequalities hold for the chosen profiles. automation

    Because the domain sizes are finite ($\mathrm{Fin}\;4$ and $\mathrm{Fin}\;2$) and all conditions are equalities or inequalities over natural numbers, the entire proposition is decidable. The `decide` tactic evaluates all conditions directly by computation: verifying $p \ne q$, entrywise reversal $p(j) = q(j.\mathrm{rev})$, the total block sums $\sum p_j = 4 = \sum q_j$, the vertex sums $\sum j p_j = 6 = \sum j q_j$, the mixed-pair scores $\sum j(3-j) p_j = 6 = \sum j(3-j) q_j$, the specified values of $s$ and $c$, the reversal invariance of $c$, and the non-reversal invariance of $s$.

    line 15

      decide

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 op1525_multipartite_common_card_orientation_counterexample :    ∃ (p q : Fin 4 → ℕ) (s c : Fin 2 → ℕ),      p ≠ q ∧      (∀ j : Fin 4, p j = q j.rev) ∧      (∑ j : Fin 4, p j) = 4 ∧ (∑ j : Fin 4, q j) = 4 ∧      (∑ j : Fin 4, j.val * p j) = 6 ∧      (∑ j : Fin 4, j.val * q j) = 6 ∧      (∑ j : Fin 4, j.val * (3 - j.val) * p j) = 6 ∧      (∑ j : Fin 4, j.val * (3 - j.val) * q j) = 6 ∧      s 0 = 1 ∧ s 1 = 3 ∧      c 0 = 2 ∧ c 1 = 2 ∧      (∀ j : Fin 2, c j = c j.rev) ∧      s ≠ (fun j => s j.rev) := by  refine ⟨![0, 3, 0, 1], ![1, 0, 3, 0], ![1, 3], ![2, 2], ?_⟩  decide
See it in the graphDiscuss this resultChallenge it