AFTD Auto-Formalizing Theoretical Domains

op874_pseudoforest_pairrich_no_local_completion

theoremverified

For the explicit eight-vertex graph and missing-color lists there is no injective hidden-color assignment that uses every missing color and satisfies all edge-cover conditions.

Statement

theorem op874_pseudoforest_pairrich_no_local_completion :
    ¬ ∃ h : Fin 8 → Fin 8 → Fin 6,
      (∀ v u w, s(v,u) ∈ op874pf_edges → s(v,w) ∈ op874pf_edges →
        h v u = h v w → u = w) ∧
      (∀ v z, z ∈ op874pf_missing v →
        ∃ w, s(v,w) ∈ op874pf_edges ∧ h v w = z) ∧
      (∀ u v z, s(u,v) ∈ op874pf_edges → z ∈ op874pf_missing u →
        z ∈ op874pf_missing v → h u v = z ∨ h v u = z)
Source
OP-874: local-state transfer of the four-cycle parity obstruction.
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • op874pf_edgesThe twelve edges of the explicit eight-vertex port-obstruction graph.
  • op874pf_missingThe three missing colors assigned to each vertex in the explicit eight-vertex port-obstruction graph.
  • op874_pseudoforest_pairrich_no_port_coverFor the explicit eight-vertex edge and missing-color data, there is no assignment of a distinct port to each missing color at each vertex…

The proof, explained

The proof is by contradiction, reducing the non-existence of the hidden-color assignment h to the known non-existence of a port cover (op874_pseudoforest_pairrich_no_port_cover). Given h, we construct a candidate port function p by choosing, for each vertex v and missing color z, a neighbor p(v, z) such that h(v, p(v, z)) = z. The function p is injective on missing colors because the color z is recovered as h(v, p(v, z)), and it satisfies the edge-cover property because the edge-cover condition on h combined with neighbor-injectivity of h forces either p(u, z) = v or p(v, z) = u.

  1. Assume for contradiction that there exists a hidden-color assignment h satisfying neighbor injectivity, totality on missing colors, and the edge-cover condition.

    We assume classical logic and suppose there exists a function h : Fin 8 → Fin 8 → Fin 6 such that: for each vertex v, h(v, ·) is injective on neighbors of v (hinj); every color z missing at v appears on some incident edge (htotal); and for every edge {u, v} and color z missing at both endpoints, either h(u, v) = z or h(v, u) = z (hcover). We aim to derive a contradiction.

    lines 9–10

      classical
      rintro ⟨h, hinj, htotal, hcover⟩
  2. Define a port function p : Fin 8 → Fin 6 → Fin 8 that maps each vertex v and missing color z to an incident neighbor w with h(v, w) = z.

    For each vertex v and color z ∈ missing(v), the totality hypothesis htotal guarantees the existence of a neighbor w with h(v, w) = z. We use Classical.choose to select such a neighbor as p(v, z) (and assign 0 if z is not missing). Lemma hp establishes that {v, p(v, z)} is an edge and h(v, p(v, z)) = z, verified by Classical.choose_spec and simplifying the true branch of the conditional with dif_pos.

    lines 11–15

    uses Classical.choose, Classical.choose_spec, dif_pos

      let p (v : Fin 8) (z : Fin 6) : Fin 8 :=
        if hz : z ∈ op874pf_missing v then Classical.choose (htotal v z hz) else 0
      have hp (v : Fin 8) (z : Fin 6) (hz : z ∈ op874pf_missing v) :
          s(v,p v z) ∈ op874pf_edges ∧ h v (p v z) = z := by
        simpa only [p, dif_pos hz] using Classical.choose_spec (htotal v z hz)
  3. It suffices to show that p is injective on missing colors at each vertex and covers all edges sharing a missing color.

    We invoke the known non-existence theorem op874_pseudoforest_pairrich_no_port_cover, which states that no port assignment p can simultaneously satisfy color injectivity and the edge port-cover condition on this graph. Supplying p as a witness reduces the proof to verifying these two properties.

    lines 16–17

    uses op874_pseudoforest_pairrich_no_port_cover

      apply op874_pseudoforest_pairrich_no_port_cover
      refine ⟨p, ?_, ?_⟩
  4. For every vertex v, the assignment p(v, ·) is injective on the missing colors of v.

    Suppose two missing colors z ≠ w at vertex v satisfy p(v, z) = p(v, w). By the defining property hp, we have z = h(v, p(v, z)) and w = h(v, p(v, w)). Substituting p(v, z) = p(v, w) gives z = w, contradicting z ≠ w.

    lines 18–22

      · intro v z w hz hw hzw heq
        have hz' := (hp v z hz).2
        have hw' := (hp v w hw).2
        rw [heq] at hz'
        exact hzw (hz'.symm.trans hw')
  5. For every edge {u, v} and color z missing at both endpoints, either p(u, z) = v or p(v, z) = u.

    By the edge-cover hypothesis hcover on h, either h(u, v) = z or h(v, u) = z. If h(u, v) = z, then h(u, p(u, z)) = z = h(u, v), so injectivity of h(u, ·) on neighbors of u forces p(u, z) = v. If h(v, u) = z, we use Sym2.eq_swap to identify {v, u} as an edge, and injectivity of h(v, ·) similarly forces p(v, z) = u.

    lines 23–29

    uses Sym2.eq_swap

      · intro u v z he hz hv
        rcases hcover u v z he hz hv with hu | hv'
        · left
          exact hinj u (p u z) v (hp u z hz).1 he ((hp u z hz).2.trans hu.symm)
        · right
          have he' : s(v,u) ∈ op874pf_edges := by simpa [Sym2.eq_swap] using he
          exact hinj v (p v z) u (hp v z hv).1 he' ((hp v z hv).2.trans hv'.symm)
