Ordered Boolean relation minors #
Relations are the sets of tuples used by CSP.booleanRelation. Deletion uses Fin.succAbove,
so surviving ports retain their order. RelationMinor.Trace records each projection, cofactor,
and single-coordinate twist separately. It does not assert geometric planarity: pins and
disequality must be supplied when interpreting these traces as gadgets.
The adjacent operations combine a restriction of the first two ports with immediate deletion of the first port. They are the operations of [DK15], Lemma 2, printed p. 437, with this deletion made explicit. There is no arbitrary identification or all-port intersection.
Main definitions #
Cslib.Logic.PL.CSP.RelationMinor.project: ordered existential deletion.Cslib.Logic.PL.CSP.RelationMinor.cofactor: pinning and ordered deletion.Cslib.Logic.PL.CSP.RelationMinor.twist: coordinatewise translation of a relation.Cslib.Logic.PL.CSP.RelationMinor.adjacent: adjacent restriction and immediate deletion.Cslib.Logic.PL.CSP.RelationMinor.Trace: finite ordered minor traces.
Ordered binary disequality.
Instances For
Ordered binary NAND: its unique missing row is 11.
Instances For
A finite sequence of projections, cofactors and one-coordinate twists, with the intermediate relation and its arity recorded at each step. Cofactors require pins and flips require disequality when a trace is interpreted geometrically.
- refl {m : ℕ} {R : Set (Fin m → Bool)} : Trace R R
The empty trace.
- project {m : ℕ} {R : Set (Fin m → Bool)} {n : ℕ} {S : Set (Fin (n + 1) → Bool)} (trace : Trace R S) (j : Fin (n + 1)) : Trace R (RelationMinor.project S j)
Append an existential deletion.
- cofactor {m : ℕ} {R : Set (Fin m → Bool)} {n : ℕ} {S : Set (Fin (n + 1) → Bool)} (trace : Trace R S) (j : Fin (n + 1)) (b : Bool) : Trace R (RelationMinor.cofactor S j b)
Append a pin and deletion.
- flip {m : ℕ} {R : Set (Fin m → Bool)} {n : ℕ} {S : Set (Fin n → Bool)} (trace : Trace R S) (j : Fin n) : Trace R (twist S (Pi.single j true))
Append a twist of just one port.