Documentation

GaudisCrypt.Logic.ECModuleBinders

EasyCrypt's module binders in formulas, and islossless #

∃ (S <: SIMULATOR {-Bounder, -A}), P      -- EC's `exists (S <: SIMULATOR {-Bounder, -A}), P`
∀ (F <: FUNCTIONALITY), P                 -- EC's `forall (F <: FUNCTIONALITY), P`
islossless S(F).init                      -- EC's `islossless S(F).init`

A module bound in a formula is a declared module (declare module): with EC's restriction, and finitely many globals. So ∃ (S <: T {-X}), P is ∃ (S : T) (_ : Module.Declared S R), P and ∀ (F <: T {-X}), P is ∀ (F : T) [Module.Declared F R], P, R the restriction's footprint computed as declare module computes it (⊥ for an ∃ without one). Introduced (rintro ⟨S, _, …⟩, intro F _), the declaration is an instance in context, which fp_disjoint reads. ∀ (F <: T), P without a restriction is ∀ F : T, P: EC's forall then asks nothing of F, and the formula applies to a concrete module as it stands (EC's S_ll RO _), with no declaration to show.

islossless M is M.procedure.IsLossless for a procedure module M (a path S(F).init, a field F.get).

∃ (S <: T {-X₁, …}), P: see the module docstring.

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

    ∀ (F <: T {-X₁, …}), P: see the module docstring.

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

      EC's islossless M: the procedure module M terminates with probability 1.

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