op874_repair_base_graph
abbrev
The twenty-vertex repair block as a simple graph on its own, with its 29 internal edges; the adjacency is stated as an existential over the edge index so that it is computably decidable.
Statement
abbrev op874_repair_base_graph : SimpleGraph (Fin 20)- Source
- step towards op874_repair_chain_data
- Verified
- 26 Nov 2026
- Axioms
- none listed
- Built on 2
- op874_repair_base_rightRight endpoints of the twenty factor edges followed by ten matching edges in the repair gadget.
- op874_repair_base_leftLeft endpoints of the twenty factor edges followed by ten matching edges in the repair gadget.
- Used by 2
- op874_repair_block_incidenceThe number of internal block edges incident with port r.
- op874_repair_block_cut_countThe number of non-matching block edges at port r whose other endpoint has the same matching-cut bit as r.
Lean source view module on GitHub
/-- The twenty-vertex repair block as a simple graph, with a computably decidable adjacency. -/ abbrev op874_repair_base_graph : SimpleGraph (Fin 20) where Adj u v := ∃ j : Fin 29, s(op874_repair_base_left j.castSucc, op874_repair_base_right j.castSucc) = s(u, v) symm := ⟨fun u v h => h.imp fun j hj => hj.trans Sym2.eq_swap⟩ loopless := ⟨fun u h => by obtain ⟨j, hj⟩ := h have key : ∀ j : Fin 29, ¬ (s(op874_repair_base_left j.castSucc, op874_repair_base_right j.castSucc)).IsDiag := by intro j; revert j; decide exact key j (hj.symm ▸ Sym2.mk_isDiag_iff.mpr rfl)⟩