Documentation

GaudisCrypt.Examples.SHA3.SHA3OSecurity

Top-level proof of SHA-3 security, with failing oracles (EasyCrypt proof/SHA3OSecurity.ec) — #

EC-fidelity port

Ported so far: the clones SORO, SH, the file's modules (EC l. 1–175), and the local modules of section Preimage (EC l. 194–300) with its first lemmas, rw_RF_List_While (EC l. 301), eq_IRO_RFWhile (EC l. 337), eq_extend (EC l. 430), of_listK, Fill_In, eq_eager_ideal (EC l. 492), eq_eager_ideal2 (EC l. 512), Dist, Game, eager_ideal (EC l. 574), rw_ideal_2 (EC l. 652), rw_ideal (EC l. 792), leq_ideal (EC l. 870), rw_real (EC l. 881) and Sponge_preimage_resistant (EC l. 898): section Preimage is complete. Section SecondPreimage is complete too: its local modules Dist_of_P2Adv, SORO_P2, Dist, Game, eager_ideal (EC l. 1298), toto (EC l. 1427), titi (EC l. 1442), rw_ideal_2 (EC l. 1476), rw_ideal (EC l. 1638), leq_ideal (EC l. 1727), rw_real (EC l. 1738), TOTO and Sponge_second_preimage_resistant (EC l. 1781). Section Collision (EC l. 1808–2651) is complete: Dist_of_CollAdv, SORO_Coll, Dist, Game, eager_ideal, rw_ideal_2, rw_ideal, leq_ideal, rw_real and Sponge_collision_resistant. The file is ported in full.

Translation:

Declarations of the first port #

Definitions and plain lemmas of the first port of this file (2026-10/11) that the proofs below use; its program-logic proofs are gone.

The first port's translation notes (some mention declarations that went with its proofs):

EasyCrypt's file-level abstract type and operators, with their axioms: op size_out with size_out_gt0, axiom sigma_ge0, type f_out, op dout with dout_ll, dout_fu, dout_full, op to_list, op of_list with spec_dout, spec2_dout, to_list_inj, to_listK and dout_equal_dlist.

