Documentation

CslibFrontier.Logics.Propositional.CSP.Planar.Embedding.ProbeOccurrences

Actual body and marker coordinates in the structural boundary probe #

Original body occurrences retain their literal indexed prefix positions. Canonical reversed probe positions retain their original port labels. Every augmented occurrence is one of these two kinds, without distinctness, nonempty-boundary or degree assumptions. At distinct ports, the actual variable-cycle tail is exactly the original body prefix at the selected free label.

noncomputable def Cslib.Complexity.CSP.OrderedBoundary.probeOccurrence {Rel V : Type} (F : Logic.PL.CSP Rel V) (ports : List V) (i : Fin ports.length) :

The actual reversed-scope probe occurrence belonging to an original boundary position. This proof-only coordinate map does not supply or search for a rotation.

Every structural marker belongs to the one appended constraint position.

theorem Cslib.Complexity.CSP.OrderedBoundary.probeOccurrence_argument {Rel V : Type} (F : Logic.PL.CSP Rel V) (ports : List V) (i : Fin ports.length) :
↑(probeOccurrence F ports i).snd = ports.length - 1 - ↑i

The actual probe scope position is exactly the reverse of the original port position.

The structural probe scope has exactly the number of original boundary positions.

Positive argument succession on the literal reversed probe scope follows the reverse of the original port cycle. This is a directed equality, with no reflection convention.

Probe positions follow the actual body prefix and the literal reversed port word.

Probe markers retain distinct indexed positions, even when their port names repeat.

theorem Cslib.Complexity.CSP.OrderedBoundary.var_probeOccurrence {Rel V : Type} (F : Logic.PL.CSP Rel V) (ports : List V) (i : Fin ports.length) :
(probeOccurrence F ports i).var = ports[↑i]

The reversed probe position still carries the original boundary label.

noncomputable def Cslib.Complexity.CSP.OrderedBoundary.bodyOccurrence {Rel V : Type} (F : Logic.PL.CSP Rel V) (ports : List V) (o : F.Occurrence) :

Retain an actual body occurrence in the probe-augmented body's positional prefix.

Appending the structural probe retains each original record literally.

theorem Cslib.Complexity.CSP.OrderedBoundary.scope_bodyOccurrence {Rel V : Type} (F : Logic.PL.CSP Rel V) (ports : List V) (o : F.Occurrence) :
(probeBody F ports)[↑(bodyOccurrence F ports o).fst].scope = F[↑o.fst].scope

Appending the probe retains the complete original scope at each indexed body row.

Appending the structural probe retains every original positional occurrence identity.

Probe augmentation leaves every original incidence edge index unchanged.

theorem Cslib.Complexity.CSP.OrderedBoundary.var_bodyOccurrence {Rel V : Type} (F : Logic.PL.CSP Rel V) (ports : List V) (o : F.Occurrence) :
(bodyOccurrence F ports o).var = o.var

Probe augmentation retains the named variable at every original body occurrence.

The retained body prefix follows its original positive cyclic argument order after the probe is appended. The relation-symbol injection and appended marker row preserve all scopes.

Every indexed occurrence in the probe's body prefix is exactly an original occurrence.

theorem Cslib.Complexity.CSP.OrderedBoundary.exists_probe_prefix_occurrence_iff {Rel V : Type} [DecidableEq V] (F : Logic.PL.CSP Rel V) (ports : List V) (index : ℕ) (v : V) :
(∃ (p : (probeBody F ports).Occurrence), incidenceEdgeIndex p = index ∧ p.var = v ∧ incidenceEdgeIndex p < F.occurrences.length) ↔ ∃ (o : F.Occurrence), incidenceEdgeIndex o = index ∧ o.var = v

A body-prefix occurrence with a given variable and edge index is an original-body occurrence with those same coordinates, in both directions.

theorem Cslib.Complexity.CSP.OrderedBoundary.exists_bodyOccurrence_or_probeOccurrence {Rel V : Type} (F : Logic.PL.CSP Rel V) (ports : List V) (p : (probeBody F ports).Occurrence) :
(∃ (o : F.Occurrence), bodyOccurrence F ports o = p) ∨ ∃ (i : Fin ports.length), probeOccurrence F ports i = p

Every actual probe-augmented occurrence is an original body occurrence or one literal reversed-scope marker. This coordinate decomposition requires no distinctness of ports.

The local occurrence block read after a probe corner is exactly the actual body prefix at that free variable. Canonical gadget ports discharge the boundary Nodup premise internally.