AFTD Auto-Formalizing Theoretical Domains

op874_forest_pairdegree_no_binary_owners

theoremverified

The explicit sixteen-vertex missing-color data have no conflict-free binary assignment of each shared-color edge demand to one endpoint.

Statement

theorem op874_forest_pairdegree_no_binary_owners :
    let L : Fin 24 → Fin 16 := ![0,0,0,1,1,1,2,2,2,3,3,3,4,5,5,6,6,7,8,9,10,11,12,14]
    let R : Fin 24 → Fin 16 := ![5,6,7,4,12,15,4,10,13,8,10,11,7,13,14,8,14,9,9,12,11,15,13,15]
    let missing : Fin 16 → Finset (Fin 6) := ![{2,4,5},{0,2,5},{0,1,2},{0,1,4},{0,3,4},{0,2,3},{1,4,5},{0,1,5},{1,2,4},{1,3,5},{0,2,5},{3,4,5},{1,4,5},{1,2,4},{0,1,3},{1,2,3}]
    ¬ ∃ q : Fin 24 → Fin 6 → Fin 16,
      (∀ e z, (z ∈ missing (L e) ∧ z ∈ missing (R e)) → q e z = L e ∨ q e z = R e) ∧
      (∀ e f a b, (a ∈ missing (L e) ∧ a ∈ missing (R e)) →
        (b ∈ missing (L f) ∧ b ∈ missing (R f)) → q e a = q f b → (e=f ↔ a=b))