Instances

    `clone import SecureHash as SH with type from <- bool list, type to <- f_out, #

    type block <- state, op sampleto <- dout, op bound <- sigma, op increase_counter <- …`

    @[reducible, inline]
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[reducible, inline]
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[reducible, inline]
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          clone import Program as PBool with type t <- bool, op d <- dbool

          clone import FullRO as Eager with type in_t <- bool list * int, type out_t <- bool, op dout _ <- dbool, type d_in_t <- unit, type d_out_t <- bool

          The clone's module variables.

          Equations
          Instances For
            instance GaudisCrypt.SHA3.SHA3OSecurity.Eager.instIsGlobalVarFMapProdListBoolIntMMk :
            RO.m.IsGlobalVar (VariableName.mk "GaudisCrypt.SHA3.SHA3OSecurity.Eager.RO.m" (EC.FMap (List Bool × ℤ) Bool))
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              The section Preimage's op inv: the map of BIRO.IRO and RFList.m agree on the first size_out bits.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem GaudisCrypt.SHA3.SHA3OSecurity.inv_fresh [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [Params] (m mp0 : EC.FMap (List Bool × ℤ) Bool) (m2 : EC.FMap (List Bool) f_out) (x bs : List Bool) (h0 : inv mp0 m2) (hx : ¬m2.dom x) (hsz : EC.size bs = size_out) (h1 : ∀ (l : List Bool) (j : ℤ), l ≠ x → m.get (l, j) = mp0.get (l, j)) (h2 : ∀ (j : ℤ), m.dom (x, j) ↔ 0 ≤ j ∧ j < size_out) (h3 : ∀ (j : ℤ), 0 ≤ j → j < size_out → m.get (x, j) = some (EC.nth default bs j)) :
                inv m (m2.set x (EC.oget (of_list bs)))

                The exit of eq_IRO_RFWhile's fresh case: inv after the loop sampled bs for x into BIRO.IRO.mp and RFList.m gets x. Not an EC lemma (EC's smt after the while).

                The section Preimage's op eq_extend_size.

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

                  The section Preimage, with declare module A <: SH.AdvPreimage {…} (its local #

                  declarations in the namespace Preimage)

                  eq_extend_size survives a common update of the first two maps below size_out.

                  eq_extend_size survives a common update of the first and the third map from size_out.

                  clone import SecureORO as SORO with … (EC l. 88–103) #

                  clone import SecureHash as SH with … (EC l. 105–118) #

                  The file's modules (EC l. 143–175) #

                  Instantiating the holes of FSetSize.f.procedure with a tuple holeArgs of procedures: the body of proc f as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                  Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [FSetSize.f.procedure.apply_simp]).

                  proc init = …; of module FSetSize: an alias, EasyCrypt's proc init = M.g — the callee itself, as a module abstracted over the module parameters it uses (F, in declaration order). It has no FSetSize.init.procedure: applied with the @[simp] lemma FSetSize.init.apply_simp, it is the callee.

                  Equations
                  Instances For

                    The module declared by module FSetSize, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                    Applied to such a tuple it is the record of its procedures FSetSize.init, FSetSize.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma FSetSize.apply_simp says.

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

                      @[simp]: applying FSetSize to a tuple of its single parameter F — the record of its procedures FSetSize.init, FSetSize.f, each applied to the parameters it uses.

                      This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with FSetSize.init.apply_simp, FSetSize.f.apply_simp to fill that procedure's holes.

                      The body of proc f of module FSetSize, as a procedure of its own: the one call it makes to a module parameter (F) is its single hole.

                      A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see FSetSize.f.procedure.apply_simp) rather than run. Use FSetSize.f for this procedure as a module.

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

                        @[simp]: applying FSetSize.f to the parameters proc f uses (F) is Module.proc (FSetSize.f.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                        proc f of module FSetSize as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                        Apply it with the @[simp] lemma FSetSize.f.apply_simp, which fills the holes of FSetSize.f.procedure with the callees the body called.

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

                          The module declared by module DFSetSize, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                          Applied to such a tuple it is the record of its procedures DFSetSize.init, DFSetSize.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma DFSetSize.apply_simp says.

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

                            @[simp]: applying DFSetSize to a tuple of its single parameter F — the record of its procedures DFSetSize.init, DFSetSize.f, each applied to the parameters it uses.

                            This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with DFSetSize.init.apply_simp, DFSetSize.f.apply_simp to fill that procedure's holes.

                            The body of proc f of module DFSetSize, as a procedure of its own: the one call it makes to a module parameter (F) is its single hole.

                            A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see DFSetSize.f.procedure.apply_simp) rather than run. Use DFSetSize.f for this procedure as a module.

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

                              Instantiating the holes of DFSetSize.f.procedure with a tuple holeArgs of procedures: the body of proc f as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                              Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [DFSetSize.f.procedure.apply_simp]).

                              proc f of module DFSetSize as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                              Apply it with the @[simp] lemma DFSetSize.f.apply_simp, which fills the holes of DFSetSize.f.procedure with the callees the body called.

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

                                @[simp]: DFSetSize.init = Module.proc DFSetSize.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.

                                @[simp]

                                @[simp]: applying DFSetSize.f to the parameters proc f uses (F) is Module.proc (DFSetSize.f.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                The body of proc init of module DFSetSize, as a procedure of its own: it calls no module parameter, so it has no holes.

                                A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see DFSetSize.init.procedure.apply_simp) rather than run. Use DFSetSize.init for this procedure as a module.

                                Equations
                                Instances For

                                  Instantiating the holes of DFSetSize.init.procedure with a tuple holeArgs of procedures: the body of proc init as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                  Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [DFSetSize.init.procedure.apply_simp]).

                                  proc init of module DFSetSize as a module: Module.proc DFSetSize.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — DFSetSize.init.apply_simp says exactly that.

                                  Equations
                                  Instances For
                                    @[simp]

                                    @[simp]: applying FIgnoreSize.f to the parameters proc f uses (F) is Module.proc (FIgnoreSize.f.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                    @[simp]

                                    @[simp]: FIgnoreSize.init = Module.proc FIgnoreSize.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.

                                    proc init of module FIgnoreSize as a module: Module.proc FIgnoreSize.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — FIgnoreSize.init.apply_simp says exactly that.

                                    Equations
                                    Instances For
                                      @[simp]

                                      @[simp]: applying FIgnoreSize to a tuple of its single parameter F — the record of its procedures FIgnoreSize.init, FIgnoreSize.f, each applied to the parameters it uses.

                                      This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with FIgnoreSize.init.apply_simp, FIgnoreSize.f.apply_simp to fill that procedure's holes.

                                      Instantiating the holes of FIgnoreSize.f.procedure with a tuple holeArgs of procedures: the body of proc f as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                      Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [FIgnoreSize.f.procedure.apply_simp]).

                                      The body of proc f of module FIgnoreSize, as a procedure of its own: the one call it makes to a module parameter (F) is its single hole.

                                      A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see FIgnoreSize.f.procedure.apply_simp) rather than run. Use FIgnoreSize.f for this procedure as a module.

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

                                        The module declared by module FIgnoreSize, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                        Applied to such a tuple it is the record of its procedures FIgnoreSize.init, FIgnoreSize.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma FIgnoreSize.apply_simp says.

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

                                          The body of proc init of module FIgnoreSize, as a procedure of its own: it calls no module parameter, so it has no holes.

                                          A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see FIgnoreSize.init.procedure.apply_simp) rather than run. Use FIgnoreSize.init for this procedure as a module.

                                          Equations
                                          Instances For

                                            Instantiating the holes of FIgnoreSize.init.procedure with a tuple holeArgs of procedures: the body of proc init as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                            Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [FIgnoreSize.init.procedure.apply_simp]).

                                            proc f of module FIgnoreSize as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                            Apply it with the @[simp] lemma FIgnoreSize.f.apply_simp, which fills the holes of FIgnoreSize.f.procedure with the callees the body called.

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

                                              EC's proc get = f of FSetSize: FSetSize(F) is also an Oracle, its get the procedure f. (A coercion of the module type: EC's alias is outside the module type.)

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

                                              clone import Program as PBool, clone import FullRO as Eager (EC l. 177–188) #

                                              The first port's namespaces: PBool.LoopSnoc.sample, and the clone Eager of PROM.FullRO at bool list * int, bool, with its module variables Eager.RO.m, Eager.FRO.m.

                                              The clone's RO_LRO_D (PROM.FullRO's, at the clone's dout and module variables, its dout_ll dbool_ll): a distinguisher cannot tell RO from LRO. Its side conditions, which EC checks itself, are found (ec_module, fp_disjoint).

                                              Section Preimage (EC l. 190–916) #

                                              @[simp]

                                              @[simp]: FInit.init = Module.proc FInit.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.

                                              The module declared by module FInit, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                              Applied to such a tuple it is the record of its procedures FInit.init, FInit.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma FInit.apply_simp says.

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

                                                @[simp]: the alias FInit.f, applied to the parameters its callee uses (F), is its callee, as written in the declaration.

                                                @[simp]

                                                @[simp]: applying FInit to a tuple of its single parameter F — the record of its procedures FInit.init, FInit.f, each applied to the parameters it uses.

                                                This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with FInit.init.apply_simp, FInit.f.apply_simp to fill that procedure's holes.

                                                proc init of module FInit as a module: Module.proc FInit.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — FInit.init.apply_simp says exactly that.

                                                Equations
                                                Instances For

                                                  Instantiating the holes of FInit.init.procedure with a tuple holeArgs of procedures: the body of proc init as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                  Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [FInit.init.procedure.apply_simp]).

                                                  proc f = …; of module FInit: an alias, EasyCrypt's proc f = M.g — the callee itself, as a module abstracted over the module parameters it uses (F, in declaration order). It has no FInit.f.procedure: applied with the @[simp] lemma FInit.f.apply_simp, it is the callee.

                                                  Equations
                                                  Instances For

                                                    The body of proc init of module FInit, as a procedure of its own: it calls no module parameter, so it has no holes.

                                                    A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see FInit.init.procedure.apply_simp) rather than run. Use FInit.init for this procedure as a module.

                                                    Equations
                                                    Instances For

                                                      proc f = …; of module PInit: an alias, EasyCrypt's proc f = M.g — the callee itself, as a module abstracted over the module parameters it uses (P, in declaration order). It has no PInit.f.procedure: applied with the @[simp] lemma PInit.f.apply_simp, it is the callee.

                                                      Equations
                                                      Instances For

                                                        proc fi = …; of module PInit: an alias, EasyCrypt's proc fi = M.g — the callee itself, as a module abstracted over the module parameters it uses (P, in declaration order). It has no PInit.fi.procedure: applied with the @[simp] lemma PInit.fi.apply_simp, it is the callee.

                                                        Equations
                                                        Instances For
                                                          @[simp]

                                                          @[simp]: PInit.init = Module.proc PInit.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.

                                                          The module declared by module PInit, abstracted over its single parameter P, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                                          Applied to such a tuple it is the record of its procedures PInit.init, PInit.f, PInit.fi, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma PInit.apply_simp says.

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

                                                            The body of proc init of module PInit, as a procedure of its own: it calls no module parameter, so it has no holes.

                                                            A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see PInit.init.procedure.apply_simp) rather than run. Use PInit.init for this procedure as a module.

                                                            Equations
                                                            Instances For
                                                              @[simp]

                                                              @[simp]: applying PInit to a tuple of its single parameter P — the record of its procedures PInit.init, PInit.f, PInit.fi, each applied to the parameters it uses.

                                                              This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with PInit.init.apply_simp, PInit.f.apply_simp, PInit.fi.apply_simp to fill that procedure's holes.

                                                              Instantiating the holes of PInit.init.procedure with a tuple holeArgs of procedures: the body of proc init as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                              Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [PInit.init.procedure.apply_simp]).

                                                              proc init of module PInit as a module: Module.proc PInit.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — PInit.init.apply_simp says exactly that.

                                                              Equations
                                                              Instances For

                                                                proc f = …; of module OF: an alias, EasyCrypt's proc f = M.g — the callee itself, as a module abstracted over the module parameters it uses (F, in declaration order). It has no OF.f.procedure: applied with the @[simp] lemma OF.f.apply_simp, it is the callee.

                                                                Equations
                                                                Instances For
                                                                  @[simp]

                                                                  @[simp]: the alias OF.f, applied to the parameters its callee uses (F), is its callee, as written in the declaration.

                                                                  The module declared by module OF, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                                                  Applied to such a tuple it is the record of its procedures OF.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma OF.apply_simp says.

                                                                  Equations
                                                                  Instances For
                                                                    @[simp]

                                                                    @[simp]: applying OF to a tuple of its single parameter F — the record of its procedures OF.f, each applied to the parameters it uses.

                                                                    This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with OF.f.apply_simp to fill that procedure's holes.

                                                                    Equations
                                                                    • One or more equations did not get rendered due to their size.
                                                                    Instances For
                                                                      instance GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Preimage.instIsGlobalVarFMapProdListBoolIntMMk :
                                                                      Log.m.IsGlobalVar (VariableName.mk "GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Preimage.Log.m" (EC.FMap (List Bool × ℤ) Bool))

                                                                      The module declared by module ExtendOutputSize, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                                                      Applied to such a tuple it is the record of its procedures ExtendOutputSize.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma ExtendOutputSize.apply_simp says.

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

                                                                        @[simp]: applying ExtendOutputSize.f to the parameters proc f uses (F) is Module.proc (ExtendOutputSize.f.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                        theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Preimage.ExtendOutputSize.f.procedure.apply_simp [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (holeArgs✝ : (HoleSigs.cons (procsig (List Bool) → Option SHA3OSecurity.f_out) HoleSigs.empty).Instantiation) :
                                                                        procedure.instantiate holeArgs✝ = proc (xk : List Bool × ℤ) : (Option (List Bool)) { var x : List Bool, k : ℤ, l : Option (List Bool), «prefix» : List Bool, suffix : List Bool, o : Option SHA3OSecurity.f_out, i : ℤ, r : Bool; x, k <- §xk; l <- none; «prefix» <- []; suffix <- []; o <- call (holeArgs✝.lookup HoleIndex.zero) (§x); «prefix» <- EC.take (§k) (SHA3OSecurity.to_list (EC.oget §o)); i <- SHA3OSecurity.size_out; while (decide (§i < §k)) { if (!decide ((§Log.m).dom (§x, §i))) { r <$ EC.dbool; Log.m <- (§Log.m).set (§x, §i) §r; } suffix <- EC.rcons (§suffix) (EC.oget ((§Log.m).get (§x, §i))); i <- §i + 1; } l <- some (§«prefix» ++ §suffix); return §l }

                                                                        Instantiating the holes of ExtendOutputSize.f.procedure with a tuple holeArgs of procedures: the body of proc f as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                        Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [ExtendOutputSize.f.procedure.apply_simp]).

                                                                        @[simp]

                                                                        @[simp]: applying ExtendOutputSize to a tuple of its single parameter F — the record of its procedures ExtendOutputSize.f, each applied to the parameters it uses.

                                                                        This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with ExtendOutputSize.f.apply_simp to fill that procedure's holes.

                                                                        The body of proc f of module ExtendOutputSize, as a procedure of its own: the one call it makes to a module parameter (F) is its single hole.

                                                                        A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see ExtendOutputSize.f.procedure.apply_simp) rather than run. Use ExtendOutputSize.f for this procedure as a module.

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

                                                                          proc f of module ExtendOutputSize as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                          Apply it with the @[simp] lemma ExtendOutputSize.f.apply_simp, which fills the holes of ExtendOutputSize.f.procedure with the callees the body called.

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

                                                                            Instantiating the holes of ExtendOutput.init.procedure with a tuple holeArgs of procedures: the body of proc init as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                            Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [ExtendOutput.init.procedure.apply_simp]).

                                                                            @[simp]

                                                                            @[simp]: applying ExtendOutput.init to the parameters proc init uses (F) is Module.proc (ExtendOutput.init.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                            @[simp]

                                                                            @[simp]: the alias ExtendOutput.f, applied to the parameters its callee uses (F), is its callee, as written in the declaration.

                                                                            proc init of module ExtendOutput as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                            Apply it with the @[simp] lemma ExtendOutput.init.apply_simp, which fills the holes of ExtendOutput.init.procedure with the callees the body called.

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

                                                                              proc f = …; of module ExtendOutput: an alias, EasyCrypt's proc f = M.g — the callee itself, as a module abstracted over the module parameters it uses (F, in declaration order). It has no ExtendOutput.f.procedure: applied with the @[simp] lemma ExtendOutput.f.apply_simp, it is the callee.

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

                                                                                @[simp]: applying ExtendOutput to a tuple of its single parameter F — the record of its procedures ExtendOutput.init, ExtendOutput.f, each applied to the parameters it uses.

                                                                                This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with ExtendOutput.init.apply_simp, ExtendOutput.f.apply_simp to fill that procedure's holes.

                                                                                The module declared by module ExtendOutput, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                Applied to such a tuple it is the record of its procedures ExtendOutput.init, ExtendOutput.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma ExtendOutput.apply_simp says.

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

                                                                                  The body of proc init of module ExtendOutput, as a procedure of its own: the one call it makes to a module parameter (F) is its single hole.

                                                                                  A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see ExtendOutput.init.procedure.apply_simp) rather than run. Use ExtendOutput.init for this procedure as a module.

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

                                                                                    The body of proc distinguish of module Dist_of_P1Adv, as a procedure of its own: the 2 calls it makes to module parameters (F, P) are its holes, in the order the body makes them.

                                                                                    A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see Dist_of_P1Adv.distinguish.procedure.apply_simp) rather than run. Use Dist_of_P1Adv.distinguish for this procedure as a module.

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

                                                                                      Instantiating the holes of Dist_of_P1Adv.distinguish.procedure with a tuple holeArgs of procedures: the body of proc distinguish as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                      Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [Dist_of_P1Adv.distinguish.procedure.apply_simp]).

                                                                                      proc distinguish of module Dist_of_P1Adv as a module, abstracted over the module parameters it uses (F, P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                      Apply it with the @[simp] lemma Dist_of_P1Adv.distinguish.apply_simp, which fills the holes of Dist_of_P1Adv.distinguish.procedure with the callees the body called.

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

                                                                                        The module declared by module Dist_of_P1Adv, abstracted over its 2 parameters F, P, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                        Applied to such a tuple it is the record of its procedures Dist_of_P1Adv.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma Dist_of_P1Adv.apply_simp says.

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

                                                                                          @[simp]: applying Dist_of_P1Adv.distinguish to the parameters proc distinguish uses (F, P) is Module.proc (Dist_of_P1Adv.distinguish.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                                          @[simp]

                                                                                          @[simp]: applying Dist_of_P1Adv to a tuple of its 2 parameters F, P — the record of its procedures Dist_of_P1Adv.distinguish, each applied to the parameters it uses.

                                                                                          This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with Dist_of_P1Adv.distinguish.apply_simp to fill that procedure's holes.

                                                                                          @[simp]

                                                                                          @[simp]: applying SORO_P1 to a tuple of its single parameter F — the record of its procedures SORO_P1.guess, each applied to the parameters it uses.

                                                                                          This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with SORO_P1.guess.apply_simp to fill that procedure's holes.

                                                                                          proc guess of module SORO_P1 as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                          Apply it with the @[simp] lemma SORO_P1.guess.apply_simp, which fills the holes of SORO_P1.guess.procedure with the callees the body called.

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

                                                                                            @[simp]: applying SORO_P1.guess to the parameters proc guess uses (F) is Module.proc (SORO_P1.guess.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                                            The body of proc guess of module SORO_P1, as a procedure of its own: the 2 calls it makes to module parameters (F) are its holes, in the order the body makes them.

                                                                                            A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see SORO_P1.guess.procedure.apply_simp) rather than run. Use SORO_P1.guess for this procedure as a module.

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

                                                                                              Instantiating the holes of SORO_P1.guess.procedure with a tuple holeArgs of procedures: the body of proc guess as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                              Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [SORO_P1.guess.procedure.apply_simp]).

                                                                                              The module declared by module SORO_P1, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                              Applied to such a tuple it is the record of its procedures SORO_P1.guess, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma SORO_P1.apply_simp says.

                                                                                              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.
                                                                                                Instances For
                                                                                                  @[simp]

                                                                                                  @[simp]: RFList.init = Module.proc RFList.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.

                                                                                                  proc sample of module RFList as a module: Module.proc RFList.sample.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — RFList.sample.apply_simp says exactly that.

                                                                                                  Equations
                                                                                                  Instances For

                                                                                                    Instantiating the holes of RFList.init.procedure with a tuple holeArgs of procedures: the body of proc init as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                    Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [RFList.init.procedure.apply_simp]).

                                                                                                    The body of proc sample of module RFList, as a procedure of its own: it calls no module parameter, so it has no holes.

                                                                                                    A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see RFList.sample.procedure.apply_simp) rather than run. Use RFList.sample for this procedure as a module.

                                                                                                    Equations
                                                                                                    Instances For
                                                                                                      @[simp]

                                                                                                      @[simp]: RFList.get = Module.proc RFList.get.procedure — true by definition, proc get using no module parameter and so having no holes to fill.

                                                                                                      Instantiating the holes of RFList.sample.procedure with a tuple holeArgs of procedures: the body of proc sample as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                      Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [RFList.sample.procedure.apply_simp]).

                                                                                                      @[simp]

                                                                                                      @[simp]: RFList.sample = Module.proc RFList.sample.procedure — true by definition, proc sample using no module parameter and so having no holes to fill.

                                                                                                      The body of proc init of module RFList, as a procedure of its own: it calls no module parameter, so it has no holes.

                                                                                                      A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see RFList.init.procedure.apply_simp) rather than run. Use RFList.init for this procedure as a module.

                                                                                                      Equations
                                                                                                      Instances For

                                                                                                        Instantiating the holes of RFList.get.procedure with a tuple holeArgs of procedures: the body of proc get as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                        Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [RFList.get.procedure.apply_simp]).

                                                                                                        The module declared by module RFList: the record of its procedures RFList.init, RFList.get, RFList.sample.

                                                                                                        The declaration has no parameter list, so no procedure of it can call one either and the module is not a function — it is the plain record itself, and there is no RFList.apply_simp to apply it with.

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

                                                                                                          The body of proc get of module RFList, as a procedure of its own: it calls no module parameter, so it has no holes.

                                                                                                          A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see RFList.get.procedure.apply_simp) rather than run. Use RFList.get for this procedure as a module.

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

                                                                                                            The body of proc init of module RFWhile, as a procedure of its own: it calls no module parameter, so it has no holes.

                                                                                                            A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see RFWhile.init.procedure.apply_simp) rather than run. Use RFWhile.init for this procedure as a module.

                                                                                                            Equations
                                                                                                            Instances For

                                                                                                              proc sample of module RFWhile as a module: Module.proc RFWhile.sample.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — RFWhile.sample.apply_simp says exactly that.

                                                                                                              Equations
                                                                                                              Instances For

                                                                                                                Instantiating the holes of RFWhile.get.procedure with a tuple holeArgs of procedures: the body of proc get as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [RFWhile.get.procedure.apply_simp]).

                                                                                                                Instantiating the holes of RFWhile.sample.procedure with a tuple holeArgs of procedures: the body of proc sample as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [RFWhile.sample.procedure.apply_simp]).

                                                                                                                @[simp]

                                                                                                                @[simp]: RFWhile.get = Module.proc RFWhile.get.procedure — true by definition, proc get using no module parameter and so having no holes to fill.

                                                                                                                The body of proc sample of module RFWhile, as a procedure of its own: it calls no module parameter, so it has no holes.

                                                                                                                A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see RFWhile.sample.procedure.apply_simp) rather than run. Use RFWhile.sample for this procedure as a module.

                                                                                                                Equations
                                                                                                                Instances For
                                                                                                                  @[simp]

                                                                                                                  @[simp]: RFWhile.init = Module.proc RFWhile.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.

                                                                                                                  The body of proc get of module RFWhile, as a procedure of its own: it calls no module parameter, so it has no holes.

                                                                                                                  A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see RFWhile.get.procedure.apply_simp) rather than run. Use RFWhile.get for this procedure as a module.

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

                                                                                                                    Instantiating the holes of RFWhile.init.procedure with a tuple holeArgs of procedures: the body of proc init as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                    Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [RFWhile.init.procedure.apply_simp]).

                                                                                                                    The module declared by module RFWhile: the record of its procedures RFWhile.init, RFWhile.get, RFWhile.sample.

                                                                                                                    The declaration has no parameter list, so no procedure of it can call one either and the module is not a function — it is the plain record itself, and there is no RFWhile.apply_simp to apply it with.

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

                                                                                                                      EC's Sample_LoopSnoc_eq (theory Program, the clone PBool), through Sample.sample: sampling dlist dbool size_out is running LoopSnoc.sample(size_out). EC's module Sample is not ported (the first port has LoopSnoc and the rule prhlStmt_dlist_left, Lib/EC/DListCall.lean): EC's two transitivity steps of rw_RF_List_While are one, with this as its first leg (as in exception E12).

                                                                                                                      theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Preimage.eq_IRO_RFWhile [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] :
                                                                                                                      prhlProc (fun (args₁ : List Bool × ℤ) (σ₁ : VariableAssignment) (args₂ : List Bool) (σ₂ : VariableAssignment) => have params_1 := GaudiExpr[ args₁ ]; have xn_1 := GaudiExpr[ Lens.id.get args₁ ]; have params_2 := GaudiExpr[ args₂ ]; have x_2 := GaudiExpr[ Lens.id.get args₂ ]; §xn_1 = (§x_2, SHA3OSecurity.size_out) ∧ SHA3OSecurity.inv §Sponge.BIRO.IRO.mp §RFList.m) Sponge.BIRO.IRO.f.procedure RFWhile.get.procedure fun (r₁ : List Bool) (σ₁ : VariableAssignment) (r₂ : Option SHA3OSecurity.f_out) (σ₂ : VariableAssignment) => have res_1 := GaudiExpr[ r₁ ]; have res_2 := GaudiExpr[ r₂ ]; §res_2 = SHA3OSecurity.of_list §res_1 ∧ EC.size §res_1 = SHA3OSecurity.size_out ∧ SHA3OSecurity.inv §Sponge.BIRO.IRO.mp §RFList.m

                                                                                                                      EC's local equiv eq_IRO_RFWhile : BIRO.IRO.f ~ RFWhile.get : arg{1} = (x{2}, size_out) /\ inv BIRO.IRO.mp{1} RFList.m{2} ==> res{2} = of_list res{1} /\ size res{1} = size_out /\ inv BIRO.IRO.mp{1} RFList.m{2}.

                                                                                                                      Instantiating the holes of ExtendSample.f.procedure with a tuple holeArgs of procedures: the body of proc f as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                      Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [ExtendSample.f.procedure.apply_simp]).

                                                                                                                      The module declared by module ExtendSample, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                                                                                                      Applied to such a tuple it is the record of its procedures ExtendSample.init, ExtendSample.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma ExtendSample.apply_simp says.

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

                                                                                                                        proc init = …; of module ExtendSample: an alias, EasyCrypt's proc init = M.g — the callee itself, as a module abstracted over the module parameters it uses (F, in declaration order). It has no ExtendSample.init.procedure: applied with the @[simp] lemma ExtendSample.init.apply_simp, it is the callee.

                                                                                                                        Equations
                                                                                                                        Instances For
                                                                                                                          @[simp]

                                                                                                                          @[simp]: applying ExtendSample.f to the parameters proc f uses (F) is Module.proc (ExtendSample.f.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                                                                          proc f of module ExtendSample as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                                                          Apply it with the @[simp] lemma ExtendSample.f.apply_simp, which fills the holes of ExtendSample.f.procedure with the callees the body called.

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

                                                                                                                            @[simp]: applying ExtendSample to a tuple of its single parameter F — the record of its procedures ExtendSample.init, ExtendSample.f, each applied to the parameters it uses.

                                                                                                                            This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with ExtendSample.init.apply_simp, ExtendSample.f.apply_simp to fill that procedure's holes.

                                                                                                                            The body of proc f of module ExtendSample, as a procedure of its own: the one call it makes to a module parameter (F) is its single hole.

                                                                                                                            A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see ExtendSample.f.procedure.apply_simp) rather than run. Use ExtendSample.f for this procedure as a module.

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

                                                                                                                              EC's local equiv eq_extend : ExtendSample(FSome(BIRO.IRO)).f ~ ExtendOutputSize(FSetSize(FSome(BIRO.IRO))).f : ={arg} /\ eq_extend_size BIRO.IRO.mp{1} BIRO.IRO.mp{2} Log.m{2} ==> ={res} /\ eq_extend_size BIRO.IRO.mp{1} BIRO.IRO.mp{2} Log.m{2}.

                                                                                                                              proc init = …; of module Fill_In: an alias, EasyCrypt's proc init = M.g — the callee itself, as a module abstracted over the module parameters it uses (F, in declaration order). It has no Fill_In.init.procedure: applied with the @[simp] lemma Fill_In.init.apply_simp, it is the callee.

                                                                                                                              Equations
                                                                                                                              Instances For

                                                                                                                                proc f of module Fill_In as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                                                                Apply it with the @[simp] lemma Fill_In.f.apply_simp, which fills the holes of Fill_In.f.procedure with the callees the body called.

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

                                                                                                                                  @[simp]: applying Fill_In to a tuple of its single parameter F — the record of its procedures Fill_In.init, Fill_In.f, each applied to the parameters it uses.

                                                                                                                                  This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with Fill_In.init.apply_simp, Fill_In.f.apply_simp to fill that procedure's holes.

                                                                                                                                  theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Preimage.Fill_In.f.procedure.apply_simp [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (holeArgs✝ : (HoleSigs.cons (procsig (List Bool × ℤ) → Bool) (HoleSigs.cons (procsig (List Bool × ℤ) → Unit) HoleSigs.empty)).Instantiation) :
                                                                                                                                  procedure.instantiate holeArgs✝ = proc (xn : List Bool × ℤ) : (List Bool) { var x : List Bool, n : ℤ, i : ℤ, l : List Bool, b : Bool; x, n <- §xn; i <- 0; l <- []; while (decide (§i < §n)) { b <- call (holeArgs✝.lookup HoleIndex.zero) (§x, §i); l <- EC.rcons §l §b; i <- §i + 1; } while (decide (§i < SHA3OSecurity.size_out)) { call (holeArgs✝.lookup HoleIndex.zero.succ) (§x, §i); i <- §i + 1; } return §l }

                                                                                                                                  Instantiating the holes of Fill_In.f.procedure with a tuple holeArgs of procedures: the body of proc f as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                                  Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [Fill_In.f.procedure.apply_simp]).

                                                                                                                                  The body of proc f of module Fill_In, as a procedure of its own: the 2 calls it makes to module parameters (F) are its holes, in the order the body makes them.

                                                                                                                                  A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see Fill_In.f.procedure.apply_simp) rather than run. Use Fill_In.f for this procedure as a module.

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

                                                                                                                                    The module declared by module Fill_In, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                                                                                                                    Applied to such a tuple it is the record of its procedures Fill_In.init, Fill_In.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma Fill_In.apply_simp says.

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

                                                                                                                                      @[simp]: applying Fill_In.f to the parameters proc f uses (F) is Module.proc (Fill_In.f.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                                                                                      @[simp]

                                                                                                                                      @[simp]: the alias Fill_In.init, applied to the parameters its callee uses (F), is its callee, as written in the declaration.

                                                                                                                                      EC's local equiv eq_eager_ideal : BIRO.IRO.f ~ Fill_In(LRO).f : ={arg} /\ BIRO.IRO.mp{1} = RO.m{2} ==> ={res} /\ BIRO.IRO.mp{1} = RO.m{2}.

                                                                                                                                      EC's local equiv eq_eager_ideal2 : ExtendSample(FSome(BIRO.IRO)).f ~ FSome(Fill_In(RO)).f : ={arg} /\ BIRO.IRO.mp{1} = RO.m{2} ==> ={res} /\ BIRO.IRO.mp{1} = RO.m{2}.

                                                                                                                                      proc distinguish = …; of module Dist: an alias, EasyCrypt's proc distinguish = M.g — the callee itself, as a module abstracted over the module parameters it uses (F, in declaration order). It has no Dist.distinguish.procedure: applied with the @[simp] lemma Dist.distinguish.apply_simp, it is the callee.

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

                                                                                                                                        @[simp]: applying Dist to a tuple of its single parameter F — the record of its procedures Dist.distinguish, each applied to the parameters it uses.

                                                                                                                                        This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with Dist.distinguish.apply_simp to fill that procedure's holes.

                                                                                                                                        The module declared by module Dist, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                                                                        Applied to such a tuple it is the record of its procedures Dist.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma Dist.apply_simp says.

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

                                                                                                                                          Instantiating the holes of Game.distinguish.procedure with a tuple holeArgs of procedures: the body of proc distinguish as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                                          Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [Game.distinguish.procedure.apply_simp]).

                                                                                                                                          The body of proc distinguish of module Game, as a procedure of its own: the 3 calls it makes to module parameters (F) are its holes, in the order the body makes them.

                                                                                                                                          A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see Game.distinguish.procedure.apply_simp) rather than run. Use Game.distinguish for this procedure as a module.

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

                                                                                                                                            proc distinguish of module Game as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                                                                            Apply it with the @[simp] lemma Game.distinguish.apply_simp, which fills the holes of Game.distinguish.procedure with the callees the body called.

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

                                                                                                                                              @[simp]: applying Game.distinguish to the parameters proc distinguish uses (F) is Module.proc (Game.distinguish.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                                                                                              @[simp]

                                                                                                                                              @[simp]: applying Game to a tuple of its single parameter F — the record of its procedures Game.distinguish, each applied to the parameters it uses.

                                                                                                                                              This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with Game.distinguish.apply_simp to fill that procedure's holes.

                                                                                                                                              The module declared by module Game, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                                                                              Applied to such a tuple it is the record of its procedures Game.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma Game.apply_simp says.

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

                                                                                                                                                RFList's get as the oracle games call it (behind the module type's record) touches RFList.m only (EC reads the globals off the code).

                                                                                                                                                The clone SORO's Bounder touches SORO.Bounder.bounder only (EC reads the globals off the code).

                                                                                                                                                PSome(Perm) in a game of the clone SH (at the clone's module type, where inline does not see the first port's record): its init is the sponge-level one, by definition.

                                                                                                                                                EC's OSponge(P) = FSetSize(CSome(Sponge, P)), unfolded: FSetSize(FSome(Sponge(Poget(P)))) at the sponge's module types (OSponge is a composition at the clone SH's, where inline does not open the sponge's functors).

                                                                                                                                                A sponge-level primitive used as a DPRIMITIVE of the clone SH (in SH.Preimage, for OSponge) is the same module used as the sponge's (EC's module types are structural): the two coercions build it with the two module types' projections.

                                                                                                                                                SORO_P1(A) touches A's variables, Log.m, Counter.c, the simulator's maps and Gconcl_list.BIRO2.IRO.mp (EC reads the globals off the code).

                                                                                                                                                Dist_of_P1Adv(A) touches A's variables and Log.m (EC reads the globals off the code).

                                                                                                                                                theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Preimage.eager_ideal [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvPreimage) [Module.Declared A (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                                                                EC's local lemma eager_ideal &m.

                                                                                                                                                theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Preimage.rw_ideal_2 [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvPreimage) [Module.Declared A (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                                                                EC's local lemma rw_ideal_2 &m.

                                                                                                                                                theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Preimage.rw_ideal [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvPreimage) [Module.Declared A (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                                                                EC's local lemma rw_ideal &m.

                                                                                                                                                theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Preimage.leq_ideal [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvPreimage) [Module.Declared A (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                                                                EC's local lemma leq_ideal &m.

                                                                                                                                                theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Preimage.rw_real [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvPreimage) [Module.Declared A (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                                                                EC's local lemma rw_real &m.

                                                                                                                                                theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Preimage.Sponge_preimage_resistant [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvPreimage) [Module.Declared A (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Log.m.footprint ⊔ RFList.m.footprint ⊔ SORO.Preimage.Preimage2.hash.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :
                                                                                                                                                (∀ (F : SH.OIndif.ODFUNCTIONALITY) (P : SH.OIndif.ODPRIMITIVE), F.f.procedure.IsLossless → P.f.procedure.IsLossless → P.fi.procedure.IsLossless → (Module.app A (Module.pair F P)).procedure.IsLossless) → Pr[ SH.Preimage(A, OSponge, (SHA3_OIndiff.PSome Common.Perm)).main () @ &m : §res = true ] ≤ ↑(SHA3Indiff.limit ^ 2 - SHA3Indiff.limit) / ↑(2 ^ (Common.r + Common.c + 1).toNat) + ↑(4 * SHA3Indiff.limit ^ 2) / ↑(2 ^ Common.c.toNat) + ↑(SHA3OSecurity.sigma + 1) / 2 ^ SHA3OSecurity.size_out

                                                                                                                                                EC's lemma Sponge_preimage_resistant &m: (forall (F <: OIndif.ODFUNCTIONALITY) (P <: OIndif.ODPRIMITIVE), islossless F.f => islossless P.f => islossless P.fi => islossless A(F,P).guess) => Pr[Preimage(A, OSponge, PSome(Perm)).main() @ &m : res] <= (limit ^ 2 - limit)%r / (2 ^ (r + c + 1))%r + (4 * limit ^ 2)%r / (2 ^ c)%r + (sigma + 1)%r / (2%r ^ size_out).

                                                                                                                                                Section SecondPreimage (EC l. 920–1803) #

                                                                                                                                                Equations
                                                                                                                                                • One or more equations did not get rendered due to their size.
                                                                                                                                                Instances For
                                                                                                                                                  instance GaudisCrypt.SHA3.Pilot.SHA3OSecurity.SecondPreimage.instIsGlobalVarListBoolMMk :
                                                                                                                                                  Dist_of_P2Adv.m.IsGlobalVar (VariableName.mk "GaudisCrypt.SHA3.Pilot.SHA3OSecurity.SecondPreimage.Dist_of_P2Adv.m" (List Bool))

                                                                                                                                                  proc distinguish of module Dist_of_P2Adv as a module, abstracted over the module parameters it uses (F, P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                                                                                  Apply it with the @[simp] lemma Dist_of_P2Adv.distinguish.apply_simp, which fills the holes of Dist_of_P2Adv.distinguish.procedure with the callees the body called.

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

                                                                                                                                                    The body of proc distinguish of module Dist_of_P2Adv, as a procedure of its own: the 2 calls it makes to module parameters (F, P) are its holes, in the order the body makes them.

                                                                                                                                                    A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see Dist_of_P2Adv.distinguish.procedure.apply_simp) rather than run. Use Dist_of_P2Adv.distinguish for this procedure as a module.

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

                                                                                                                                                      @[simp]: applying Dist_of_P2Adv.distinguish to the parameters proc distinguish uses (F, P) is Module.proc (Dist_of_P2Adv.distinguish.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                                                                                                      @[simp]

                                                                                                                                                      @[simp]: applying Dist_of_P2Adv to a tuple of its 2 parameters F, P — the record of its procedures Dist_of_P2Adv.distinguish, each applied to the parameters it uses.

                                                                                                                                                      This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with Dist_of_P2Adv.distinguish.apply_simp to fill that procedure's holes.

                                                                                                                                                      Instantiating the holes of Dist_of_P2Adv.distinguish.procedure with a tuple holeArgs of procedures: the body of proc distinguish as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                                                      Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [Dist_of_P2Adv.distinguish.procedure.apply_simp]).

                                                                                                                                                      The module declared by module Dist_of_P2Adv, abstracted over its 2 parameters F, P, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                                                                                      Applied to such a tuple it is the record of its procedures Dist_of_P2Adv.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma Dist_of_P2Adv.apply_simp says.

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

                                                                                                                                                        Instantiating the holes of SORO_P2.guess.procedure with a tuple holeArgs of procedures: the body of proc guess as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                                                        Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [SORO_P2.guess.procedure.apply_simp]).

                                                                                                                                                        The body of proc guess of module SORO_P2, as a procedure of its own: the 2 calls it makes to module parameters (F) are its holes, in the order the body makes them.

                                                                                                                                                        A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see SORO_P2.guess.procedure.apply_simp) rather than run. Use SORO_P2.guess for this procedure as a module.

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

                                                                                                                                                          @[simp]: applying SORO_P2 to a tuple of its single parameter F — the record of its procedures SORO_P2.guess, each applied to the parameters it uses.

                                                                                                                                                          This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with SORO_P2.guess.apply_simp to fill that procedure's holes.

                                                                                                                                                          The module declared by module SORO_P2, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                                                                                          Applied to such a tuple it is the record of its procedures SORO_P2.guess, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma SORO_P2.apply_simp says.

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

                                                                                                                                                            @[simp]: applying SORO_P2.guess to the parameters proc guess uses (F) is Module.proc (SORO_P2.guess.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                                                                                                            proc guess of module SORO_P2 as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                                                                                            Apply it with the @[simp] lemma SORO_P2.guess.apply_simp, which fills the holes of SORO_P2.guess.procedure with the callees the body called.

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

                                                                                                                                                              The module declared by module Dist, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                                                                                              Applied to such a tuple it is the record of its procedures Dist.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma Dist.apply_simp says.

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

                                                                                                                                                                @[simp]: applying Dist to a tuple of its single parameter F — the record of its procedures Dist.distinguish, each applied to the parameters it uses.

                                                                                                                                                                This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with Dist.distinguish.apply_simp to fill that procedure's holes.

                                                                                                                                                                proc distinguish = …; of module Dist: an alias, EasyCrypt's proc distinguish = M.g — the callee itself, as a module abstracted over the module parameters it uses (F, in declaration order). It has no Dist.distinguish.procedure: applied with the @[simp] lemma Dist.distinguish.apply_simp, it is the callee.

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

                                                                                                                                                                  @[simp]: applying Game to a tuple of its single parameter F — the record of its procedures Game.distinguish, each applied to the parameters it uses.

                                                                                                                                                                  This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with Game.distinguish.apply_simp to fill that procedure's holes.

                                                                                                                                                                  The body of proc distinguish of module Game, as a procedure of its own: the 3 calls it makes to module parameters (F) are its holes, in the order the body makes them.

                                                                                                                                                                  A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see Game.distinguish.procedure.apply_simp) rather than run. Use Game.distinguish for this procedure as a module.

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

                                                                                                                                                                    The module declared by module Game, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                                                                                                    Applied to such a tuple it is the record of its procedures Game.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma Game.apply_simp says.

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

                                                                                                                                                                      proc distinguish of module Game as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                                                                                                      Apply it with the @[simp] lemma Game.distinguish.apply_simp, which fills the holes of Game.distinguish.procedure with the callees the body called.

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

                                                                                                                                                                        @[simp]: applying Game.distinguish to the parameters proc distinguish uses (F) is Module.proc (Game.distinguish.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                                                                                                                        Instantiating the holes of Game.distinguish.procedure with a tuple holeArgs of procedures: the body of proc distinguish as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                                                                        Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [Game.distinguish.procedure.apply_simp]).

                                                                                                                                                                        EC's local equiv toto : DFSetSize(OFC(ExtendSample(FSome(BIRO.IRO)))).f ~ DFSetSize(OFC(ExtendSample(FSome(BIRO.IRO)))).f : ={glob OFC, arg} /\ eq_extend_size BIRO.IRO.mp{1} BIRO.IRO.mp{2} Log.m{2} ==> ={glob OFC, res} /\ eq_extend_size BIRO.IRO.mp{1} BIRO.IRO.mp{2} Log.m{2}.

                                                                                                                                                                        EC's local equiv titi mess c: DFSetSize(OFC(ExtendSample(FSome(BIRO.IRO)))).f ~ SORO.Bounder(RFWhile).get : ={arg} /\ arg{1} = mess /\ Counter.c{1} = c /\ SORO.Bounder.bounder{2} <= Counter.c{1} /\ inv BIRO.IRO.mp{1} RFList.m{2} ==> if (increase_counter c mess size_out <= sigma) then (exists y, res{1} = Some y /\ res{2} = Some y /\ SORO.Bounder.bounder{2} <= Counter.c{1} /\ Counter.c{1} = increase_counter c mess size_out /\ inv BIRO.IRO.mp{1} RFList.m{2}) else (res{1} = None).

                                                                                                                                                                        f_out is countable, by to_list_inj (the Countable side condition of SORO.RO_is_second_preimage_resistant; EC's types need none).

                                                                                                                                                                        @[simp]

                                                                                                                                                                        @[simp]: TOTO.main = Module.proc TOTO.main.procedure — true by definition, proc main using no module parameter and so having no holes to fill.

                                                                                                                                                                        Instantiating the holes of TOTO.main.procedure with a tuple holeArgs of procedures: the body of proc main as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                                                                        Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [TOTO.main.procedure.apply_simp]).

                                                                                                                                                                        The module declared by module TOTO: the record of its procedures TOTO.main.

                                                                                                                                                                        The declaration has no parameter list, so no procedure of it can call one either and the module is not a function — it is the plain record itself, and there is no TOTO.apply_simp to apply it with.

                                                                                                                                                                        Equations
                                                                                                                                                                        Instances For

                                                                                                                                                                          The body of proc main of module TOTO, as a procedure of its own: it calls no module parameter, so it has no holes.

                                                                                                                                                                          A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see TOTO.main.procedure.apply_simp) rather than run. Use TOTO.main for this procedure as a module.

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

                                                                                                                                                                            proc main of module TOTO as a module: Module.proc TOTO.main.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — TOTO.main.apply_simp says exactly that.

                                                                                                                                                                            Equations
                                                                                                                                                                            Instances For
                                                                                                                                                                              theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.SecondPreimage.eager_ideal [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvSecondPreimage) [Module.Declared A (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                                                                                              EC's local lemma eager_ideal &m.

                                                                                                                                                                              theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.SecondPreimage.rw_ideal_2 [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvSecondPreimage) [Module.Declared A (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) (mess : List Bool) :

                                                                                                                                                                              EC's local lemma rw_ideal_2 &m (mess : bool list).

                                                                                                                                                                              theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.SecondPreimage.rw_ideal [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvSecondPreimage) [Module.Declared A (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) (mess : List Bool) :

                                                                                                                                                                              EC's local lemma rw_ideal &m (mess : bool list).

                                                                                                                                                                              theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.SecondPreimage.leq_ideal [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvSecondPreimage) [Module.Declared A (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) (mess : List Bool) :

                                                                                                                                                                              EC's local lemma leq_ideal &m mess.

                                                                                                                                                                              theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.SecondPreimage.rw_real [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvSecondPreimage) [Module.Declared A (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) (mess : List Bool) :

                                                                                                                                                                              EC's local lemma rw_real &m mess.

                                                                                                                                                                              theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.SecondPreimage.Sponge_second_preimage_resistant [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvSecondPreimage) [Module.Declared A (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Dist_of_P2Adv.m.footprint ⊔ SORO.SecondPreimage.SecondPreimage2.m2.footprint ⊔ SORO.SecondPreimage.D1.m1.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) (mess : List Bool) :
                                                                                                                                                                              (∀ (F : SH.OIndif.ODFUNCTIONALITY) (P : SH.OIndif.ODPRIMITIVE), F.f.procedure.IsLossless → P.f.procedure.IsLossless → P.fi.procedure.IsLossless → (Module.app A (Module.pair F P)).procedure.IsLossless) → Pr[ SH.SecondPreimage(A, OSponge, (SHA3_OIndiff.PSome Common.Perm)).main (mess) @ &m : §res = true ] ≤ ↑(SHA3Indiff.limit ^ 2 - SHA3Indiff.limit) / ↑(2 ^ (Common.r + Common.c + 1).toNat) + ↑(4 * SHA3Indiff.limit ^ 2) / ↑(2 ^ Common.c.toNat) + ↑(SHA3OSecurity.sigma + 1) / 2 ^ SHA3OSecurity.size_out

                                                                                                                                                                              EC's lemma Sponge_second_preimage_resistant &m mess: (forall (F <: OIndif.ODFUNCTIONALITY) (P <: OIndif.ODPRIMITIVE), islossless F.f => islossless P.f => islossless P.fi => islossless A(F,P).guess) => Pr[SecondPreimage(A, OSponge, PSome(Perm)).main(mess) @ &m : res] <= (limit ^ 2 - limit)%r / (2 ^ (r + c + 1))%r + (4 * limit ^ 2)%r / (2 ^ c)%r + (sigma + 1)%r / (2%r ^ size_out).

                                                                                                                                                                              Section Collision (EC l. 1808–2651) #

                                                                                                                                                                              The body of proc distinguish of module Dist_of_CollAdv, as a procedure of its own: the 2 calls it makes to module parameters (F, P) are its holes, in the order the body makes them.

                                                                                                                                                                              A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see Dist_of_CollAdv.distinguish.procedure.apply_simp) rather than run. Use Dist_of_CollAdv.distinguish for this procedure as a module.

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

                                                                                                                                                                                @[simp]: applying Dist_of_CollAdv to a tuple of its 2 parameters F, P — the record of its procedures Dist_of_CollAdv.distinguish, each applied to the parameters it uses.

                                                                                                                                                                                This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with Dist_of_CollAdv.distinguish.apply_simp to fill that procedure's holes.

                                                                                                                                                                                proc distinguish of module Dist_of_CollAdv as a module, abstracted over the module parameters it uses (F, P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                                                                                                                Apply it with the @[simp] lemma Dist_of_CollAdv.distinguish.apply_simp, which fills the holes of Dist_of_CollAdv.distinguish.procedure with the callees the body called.

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

                                                                                                                                                                                  @[simp]: applying Dist_of_CollAdv.distinguish to the parameters proc distinguish uses (F, P) is Module.proc (Dist_of_CollAdv.distinguish.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                                                                                                                                  The module declared by module Dist_of_CollAdv, abstracted over its 2 parameters F, P, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                                                                                                                  Applied to such a tuple it is the record of its procedures Dist_of_CollAdv.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma Dist_of_CollAdv.apply_simp says.

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

                                                                                                                                                                                    Instantiating the holes of Dist_of_CollAdv.distinguish.procedure with a tuple holeArgs of procedures: the body of proc distinguish as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                                                                                    Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [Dist_of_CollAdv.distinguish.procedure.apply_simp]).

                                                                                                                                                                                    @[simp]

                                                                                                                                                                                    @[simp]: applying SORO_Coll.guess to the parameters proc guess uses (F) is Module.proc (SORO_Coll.guess.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                                                                                                                                    @[simp]

                                                                                                                                                                                    @[simp]: applying SORO_Coll to a tuple of its single parameter F — the record of its procedures SORO_Coll.guess, each applied to the parameters it uses.

                                                                                                                                                                                    This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with SORO_Coll.guess.apply_simp to fill that procedure's holes.

                                                                                                                                                                                    The body of proc guess of module SORO_Coll, as a procedure of its own: the 2 calls it makes to module parameters (F) are its holes, in the order the body makes them.

                                                                                                                                                                                    A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see SORO_Coll.guess.procedure.apply_simp) rather than run. Use SORO_Coll.guess for this procedure as a module.

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

                                                                                                                                                                                      The module declared by module SORO_Coll, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                                                                                                                      Applied to such a tuple it is the record of its procedures SORO_Coll.guess, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma SORO_Coll.apply_simp says.

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

                                                                                                                                                                                        Instantiating the holes of SORO_Coll.guess.procedure with a tuple holeArgs of procedures: the body of proc guess as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                                                                                        Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [SORO_Coll.guess.procedure.apply_simp]).

                                                                                                                                                                                        proc guess of module SORO_Coll as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                                                                                                                        Apply it with the @[simp] lemma SORO_Coll.guess.apply_simp, which fills the holes of SORO_Coll.guess.procedure with the callees the body called.

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

                                                                                                                                                                                          proc distinguish = …; of module Dist: an alias, EasyCrypt's proc distinguish = M.g — the callee itself, as a module abstracted over the module parameters it uses (F, in declaration order). It has no Dist.distinguish.procedure: applied with the @[simp] lemma Dist.distinguish.apply_simp, it is the callee.

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

                                                                                                                                                                                            @[simp]: applying Dist to a tuple of its single parameter F — the record of its procedures Dist.distinguish, each applied to the parameters it uses.

                                                                                                                                                                                            This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with Dist.distinguish.apply_simp to fill that procedure's holes.

                                                                                                                                                                                            The module declared by module Dist, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                                                                                                                            Applied to such a tuple it is the record of its procedures Dist.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma Dist.apply_simp says.

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

                                                                                                                                                                                              The module declared by module Game, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.

                                                                                                                                                                                              Applied to such a tuple it is the record of its procedures Game.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma Game.apply_simp says.

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

                                                                                                                                                                                                proc distinguish of module Game as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                                                                                                                                Apply it with the @[simp] lemma Game.distinguish.apply_simp, which fills the holes of Game.distinguish.procedure with the callees the body called.

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

                                                                                                                                                                                                  @[simp]: applying Game to a tuple of its single parameter F — the record of its procedures Game.distinguish, each applied to the parameters it uses.

                                                                                                                                                                                                  This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with Game.distinguish.apply_simp to fill that procedure's holes.

                                                                                                                                                                                                  The body of proc distinguish of module Game, as a procedure of its own: the 3 calls it makes to module parameters (F) are its holes, in the order the body makes them.

                                                                                                                                                                                                  A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see Game.distinguish.procedure.apply_simp) rather than run. Use Game.distinguish for this procedure as a module.

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

                                                                                                                                                                                                    @[simp]: applying Game.distinguish to the parameters proc distinguish uses (F) is Module.proc (Game.distinguish.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.

                                                                                                                                                                                                    Instantiating the holes of Game.distinguish.procedure with a tuple holeArgs of procedures: the body of proc distinguish as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.

                                                                                                                                                                                                    Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [Game.distinguish.procedure.apply_simp]).

                                                                                                                                                                                                    Dist_of_CollAdv(A) touches A's variables and Log.m (EC reads the globals off the code).

                                                                                                                                                                                                    theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Collision.eager_ideal [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvCollision) [Module.Declared A (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                                                                                                                    EC's local lemma eager_ideal &m.

                                                                                                                                                                                                    theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Collision.rw_ideal_2 [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvCollision) [Module.Declared A (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                                                                                                                    EC's local lemma rw_ideal_2 &m.

                                                                                                                                                                                                    theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Collision.rw_ideal [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvCollision) [Module.Declared A (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                                                                                                                    EC's local lemma rw_ideal &m.

                                                                                                                                                                                                    theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Collision.leq_ideal [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvCollision) [Module.Declared A (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                                                                                                                    EC's local lemma leq_ideal &m.

                                                                                                                                                                                                    theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Collision.rw_real [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvCollision) [Module.Declared A (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                                                                                                                    EC's local lemma rw_real &m.

                                                                                                                                                                                                    theorem GaudisCrypt.SHA3.Pilot.SHA3OSecurity.Collision.Sponge_collision_resistant [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] [SHA3OSecurity.Params] (A : SH.AdvCollision) [Module.Declared A (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob A R] [R.Restricted (⋯ ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SORO.Bounder.bounder.footprint ⊔ SORO.RO.m.footprint ⊔ SORO.FRO.m.footprint ⊔ Eager.RO.m.footprint ⊔ Eager.FRO.m.footprint ⊔ Preimage.Log.m.footprint ⊔ Preimage.RFList.m.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :
                                                                                                                                                                                                    (∀ (F : SH.OIndif.ODFUNCTIONALITY) (P : SH.OIndif.ODPRIMITIVE), F.f.procedure.IsLossless → P.f.procedure.IsLossless → P.fi.procedure.IsLossless → (Module.app A (Module.pair F P)).procedure.IsLossless) → Pr[ SH.Collision(A, OSponge, (SHA3_OIndiff.PSome Common.Perm)).main () @ &m : §res = true ] ≤ ↑(SHA3Indiff.limit ^ 2 - SHA3Indiff.limit) / ↑(2 ^ (Common.r + Common.c + 1).toNat) + ↑(4 * SHA3Indiff.limit ^ 2) / ↑(2 ^ Common.c.toNat) + ↑(SHA3OSecurity.sigma * (SHA3OSecurity.sigma - 1) + 2) / 2 / 2 ^ SHA3OSecurity.size_out

                                                                                                                                                                                                    EC's lemma Sponge_collision_resistant &m : (forall (F <: OIndif.ODFUNCTIONALITY) (P <: OIndif.ODPRIMITIVE), islossless F.f => islossless P.f => islossless P.fi => islossless A(F,P).guess) => Pr[Collision(A, OSponge, PSome(Perm)).main() @ &m : res] <= (limit ^ 2 - limit)%r / (2 ^ (r + c + 1))%r + (4 * limit ^ 2)%r / (2 ^ c)%r + (sigma * (sigma - 1) + 2)%r / 2%r / 2%r ^ size_out.