AFTD Auto-Formalizing Theoretical Domains

op874_two_four_forest_fixed_external_no_completion

theoremverified

For the displayed 16-vertex two-versus-four external coloring, no hidden local states define a strong six-coloring of the truncation. The accompanying finite data node certifies the graph, eligible matching cut, forest missing graphs and local pair bound.

Statement

theorem op874_two_four_forest_fixed_external_no_completion :
    let L : Fin 24 → Fin 16 := ![0,0,0,1,1,2,2,3,3,4,4,5,6,6,6,7,8,9,10,11,11,12,13,14]
    let R : Fin 24 → Fin 16 := ![1,5,14,2,9,3,12,4,13,5,15,7,7,8,10,8,9,10,11,12,15,13,14,15]
    let ends : Fin 24 → Sym2 (Fin 16) := fun e => s(L e,R e)
    let color : Fin 24 → Fin 6 := ![4,2,1,2,0,4,1,5,0,3,1,0,2,1,3,5,4,5,0,5,4,2,3,5]
    ¬ ∃ h : Fin 16 → Fin 24 → Fin 6,
      (∀ v e f, v ∈ ends e → v ∈ ends f → h v e = h v f → e=f) ∧
      (∀ v e f, v ∈ ends e → v ∈ ends f → h v e ≠ color f) ∧
      truncation_local_states_define_strong_coloring ends (fun _ e => color e) h
