The squeezeless sponge's common operators (EasyCrypt proof/smart_counter/SLCommon.ec, the part #
without modules)
The parameter class (op max_size), the state and handle types, permutations, handle paths, the
Prefix theory and the handle operators: what both the port SLCommon.lean and its EC-fidelity
port Pilot/SLCommon.lean use, under the same names (namespace GaudisCrypt.SHA3.SLCommon).
prefix is a Lean keyword, hence «prefix».
Instances For
abbrev ([+]) (x : 'b) = fun (_ : 'a) => x.
Equations
- GaudisCrypt.SHA3.SLCommon.«[+]» x x✝ = x
Instances For
Equations
Instances For
Equations
Instances For
clone export Tuple as TupleBl with type t <- block, op Support.enum <- Block.blocks.
Equations
Instances For
Equations
Instances For
Instances For
clone export DProd.ProdSampling as Sample2 with type t1 <- block, type t2 <- capacity.
Equations
Instances For
Useful types and operators for the proof #
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Functional version of the construction, using handles.
Equations
- GaudisCrypt.SHA3.SLCommon.step_hpath mh sah b = if sah = none then none else have sah := GaudisCrypt.EC.oget sah; GaudisCrypt.EC.FMap.get mh (sah.1 +^ b, sah.2)
Instances For
Equations
Instances For
- Empty [Params] {mh : hsmap} {p : List Common.block} {v : Common.block} {h : handle} : p = [] → v = Common.b0 → h = 0 → build_hpath_spec mh p v h
- Extend [Params] {mh : hsmap} {p : List Common.block} {v : Common.block} {h : handle} (p' : List Common.block) (b v' : Common.block) (h' : handle) : p = EC.rcons p' b → build_hpath mh p' = some (v', h') → EC.FMap.get mh (v' +^ b, h') = some (v, h) → build_hpath_spec mh p v h
Instances For
Prefixes (EC's theory Prefix) #
Equations
- GaudisCrypt.SHA3.SLCommon.Prefix.prefix (x_2 :: s') (y :: t') = if x_2 = y then 1 + GaudisCrypt.SHA3.SLCommon.Prefix.prefix s' t' else 0
- GaudisCrypt.SHA3.SLCommon.Prefix.prefix x✝¹ x✝ = 0
Instances For
Equations
- One or more equations did not get rendered due to their size.
- GaudisCrypt.SHA3.SLCommon.Prefix.max_prefix l1 l2 [] = l2
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- GaudisCrypt.SHA3.SLCommon.Prefix.all_prefixes prefixes = ∀ (bs : List GaudisCrypt.SHA3.Common.block), prefixes.dom bs → ∀ (i : ℤ), prefixes.dom (GaudisCrypt.EC.take i bs)
Instances For
Not an EasyCrypt lemma: elems (fdom m) lists the domain (EasyCrypt's memE and
mem_fdom together).
Not an EasyCrypt lemma: max_prefix depends on its first argument only through the common
prefixes with the candidates.
Equations
- GaudisCrypt.SHA3.SLCommon.Prefix.all_prefixes_fset prefixes = ∀ bs ∈ prefixes, ∀ (i : ℤ), GaudisCrypt.EC.take i bs ∈ prefixes
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Operators and properties of handles #
Equations
- GaudisCrypt.SHA3.SLCommon.hinv handles c = GaudisCrypt.EC.FMap.find (fun (x : GaudisCrypt.SHA3.SLCommon.handle) (cf : GaudisCrypt.SHA3.SLCommon.ccapacity) => decide (cf.1 = c)) handles
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.