Documentation

GaudisCrypt.Logic.ECInline

EasyCrypt's inline M.f: inlining by name #

stmt_inline (BlockSponge.Sponge(Perm).f)       -- EC's `inline BlockSponge.Sponge(Perm).f`
stmt_inline{2} (M.f)                           -- EC's `inline{2} M.f`

Every call of the procedure M.f (a procedure module, or a procedure) in the statement, on every side (or on side i), is inlined, in the order of the call sites (stmt_inline n inlines call site n). A callee is the procedure when the two agree at reducible transparency: the path is the callee as the module command reads it back.

The callees of the call sites of a statement, in the pre-order stmt_inline n numbers them (none for a hole or a call already spelled out).

partial def GaudisCrypt.Flatten.normCallee (e : Expr) (fuel : ℕ := 16) :

A callee M.procedure with its module M evaluated by the module steps (moduleStep?): a procedure reached through a module type's accessor (StdAdversary.guess (StdRedAdversary(L)), how an experiment calls its parameter) and the module's own procedure (StdRedAdversary(L).guess, how it is named) then are the same term.

partial def GaudisCrypt.Flatten.inlineByName (p : Expr) (g : Lean.MVarId) (side? : Option ℕ) (fuel : ℕ := 32) :

Inline the calls of p on side side? of the goal, as long as one is left (at most fuel).

stmt_inline (M), stmt_inline{i} (M), and EC's inline M₁ … Mₙ as stmt_inline (M₁) … (Mₙ) (each in turn): see the module docstring.

Equations
  • One or more equations did not get rendered due to their size.
Instances For