Incidence trails and prefix-valid edge-CSP walks #
A step is a pair of actual ordered occurrences in one constraint. Traversed incidences are
never reused, while constraint positions may repeat. Closed and length-zero trails are allowed.
Walk.IsFWalk additionally requires distinct variable endpoints, consistent internal variables,
and validity after every variable-ended prefix. This is Definitions 22–23 of
[KKR18], arXiv v6, printed p. 9.
Main definitions #
Walk.IsWalk: a trail of indexed incidence pairs, allowing closed walks.Walk.IsFWalk: distinct endpoints, consistent internal variables, and prefix validity.Walk.IsAugmenting: an f-walk with two defective endpoints.
Main results #
Walk.IsWalk.partner_transition: consecutive steps use the partner involution.Walk.IsFPrefix.valid_take: every variable-ended prefix flip is valid.Walk.IsAugmenting.card_defects_flip_add_two: augmentation removes exactly two defects.
A variable-to-variable trail is represented by its starting variable and its sequence of
incidence pairs. IsWalk checks incidence adjacency and absence of repeated incidences.
- start : V
Starting variable, also the endpoint of a length-zero trail.
- steps : List (F.Occurrence × F.Occurrence)
Ordered variable-to-variable steps, each represented by its two incidences.
Instances For
The terminal variable, also defined for length-zero walks.
Instances For
Traversed incidences, in traversal order.
Instances For
Traversed incidences of a walk.
Instances For
Flip each incidence in a list of steps, in order. For a trail this is the set flip.
Instances For
Flip the incidences of a walk.
Instances For
Consecutive steps meet at their variable endpoints; the two incidences of each step belong to the same positional constraint.
Instances For
Every intermediate labeling (including the initial one) is valid.
Instances For
Internal variable endpoints are consistent in the original labeling.
Instances For
An f-walk has distinct variable endpoints, consistent internal variables, and a valid labeling after every variable-ended prefix. Final validity alone does not suffice.
Instances For
Append a variable-to-variable step.
Instances For
Stepwise and setwise flips agree for incidence trails.
Prefix validity includes validity after the final step.
In particular, the set flip of an f-walk is valid.
Flipping concatenated step lists is sequential composition.
Appending one fresh step flips precisely its two incidences.
Incidence adjacency is preserved by a step from the previous endpoint.
All prefixes remain valid after a valid final step is appended.
The old endpoint becomes an internal variable when appending a step.
Append a fresh locally valid step to a prefix-valid trail.
The set of defects after a trail flip differs only at its variable endpoints. This includes closed trails, whose endpoint toggles cancel.
Augmentation removes exactly two distinct variable defects.
The recursive prefix condition is exactly validity after every variable-ended prefix, including the initial labeling.
Splitting a trail at a variable preserves the positional adjacency conditions.
Consecutive constraint steps cross a variable by its actual partner incidence. No incidence may be traversed in both directions or reused at a later visit.
Every variable-ended prefix flip of an f-prefix is valid, in the set-flip formulation of Definition 23. This includes prefixes shorter than a returned augmenting walk.