Documentation

GaudisCrypt.Logic.ModuleFootprint

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:

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 bound FVP.fvP M ≤ B for the concrete module M (a module applied to its Lean arguments): B the footprint of its abstract module argument (at most one) and of the globals of its code, proven by fp_module.

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

      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
          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
            Instances For