Actual occurrence coordinates under variable renaming #
Renaming preserves every constraint and argument position, including repeated or identified names. The forward map reads the original renamed variable; it needs no injectivity premise.
def Cslib.Logic.PL.CSP.relabelOccurrence {Rel V W : Type} (F : CSP Rel V) (f : V → W) (o : F.Occurrence) :
(relabel f F).Occurrence
Rename variables at an actual occurrence while keeping its two original positions.
theorem Cslib.Logic.PL.CSP.relabelOccurrence_constraint {Rel V W : Type} (F : CSP Rel V) (f : V → W) (o : F.Occurrence) :
Variable renaming retains the exact original constraint position.
theorem Cslib.Logic.PL.CSP.relabelOccurrence_argument {Rel V W : Type} (F : CSP Rel V) (f : V → W) (o : F.Occurrence) :
Variable renaming retains the exact original argument position.
theorem Cslib.Logic.PL.CSP.var_relabelOccurrence {Rel V W : Type} (F : CSP Rel V) (f : V → W) (o : F.Occurrence) :
The actual occurrence getter reads the original variable through the supplied map.
theorem Cslib.Logic.PL.CSP.relabelOccurrence_injective {Rel V W : Type} (F : CSP Rel V) (f : V → W) :
Renaming never identifies distinct positions, even when it identifies variable names.
theorem Cslib.Logic.PL.CSP.exists_relabelOccurrence {Rel V W : Type} (F : CSP Rel V) (f : V → W) (o : (relabel f F).Occurrence) :
Every occurrence after renaming comes from an original indexed occurrence.