Documentation

CslibFrontier.Logics.Propositional.CSP.Occurrence.Relabel

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) :

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) :
↑(F.relabelOccurrence f o).fst = ↑o.fst

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) :
↑(F.relabelOccurrence f o).snd = ↑o.snd

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.

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) :
∃ (p : F.Occurrence), F.relabelOccurrence f p = o

Every occurrence after renaming comes from an original indexed occurrence.