Occurrence splitting gives valid restricted triples and a bijection of assignments
ProvedNQueensComp.NPC.splitMonotoneTriples_instancesFor every list of positive triples, the occurrence-split clause lists represent a valid restricted instance. Its clauses are distinct, have three distinct entries, and each variable occurs in at most three clauses. Its solutions correspond bijectively to the original exact-one assignments, with repetitions in the source counted by position.
In each link the first three clauses force the pin variable true and its three neighbors false. The other two clauses force both occurrence copies equal and determine their shared complement. Along each variable’s path, reading any copy therefore recovers the original bit. Conversely, an assignment uniquely determines every copy and auxiliary bit, including the pins. Each copy occurs once in an original triple and in at most two path links.
import Definitions.Def_NQueensComp_NPC_MonotoneOccurrenceSplit
namespace NQueensComp.NPC
theorem splitMonotoneTriples_instances (L : Code6) (h : ∀ c ∈ L, c.length = 3) :
let K := splitMonotoneTriples L
let cs := K.map List.toFinset
Rep6 K cs ∧ Inst6Valid cs ∧
Nonempty ({T : Finset ℕ // MonotoneTripleSol L T} ≃ {T : Finset ℕ // Inst6IsSol cs T}) := by sorry
end NQueensComp.NPC