Source
OP-874: forest and pair-degree fixed-color obstruction, experiments 38456 and 38468.
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The proof proceeds by contradiction. Assuming a conflict-free binary ownership function $q$ exists, an alternating unit-propagation lemma (`step`) shows that whenever an endpoint $v$ is assigned to a demand, any incident demand conflicting with it—either on the same edge with a different color, or on an incident edge with the same color—is forced to select its opposite endpoint. For edge $15$ and color $1$, the assignment must be either vertex $6$ or vertex $8$. In each case, tracing the chain of forced assignments around an alternating cycle of edge-color demands forces the other endpoint, producing an immediate contradiction ($6 = 8$ or $8 = 6$).

  1. The condition that an edge shares a missing color is decidable.

    We establish a `Decidable` instance for `op874f16Shared e z` by unfolding its definition to the conjunction `z ∈ missing (L e) ∧ z ∈ missing (R e)` and inferring decidability from the decidable membership of finite sets.

    lines 8–10

    private instance (e : Fin 24) (z : Fin 6) : Decidable (op874f16Shared e z) := by
      unfold op874f16Shared
      infer_instance
  2. Assume for contradiction that a valid binary ownership function exists.

    We rephrase the goal using the shared-color predicate `op874f16Shared` and assume, for contradiction, the existence of an assignment function $q$ satisfying the endpoint constraint `hends` (each demand $(e, z)$ is assigned to $L(e)$ or $R(e)$) and the collision-free constraint `hcollision` (if $q(e, a) = q(f, b)$, then $e = f \iff a = b$).

    lines 20–23

      change ¬ ∃ q : Fin 24 → Fin 6 → Fin 16,
          (∀ e z, op874f16Shared e z → q e z = op874f16L e ∨ q e z = op874f16R e) ∧
          (∀ e f a b, op874f16Shared e a → op874f16Shared f b → q e a = q f b → (e=f ↔ a=b))
      rintro ⟨q,hends,hcollision⟩
  3. A unit-propagation rule (`step`) holds: if $q(e, a) = v$ and another demand $(f, b)$ on edge $f = \{v, w\}$ conflicts with $(e, a)$, then $q(f, b) = w$.

    Suppose $q(f, b) = v$. Since $(e, a)$ and $(f, b)$ conflict—meaning either they belong to the same edge with different colors ($e = f$ and $a \neq b$) or different edges with the same color ($e \neq f$ and $a = b$)—the collision-free hypothesis `hcollision` implies $e = f \iff a = b$, yielding a contradiction in either case. Thus $q(f, b) \neq v$. Because $q(f, b)$ must be chosen from the endpoints $\{v, w\}$ of edge $f$, it is forced that $q(f, b) = w$.

    lines 24–41

      have step (e f : Fin 24) (a b : Fin 6) (v w : Fin 16)
          (hv : q e a = v) (he : op874f16Shared e a) (hf : op874f16Shared f b)
          (hend : (op874f16L f=v ∧ op874f16R f=w) ∨
            (op874f16L f=w ∧ op874f16R f=v))
          (hconf : (e=f ∧ a≠b) ∨ (e≠f ∧ a=b)) : q f b = w := by
        have hbad : q f b ≠ v := by
          intro hv'
          have h := hcollision e f a b he hf (hv.trans hv'.symm)
          rcases hconf with ⟨hef,hab⟩ | ⟨hef,hab⟩
          · exact hab (h.mp hef)
          · exact hef (h.mpr hab)
        rcases hend with ⟨hl,hr⟩ | ⟨hl,hr⟩
        · rcases hends f b hf with hleft | hright
          · exact (hbad (hleft.trans hl)).elim
          · exact hright.trans hr
        · rcases hends f b hf with hleft | hright
          · exact hleft.trans hl
          · exact (hbad (hright.trans hr)).elim
  4. For edge 15 and color 1, either $q(15, 1) = 6$ or $q(15, 1) = 8$.

    Finite evaluation via `decide` confirms that color $1$ is missing at both endpoints $L(15) = 6$ and $R(15) = 8$. By the endpoint constraint `hends`, $q(15, 1)$ must be assigned to one of these two endpoints. We split the proof into these two cases.

    lines 42–43

      have hor := hends 15 1 (by decide)
      rcases hor with h0 | h0
  5. The case $q(15, 1) = 6$ leads to a contradiction.

    Repeatedly applying the unit-propagation rule `step` propagates forced assignments along a cycle of demands: edge $15$ cannot assign color $4$ to vertex $6$, forcing $q(15, 4) = 8$; this in turn forces $q(9, 4) = 3$, $q(9, 1) = 8$, $q(18, 1) = 9$, $q(19, 1) = 12$, $q(19, 5) = 9$, $q(17, 5) = 7$, $q(17, 1) = 9$, $q(18, 1) = 8$, $q(9, 1) = 3$, $q(9, 4) = 8$, $q(15, 4) = 6$, and finally $q(15, 1) = 8$. Since $6 \neq 8$ in `Fin 16` (verified by `decide`), this contradicts the assumption $q(15, 1) = 6$.

    lines 44–58

      ·
        have h1 : q 15 4 = 8 := step 15 15 1 4 6 8 h0 (by decide) (by decide) (by decide) (by decide)
        have h2 : q 9 4 = 3 := step 15 9 4 4 8 3 h1 (by decide) (by decide) (by decide) (by decide)
        have h3 : q 9 1 = 8 := step 9 9 4 1 3 8 h2 (by decide) (by decide) (by decide) (by decide)
        have h4 : q 18 1 = 9 := step 9 18 1 1 8 9 h3 (by decide) (by decide) (by decide) (by decide)
        have h5 : q 19 1 = 12 := step 18 19 1 1 9 12 h4 (by decide) (by decide) (by decide) (by decide)
        have h6 : q 19 5 = 9 := step 19 19 1 5 12 9 h5 (by decide) (by decide) (by decide) (by decide)
        have h7 : q 17 5 = 7 := step 19 17 5 5 9 7 h6 (by decide) (by decide) (by decide) (by decide)
        have h8 : q 17 1 = 9 := step 17 17 5 1 7 9 h7 (by decide) (by decide) (by decide) (by decide)
        have h9 : q 18 1 = 8 := step 17 18 1 1 9 8 h8 (by decide) (by decide) (by decide) (by decide)
        have h10 : q 9 1 = 3 := step 18 9 1 1 8 3 h9 (by decide) (by decide) (by decide) (by decide)
        have h11 : q 9 4 = 8 := step 9 9 1 4 3 8 h10 (by decide) (by decide) (by decide) (by decide)
        have h12 : q 15 4 = 6 := step 9 15 4 4 8 6 h11 (by decide) (by decide) (by decide) (by decide)
        have h13 : q 15 1 = 8 := step 15 15 4 1 6 8 h12 (by decide) (by decide) (by decide) (by decide)
        exact (by decide : (6 : Fin 16) ≠ 8) (h0.symm.trans h13)
  6. The case $q(15, 1) = 8$ leads to a contradiction.

    Symmetrically, starting from $q(15, 1) = 8$, successive applications of `step` force $q(18, 1) = 9$, $q(17, 1) = 7$, $q(17, 5) = 9$, $q(19, 5) = 12$, $q(19, 1) = 9$, $q(18, 1) = 8$, and finally $q(15, 1) = 6$. Since $8 \neq 6$ in `Fin 16` (verified by `decide`), this contradicts $q(15, 1) = 8$. Having ruled out both alternatives, no such function $q$ can exist.

    lines 59–67

      ·
        have h1 : q 18 1 = 9 := step 15 18 1 1 8 9 h0 (by decide) (by decide) (by decide) (by decide)
        have h2 : q 17 1 = 7 := step 18 17 1 1 9 7 h1 (by decide) (by decide) (by decide) (by decide)
        have h3 : q 17 5 = 9 := step 17 17 1 5 7 9 h2 (by decide) (by decide) (by decide) (by decide)
        have h4 : q 19 5 = 12 := step 17 19 5 5 9 12 h3 (by decide) (by decide) (by decide) (by decide)
        have h5 : q 19 1 = 9 := step 19 19 5 1 12 9 h4 (by decide) (by decide) (by decide) (by decide)
        have h6 : q 18 1 = 8 := step 19 18 1 1 9 8 h5 (by decide) (by decide) (by decide) (by decide)
        have h7 : q 15 1 = 6 := step 18 15 1 1 8 6 h6 (by decide) (by decide) (by decide) (by decide)
        exact (by decide : (8 : Fin 16) ≠ 6) (h0.symm.trans h7)

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

set_option maxRecDepth 8192set_option maxHeartbeats 1000000private def op874f16L : Fin 24 → Fin 16 := ![0,0,0,1,1,1,2,2,2,3,3,3,4,5,5,6,6,7,8,9,10,11,12,14]private def op874f16R : Fin 24 → Fin 16 := ![5,6,7,4,12,15,4,10,13,8,10,11,7,13,14,8,14,9,9,12,11,15,13,15]private def op874f16Missing : Fin 16 → Finset (Fin 6) := ![{2,4,5},{0,2,5},{0,1,2},{0,1,4},{0,3,4},{0,2,3},{1,4,5},{0,1,5},{1,2,4},{1,3,5},{0,2,5},{3,4,5},{1,4,5},{1,2,4},{0,1,3},{1,2,3}]private def op874f16Shared (e : Fin 24) (z : Fin 6) : Prop :=  z ∈ op874f16Missing (op874f16L e) ∧ z ∈ op874f16Missing (op874f16R e)private instance (e : Fin 24) (z : Fin 6) : Decidable (op874f16Shared e z) := by  unfold op874f16Shared  infer_instancetheorem op874_forest_pairdegree_no_binary_owners :    let L : Fin 24 → Fin 16 := ![0,0,0,1,1,1,2,2,2,3,3,3,4,5,5,6,6,7,8,9,10,11,12,14]    let R : Fin 24 → Fin 16 := ![5,6,7,4,12,15,4,10,13,8,10,11,7,13,14,8,14,9,9,12,11,15,13,15]    let missing : Fin 16 → Finset (Fin 6) := ![{2,4,5},{0,2,5},{0,1,2},{0,1,4},{0,3,4},{0,2,3},{1,4,5},{0,1,5},{1,2,4},{1,3,5},{0,2,5},{3,4,5},{1,4,5},{1,2,4},{0,1,3},{1,2,3}]    ¬ ∃ q : Fin 24 → Fin 6 → Fin 16,      (∀ e z, (z ∈ missing (L e) ∧ z ∈ missing (R e)) → q e z = L e ∨ q e z = R e) ∧      (∀ e f a b, (a ∈ missing (L e) ∧ a ∈ missing (R e)) →        (b ∈ missing (L f) ∧ b ∈ missing (R f)) → q e a = q f b → (e=f ↔ a=b)) := by  change ¬ ∃ q : Fin 24 → Fin 6 → Fin 16,      (∀ e z, op874f16Shared e z → q e z = op874f16L e ∨ q e z = op874f16R e) ∧      (∀ e f a b, op874f16Shared e a → op874f16Shared f b → q e a = q f b → (e=f ↔ a=b))  rintro ⟨q,hends,hcollision⟩  have step (e f : Fin 24) (a b : Fin 6) (v w : Fin 16)      (hv : q e a = v) (he : op874f16Shared e a) (hf : op874f16Shared f b)      (hend : (op874f16L f=v ∧ op874f16R f=w) ∨        (op874f16L f=w ∧ op874f16R f=v))      (hconf : (e=f ∧ a≠b) ∨ (e≠f ∧ a=b)) : q f b = w := by    have hbad : q f b ≠ v := by      intro hv'      have h := hcollision e f a b he hf (hv.trans hv'.symm)      rcases hconf with ⟨hef,hab⟩ | ⟨hef,hab⟩      · exact hab (h.mp hef)      · exact hef (h.mpr hab)    rcases hend with ⟨hl,hr⟩ | ⟨hl,hr⟩    · rcases hends f b hf with hleft | hright      · exact (hbad (hleft.trans hl)).elim      · exact hright.trans hr    · rcases hends f b hf with hleft | hright      · exact hleft.trans hl      · exact (hbad (hright.trans hr)).elim  have hor := hends 15 1 (by decide)  rcases hor with h0 | h0  ·    have h1 : q 15 4 = 8 := step 15 15 1 4 6 8 h0 (by decide) (by decide) (by decide) (by decide)    have h2 : q 9 4 = 3 := step 15 9 4 4 8 3 h1 (by decide) (by decide) (by decide) (by decide)    have h3 : q 9 1 = 8 := step 9 9 4 1 3 8 h2 (by decide) (by decide) (by decide) (by decide)    have h4 : q 18 1 = 9 := step 9 18 1 1 8 9 h3 (by decide) (by decide) (by decide) (by decide)    have h5 : q 19 1 = 12 := step 18 19 1 1 9 12 h4 (by decide) (by decide) (by decide) (by decide)    have h6 : q 19 5 = 9 := step 19 19 1 5 12 9 h5 (by decide) (by decide) (by decide) (by decide)    have h7 : q 17 5 = 7 := step 19 17 5 5 9 7 h6 (by decide) (by decide) (by decide) (by decide)    have h8 : q 17 1 = 9 := step 17 17 5 1 7 9 h7 (by decide) (by decide) (by decide) (by decide)    have h9 : q 18 1 = 8 := step 17 18 1 1 9 8 h8 (by decide) (by decide) (by decide) (by decide)    have h10 : q 9 1 = 3 := step 18 9 1 1 8 3 h9 (by decide) (by decide) (by decide) (by decide)    have h11 : q 9 4 = 8 := step 9 9 1 4 3 8 h10 (by decide) (by decide) (by decide) (by decide)    have h12 : q 15 4 = 6 := step 9 15 4 4 8 6 h11 (by decide) (by decide) (by decide) (by decide)    have h13 : q 15 1 = 8 := step 15 15 4 1 6 8 h12 (by decide) (by decide) (by decide) (by decide)    exact (by decide : (6 : Fin 16) ≠ 8) (h0.symm.trans h13)  ·    have h1 : q 18 1 = 9 := step 15 18 1 1 8 9 h0 (by decide) (by decide) (by decide) (by decide)    have h2 : q 17 1 = 7 := step 18 17 1 1 9 7 h1 (by decide) (by decide) (by decide) (by decide)    have h3 : q 17 5 = 9 := step 17 17 1 5 7 9 h2 (by decide) (by decide) (by decide) (by decide)    have h4 : q 19 5 = 12 := step 17 19 5 5 9 12 h3 (by decide) (by decide) (by decide) (by decide)    have h5 : q 19 1 = 9 := step 19 19 5 1 12 9 h4 (by decide) (by decide) (by decide) (by decide)    have h6 : q 18 1 = 8 := step 19 18 1 1 9 8 h5 (by decide) (by decide) (by decide) (by decide)    have h7 : q 15 1 = 6 := step 18 15 1 1 8 6 h6 (by decide) (by decide) (by decide) (by decide)    exact (by decide : (8 : Fin 16) ≠ 6) (h0.symm.trans h7)
See it in the graphDiscuss this resultChallenge it