Footprints of concrete modules, read off their code #
EasyCrypt reads a concrete module's globals off its code: no lemma states what Bounder or
D1(A) touches. Here the same, for the footprint solver:
fp_disjoint(this file's elaborator, extendingLogic/FootprintSolver.lean's): a concretemoduleMwith no@[fp_bound]bound is bounded by the globals its code mentions (DeclareModule.globalVarsOf, through the modules and definitions it uses) and the abstract modules among its Lean arguments,FVP.fvP M ≤ FVP.fvP A ⊔ (Lens.pair x₁ (… xₙ)).footprint, proven byfp_module;fp_finite:F.FinitelySupportedfor a join of module footprints and variables, the modules declared (Module.Declared,Module.ECModule) or concrete (bounded as above);ec_module:Module.ECModule D extfor a concreteDover a first-order module type, its representabilityModule.representable_of_firstOrder, its finite supportfp_finite.
c is a module (its definition mentions procedures c.f, isModuleProc).
Equations
- One or more equations did not get rendered due to their size.
Instances For
A cached bound: the module, the proof (if any), and the proof's free variables and constants
(collected once: the proof is a large shared term, and walking it on each use, as
Expr.hasAnyFVar does, without sharing, took 0.7 s per lookup under Gext.M.f).
- M : Lean.Expr
- fvars : Array Lean.FVarId
Instances For
The bounds found so far (concreteBound is slow: fp_module over the module's code), shared
by the tactic runs of a file: an entry is used only where all its free variables are in scope.
concreteBound, each module bounded once (boundCache).
Equations
- One or more equations did not get rendered due to their size.
Instances For
A proof of F.FinitelySupported: a join of variables (global_vars, module_vars, pairs of
them) and module footprints, each module declared (Module.Declared, Module.ECModule in
context), built by the module combinators, or concrete (hook).
fp_finite: close F.FinitelySupported (see the module docstring).
Equations
- GaudisCrypt.tacticFp_finite = Lean.ParserDescr.node `GaudisCrypt.tacticFp_finite 1024 (Lean.ParserDescr.nonReservedSymbol "fp_finite" false)
Instances For
ec_module: close Module.ECModule D ext for a module D over a first-order module type
whose ext is the canonical one (see the module docstring).
Equations
- GaudisCrypt.tacticEc_module = Lean.ParserDescr.node `GaudisCrypt.tacticEc_module 1024 (Lean.ParserDescr.nonReservedSymbol "ec_module" false)