EasyCrypt's glob M #
equiv[ CF(DRestr(D)).main ~ G1(DRestr(D)).main : ={glob D} ==> … ]
glob M is the part of the globals the module M touches: the getter R.touched_getter of a
region R (glob_region M), whose value at two global states agrees exactly when they agree on
R (Language/Footprint.lean). A getter is read like a variable, so ={glob D} in a
relational condition is §(glob D){1} = §(glob D){2}, EC's ={glob D}.
The region is EC's:
- a concrete module's
globis its variables (EC'svars of the module, here theglobal_varsC.xits procedures use): their footprints joined,C.c.footprint ⊔ C.queries.footprintformodule CwithC.c,C.queries(the region of their tupleLens.pair C.c C.queries); the closers read={glob C}as={C.c, C.queries}(TacticMisc.globTuples); - any other module (a declared one, an application) has the footprint
FVP.fvP M.
glob is a keyword where this file is imported: the call tactics (equiv_call (_ : ={glob A, …}),
the frames / glob A) read it in this form.
EC's glob M as a region: see the module docstring.
Equations
- GaudisCrypt.ecGlobRegion = Lean.ParserDescr.node `GaudisCrypt.ecGlobRegion 1022 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "glob_region ") (Lean.ParserDescr.cat `term 1024))
Instances For
EC's glob M: the getter of the globals of the module M.
Equations
- GaudisCrypt.ecGlob = Lean.ParserDescr.node `GaudisCrypt.ecGlob 1022 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "glob ") (Lean.ParserDescr.cat `term 1024))