Documentation

GaudisCrypt.Logic.ECCallFrameRel

The relational call rule with the callees' frames #

prhlStmt_seq_call_frame: EC's call keeps what the callees do not touch. The postcondition is asked for the results and globals the callees' judgment relates and that are in each side's frame of its globals before the call (Module.Proc.Frame: a variable outside the callee's footprint keeps its value, Module.Proc.frame_lens). ECCallEquiv.frameFor builds the frame of a callee for the variables a condition reads.

Used by the call tactics for concrete callees (Logic/ECCallEquiv.lean) and for the procedures of a declared module with several procedures (Logic/ECCallAbstract.lean).

EC's frame by writes: a lens that every write of M's body keeps (its callees' included) is a frame of M — a callee that reads X without writing it keeps it, where Module.Proc.frame_lens asks M to stay out of X altogether.

set_option ec.frameWrites false: frames by footprint only (a call keeps a variable outside the callee's footprint), without EC's frame by writes.

A proof of StmtWithHoles.WritesKeep G s: the single writes of s, its callees' included (writesKeepSplit, which unfolds module procedures as the inliner does), each by rfl (a write to a local) or StmtSwap.discharge (a write to another global).

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

    Module.Proc.frame_lens_writes for M and the lens X, when every write of M's body keeps X (writesKeepProof); the state is restored if not.

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

      t elaborates, with no error and no sorry; the state is restored if not.

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

        The frame of the callee M for the global variables xs and the regions Rs a condition reads: those M stays out of, or, for a variable, does not write (EC's call keeps them), combined with Module.Proc.frame_and.

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

          The global variables (global_vars, module_vars, a clone's aliases of them) that e reads, as written: the closed lenses on the globals whose head has a key (x.key_eq).

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