AFTD Auto-Formalizing Theoretical Domains

op874IsMEdge

def

The eight matching edges of one block, listed as ordered pairs with the block index fixed; inter-block joins use i+1.

Statement

def op874IsMEdge {k : ℕ} [NeZero k] (u v : op874V k) : Prop
Source
step towards op874_mixed_matching_overlap_gadget_chain
Verified
26 Nov 2026
Axioms
none listed
Built on 3
  • op874AThe bit-0 (A) vertex at position j of block i.
  • op874BThe bit-1 (B) vertex at position j of block i.
  • op874VThe vertex set of the gadget chain: (block index, bit, local position).
Used by 2
  • op874IsEdgeThe edge relation of the chain, as ordered pairs: A 8-cycle, the two B 4-cycles, and the eight matching edge types.
  • op874MThe perfect matching of the chain, as the unordered-pair image of the matching-edge relation.

Lean source view module on GitHub

/-- Ordered-pair description of the eight matching edges of one block: A2-A7, A6-A0, B1-B3, B5-B7 (intra), A1-B6, A5-B2 (cross-bit), A4-B0', A3-B4' (inter-block joins). -/
def op874IsMEdge {k : ℕ} [NeZero k] (u v : op874V k) : Prop := 
  ∃ i : Fin k,
    (u = op874A i 2 ∧ v = op874A i 7) ∨
    (u = op874A i 6 ∧ v = op874A i 0) ∨
    (u = op874B i 1 ∧ v = op874B i 3) ∨
    (u = op874B i 5 ∧ v = op874B i 7) ∨
    (u = op874A i 1 ∧ v = op874B i 6) ∨
    (u = op874A i 5 ∧ v = op874B i 2) ∨
    (u = op874A i 4 ∧ v = op874B (i+1) 0) ∨
    (u = op874A i 3 ∧ v = op874B (i+1) 4)
See it in the graphDiscuss this resultChallenge it