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
- GaudisCrypt.tacticFp_le = Lean.ParserDescr.node `GaudisCrypt.tacticFp_le 1024 (Lean.ParserDescr.nonReservedSymbol "fp_le" false)
Instances For
Module.comp f g touches what f and g touch (EasyCrypt's alias F(X) = f(g(X))).