Documentation

GaudisCrypt.Logic.FootprintUpper

Upper bounds of footprints #

fp_disjoint proves restrictions FVP.fvP M ≤ Aᶜ. fp_le proves upper bounds FVP.fvP M ≤ U, U a join of variables and module footprints (EasyCrypt's "the module only touches these variables", read off the code): the same descent through the module combinators (fvP_app, fvP_pair, fvP_fst, …, unfolding definitions) down to concrete modules with an @[fp_bound] bound, or modules with a bound hypothesis FVP.fvP N ≤ B in context, and B's joinands found among U's (FootprintSolver.solveLeSup). A concrete module or a module's procedure with no stated bound has the one read off its code (ModuleFootprint.cachedBound, as fp_disjoint does). A use: the frame rule prhlProc_frame_equal_outside, whose callees must stay within a lens.

Close X ≤ U, X a join of module footprints and variables (see the module doc).

fp_le: close FVP.fvP M ≤ U (a join of variables and module footprints), bounding FVP.fvP M through the module combinators by @[fp_bound] lemmas and bound hypotheses FVP.fvP N ≤ B in context, each B's joinands among U's.

Equations
Instances For
    theorem GaudisCrypt.FVP.fvP_comp_le {A B C : Type 1} [IsModule A] [IsModule B] [IsModule C] (f : Module.Arr B C) (g : Module.Arr A B) :
    fvP (Module.comp f g) ≤ fvP f ⊔ fvP g

    Module.comp f g touches what f and g touch (EasyCrypt's alias F(X) = f(g(X))).