Documentation

GaudisCrypt.Logic.ECCallEquiv

EasyCrypt's relational call (: P ==> Q) and exfalso #

equiv_call (_ : P ==> Q)    -- EC's `call (: P ==> Q)`: the callees' judgment, a new goal
equiv_exfalso               -- EC's `exfalso`: the precondition is contradictory

EC's call (: P ==> Q) on the last statements x₁ <@ M₁(e₁) and x₂ <@ M₂(e₂) of the two sides asks for the judgment equiv[ M₁ ~ M₂ : P ==> Q ] (first goal), and before the calls for P at the arguments and, for every results and globals Q relates, the postcondition — where what the callees do not touch keeps its value (EC's memories past a call). That frame is found as EC finds it: the variables and glob regions the postcondition reads that a callee stays out of (fp_disjoint, Module.Proc.frame_lens, Module.Proc.frame_glob); the rule is prhlStmt_seq_call_frame.

theorem GaudisCrypt.prhlProc_exfalso {sig₁ sig₂ : ProcedureSignature} {p₁ : Procedure sig₁} {p₂ : Procedure sig₂} {A : sig₁.ParamType → VariableAssignment → sig₂.ParamType → VariableAssignment → Prop} {B : sig₁.ret → VariableAssignment → sig₂.ret → VariableAssignment → Prop} (h : ∀ (a₁ : sig₁.ParamType) (g₁ : VariableAssignment) (a₂ : sig₂.ParamType) (g₂ : VariableAssignment), A a₁ g₁ a₂ g₂ → False) :
prhlProc A p₁ p₂ B

EC's exfalso on a procedure judgment: a contradictory precondition.

The module M of the last statement x <- call M.procedure (e) of s.

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

    EC's call (: P ==> Q): see the module docstring. Goals: the callees' judgment (callee), then the code before the calls.

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

      EC's exfalso on a relational judgment: the goal is that the precondition is contradictory, ∀ …, pre → False.

      Equations
      Instances For