Incidence positions from literal constraint prefixes #
An occurrence's edge index is the number of preceding argument positions plus its original scope position. The formula counts records, including duplicates, without inspecting names.
theorem Cslib.Complexity.CSP.incidenceEdgeIndex_eq_prefix {Rel V : Type} [DecidableEq V] {F : Logic.PL.CSP Rel V} (o : F.Occurrence) :
The original incidence index equals its actual constraint-prefix occurrence count plus its ordered scope index. No distinctness assumption on variables or constraints is needed.