Source
OP-874: two-versus-four forest and pair-degree obstruction, experiments 38473 and 38476.
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4
  • truncation_local_states_strong_coloring_iffLemma 2.1 of arXiv:2610.41950. Let G be a loopless cubic multigraph, given by ends : E → Sym2 V (no Fintype or Finite instance on V or E…
  • truncation_local_states_define_strong_coloringThe local states (c, h), with c h : V → E → Ω, define a strong edge-colouring of the truncation multigraph_truncation ends: there is χ :…
  • cFor a group $G$ and an element $s \in G$, the local count $c_G(s)$ is the cardinality of the set of elements $g \in G$ such that…
  • truncation_exposed_pairFor a multigraph given by ends : E → Sym2 V and colour assignments c h : V → E → Ω (c v e is the external colour at the port (v, e), h v e…

The proof, explained

To prove that no local state assignment h defines a strong 6-coloring of the truncation of the given 16-vertex cubic graph, the argument characterizes such strong colorings by the disjointness of exposed missing color pairs at the endpoints of each edge. This disjointness forces each edge-color pair shared between incident vertices to be assigned to at least one endpoint, yielding an ownership function q. However, the combinatorial lemma op874f16_no_binary_owners establishes by systematic propagation along edge-color cycles that no collision-free binary ownership function can exist on this graph, yielding the desired contradiction.

  1. Decidability of whether a color is shared across an edge is established.

    We unfold the definition of op874f16Shared and synthesize the decidability instance from the decidability of membership in finite sets.

    lines 10–11

      unfold op874f16Shared
      infer_instance
  2. If q(e, a) = v and (f, b) is a conflicting shared edge-color pair on an edge f incident to v, then q(f, b) must equal the other endpoint of f.

    Assuming for contradiction that such a choice function q exists, if q(f, b) were equal to v, the collision condition would force e = f ↔ a = b, directly contradicting the assumption that (e, a) and (f, b) conflict. Since q(f, b) must be one of the endpoints of f and cannot be v, it must be the other endpoint w.

    lines 17–35

      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
  3. Assuming q(0, 3) = 0 leads to a contradiction.

    Edge 0 connects vertices 0 and 1, and color 3 is shared across it. Assuming q(0, 3) = 0, applying the propagation step along a 23-step chain forces q(0, 3) = 1, which contradicts 0 ≠ 1.

    lines 36–62

      have hor := hends 0 3 (by decide)
      rcases hor with h0 | h0
      ·
        have h1 : q 0 5 = 1 := step 0 0 3 5 0 1 h0 (by decide) (by decide) (by decide) (by decide)
        have h2 : q 3 5 = 2 := step 0 3 5 5 1 2 h1 (by decide) (by decide) (by decide) (by decide)
        have h3 : q 3 3 = 1 := step 3 3 5 3 2 1 h2 (by decide) (by decide) (by decide) (by decide)
        have h4 : q 4 3 = 9 := step 3 4 3 3 1 9 h3 (by decide) (by decide) (by decide) (by decide)
        have h5 : q 16 3 = 8 := step 4 16 3 3 9 8 h4 (by decide) (by decide) (by decide) (by decide)
        have h6 : q 16 2 = 9 := step 16 16 3 2 8 9 h5 (by decide) (by decide) (by decide) (by decide)
        have h7 : q 17 2 = 10 := step 16 17 2 2 9 10 h6 (by decide) (by decide) (by decide) (by decide)
        have h8 : q 18 2 = 11 := step 17 18 2 2 10 11 h7 (by decide) (by decide) (by decide) (by decide)
        have h9 : q 20 2 = 15 := step 18 20 2 2 11 15 h8 (by decide) (by decide) (by decide) (by decide)
        have h10 : q 23 2 = 14 := step 20 23 2 2 15 14 h9 (by decide) (by decide) (by decide) (by decide)
        have h11 : q 23 0 = 15 := step 23 23 2 0 14 15 h10 (by decide) (by decide) (by decide) (by decide)
        have h12 : q 10 0 = 4 := step 23 10 0 0 15 4 h11 (by decide) (by decide) (by decide) (by decide)
        have h13 : q 10 2 = 15 := step 10 10 0 2 4 15 h12 (by decide) (by decide) (by decide) (by decide)
        have h14 : q 20 2 = 11 := step 10 20 2 2 15 11 h13 (by decide) (by decide) (by decide) (by decide)
        have h15 : q 18 2 = 10 := step 20 18 2 2 11 10 h14 (by decide) (by decide) (by decide) (by decide)
        have h16 : q 17 2 = 9 := step 18 17 2 2 10 9 h15 (by decide) (by decide) (by decide) (by decide)
        have h17 : q 16 2 = 8 := step 17 16 2 2 9 8 h16 (by decide) (by decide) (by decide) (by decide)
        have h18 : q 16 3 = 9 := step 16 16 2 3 8 9 h17 (by decide) (by decide) (by decide) (by decide)
        have h19 : q 4 3 = 1 := step 16 4 3 3 9 1 h18 (by decide) (by decide) (by decide) (by decide)
        have h20 : q 3 3 = 2 := step 4 3 3 3 1 2 h19 (by decide) (by decide) (by decide) (by decide)
        have h21 : q 3 5 = 1 := step 3 3 3 5 2 1 h20 (by decide) (by decide) (by decide) (by decide)
        have h22 : q 0 5 = 0 := step 3 0 5 5 1 0 h21 (by decide) (by decide) (by decide) (by decide)
        have h23 : q 0 3 = 1 := step 0 0 5 3 0 1 h22 (by decide) (by decide) (by decide) (by decide)
        exact (by decide : (0 : Fin 16) ≠ 1) (h0.symm.trans h23)
  4. Assuming q(0, 3) = 1 also leads to a contradiction, concluding that no ownership function q exists.

    Assuming q(0, 3) = 1, applying the propagation step along an 11-step chain forces q(0, 3) = 0, which contradicts 1 ≠ 0. Hence neither choice is possible, proving op874f16_no_binary_owners.

    lines 63–75

      ·
        have h1 : q 3 3 = 2 := step 0 3 3 3 1 2 h0 (by decide) (by decide) (by decide) (by decide)
        have h2 : q 6 3 = 12 := step 3 6 3 3 2 12 h1 (by decide) (by decide) (by decide) (by decide)
        have h3 : q 19 3 = 11 := step 6 19 3 3 12 11 h2 (by decide) (by decide) (by decide) (by decide)
        have h4 : q 20 3 = 15 := step 19 20 3 3 11 15 h3 (by decide) (by decide) (by decide) (by decide)
        have h5 : q 20 2 = 11 := step 20 20 3 2 15 11 h4 (by decide) (by decide) (by decide) (by decide)
        have h6 : q 18 2 = 10 := step 20 18 2 2 11 10 h5 (by decide) (by decide) (by decide) (by decide)
        have h7 : q 17 2 = 9 := step 18 17 2 2 10 9 h6 (by decide) (by decide) (by decide) (by decide)
        have h8 : q 16 2 = 8 := step 17 16 2 2 9 8 h7 (by decide) (by decide) (by decide) (by decide)
        have h9 : q 16 3 = 9 := step 16 16 2 3 8 9 h8 (by decide) (by decide) (by decide) (by decide)
        have h10 : q 4 3 = 1 := step 16 4 3 3 9 1 h9 (by decide) (by decide) (by decide) (by decide)
        have h11 : q 0 3 = 0 := step 4 0 3 3 1 0 h10 (by decide) (by decide) (by decide) (by decide)
        exact (by decide : (1 : Fin 16) ≠ 0) (h0.symm.trans h11)
  5. The 16-vertex graph has no self-loops. automation

    Exhaustive decision procedure verifies that op874f16L e ≠ op874f16R e for all 24 edges.

    line 80

    private lemma op874f16Loopless : ∀ e, ¬ (op874f16Ends e).IsDiag := by decide
  6. The 16-vertex graph is 3-regular (every vertex has degree 3). automation

    We rewrite the cardinality of the incident edge set into a finset cardinality using Set.ncard_eq_toFinset_card' and Set.toFinset_ofPred, then exhaustively check each vertex with fin_cases and decide.

    lines 83–85

    uses Set.ncard_eq_toFinset_card', Set.toFinset_ofPred

      intro v
      rw [Set.ncard_eq_toFinset_card', Set.toFinset_ofPred]
      fin_cases v <;> decide
  7. The edge coloring op874f16Colors is a proper edge-coloring. automation

    Exhaustive verification by decide confirms that distinct edges sharing an endpoint receive distinct colors.

    line 87

        op874f16Colors e = op874f16Colors f → e=f := by decide
  8. The missing colors at each vertex are precisely the colors absent from its incident edges. automation

    Exhaustive verification by decide confirms that op874f16Missing v equals the set of unused colors at vertex v for all vertices.

    line 89

        ∀ e, v ∈ op874f16Ends e → op874f16Colors e ≠ z := by decide
  9. Assume for contradiction that local state assignments h define a strong coloring of the truncation, and record that the edge coloring c is proper.

    We rephrase the goal using the concrete 16-vertex graph op874f16Ends and coloring op874f16Colors, assume for contradiction that valid local states h exist, and invoke op874f16Proper to verify that c is a proper edge-coloring.

    lines 100–108

    uses op874f16Proper

      change ¬ ∃ h : Fin 16 → Fin 24 → Fin 6,
          (∀ v e f, v ∈ op874f16Ends e → v ∈ op874f16Ends f → h v e = h v f → e=f) ∧
          (∀ v e f, v ∈ op874f16Ends e → v ∈ op874f16Ends f → h v e ≠ op874f16Colors f) ∧
          truncation_local_states_define_strong_coloring op874f16Ends (fun _ e => op874f16Colors e) h
      classical
      rintro ⟨h,hh,hch,hs⟩
      let c : Fin 16 → Fin 24 → Fin 6 := fun _ e => op874f16Colors e
      have hc : ∀ v e f, v ∈ op874f16Ends e → v ∈ op874f16Ends f → c v e = c v f → e=f :=
        op874f16Proper
  10. For every edge, the exposed pairs of missing colors at its two endpoints are disjoint.

    Applying truncation_local_states_strong_coloring_iff with the graph properties op874f16Loopless and op874f16Cubic, the assumption that h defines a strong coloring implies that exposed pairs at the endpoints of any edge must be disjoint.

    lines 109–111

    uses op874f16Cubic, op874f16Loopless, truncation_local_states_strong_coloring_iff

      have compat := (truncation_local_states_strong_coloring_iff
        (by decide : Fintype.card (Fin 6)=6) op874f16Ends op874f16Loopless op874f16Cubic
        c h hc hh hch).1 hs
  11. For any edge e and shared color z missing at both endpoints of e, at least one endpoint v satisfies h(v, e) = z.

    If neither endpoint satisfied h(v, e) = z, then z would belong to the exposed pair of missing colors at both endpoints by op874f16MissingIff, contradicting their disjointness via Set.disjoint_left.mp.

    lines 112–120

    uses Set.disjoint_left.mp, op874f16MissingIff

      have cover (e : Fin 24) (z : Fin 6) (hz : op874f16Shared e z) :
          h (op874f16L e) e = z ∨ h (op874f16R e) e = z := by
        by_contra hn
        push_neg at hn
        have huP : z ∈ truncation_exposed_pair op874f16Ends c h (op874f16L e) e :=
          ⟨(op874f16MissingIff _ _).1 hz.1, fun heq => hn.1 heq.symm⟩
        have hvP : z ∈ truncation_exposed_pair op874f16Ends c h (op874f16R e) e :=
          ⟨(op874f16MissingIff _ _).1 hz.2, fun heq => hn.2 heq.symm⟩
        exact Set.disjoint_left.mp (compat e (op874f16L e) (op874f16R e) rfl).2 huP hvP
  12. The ownership function q(e, z) selects an endpoint of e where h takes value z.

    We define q(e, z) to be L(e) if h(L(e), e) = z, and R(e) otherwise. By Or.resolve_left applied to the previous covering result, in the second case h(R(e), e) = z holds.

    lines 121–128

    uses Or.resolve_left

      let q (e : Fin 24) (z : Fin 6) : Fin 16 :=
        if h (op874f16L e) e = z then op874f16L e else op874f16R e
      have qgood (e : Fin 24) (z : Fin 6) (hz : op874f16Shared e z) :
          q e z ∈ op874f16Ends e ∧ h (q e z) e = z := by
        by_cases hl : h (op874f16L e) e = z
        · simp [q,hl,op874f16Ends]
        · have hr := (cover e z hz).resolve_left hl
          simp [q,hl,hr,op874f16Ends]
  13. The function q maps each shared pair (e, z) to one of the endpoints of e.

    We apply op874f16_no_binary_owners, which reduces the contradiction to checking the two properties of q. The first property, that q(e, z) is an endpoint of e, holds immediately by definition of q.

    lines 129–133

    uses op874f16_no_binary_owners

      apply op874f16_no_binary_owners
      refine ⟨q,?_,?_⟩
      · intro e z hz
        dsimp [q]
        split_ifs <;> simp
  14. The function q is collision-free: q(e, a) = q(f, b) if and only if e = f and a = b, completing the proof.

    If q(e, a) = q(f, b) = v, then h(v, e) = a and h(v, f) = b. If e = f, then a = b. Conversely, if a = b, then h(v, e) = h(v, f), so the local injectivity of h at v forces e = f. This satisfies the collision condition and yields False by op874f16_no_binary_owners.

    lines 134–144

      · intro e f a b he hf heq
        have he' := qgood e a he
        have hf' := qgood f b hf
        rw [← heq] at hf'
        constructor
        · intro hef
          subst f
          exact he'.2.symm.trans hf'.2
        · intro hab
          apply hh (q e a) e f he'.1 hf'.1
          exact he'.2.trans (hab.trans hf'.2.symm)
Or.resolve_left
From a disjunction P ∨ Q and the negation ¬P, one deduces Q.
Set.disjoint_left.mp
If two sets are disjoint, any element belonging to the first set cannot belong to the second set.
Set.ncard_eq_toFinset_card'
The cardinality of a finite set s as a natural number equals the cardinality of its underlying finset s.toFinset.
Set.toFinset_ofPred
The finset corresponding to the set of elements satisfying a decidable predicate p is obtained by filtering the universal finset with p.
op874f16Cubic
Every vertex in the 16-vertex graph is incident to exactly 3 edges (the graph is 3-regular).
op874f16Loopless
The 16-vertex graph contains no self-loops (both endpoints of every edge are distinct).
op874f16MissingIff
A color z is in the missing set of vertex v if and only if no edge incident to v is assigned color z.
op874f16Proper
Any two distinct incident edges in the 16-vertex graph have distinct colors under op874f16Colors (it is a proper edge-coloring).
op874f16_no_binary_owners
There is no choice function q selecting one endpoint for each shared edge-color pair such that q(e, a) = q(f, b) if and only if e = f and a = b simultaneously.
truncation_local_states_strong_coloring_iff
For a loopless cubic graph colored with 6 colors, local state assignments h define a strong edge-coloring of the truncation if and only if for each edge, its endpoints share the edge color and have disjoint exposed pairs of missing colors.

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,2,2,3,3,4,4,5,6,6,6,7,8,9,10,11,11,12,13,14]private def op874f16R : Fin 24 → Fin 16 := ![1,5,14,2,9,3,12,4,13,5,15,7,7,8,10,8,9,10,11,12,15,13,14,15]private def op874f16Missing : Fin 16 → Finset (Fin 6) := ![{0,3,5},{1,3,5},{0,3,5},{1,2,3},{0,2,4},{1,4,5},{0,4,5},{1,3,4},{0,2,3},{1,2,3},{1,2,4},{1,2,3},{0,3,4},{1,4,5},{0,2,4},{0,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_instanceprivate theorem op874f16_no_binary_owners :    ¬ ∃ 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)) := by  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 0 3 (by decide)  rcases hor with h0 | h0  ·    have h1 : q 0 5 = 1 := step 0 0 3 5 0 1 h0 (by decide) (by decide) (by decide) (by decide)    have h2 : q 3 5 = 2 := step 0 3 5 5 1 2 h1 (by decide) (by decide) (by decide) (by decide)    have h3 : q 3 3 = 1 := step 3 3 5 3 2 1 h2 (by decide) (by decide) (by decide) (by decide)    have h4 : q 4 3 = 9 := step 3 4 3 3 1 9 h3 (by decide) (by decide) (by decide) (by decide)    have h5 : q 16 3 = 8 := step 4 16 3 3 9 8 h4 (by decide) (by decide) (by decide) (by decide)    have h6 : q 16 2 = 9 := step 16 16 3 2 8 9 h5 (by decide) (by decide) (by decide) (by decide)    have h7 : q 17 2 = 10 := step 16 17 2 2 9 10 h6 (by decide) (by decide) (by decide) (by decide)    have h8 : q 18 2 = 11 := step 17 18 2 2 10 11 h7 (by decide) (by decide) (by decide) (by decide)    have h9 : q 20 2 = 15 := step 18 20 2 2 11 15 h8 (by decide) (by decide) (by decide) (by decide)    have h10 : q 23 2 = 14 := step 20 23 2 2 15 14 h9 (by decide) (by decide) (by decide) (by decide)    have h11 : q 23 0 = 15 := step 23 23 2 0 14 15 h10 (by decide) (by decide) (by decide) (by decide)    have h12 : q 10 0 = 4 := step 23 10 0 0 15 4 h11 (by decide) (by decide) (by decide) (by decide)    have h13 : q 10 2 = 15 := step 10 10 0 2 4 15 h12 (by decide) (by decide) (by decide) (by decide)    have h14 : q 20 2 = 11 := step 10 20 2 2 15 11 h13 (by decide) (by decide) (by decide) (by decide)    have h15 : q 18 2 = 10 := step 20 18 2 2 11 10 h14 (by decide) (by decide) (by decide) (by decide)    have h16 : q 17 2 = 9 := step 18 17 2 2 10 9 h15 (by decide) (by decide) (by decide) (by decide)    have h17 : q 16 2 = 8 := step 17 16 2 2 9 8 h16 (by decide) (by decide) (by decide) (by decide)    have h18 : q 16 3 = 9 := step 16 16 2 3 8 9 h17 (by decide) (by decide) (by decide) (by decide)    have h19 : q 4 3 = 1 := step 16 4 3 3 9 1 h18 (by decide) (by decide) (by decide) (by decide)    have h20 : q 3 3 = 2 := step 4 3 3 3 1 2 h19 (by decide) (by decide) (by decide) (by decide)    have h21 : q 3 5 = 1 := step 3 3 3 5 2 1 h20 (by decide) (by decide) (by decide) (by decide)    have h22 : q 0 5 = 0 := step 3 0 5 5 1 0 h21 (by decide) (by decide) (by decide) (by decide)    have h23 : q 0 3 = 1 := step 0 0 5 3 0 1 h22 (by decide) (by decide) (by decide) (by decide)    exact (by decide : (0 : Fin 16) ≠ 1) (h0.symm.trans h23)  ·    have h1 : q 3 3 = 2 := step 0 3 3 3 1 2 h0 (by decide) (by decide) (by decide) (by decide)    have h2 : q 6 3 = 12 := step 3 6 3 3 2 12 h1 (by decide) (by decide) (by decide) (by decide)    have h3 : q 19 3 = 11 := step 6 19 3 3 12 11 h2 (by decide) (by decide) (by decide) (by decide)    have h4 : q 20 3 = 15 := step 19 20 3 3 11 15 h3 (by decide) (by decide) (by decide) (by decide)    have h5 : q 20 2 = 11 := step 20 20 3 2 15 11 h4 (by decide) (by decide) (by decide) (by decide)    have h6 : q 18 2 = 10 := step 20 18 2 2 11 10 h5 (by decide) (by decide) (by decide) (by decide)    have h7 : q 17 2 = 9 := step 18 17 2 2 10 9 h6 (by decide) (by decide) (by decide) (by decide)    have h8 : q 16 2 = 8 := step 17 16 2 2 9 8 h7 (by decide) (by decide) (by decide) (by decide)    have h9 : q 16 3 = 9 := step 16 16 2 3 8 9 h8 (by decide) (by decide) (by decide) (by decide)    have h10 : q 4 3 = 1 := step 16 4 3 3 9 1 h9 (by decide) (by decide) (by decide) (by decide)    have h11 : q 0 3 = 0 := step 4 0 3 3 1 0 h10 (by decide) (by decide) (by decide) (by decide)    exact (by decide : (1 : Fin 16) ≠ 0) (h0.symm.trans h11)private def op874f16Ends (e : Fin 24) : Sym2 (Fin 16) := s(op874f16L e,op874f16R e)private def op874f16Colors : Fin 24 → Fin 6 :=  ![4,2,1,2,0,4,1,5,0,3,1,0,2,1,3,5,4,5,0,5,4,2,3,5]private lemma op874f16Loopless : ∀ e, ¬ (op874f16Ends e).IsDiag := by decideprivate lemma op874f16Cubic : ∀ v : Fin 16,    Set.ncard {e : Fin 24 | v ∈ op874f16Ends e} = 3 := by  intro v  rw [Set.ncard_eq_toFinset_card', Set.toFinset_ofPred]  fin_cases v <;> decideprivate lemma op874f16Proper : ∀ v e f, v ∈ op874f16Ends e → v ∈ op874f16Ends f →    op874f16Colors e = op874f16Colors f → e=f := by decideprivate lemma op874f16MissingIff : ∀ v z, z ∈ op874f16Missing v ↔    ∀ e, v ∈ op874f16Ends e → op874f16Colors e ≠ z := by decidetheorem op874_two_four_forest_fixed_external_no_completion :    let L : Fin 24 → Fin 16 := ![0,0,0,1,1,2,2,3,3,4,4,5,6,6,6,7,8,9,10,11,11,12,13,14]    let R : Fin 24 → Fin 16 := ![1,5,14,2,9,3,12,4,13,5,15,7,7,8,10,8,9,10,11,12,15,13,14,15]    let ends : Fin 24 → Sym2 (Fin 16) := fun e => s(L e,R e)    let color : Fin 24 → Fin 6 := ![4,2,1,2,0,4,1,5,0,3,1,0,2,1,3,5,4,5,0,5,4,2,3,5]    ¬ ∃ h : Fin 16 → Fin 24 → Fin 6,      (∀ v e f, v ∈ ends e → v ∈ ends f → h v e = h v f → e=f) ∧      (∀ v e f, v ∈ ends e → v ∈ ends f → h v e ≠ color f) ∧      truncation_local_states_define_strong_coloring ends (fun _ e => color e) h := by  change ¬ ∃ h : Fin 16 → Fin 24 → Fin 6,      (∀ v e f, v ∈ op874f16Ends e → v ∈ op874f16Ends f → h v e = h v f → e=f) ∧      (∀ v e f, v ∈ op874f16Ends e → v ∈ op874f16Ends f → h v e ≠ op874f16Colors f) ∧      truncation_local_states_define_strong_coloring op874f16Ends (fun _ e => op874f16Colors e) h  classical  rintro ⟨h,hh,hch,hs⟩  let c : Fin 16 → Fin 24 → Fin 6 := fun _ e => op874f16Colors e  have hc : ∀ v e f, v ∈ op874f16Ends e → v ∈ op874f16Ends f → c v e = c v f → e=f :=    op874f16Proper  have compat := (truncation_local_states_strong_coloring_iff    (by decide : Fintype.card (Fin 6)=6) op874f16Ends op874f16Loopless op874f16Cubic    c h hc hh hch).1 hs  have cover (e : Fin 24) (z : Fin 6) (hz : op874f16Shared e z) :      h (op874f16L e) e = z ∨ h (op874f16R e) e = z := by    by_contra hn    push_neg at hn    have huP : z ∈ truncation_exposed_pair op874f16Ends c h (op874f16L e) e :=      ⟨(op874f16MissingIff _ _).1 hz.1, fun heq => hn.1 heq.symm⟩    have hvP : z ∈ truncation_exposed_pair op874f16Ends c h (op874f16R e) e :=      ⟨(op874f16MissingIff _ _).1 hz.2, fun heq => hn.2 heq.symm⟩    exact Set.disjoint_left.mp (compat e (op874f16L e) (op874f16R e) rfl).2 huP hvP  let q (e : Fin 24) (z : Fin 6) : Fin 16 :=    if h (op874f16L e) e = z then op874f16L e else op874f16R e  have qgood (e : Fin 24) (z : Fin 6) (hz : op874f16Shared e z) :      q e z ∈ op874f16Ends e ∧ h (q e z) e = z := by    by_cases hl : h (op874f16L e) e = z    · simp [q,hl,op874f16Ends]    · have hr := (cover e z hz).resolve_left hl      simp [q,hl,hr,op874f16Ends]  apply op874f16_no_binary_owners  refine ⟨q,?_,?_⟩  · intro e z hz    dsimp [q]    split_ifs <;> simp  · intro e f a b he hf heq    have he' := qgood e a he    have hf' := qgood f b hf    rw [← heq] at hf'    constructor    · intro hef      subst f      exact he'.2.symm.trans hf'.2    · intro hab      apply hh (q e a) e f he'.1 hf'.1      exact he'.2.trans (hab.trans hf'.2.symm)
See it in the graphDiscuss this resultChallenge it