glob is monotone #
EasyCrypt's glob (Footprint.glob, the slots of the variables a footprint touches) grows with
the footprint: a variable touched by F ≤ F' is touched by F'. A region G within glob GF
then stays within glob (GF ⊔ X), which is how a region hypothesis (exception E14 in
notes/SHA3/Exceptions.md) is extended by further variables. A global_var is finitely
supported, and outside glob F when outside F (for F finitely supported).
theorem
GaudisCrypt.Footprint.IsSubGranular.mono
[spec : GranularProgramSpec]
{F F' : Footprint VariableAssignment}
(h : F ≤ F')
(hF' : F'.IsSubGranular)
:
A footprint below a sub-granular one is sub-granular.
glob is monotone.
theorem
GaudisCrypt.Footprint.FinitelySupported.globalVar
{T : Type}
(x : Lens T VariableAssignment)
{v : VariableName}
[h : x.IsGlobalVar v]
:
A global_var is finitely supported (it is a single variable's slot).
theorem
GaudisCrypt.Footprint.globalVar_le_compl_glob
{F : Footprint VariableAssignment}
(hF : F.FinitelySupported)
{T : Type}
(x : Lens T VariableAssignment)
{v : VariableName}
[h : x.IsGlobalVar v]
(hx : F ≤ x.footprintᶜ)
:
A global_var outside a finitely supported F is outside glob F
(Footprint.varLens_le_compl_glob for a global_var).