Classical.choose
Given an existential statement ∃ x, P x, Classical.choose returns an element x satisfying P.
Classical.choose_spec
The element chosen by Classical.choose h satisfies the predicate P.
dif_pos
A dependent if-then-else evaluates to its first branch when the condition is true.
op874_pseudoforest_pairrich_no_port_cover
For the specified graph and missing-color lists, there is no port function p that is injective on missing colors at each vertex and covers every edge with shared missing colors.
Sym2.eq_swap
An unordered pair {a, b} is identical to {b, a}.

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_pseudoforest_pairrich_no_local_completion :    ¬ ∃ h : Fin 8 → Fin 8 → Fin 6,      (∀ v u w, s(v,u) ∈ op874pf_edges → s(v,w) ∈ op874pf_edges →        h v u = h v w → u = w) ∧      (∀ v z, z ∈ op874pf_missing v →        ∃ w, s(v,w) ∈ op874pf_edges ∧ h v w = z) ∧      (∀ u v z, s(u,v) ∈ op874pf_edges → z ∈ op874pf_missing u →        z ∈ op874pf_missing v → h u v = z ∨ h v u = z) := by  classical  rintro ⟨h, hinj, htotal, hcover⟩  let p (v : Fin 8) (z : Fin 6) : Fin 8 :=    if hz : z ∈ op874pf_missing v then Classical.choose (htotal v z hz) else 0  have hp (v : Fin 8) (z : Fin 6) (hz : z ∈ op874pf_missing v) :      s(v,p v z) ∈ op874pf_edges ∧ h v (p v z) = z := by    simpa only [p, dif_pos hz] using Classical.choose_spec (htotal v z hz)  apply op874_pseudoforest_pairrich_no_port_cover  refine ⟨p, ?_, ?_⟩  · intro v z w hz hw hzw heq    have hz' := (hp v z hz).2    have hw' := (hp v w hw).2    rw [heq] at hz'    exact hzw (hz'.symm.trans hw')  · intro u v z he hz hv    rcases hcover u v z he hz hv with hu | hv'    · left      exact hinj u (p u z) v (hp u z hz).1 he ((hp u z hz).2.trans hu.symm)    · right      have he' : s(v,u) ∈ op874pf_edges := by simpa [Sym2.eq_swap] using he      exact hinj v (p v z) u (hp v z hv).1 he' ((hp v z hv).2.trans hv'.symm)
See it in the graphDiscuss this resultChallenge it