op874_sparse_pair_rich_words_kernel_data
def
The explicit two pentagon factor words with one distance-two equality each, the matching permutation, and the Boolean local-interface checker.
Statement
def op874_sparse_pair_rich_words_kernel_data (b x y : BitVec 5) (z : BitVec 10) : Bool- Source
- Sparse fixed-high matching-factor obstruction, experiments 36281 and 36285.
- Verified
- 20 Nov 2026
- Axioms
- none listed
- Built on 1
- bitThe real embedding of a Boolean value, sending false to 0 and true to 1.
- Used by 2
- op874_sparse_words_exactly_one_square_conflictEach of the two explicit pentagon high-color words has exactly one distance-two color equality.
- op874_sparse_words_proper_and_pair_richThe sparse fixed factor words are proper and matching endpoint color pairs are unequal.
Lean source view module on GitHub
set_option maxRecDepth 8192 set_option maxHeartbeats 0 namespace In1098Sparse def perm (i : Fin 5) : Fin 5 := ![0,4,3,2,1] i def word (s : Bool) (i : Fin 5) : Nat := if s then (![0,1,2,0,3] : Fin 5 → Nat) i else (![0,1,2,3,1] : Fin 5 → Nat) i def bit (mask : BitVec 5) (i : Fin 5) : Bool := mask.getLsbD i.val def idx (s : Bool) (i : Fin 5) : Fin 5 := if s then perm i else i def colorBit (b : BitVec 5) (s : Bool) (i : Fin 5) : Bool := bit b (idx s i) def port (x y : BitVec 5) (s : Bool) (i : Fin 5) : Nat := let j := idx s i if bit x j == s then 0 else if bit y j then 2 else 1 def phase (z : BitVec 10) (s : Bool) (i : Fin 5) : Bool := z.getLsbD (if s then i.val + 5 else i.val) def high (s : Bool) (i : Fin 5) (second : Bool) : BitVec 3 := let first : Fin 5 → BitVec 3 := if s then ![3,4,2,3,3] else ![4,4,2,2,2] let last : Fin 5 → BitVec 3 := if s then ![4,5,5,5,4] else ![5,5,5,3,4] if second then last i else first i def hidden (b x y : BitVec 5) (z : BitVec 10) (s : Bool) (i : Fin 5) (p : Nat) : BitVec 3 := let matching := bit x (idx s i) == s let dir := bit y (idx s i) let selected := if p == 0 then matching else if p == 1 then !matching && !dir else !matching && dir let isSecond := if p == 0 then false else if p == 1 then !matching else true if selected then (if colorBit b s i then 0 else 1) else high s i (isSecond != phase z s i) def disjoint2 (a b c d : BitVec 3) : Bool := a != c && a != d && b != c && b != d def highok (b x y : BitVec 5) (z : BitVec 10) : Bool := let h := hidden b x y z let fact := [false,true].all fun s => (List.finRange 5).all fun i => disjoint2 (h s i 0) (h s i 1) (h s (i+1) 0) (h s (i+1) 2) let matching := (List.finRange 5).all fun i => disjoint2 (h false i 1) (h false i 2) (h true (perm i) 1) (h true (perm i) 2) fact && matching end In1098Sparse def op874_sparse_pair_rich_words_kernel_data (b x y : BitVec 5) (z : BitVec 10) : Bool := In1098Sparse.highok b x y z