One edge constraint merges components by a common potential shift
ProvedPvsNP.potential_component_mergealgebracomplexity-theoryformal-verification
Suppose the possible values of each vertex have the form a free value for its representative plus an offset. Add one difference constraint joining two distinct representatives. The complete solution family is then represented by identifying the second representative with the first and adding one common potential to every old offset in the second component.
Preamble
import Mathlib.Tactic.Abel set_option autoImplicit false
Formal statement
theorem PvsNP.potential_component_merge {Vertex Root Value : Type}
[DecidableEq Root] [AddCommGroup Value]
(rep : Vertex → Root) (offset target : Vertex → Value)
(u v : Vertex) (difference : Value) (distinct : rep u ≠ rep v) :
let shift := difference + offset u - offset v
let nextRep := fun i => if rep i = rep v then rep u else rep i
let nextOffset := fun i => if rep i = rep v then offset i + shift else offset i
((∃ roots : Root → Value, ∀ i, target i = roots (rep i) + offset i) ∧
target v - target u = difference) ↔
∃ roots : Root → Value, ∀ i, target i = roots (nextRep i) + nextOffset i := by sorrySource
Exact online recognition of hidden parity constraints in a prefix-free MCSP sublanguage.