Documentation

GaudisCrypt.Lib.EC.PROM

EasyCrypt's programmable random oracles (theories/crypto/PROM.ec), FullRO #

The abstract theory FullRO's types in_t, out_t, d_in_t, d_out_t and its operator dout are section variables, so a clone is an application. Only what ported developments use is here: the module types, MainD, the oracles RO, LRO, FRO and FullEager.RRO, and the statement of FullEager.RO_LRO_D.

Translation notes (see notes/SHA3/README.md):

type flag = [ Unknown | Known ].

Instances For
    @[implicit_reducible]
    Equations
    def GaudisCrypt.EC.PROM.is_ {α : Type} [Inhabited α] (fv : Option (α × flag)) (f : flag) :

    fv \is f: the flag of a (bound) entry.

    Equations
    Instances For
      noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.init.utilities (in_t out_t : Type) :
      ModuleTypeUtilities (RO_T in_t out_t) (procmod () → Unit) (init in_t out_t)

      What is derivable about the accessor RO_T.init, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

      • RO_T.init.utilities.accessorModule : RO_T →ₘ … — the accessor as a module, a projection being a module morphism;
      • RO_T.init.utilities.apply_simp — Module.app RO_T.init.utilities.accessorModule m = RO_T.init m: applying that module is the accessor;
      • RO_T.init.utilities.expression_eq — the same at the level of expressions: (RO_T.init m).expression = (RO_T.init.utilities.proj m.expression).reduce.
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        The module type declared by moduletype RO_T, with fields init, get, set, rem, sample: the type Module RO_T.typeRep of modules that are a right-nested tuple of the field types.

        Build one from a record of its fields with RO_T.mk, read a single field off one with the accessors RO_T.init, RO_T.get, RO_T.set, RO_T.rem, RO_T.sample, and get the whole record back with RO_T.structure.

        Equations
        Instances For
          @[simp]
          theorem GaudisCrypt.EC.PROM.FullRO.RO_T.set.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
          set in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.set

          @[simp]: reading the field set back off a module built from a record — RO_T.set (RO_T.mk r) = r.set.

          It is what carries the right-hand side of an X.apply_simp (which is an RO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.set.apply_simp.

          noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.set (in_t out_t : Type) :
          RO_T in_t out_t → procmod (in_t, out_t) → Unit

          The field set of a module of type RO_T: the projection onto component 2 of the right-nested tuple RO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

          RO_T.set.mk_simp reads this field back off a module built by RO_T.mk; RO_T.set.utilities has the accessor as a module, and the lemmas about it.

          Its parameters are named x, y, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

          Equations
          Instances For
            noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.set.utilities (in_t out_t : Type) :
            ModuleTypeUtilities (RO_T in_t out_t) (procmod (in_t, out_t) → Unit) (set in_t out_t)

            What is derivable about the accessor RO_T.set, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

            • RO_T.set.utilities.accessorModule : RO_T →ₘ … — the accessor as a module, a projection being a module morphism;
            • RO_T.set.utilities.apply_simp — Module.app RO_T.set.utilities.accessorModule m = RO_T.set m: applying that module is the accessor;
            • RO_T.set.utilities.expression_eq — the same at the level of expressions: (RO_T.set m).expression = (RO_T.set.utilities.proj m.expression).reduce.
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              @[simp]
              theorem GaudisCrypt.EC.PROM.FullRO.RO_T.get.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
              get in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.get

              @[simp]: reading the field get back off a module built from a record — RO_T.get (RO_T.mk r) = r.get.

              It is what carries the right-hand side of an X.apply_simp (which is an RO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.get.apply_simp.

              @[simp]
              theorem GaudisCrypt.EC.PROM.FullRO.RO_T.destruct_mk (in_t out_t : Type) (theModule✝ : RO_T in_t out_t) :
              mk in_t out_t («structure» in_t out_t theModule✝) = theModule✝

              @[simp]: RO_T.mk (RO_T.structure m) = m — rebuilding a module from its own fields gives that module back.

              The ModuleTypeRep underlying RO_T, the module type declared by moduletype RO_T: the right-nested product of its 5 field types, in declaration order.

              RO_T is by definition Module RO_T.typeRep.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.sample.utilities (in_t out_t : Type) :
                ModuleTypeUtilities (RO_T in_t out_t) (procmod (in_t) → Unit) (sample in_t out_t)

                What is derivable about the accessor RO_T.sample, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                • RO_T.sample.utilities.accessorModule : RO_T →ₘ … — the accessor as a module, a projection being a module morphism;
                • RO_T.sample.utilities.apply_simp — Module.app RO_T.sample.utilities.accessorModule m = RO_T.sample m: applying that module is the accessor;
                • RO_T.sample.utilities.expression_eq — the same at the level of expressions: (RO_T.sample m).expression = (RO_T.sample.utilities.proj m.expression).reduce.
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.rem (in_t out_t : Type) :
                  RO_T in_t out_t → procmod (in_t) → Unit

                  The field rem of a module of type RO_T: the projection onto component 3 of the right-nested tuple RO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                  RO_T.rem.mk_simp reads this field back off a module built by RO_T.mk; RO_T.rem.utilities has the accessor as a module, and the lemmas about it.

                  Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                  Equations
                  Instances For
                    noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.get.utilities (in_t out_t : Type) :
                    ModuleTypeUtilities (RO_T in_t out_t) (procmod (in_t) → out_t) (get in_t out_t)

                    What is derivable about the accessor RO_T.get, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                    • RO_T.get.utilities.accessorModule : RO_T →ₘ … — the accessor as a module, a projection being a module morphism;
                    • RO_T.get.utilities.apply_simp — Module.app RO_T.get.utilities.accessorModule m = RO_T.get m: applying that module is the accessor;
                    • RO_T.get.utilities.expression_eq — the same at the level of expressions: (RO_T.get m).expression = (RO_T.get.utilities.proj m.expression).reduce.
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      @[simp]
                      theorem GaudisCrypt.EC.PROM.FullRO.RO_T.init.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                      init in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.init

                      @[simp]: reading the field init back off a module built from a record — RO_T.init (RO_T.mk r) = r.init.

                      It is what carries the right-hand side of an X.apply_simp (which is an RO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.init.apply_simp.

                      noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.sample (in_t out_t : Type) :
                      RO_T in_t out_t → procmod (in_t) → Unit

                      The field sample of a module of type RO_T: the projection onto component 4 of the right-nested tuple RO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                      RO_T.sample.mk_simp reads this field back off a module built by RO_T.mk; RO_T.sample.utilities has the accessor as a module, and the lemmas about it.

                      Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                      Equations
                      Instances For
                        @[simp]
                        theorem GaudisCrypt.EC.PROM.FullRO.RO_T.rem.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                        rem in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.rem

                        @[simp]: reading the field rem back off a module built from a record — RO_T.rem (RO_T.mk r) = r.rem.

                        It is what carries the right-hand side of an X.apply_simp (which is an RO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.rem.apply_simp.

                        noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.init (in_t out_t : Type) :
                        RO_T in_t out_t → procmod () → Unit

                        The field init of a module of type RO_T: the projection onto component 0 of the right-nested tuple RO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                        RO_T.init.mk_simp reads this field back off a module built by RO_T.mk; RO_T.init.utilities has the accessor as a module, and the lemmas about it.

                        It takes no parameters (recorded in @[gaudiProcParamNames]).

                        Equations
                        Instances For
                          noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.structure (in_t out_t : Type) :
                          RO_T in_t out_t → Structure in_t out_t

                          The record of a module's fields: RO_T.structure m is RO_T.Structure.mk applied to RO_T.init, RO_T.get, RO_T.set, RO_T.rem, RO_T.sample of m.

                          Inverse of RO_T.mk (RO_T.mk_destruct, RO_T.destruct_mk).

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.rem.utilities (in_t out_t : Type) :
                            ModuleTypeUtilities (RO_T in_t out_t) (procmod (in_t) → Unit) (rem in_t out_t)

                            What is derivable about the accessor RO_T.rem, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                            • RO_T.rem.utilities.accessorModule : RO_T →ₘ … — the accessor as a module, a projection being a module morphism;
                            • RO_T.rem.utilities.apply_simp — Module.app RO_T.rem.utilities.accessorModule m = RO_T.rem m: applying that module is the accessor;
                            • RO_T.rem.utilities.expression_eq — the same at the level of expressions: (RO_T.rem m).expression = (RO_T.rem.utilities.proj m.expression).reduce.
                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              @[reducible]
                              noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.mk (in_t out_t : Type) :
                              Structure in_t out_t → RO_T in_t out_t

                              Builds a module of type RO_T from the record RO_T.Structure of its fields, as a right-nested Module.pair'. @[reducible].

                              Inverse of RO_T.structure (RO_T.mk_destruct, RO_T.destruct_mk); a single field of a module built this way is read back by the @[simp] lemmas RO_T.init.mk_simp, RO_T.get.mk_simp, RO_T.set.mk_simp, RO_T.rem.mk_simp, RO_T.sample.mk_simp.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                @[simp]
                                theorem GaudisCrypt.EC.PROM.FullRO.RO_T.sample.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                sample in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.sample

                                @[simp]: reading the field sample back off a module built from a record — RO_T.sample (RO_T.mk r) = r.sample.

                                It is what carries the right-hand side of an X.apply_simp (which is an RO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.sample.apply_simp.

                                The record of the fields of a module of type RO_T: the fields init, get, set, rem, sample, one per moduletype field, each of that field's own module type.

                                RO_T.mk turns such a record into a RO_T, RO_T.structure turns a RO_T back into one.

                                Instances For
                                  @[simp]
                                  theorem GaudisCrypt.EC.PROM.FullRO.RO_T.mk_destruct (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                  «structure» in_t out_t (mk in_t out_t theRecord✝) = theRecord✝

                                  @[simp]: RO_T.structure (RO_T.mk r) = r — destructing a module built from a record gives that record back.

                                  noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_T.get (in_t out_t : Type) :
                                  RO_T in_t out_t → procmod (in_t) → out_t

                                  The field get of a module of type RO_T: the projection onto component 1 of the right-nested tuple RO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                  RO_T.get.mk_simp reads this field back off a module built by RO_T.mk; RO_T.get.utilities has the accessor as a module, and the lemmas about it.

                                  Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                                  Equations
                                  Instances For
                                    @[implicit_reducible]
                                    instance GaudisCrypt.EC.PROM.FullRO.instIsModuleRO_T (in_t out_t : Type) :
                                    IsModule (RO_T in_t out_t)

                                    The IsModule RO_T instance: RO_T is a module type, with representation RO_T.typeRep.

                                    It is what lets the name RO_T stand where a module type is expected — in Module.Arr/Module.Prod (→ₘ/×ₘ), say — which the underlying Module RO_T.typeRep would do on its own but RO_T, a plain (non-reducible) def, would not.

                                    Equations
                                    noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.structure (in_t out_t : Type) :
                                    ROmap in_t out_t → Structure in_t out_t

                                    The record of a module's fields: ROmap.structure m is ROmap.Structure.mk applied to ROmap.init, ROmap.get, ROmap.set, ROmap.rem, ROmap.sample, ROmap.restrK of m.

                                    Inverse of ROmap.mk (ROmap.mk_destruct, ROmap.destruct_mk).

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.restrK (in_t out_t : Type) :
                                      ROmap in_t out_t → procmod () → FMap in_t out_t

                                      The field restrK of a module of type ROmap: the projection onto component 5 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                      ROmap.restrK.mk_simp reads this field back off a module built by ROmap.mk; ROmap.restrK.utilities has the accessor as a module, and the lemmas about it.

                                      It takes no parameters (recorded in @[gaudiProcParamNames]).

                                      Equations
                                      Instances For
                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.init.utilities (in_t out_t : Type) :
                                        ModuleTypeUtilities (ROmap in_t out_t) (procmod () → Unit) (init in_t out_t)

                                        What is derivable about the accessor ROmap.init, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                        • ROmap.init.utilities.accessorModule : ROmap →ₘ … — the accessor as a module, a projection being a module morphism;
                                        • ROmap.init.utilities.apply_simp — Module.app ROmap.init.utilities.accessorModule m = ROmap.init m: applying that module is the accessor;
                                        • ROmap.init.utilities.expression_eq — the same at the level of expressions: (ROmap.init m).expression = (ROmap.init.utilities.proj m.expression).reduce.
                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          @[simp]
                                          theorem GaudisCrypt.EC.PROM.FullRO.ROmap.init.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                          init in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.init

                                          @[simp]: reading the field init back off a module built from a record — ROmap.init (ROmap.mk r) = r.init.

                                          It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.init.apply_simp.

                                          noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.rem (in_t out_t : Type) :
                                          ROmap in_t out_t → procmod (in_t) → Unit

                                          The field rem of a module of type ROmap: the projection onto component 3 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                          ROmap.rem.mk_simp reads this field back off a module built by ROmap.mk; ROmap.rem.utilities has the accessor as a module, and the lemmas about it.

                                          Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                                          Equations
                                          Instances For
                                            @[reducible]
                                            noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.mk (in_t out_t : Type) :
                                            Structure in_t out_t → ROmap in_t out_t

                                            Builds a module of type ROmap from the record ROmap.Structure of its fields, as a right-nested Module.pair'. @[reducible].

                                            Inverse of ROmap.structure (ROmap.mk_destruct, ROmap.destruct_mk); a single field of a module built this way is read back by the @[simp] lemmas ROmap.init.mk_simp, ROmap.get.mk_simp, ROmap.set.mk_simp, ROmap.rem.mk_simp, ROmap.sample.mk_simp, ROmap.restrK.mk_simp.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              @[simp]
                                              theorem GaudisCrypt.EC.PROM.FullRO.ROmap.set.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                              set in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.set

                                              @[simp]: reading the field set back off a module built from a record — ROmap.set (ROmap.mk r) = r.set.

                                              It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.set.apply_simp.

                                              noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.init (in_t out_t : Type) :
                                              ROmap in_t out_t → procmod () → Unit

                                              The field init of a module of type ROmap: the projection onto component 0 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                              ROmap.init.mk_simp reads this field back off a module built by ROmap.mk; ROmap.init.utilities has the accessor as a module, and the lemmas about it.

                                              It takes no parameters (recorded in @[gaudiProcParamNames]).

                                              Equations
                                              Instances For
                                                noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.get.utilities (in_t out_t : Type) :
                                                ModuleTypeUtilities (ROmap in_t out_t) (procmod (in_t) → out_t) (get in_t out_t)

                                                What is derivable about the accessor ROmap.get, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                • ROmap.get.utilities.accessorModule : ROmap →ₘ … — the accessor as a module, a projection being a module morphism;
                                                • ROmap.get.utilities.apply_simp — Module.app ROmap.get.utilities.accessorModule m = ROmap.get m: applying that module is the accessor;
                                                • ROmap.get.utilities.expression_eq — the same at the level of expressions: (ROmap.get m).expression = (ROmap.get.utilities.proj m.expression).reduce.
                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  @[simp]
                                                  theorem GaudisCrypt.EC.PROM.FullRO.ROmap.mk_destruct (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                  «structure» in_t out_t (mk in_t out_t theRecord✝) = theRecord✝

                                                  @[simp]: ROmap.structure (ROmap.mk r) = r — destructing a module built from a record gives that record back.

                                                  @[simp]
                                                  theorem GaudisCrypt.EC.PROM.FullRO.ROmap.sample.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                  sample in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.sample

                                                  @[simp]: reading the field sample back off a module built from a record — ROmap.sample (ROmap.mk r) = r.sample.

                                                  It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.sample.apply_simp.

                                                  @[simp]
                                                  theorem GaudisCrypt.EC.PROM.FullRO.ROmap.restrK.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                  restrK in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.restrK

                                                  @[simp]: reading the field restrK back off a module built from a record — ROmap.restrK (ROmap.mk r) = r.restrK.

                                                  It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.restrK.apply_simp.

                                                  The record of the fields of a module of type ROmap: the fields init, get, set, rem, sample, restrK, one per moduletype field, each of that field's own module type.

                                                  ROmap.mk turns such a record into a ROmap, ROmap.structure turns a ROmap back into one.

                                                  Instances For

                                                    The ModuleTypeRep underlying ROmap, the module type declared by moduletype ROmap: the right-nested product of its 6 field types, in declaration order.

                                                    ROmap is by definition Module ROmap.typeRep.

                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For
                                                      @[simp]
                                                      theorem GaudisCrypt.EC.PROM.FullRO.ROmap.get.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                      get in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.get

                                                      @[simp]: reading the field get back off a module built from a record — ROmap.get (ROmap.mk r) = r.get.

                                                      It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.get.apply_simp.

                                                      noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.get (in_t out_t : Type) :
                                                      ROmap in_t out_t → procmod (in_t) → out_t

                                                      The field get of a module of type ROmap: the projection onto component 1 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                                      ROmap.get.mk_simp reads this field back off a module built by ROmap.mk; ROmap.get.utilities has the accessor as a module, and the lemmas about it.

                                                      Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                                                      Equations
                                                      Instances For
                                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.sample.utilities (in_t out_t : Type) :
                                                        ModuleTypeUtilities (ROmap in_t out_t) (procmod (in_t) → Unit) (sample in_t out_t)

                                                        What is derivable about the accessor ROmap.sample, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                        • ROmap.sample.utilities.accessorModule : ROmap →ₘ … — the accessor as a module, a projection being a module morphism;
                                                        • ROmap.sample.utilities.apply_simp — Module.app ROmap.sample.utilities.accessorModule m = ROmap.sample m: applying that module is the accessor;
                                                        • ROmap.sample.utilities.expression_eq — the same at the level of expressions: (ROmap.sample m).expression = (ROmap.sample.utilities.proj m.expression).reduce.
                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          @[implicit_reducible]
                                                          instance GaudisCrypt.EC.PROM.FullRO.instIsModuleROmap (in_t out_t : Type) :
                                                          IsModule (ROmap in_t out_t)

                                                          The IsModule ROmap instance: ROmap is a module type, with representation ROmap.typeRep.

                                                          It is what lets the name ROmap stand where a module type is expected — in Module.Arr/Module.Prod (→ₘ/×ₘ), say — which the underlying Module ROmap.typeRep would do on its own but ROmap, a plain (non-reducible) def, would not.

                                                          Equations
                                                          noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.sample (in_t out_t : Type) :
                                                          ROmap in_t out_t → procmod (in_t) → Unit

                                                          The field sample of a module of type ROmap: the projection onto component 4 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                                          ROmap.sample.mk_simp reads this field back off a module built by ROmap.mk; ROmap.sample.utilities has the accessor as a module, and the lemmas about it.

                                                          Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                                                          Equations
                                                          Instances For
                                                            noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.set (in_t out_t : Type) :
                                                            ROmap in_t out_t → procmod (in_t, out_t) → Unit

                                                            The field set of a module of type ROmap: the projection onto component 2 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                                            ROmap.set.mk_simp reads this field back off a module built by ROmap.mk; ROmap.set.utilities has the accessor as a module, and the lemmas about it.

                                                            Its parameters are named x, y, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                                                            Equations
                                                            Instances For
                                                              noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.set.utilities (in_t out_t : Type) :
                                                              ModuleTypeUtilities (ROmap in_t out_t) (procmod (in_t, out_t) → Unit) (set in_t out_t)

                                                              What is derivable about the accessor ROmap.set, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                              • ROmap.set.utilities.accessorModule : ROmap →ₘ … — the accessor as a module, a projection being a module morphism;
                                                              • ROmap.set.utilities.apply_simp — Module.app ROmap.set.utilities.accessorModule m = ROmap.set m: applying that module is the accessor;
                                                              • ROmap.set.utilities.expression_eq — the same at the level of expressions: (ROmap.set m).expression = (ROmap.set.utilities.proj m.expression).reduce.
                                                              Equations
                                                              • One or more equations did not get rendered due to their size.
                                                              Instances For
                                                                @[simp]
                                                                theorem GaudisCrypt.EC.PROM.FullRO.ROmap.destruct_mk (in_t out_t : Type) (theModule✝ : ROmap in_t out_t) :
                                                                mk in_t out_t («structure» in_t out_t theModule✝) = theModule✝

                                                                @[simp]: ROmap.mk (ROmap.structure m) = m — rebuilding a module from its own fields gives that module back.

                                                                noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.restrK.utilities (in_t out_t : Type) :
                                                                ModuleTypeUtilities (ROmap in_t out_t) (procmod () → FMap in_t out_t) (restrK in_t out_t)

                                                                What is derivable about the accessor ROmap.restrK, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                                • ROmap.restrK.utilities.accessorModule : ROmap →ₘ … — the accessor as a module, a projection being a module morphism;
                                                                • ROmap.restrK.utilities.apply_simp — Module.app ROmap.restrK.utilities.accessorModule m = ROmap.restrK m: applying that module is the accessor;
                                                                • ROmap.restrK.utilities.expression_eq — the same at the level of expressions: (ROmap.restrK m).expression = (ROmap.restrK.utilities.proj m.expression).reduce.
                                                                Equations
                                                                • One or more equations did not get rendered due to their size.
                                                                Instances For
                                                                  noncomputable def GaudisCrypt.EC.PROM.FullRO.ROmap.rem.utilities (in_t out_t : Type) :
                                                                  ModuleTypeUtilities (ROmap in_t out_t) (procmod (in_t) → Unit) (rem in_t out_t)

                                                                  What is derivable about the accessor ROmap.rem, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                                  • ROmap.rem.utilities.accessorModule : ROmap →ₘ … — the accessor as a module, a projection being a module morphism;
                                                                  • ROmap.rem.utilities.apply_simp — Module.app ROmap.rem.utilities.accessorModule m = ROmap.rem m: applying that module is the accessor;
                                                                  • ROmap.rem.utilities.expression_eq — the same at the level of expressions: (ROmap.rem m).expression = (ROmap.rem.utilities.proj m.expression).reduce.
                                                                  Equations
                                                                  • One or more equations did not get rendered due to their size.
                                                                  Instances For
                                                                    @[simp]
                                                                    theorem GaudisCrypt.EC.PROM.FullRO.ROmap.rem.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                                    rem in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.rem

                                                                    @[simp]: reading the field rem back off a module built from a record — ROmap.rem (ROmap.mk r) = r.rem.

                                                                    It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.rem.apply_simp.

                                                                    The module type declared by moduletype ROmap, with fields init, get, set, rem, sample, restrK: the type Module ROmap.typeRep of modules that are a right-nested tuple of the field types.

                                                                    Build one from a record of its fields with ROmap.mk, read a single field off one with the accessors ROmap.init, ROmap.get, ROmap.set, ROmap.rem, ROmap.sample, ROmap.restrK, and get the whole record back with ROmap.structure.

                                                                    Equations
                                                                    Instances For
                                                                      noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.rem.utilities (in_t out_t : Type) :
                                                                      ModuleTypeUtilities (FRO_T in_t out_t) (procmod (in_t) → Unit) (rem in_t out_t)

                                                                      What is derivable about the accessor FRO_T.rem, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                                      • FRO_T.rem.utilities.accessorModule : FRO_T →ₘ … — the accessor as a module, a projection being a module morphism;
                                                                      • FRO_T.rem.utilities.apply_simp — Module.app FRO_T.rem.utilities.accessorModule m = FRO_T.rem m: applying that module is the accessor;
                                                                      • FRO_T.rem.utilities.expression_eq — the same at the level of expressions: (FRO_T.rem m).expression = (FRO_T.rem.utilities.proj m.expression).reduce.
                                                                      Equations
                                                                      • One or more equations did not get rendered due to their size.
                                                                      Instances For
                                                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.allKnown.utilities (in_t out_t : Type) :
                                                                        ModuleTypeUtilities (FRO_T in_t out_t) (procmod () → FMap in_t out_t) (allKnown in_t out_t)

                                                                        What is derivable about the accessor FRO_T.allKnown, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                                        • FRO_T.allKnown.utilities.accessorModule : FRO_T →ₘ … — the accessor as a module, a projection being a module morphism;
                                                                        • FRO_T.allKnown.utilities.apply_simp — Module.app FRO_T.allKnown.utilities.accessorModule m = FRO_T.allKnown m: applying that module is the accessor;
                                                                        • FRO_T.allKnown.utilities.expression_eq — the same at the level of expressions: (FRO_T.allKnown m).expression = (FRO_T.allKnown.utilities.proj m.expression).reduce.
                                                                        Equations
                                                                        • One or more equations did not get rendered due to their size.
                                                                        Instances For
                                                                          @[simp]
                                                                          theorem GaudisCrypt.EC.PROM.FullRO.FRO_T.rem.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                                          rem in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.rem

                                                                          @[simp]: reading the field rem back off a module built from a record — FRO_T.rem (FRO_T.mk r) = r.rem.

                                                                          It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.rem.apply_simp.

                                                                          noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.rem (in_t out_t : Type) :
                                                                          FRO_T in_t out_t → procmod (in_t) → Unit

                                                                          The field rem of a module of type FRO_T: the projection onto component 3 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                                                          FRO_T.rem.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.rem.utilities has the accessor as a module, and the lemmas about it.

                                                                          Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                                                                          Equations
                                                                          Instances For

                                                                            What is derivable about the accessor FRO_T.queried, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                                            • FRO_T.queried.utilities.accessorModule : FRO_T →ₘ … — the accessor as a module, a projection being a module morphism;
                                                                            • FRO_T.queried.utilities.apply_simp — Module.app FRO_T.queried.utilities.accessorModule m = FRO_T.queried m: applying that module is the accessor;
                                                                            • FRO_T.queried.utilities.expression_eq — the same at the level of expressions: (FRO_T.queried m).expression = (FRO_T.queried.utilities.proj m.expression).reduce.
                                                                            Equations
                                                                            • One or more equations did not get rendered due to their size.
                                                                            Instances For
                                                                              @[simp]
                                                                              theorem GaudisCrypt.EC.PROM.FullRO.FRO_T.get.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                                              get in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.get

                                                                              @[simp]: reading the field get back off a module built from a record — FRO_T.get (FRO_T.mk r) = r.get.

                                                                              It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.get.apply_simp.

                                                                              noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.allKnown (in_t out_t : Type) :
                                                                              FRO_T in_t out_t → procmod () → FMap in_t out_t

                                                                              The field allKnown of a module of type FRO_T: the projection onto component 6 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                                                              FRO_T.allKnown.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.allKnown.utilities has the accessor as a module, and the lemmas about it.

                                                                              It takes no parameters (recorded in @[gaudiProcParamNames]).

                                                                              Equations
                                                                              Instances For

                                                                                The module type declared by moduletype FRO_T, with fields init, get, set, rem, sample, queried, allKnown: the type Module FRO_T.typeRep of modules that are a right-nested tuple of the field types.

                                                                                Build one from a record of its fields with FRO_T.mk, read a single field off one with the accessors FRO_T.init, FRO_T.get, FRO_T.set, FRO_T.rem, FRO_T.sample, FRO_T.queried, FRO_T.allKnown, and get the whole record back with FRO_T.structure.

                                                                                Equations
                                                                                Instances For
                                                                                  @[implicit_reducible]
                                                                                  instance GaudisCrypt.EC.PROM.FullRO.instIsModuleFRO_T (in_t out_t : Type) :
                                                                                  IsModule (FRO_T in_t out_t)

                                                                                  The IsModule FRO_T instance: FRO_T is a module type, with representation FRO_T.typeRep.

                                                                                  It is what lets the name FRO_T stand where a module type is expected — in Module.Arr/Module.Prod (→ₘ/×ₘ), say — which the underlying Module FRO_T.typeRep would do on its own but FRO_T, a plain (non-reducible) def, would not.

                                                                                  Equations
                                                                                  @[reducible]
                                                                                  noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.mk (in_t out_t : Type) :
                                                                                  Structure in_t out_t → FRO_T in_t out_t

                                                                                  Builds a module of type FRO_T from the record FRO_T.Structure of its fields, as a right-nested Module.pair'. @[reducible].

                                                                                  Inverse of FRO_T.structure (FRO_T.mk_destruct, FRO_T.destruct_mk); a single field of a module built this way is read back by the @[simp] lemmas FRO_T.init.mk_simp, FRO_T.get.mk_simp, FRO_T.set.mk_simp, FRO_T.rem.mk_simp, FRO_T.sample.mk_simp, FRO_T.queried.mk_simp, FRO_T.allKnown.mk_simp.

                                                                                  Equations
                                                                                  • One or more equations did not get rendered due to their size.
                                                                                  Instances For
                                                                                    @[simp]
                                                                                    theorem GaudisCrypt.EC.PROM.FullRO.FRO_T.allKnown.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                                                    allKnown in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.allKnown

                                                                                    @[simp]: reading the field allKnown back off a module built from a record — FRO_T.allKnown (FRO_T.mk r) = r.allKnown.

                                                                                    It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.allKnown.apply_simp.

                                                                                    @[simp]
                                                                                    theorem GaudisCrypt.EC.PROM.FullRO.FRO_T.mk_destruct (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                                                    «structure» in_t out_t (mk in_t out_t theRecord✝) = theRecord✝

                                                                                    @[simp]: FRO_T.structure (FRO_T.mk r) = r — destructing a module built from a record gives that record back.

                                                                                    noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.sample.utilities (in_t out_t : Type) :
                                                                                    ModuleTypeUtilities (FRO_T in_t out_t) (procmod (in_t) → Unit) (sample in_t out_t)

                                                                                    What is derivable about the accessor FRO_T.sample, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                                                    • FRO_T.sample.utilities.accessorModule : FRO_T →ₘ … — the accessor as a module, a projection being a module morphism;
                                                                                    • FRO_T.sample.utilities.apply_simp — Module.app FRO_T.sample.utilities.accessorModule m = FRO_T.sample m: applying that module is the accessor;
                                                                                    • FRO_T.sample.utilities.expression_eq — the same at the level of expressions: (FRO_T.sample m).expression = (FRO_T.sample.utilities.proj m.expression).reduce.
                                                                                    Equations
                                                                                    • One or more equations did not get rendered due to their size.
                                                                                    Instances For
                                                                                      noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.set.utilities (in_t out_t : Type) :
                                                                                      ModuleTypeUtilities (FRO_T in_t out_t) (procmod (in_t, out_t) → Unit) (set in_t out_t)

                                                                                      What is derivable about the accessor FRO_T.set, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                                                      • FRO_T.set.utilities.accessorModule : FRO_T →ₘ … — the accessor as a module, a projection being a module morphism;
                                                                                      • FRO_T.set.utilities.apply_simp — Module.app FRO_T.set.utilities.accessorModule m = FRO_T.set m: applying that module is the accessor;
                                                                                      • FRO_T.set.utilities.expression_eq — the same at the level of expressions: (FRO_T.set m).expression = (FRO_T.set.utilities.proj m.expression).reduce.
                                                                                      Equations
                                                                                      • One or more equations did not get rendered due to their size.
                                                                                      Instances For
                                                                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.sample (in_t out_t : Type) :
                                                                                        FRO_T in_t out_t → procmod (in_t) → Unit

                                                                                        The field sample of a module of type FRO_T: the projection onto component 4 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                                                                        FRO_T.sample.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.sample.utilities has the accessor as a module, and the lemmas about it.

                                                                                        Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                                                                                        Equations
                                                                                        Instances For
                                                                                          @[simp]
                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.FRO_T.sample.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                                                          sample in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.sample

                                                                                          @[simp]: reading the field sample back off a module built from a record — FRO_T.sample (FRO_T.mk r) = r.sample.

                                                                                          It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.sample.apply_simp.

                                                                                          noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.structure (in_t out_t : Type) :
                                                                                          FRO_T in_t out_t → Structure in_t out_t

                                                                                          The record of a module's fields: FRO_T.structure m is FRO_T.Structure.mk applied to FRO_T.init, FRO_T.get, FRO_T.set, FRO_T.rem, FRO_T.sample, FRO_T.queried, FRO_T.allKnown of m.

                                                                                          Inverse of FRO_T.mk (FRO_T.mk_destruct, FRO_T.destruct_mk).

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

                                                                                            The record of the fields of a module of type FRO_T: the fields init, get, set, rem, sample, queried, allKnown, one per moduletype field, each of that field's own module type.

                                                                                            FRO_T.mk turns such a record into a FRO_T, FRO_T.structure turns a FRO_T back into one.

                                                                                            Instances For
                                                                                              @[simp]
                                                                                              theorem GaudisCrypt.EC.PROM.FullRO.FRO_T.queried.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                                                              queried in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.queried

                                                                                              @[simp]: reading the field queried back off a module built from a record — FRO_T.queried (FRO_T.mk r) = r.queried.

                                                                                              It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.queried.apply_simp.

                                                                                              noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.init (in_t out_t : Type) :
                                                                                              FRO_T in_t out_t → procmod () → Unit

                                                                                              The field init of a module of type FRO_T: the projection onto component 0 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                                                                              FRO_T.init.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.init.utilities has the accessor as a module, and the lemmas about it.

                                                                                              It takes no parameters (recorded in @[gaudiProcParamNames]).

                                                                                              Equations
                                                                                              Instances For
                                                                                                @[simp]
                                                                                                theorem GaudisCrypt.EC.PROM.FullRO.FRO_T.destruct_mk (in_t out_t : Type) (theModule✝ : FRO_T in_t out_t) :
                                                                                                mk in_t out_t («structure» in_t out_t theModule✝) = theModule✝

                                                                                                @[simp]: FRO_T.mk (FRO_T.structure m) = m — rebuilding a module from its own fields gives that module back.

                                                                                                noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.get.utilities (in_t out_t : Type) :
                                                                                                ModuleTypeUtilities (FRO_T in_t out_t) (procmod (in_t) → out_t) (get in_t out_t)

                                                                                                What is derivable about the accessor FRO_T.get, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                                                                • FRO_T.get.utilities.accessorModule : FRO_T →ₘ … — the accessor as a module, a projection being a module morphism;
                                                                                                • FRO_T.get.utilities.apply_simp — Module.app FRO_T.get.utilities.accessorModule m = FRO_T.get m: applying that module is the accessor;
                                                                                                • FRO_T.get.utilities.expression_eq — the same at the level of expressions: (FRO_T.get m).expression = (FRO_T.get.utilities.proj m.expression).reduce.
                                                                                                Equations
                                                                                                • One or more equations did not get rendered due to their size.
                                                                                                Instances For
                                                                                                  noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.set (in_t out_t : Type) :
                                                                                                  FRO_T in_t out_t → procmod (in_t, out_t) → Unit

                                                                                                  The field set of a module of type FRO_T: the projection onto component 2 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                                                                                  FRO_T.set.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.set.utilities has the accessor as a module, and the lemmas about it.

                                                                                                  Its parameters are named x, y, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                                                                                                  Equations
                                                                                                  Instances For
                                                                                                    noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.get (in_t out_t : Type) :
                                                                                                    FRO_T in_t out_t → procmod (in_t) → out_t

                                                                                                    The field get of a module of type FRO_T: the projection onto component 1 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                                                                                    FRO_T.get.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.get.utilities has the accessor as a module, and the lemmas about it.

                                                                                                    Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                                                                                                    Equations
                                                                                                    Instances For
                                                                                                      noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.queried (in_t out_t : Type) :
                                                                                                      FRO_T in_t out_t → procmod (in_t, flag) → Bool

                                                                                                      The field queried of a module of type FRO_T: the projection onto component 5 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].

                                                                                                      FRO_T.queried.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.queried.utilities has the accessor as a module, and the lemmas about it.

                                                                                                      Its parameters are named x, f, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).

                                                                                                      Equations
                                                                                                      Instances For
                                                                                                        @[simp]
                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FRO_T.set.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                                                                        set in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.set

                                                                                                        @[simp]: reading the field set back off a module built from a record — FRO_T.set (FRO_T.mk r) = r.set.

                                                                                                        It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.set.apply_simp.

                                                                                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_T.init.utilities (in_t out_t : Type) :
                                                                                                        ModuleTypeUtilities (FRO_T in_t out_t) (procmod () → Unit) (init in_t out_t)

                                                                                                        What is derivable about the accessor FRO_T.init, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):

                                                                                                        • FRO_T.init.utilities.accessorModule : FRO_T →ₘ … — the accessor as a module, a projection being a module morphism;
                                                                                                        • FRO_T.init.utilities.apply_simp — Module.app FRO_T.init.utilities.accessorModule m = FRO_T.init m: applying that module is the accessor;
                                                                                                        • FRO_T.init.utilities.expression_eq — the same at the level of expressions: (FRO_T.init m).expression = (FRO_T.init.utilities.proj m.expression).reduce.
                                                                                                        Equations
                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                        Instances For

                                                                                                          The ModuleTypeRep underlying FRO_T, the module type declared by moduletype FRO_T: the right-nested product of its 7 field types, in declaration order.

                                                                                                          FRO_T is by definition Module FRO_T.typeRep.

                                                                                                          Equations
                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                          Instances For
                                                                                                            @[simp]
                                                                                                            theorem GaudisCrypt.EC.PROM.FullRO.FRO_T.init.mk_simp (in_t out_t : Type) (theRecord✝ : Structure in_t out_t) :
                                                                                                            init in_t out_t (mk in_t out_t theRecord✝) = theRecord✝.init

                                                                                                            @[simp]: reading the field init back off a module built from a record — FRO_T.init (FRO_T.mk r) = r.init.

                                                                                                            It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.init.apply_simp.

                                                                                                            @[reducible, inline]
                                                                                                            abbrev GaudisCrypt.EC.PROM.FullRO.RO_Distinguisher (in_t out_t d_in_t d_out_t : Type) :

                                                                                                            EC's module type RO_Distinguisher (G : RO) = { proc distinguish(_ : d_in_t): d_out_t }.

                                                                                                            Equations
                                                                                                            Instances For
                                                                                                              @[reducible, inline]
                                                                                                              abbrev GaudisCrypt.EC.PROM.FullRO.FRO_Distinguisher (in_t out_t d_in_t d_out_t : Type) :

                                                                                                              EC's module type FRO_Distinguisher (G : FRO) = { proc distinguish(_ : d_in_t): d_out_t }.

                                                                                                              Equations
                                                                                                              Instances For
                                                                                                                @[reducible, inline]

                                                                                                                The oracle procedures an RO_Distinguisher may call: all of RO's (EasyCrypt's module type puts no restriction on them). The holes of its representation (Module.Representable, exception E2 of the SHA-3 port).

                                                                                                                Equations
                                                                                                                • One or more equations did not get rendered due to their size.
                                                                                                                Instances For
                                                                                                                  noncomputable def GaudisCrypt.EC.PROM.FullRO.RO_ext (in_t out_t : Type) (G : RO_T in_t out_t) :
                                                                                                                  (RO_holes in_t out_t).Instantiation

                                                                                                                  G.init, G.get, G.set, G.rem, G.sample out of the oracle G.

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

                                                                                                                    The oracle procedures an FRO_Distinguisher may call: all of FRO's.

                                                                                                                    Equations
                                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                                    Instances For
                                                                                                                      noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO_ext (in_t out_t : Type) (G : FRO_T in_t out_t) :

                                                                                                                      G.init, G.get … G.allKnown out of the oracle G.

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

                                                                                                                        Every RO_Distinguisher is representable over all of RO's procedures (Module.representable_of_firstOrder): for it, exception E2 is a theorem.

                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.RO_Distinguisher.ecModule (in_t out_t : Type) [Inhabited in_t] [Inhabited out_t] {sig : ProcedureSignature} (D : Module.Arr (RO_T in_t out_t) (Module.Proc sig)) (hD : (FVP.fvP D).FinitelySupported) :
                                                                                                                        Module.ECModule D (RO_ext in_t out_t)

                                                                                                                        An RO_Distinguisher is EasyCrypt-like as soon as it has finitely many globals: its representability is RO_Distinguisher.representable.

                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FRO_Distinguisher.representable (in_t out_t d_in_t d_out_t : Type) [Inhabited in_t] [Inhabited out_t] (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) :

                                                                                                                        Every FRO_Distinguisher is representable over all of FRO's procedures.

                                                                                                                        @[simp]
                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.MainD.apply_simp (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : Inhabited d_in_t] [_gaudiParam1 : Inhabited d_out_t] (D : RO_Distinguisher in_t out_t d_in_t d_out_t) (RO : RO_T in_t out_t) :
                                                                                                                        MainD(in_t, out_t, d_in_t, d_out_t, D, RO).distinguish = Module.app (Module.app (distinguish in_t out_t d_in_t d_out_t) D) RO

                                                                                                                        @[simp]: applying MainD to a tuple of its 2 parameters D, RO — the record of its procedures MainD.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 MainD.distinguish.apply_simp to fill that procedure's holes.

                                                                                                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.MainD.distinguish (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : Inhabited d_in_t] [_gaudiParam1 : Inhabited d_out_t] :
                                                                                                                        Module.Arr (RO_Distinguisher in_t out_t d_in_t d_out_t) (Module.Arr (RO_T in_t out_t) (procmod (d_in_t) → d_out_t))

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

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

                                                                                                                        Equations
                                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                                        Instances For
                                                                                                                          @[simp]
                                                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.MainD.distinguish.apply_simp (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : Inhabited d_in_t] [_gaudiParam1 : Inhabited d_out_t] (D : RO_Distinguisher in_t out_t d_in_t d_out_t) (RO : RO_T in_t out_t) :
                                                                                                                          Module.app (Module.app (distinguish in_t out_t d_in_t d_out_t) D) RO = Module.proc ((procedure in_t out_t d_in_t d_out_t).instantiate ((RO_T.init in_t out_t RO).procedure, (Module.app D RO).procedure))

                                                                                                                          @[simp]: applying MainD.distinguish to the parameters proc distinguish uses (D, RO) is Module.proc (MainD.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.

                                                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.MainD.distinguish.procedure.apply_simp (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : Inhabited d_in_t] [_gaudiParam1 : Inhabited d_out_t] (holeArgs✝ : (HoleSigs.cons (procsig () → Unit) (HoleSigs.cons (procsig (d_in_t) → d_out_t) HoleSigs.empty)).Instantiation) :
                                                                                                                          (procedure in_t out_t d_in_t d_out_t).instantiate holeArgs✝ = proc (x : d_in_t) : d_out_t { var r : d_out_t; call (holeArgs✝.lookup HoleIndex.zero) (); r <- call (holeArgs✝.lookup HoleIndex.zero.succ) (§x); return §r }

                                                                                                                          Instantiating the holes of MainD.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 [MainD.distinguish.procedure.apply_simp]).

                                                                                                                          noncomputable def GaudisCrypt.EC.PROM.FullRO.MainD.distinguish.procedure (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : Inhabited d_in_t] [_gaudiParam1 : Inhabited d_out_t] :
                                                                                                                          proctype (d_in_t) → d_out_t uses (() → Unit, (d_in_t) → d_out_t)

                                                                                                                          The body of proc distinguish of module MainD, as a procedure of its own: the 2 calls it makes to module parameters (D, RO) 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 MainD.distinguish.procedure.apply_simp) rather than run. Use MainD.distinguish for this procedure as a module.

                                                                                                                          Equations
                                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                                          Instances For
                                                                                                                            noncomputable def GaudisCrypt.EC.PROM.FullRO.MainD (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : Inhabited d_in_t] [_gaudiParam1 : Inhabited d_out_t] :
                                                                                                                            Module.Arr (Module.Prod (RO_Distinguisher in_t out_t d_in_t d_out_t) (RO_T in_t out_t)) (procmod (d_in_t) → d_out_t)

                                                                                                                            The module declared by module MainD, abstracted over its 2 parameters D, RO, 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 MainD.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma MainD.apply_simp says.

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

                                                                                                                              RO's module variable m is a parameter: a clone declares its own (F.RO.m) and passes it, so two clones never share it.

                                                                                                                              noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.rem.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :

                                                                                                                              The body of proc rem of module RO, 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 RO.rem.procedure.apply_simp) rather than run. Use RO.rem for this procedure as a module.

                                                                                                                              Equations
                                                                                                                              Instances For
                                                                                                                                noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.restrK.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                proctype () -> FMap in_t out_t

                                                                                                                                The body of proc restrK of module RO, 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 RO.restrK.procedure.apply_simp) rather than run. Use RO.restrK for this procedure as a module.

                                                                                                                                Equations
                                                                                                                                Instances For
                                                                                                                                  @[simp]
                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.RO.rem.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                  rem in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                  noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.sample (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :

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

                                                                                                                                  Equations
                                                                                                                                  Instances For
                                                                                                                                    noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.get (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :

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

                                                                                                                                    Equations
                                                                                                                                    Instances For
                                                                                                                                      theorem GaudisCrypt.EC.PROM.FullRO.RO.set.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                      (procedure in_t out_t dout m).instantiate holeArgs✝ = proc (x : in_t, y : out_t) : Unit { m <- (§m).set §x §y; return () }

                                                                                                                                      Instantiating the holes of RO.set.procedure with a tuple holeArgs of procedures: the body of proc set 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 [RO.set.procedure.apply_simp]).

                                                                                                                                      theorem GaudisCrypt.EC.PROM.FullRO.RO.sample.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                      (procedure in_t out_t dout m).instantiate holeArgs✝ = proc (x : in_t) : Unit { call (get in_t out_t dout m).procedure (§x); return () }

                                                                                                                                      Instantiating the holes of RO.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 [RO.sample.procedure.apply_simp]).

                                                                                                                                      noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.get.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :

                                                                                                                                      The body of proc get of module RO, 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 RO.get.procedure.apply_simp) rather than run. Use RO.get for this procedure as a module.

                                                                                                                                      Equations
                                                                                                                                      • One or more equations did not get rendered due to their size.
                                                                                                                                      Instances For
                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.RO.get.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                        (procedure in_t out_t dout m).instantiate holeArgs✝ = proc (x : in_t) : out_t { var r : out_t; r <$ dout §x; if (!decide ((§m).dom §x)) { m <- (§m).set §x §r; } return oget ((§m).get §x) }

                                                                                                                                        Instantiating the holes of RO.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 [RO.get.procedure.apply_simp]).

                                                                                                                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.RO (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                        ROmap in_t out_t

                                                                                                                                        The module declared by module RO: the record of its procedures RO.init, RO.get, RO.set, RO.rem, RO.sample, RO.restrK.

                                                                                                                                        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 RO.apply_simp to apply it with.

                                                                                                                                        Equations
                                                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                                                        Instances For
                                                                                                                                          @[simp]
                                                                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.RO.get.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                          get in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                          noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.restrK (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                          procmod () → FMap in_t out_t

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

                                                                                                                                          Equations
                                                                                                                                          Instances For
                                                                                                                                            theorem GaudisCrypt.EC.PROM.FullRO.RO.restrK.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                            (procedure in_t out_t dout m).instantiate holeArgs✝ = proc () : (FMap in_t out_t) { skip; return §m }

                                                                                                                                            Instantiating the holes of RO.restrK.procedure with a tuple holeArgs of procedures: the body of proc restrK 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 [RO.restrK.procedure.apply_simp]).

                                                                                                                                            noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.init (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :

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

                                                                                                                                            Equations
                                                                                                                                            Instances For
                                                                                                                                              @[simp]
                                                                                                                                              theorem GaudisCrypt.EC.PROM.FullRO.RO.restrK.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                              restrK in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                              noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.sample.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :

                                                                                                                                              The body of proc sample of module RO, 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 RO.sample.procedure.apply_simp) rather than run. Use RO.sample for this procedure as a module.

                                                                                                                                              Equations
                                                                                                                                              Instances For
                                                                                                                                                @[simp]
                                                                                                                                                theorem GaudisCrypt.EC.PROM.FullRO.RO.set.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                set in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.rem (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :

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

                                                                                                                                                Equations
                                                                                                                                                Instances For
                                                                                                                                                  noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.set (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :

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

                                                                                                                                                  Equations
                                                                                                                                                  Instances For
                                                                                                                                                    @[simp]
                                                                                                                                                    theorem GaudisCrypt.EC.PROM.FullRO.RO.sample.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                    sample in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                    noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.set.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :

                                                                                                                                                    The body of proc set of module RO, 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 RO.set.procedure.apply_simp) rather than run. Use RO.set for this procedure as a module.

                                                                                                                                                    Equations
                                                                                                                                                    Instances For
                                                                                                                                                      theorem GaudisCrypt.EC.PROM.FullRO.RO.rem.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                      (procedure in_t out_t dout m).instantiate holeArgs✝ = proc (x : in_t) : Unit { m <- (§m).rem §x; return () }

                                                                                                                                                      Instantiating the holes of RO.rem.procedure with a tuple holeArgs of procedures: the body of proc rem 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 [RO.rem.procedure.apply_simp]).

                                                                                                                                                      @[simp]
                                                                                                                                                      theorem GaudisCrypt.EC.PROM.FullRO.RO.init.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                      init in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                      noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.init.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :

                                                                                                                                                      The body of proc init of module RO, 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 RO.init.procedure.apply_simp) rather than run. Use RO.init for this procedure as a module.

                                                                                                                                                      Equations
                                                                                                                                                      Instances For
                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.RO.init.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                        (procedure in_t out_t dout m).instantiate holeArgs✝ = proc () : Unit { m <- FMap.empty; return () }

                                                                                                                                                        Instantiating the holes of RO.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 [RO.init.procedure.apply_simp]).

                                                                                                                                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.RO.asRO (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                        RO_T in_t out_t

                                                                                                                                                        RO at its type RO (EasyCrypt's module RO : RO, ROmap).

                                                                                                                                                        Equations
                                                                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                                                                        Instances For
                                                                                                                                                          noncomputable def GaudisCrypt.EC.PROM.FullRO.LRO.sample_.sample.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] :

                                                                                                                                                          The body of proc sample of module LRO.sample_, 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 LRO.sample_.sample.procedure.apply_simp) rather than run. Use LRO.sample_.sample for this procedure as a module.

                                                                                                                                                          Equations
                                                                                                                                                          Instances For
                                                                                                                                                            noncomputable def GaudisCrypt.EC.PROM.FullRO.LRO.sample_.sample (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] :

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

                                                                                                                                                            Equations
                                                                                                                                                            Instances For
                                                                                                                                                              @[simp]
                                                                                                                                                              theorem GaudisCrypt.EC.PROM.FullRO.LRO.sample_.sample.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] :
                                                                                                                                                              sample in_t out_t = Module.proc (procedure in_t out_t)

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

                                                                                                                                                              noncomputable def GaudisCrypt.EC.PROM.FullRO.LRO.sample_ (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] :

                                                                                                                                                              The module declared by module LRO.sample_: the record of its procedures LRO.sample_.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 LRO.sample_.apply_simp to apply it with.

                                                                                                                                                              Equations
                                                                                                                                                              Instances For
                                                                                                                                                                theorem GaudisCrypt.EC.PROM.FullRO.LRO.sample_.sample.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                (procedure in_t out_t).instantiate holeArgs✝ = proc (x : in_t) : Unit { skip; return () }

                                                                                                                                                                Instantiating the holes of LRO.sample_.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 [LRO.sample_.sample.procedure.apply_simp]).

                                                                                                                                                                noncomputable def GaudisCrypt.EC.PROM.FullRO.LRO (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                RO_T in_t out_t

                                                                                                                                                                EC's MkRO.LRO: RO with proc sample(x : in_t) = { } (and proc init = RO.init …).

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

                                                                                                                                                                  The footprints of RO and LRO: their procedures touch m only (LRO is not a module: fp_disjoint reads them here).

                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_RO_sample (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (RO_T.sample in_t out_t (RO.asRO in_t out_t dout m)) ≤ m.footprint
                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_RO_init (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (ROmap.init in_t out_t (RO in_t out_t dout m)) ≤ m.footprint
                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_RO_get (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (ROmap.get in_t out_t (RO in_t out_t dout m)) ≤ m.footprint
                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_RO_set (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (ROmap.set in_t out_t (RO in_t out_t dout m)) ≤ m.footprint
                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_RO_rem (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (ROmap.rem in_t out_t (RO in_t out_t dout m)) ≤ m.footprint

                                                                                                                                                                  RO through its RO_T view (RO.asRO, EC's RO as an RO module argument).

                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_ROasRO_init (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (RO_T.init in_t out_t (RO.asRO in_t out_t dout m)) ≤ m.footprint
                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_ROasRO_get (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (RO_T.get in_t out_t (RO.asRO in_t out_t dout m)) ≤ m.footprint
                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_ROasRO_set (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (RO_T.set in_t out_t (RO.asRO in_t out_t dout m)) ≤ m.footprint
                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_ROasRO_rem (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (RO_T.rem in_t out_t (RO.asRO in_t out_t dout m)) ≤ m.footprint
                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_LRO_init (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (RO_T.init in_t out_t (LRO in_t out_t dout m)) ≤ m.footprint
                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_LRO_get (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (RO_T.get in_t out_t (LRO in_t out_t dout m)) ≤ m.footprint
                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.fvP_LRO_sample (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                  FVP.fvP (RO_T.sample in_t out_t (LRO in_t out_t dout m)) ≤ m.footprint

                                                                                                                                                                  FRO's module variable m is a parameter (see RO).

                                                                                                                                                                  @[simp]
                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FRO.allKnown.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                  allKnown in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                                  noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.get (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

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

                                                                                                                                                                  Equations
                                                                                                                                                                  Instances For
                                                                                                                                                                    @[simp]
                                                                                                                                                                    theorem GaudisCrypt.EC.PROM.FullRO.FRO.rem.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                    rem in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                                    noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.queried (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

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

                                                                                                                                                                    Equations
                                                                                                                                                                    Instances For
                                                                                                                                                                      noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.sample (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

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

                                                                                                                                                                      Equations
                                                                                                                                                                      Instances For
                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FRO.sample.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                        (procedure in_t out_t dout m).instantiate holeArgs✝ = proc (x : in_t) : Unit { var c : out_t; c <$ dout §x; if (!decide ((§m).dom §x)) { m <- (§m).set §x (§c, Unknown); } return () }

                                                                                                                                                                        Instantiating the holes of FRO.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 [FRO.sample.procedure.apply_simp]).

                                                                                                                                                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.init.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                        The body of proc init of module FRO, 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 FRO.init.procedure.apply_simp) rather than run. Use FRO.init for this procedure as a module.

                                                                                                                                                                        Equations
                                                                                                                                                                        Instances For
                                                                                                                                                                          @[simp]
                                                                                                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.FRO.queried.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                          queried in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                                          noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.sample.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                          The body of proc sample of module FRO, 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 FRO.sample.procedure.apply_simp) rather than run. Use FRO.sample for this procedure as a module.

                                                                                                                                                                          Equations
                                                                                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                                                                                          Instances For
                                                                                                                                                                            noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.set.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                            The body of proc set of module FRO, 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 FRO.set.procedure.apply_simp) rather than run. Use FRO.set for this procedure as a module.

                                                                                                                                                                            Equations
                                                                                                                                                                            Instances For
                                                                                                                                                                              theorem GaudisCrypt.EC.PROM.FullRO.FRO.set.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                              (procedure in_t out_t dout m).instantiate holeArgs✝ = proc (x : in_t, y : out_t) : Unit { m <- (§m).set §x (§y, Known); return () }

                                                                                                                                                                              Instantiating the holes of FRO.set.procedure with a tuple holeArgs of procedures: the body of proc set 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 [FRO.set.procedure.apply_simp]).

                                                                                                                                                                              @[simp]
                                                                                                                                                                              theorem GaudisCrypt.EC.PROM.FullRO.FRO.sample.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                              sample in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                                              @[simp]
                                                                                                                                                                              theorem GaudisCrypt.EC.PROM.FullRO.FRO.init.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                              init in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                                              theorem GaudisCrypt.EC.PROM.FullRO.FRO.rem.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                              (procedure in_t out_t dout m).instantiate holeArgs✝ = proc (x : in_t) : Unit { m <- (§m).rem §x; return () }

                                                                                                                                                                              Instantiating the holes of FRO.rem.procedure with a tuple holeArgs of procedures: the body of proc rem 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 [FRO.rem.procedure.apply_simp]).

                                                                                                                                                                              noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.get.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                              The body of proc get of module FRO, 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 FRO.get.procedure.apply_simp) rather than run. Use FRO.get for this procedure as a module.

                                                                                                                                                                              Equations
                                                                                                                                                                              • One or more equations did not get rendered due to their size.
                                                                                                                                                                              Instances For
                                                                                                                                                                                noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.rem.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                                The body of proc rem of module FRO, 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 FRO.rem.procedure.apply_simp) rather than run. Use FRO.rem for this procedure as a module.

                                                                                                                                                                                Equations
                                                                                                                                                                                Instances For
                                                                                                                                                                                  noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.allKnown.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                  proctype () -> FMap in_t out_t

                                                                                                                                                                                  The body of proc allKnown of module FRO, 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 FRO.allKnown.procedure.apply_simp) rather than run. Use FRO.allKnown for this procedure as a module.

                                                                                                                                                                                  Equations
                                                                                                                                                                                  Instances For
                                                                                                                                                                                    noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.rem (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

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

                                                                                                                                                                                    Equations
                                                                                                                                                                                    Instances For
                                                                                                                                                                                      noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.set (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

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

                                                                                                                                                                                      Equations
                                                                                                                                                                                      Instances For
                                                                                                                                                                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                        FRO_T in_t out_t

                                                                                                                                                                                        The module declared by module FRO: the record of its procedures FRO.init, FRO.get, FRO.set, FRO.rem, FRO.sample, FRO.queried, FRO.allKnown.

                                                                                                                                                                                        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 FRO.apply_simp to apply it with.

                                                                                                                                                                                        Equations
                                                                                                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                                                                                                        Instances For
                                                                                                                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.FRO.init.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                                          (procedure in_t out_t dout m).instantiate holeArgs✝ = proc () : Unit { m <- FMap.empty; return () }

                                                                                                                                                                                          Instantiating the holes of FRO.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 [FRO.init.procedure.apply_simp]).

                                                                                                                                                                                          @[simp]
                                                                                                                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.FRO.get.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                          get in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.FRO.queried.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                                          (procedure in_t out_t dout m).instantiate holeArgs✝ = proc (x : in_t, f : flag) : Bool { skip; return decide ((§m).dom §x ∧ is_ ((§m).get §x) §f) }

                                                                                                                                                                                          Instantiating the holes of FRO.queried.procedure with a tuple holeArgs of procedures: the body of proc queried 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 [FRO.queried.procedure.apply_simp]).

                                                                                                                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.FRO.get.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                                          (procedure in_t out_t dout m).instantiate holeArgs✝ = proc (x : in_t) : out_t { var r : out_t; r <$ dout §x; if (decide ((§m).dom §x)) { r <- (oget ((§m).get §x)).1; } m <- (§m).set §x (§r, Known); return §r }

                                                                                                                                                                                          Instantiating the holes of FRO.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 [FRO.get.procedure.apply_simp]).

                                                                                                                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.FRO.allKnown.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                                          (procedure in_t out_t dout m).instantiate holeArgs✝ = proc () : (FMap in_t out_t) { skip; return FMap.restr Known §m }

                                                                                                                                                                                          Instantiating the holes of FRO.allKnown.procedure with a tuple holeArgs of procedures: the body of proc allKnown 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 [FRO.allKnown.procedure.apply_simp]).

                                                                                                                                                                                          noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.queried.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                                          The body of proc queried of module FRO, 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 FRO.queried.procedure.apply_simp) rather than run. Use FRO.queried for this procedure as a module.

                                                                                                                                                                                          Equations
                                                                                                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                                                                                                          Instances For
                                                                                                                                                                                            noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.allKnown (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                            procmod () → FMap in_t out_t

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

                                                                                                                                                                                            Equations
                                                                                                                                                                                            Instances For
                                                                                                                                                                                              @[simp]
                                                                                                                                                                                              theorem GaudisCrypt.EC.PROM.FullRO.FRO.set.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                              set in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                                                              noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.init (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

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

                                                                                                                                                                                              Equations
                                                                                                                                                                                              Instances For
                                                                                                                                                                                                noncomputable def GaudisCrypt.EC.PROM.FullRO.FRO.asRO (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                RO_T in_t out_t

                                                                                                                                                                                                FRO at the type RO (EasyCrypt's subtyping FRO <: RO: D(FRO) for an RO_Distinguisher D).

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

                                                                                                                                                                                                  EC's RO_FRO_init … RO_FRO_D: RO and FRO agree up to the flags.

                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.RO_FRO_init (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (RO_m : Lens (FMap in_t out_t) VariableAssignment) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                  prhlProc (fun (x : (procsig () → Unit).ParamType) (x_1 : VariableAssignment) (x_2 : (procsig () → Unit).ParamType) (x_3 : VariableAssignment) => True) (ROmap.init in_t out_t (RO in_t out_t dout RO_m)).procedure (FRO_T.init in_t out_t (FRO in_t out_t dout FRO_m)).procedure fun (x : (procsig () → Unit).ret) (g₁ : VariableAssignment) (x_1 : (procsig () → Unit).ret) (g₂ : VariableAssignment) => RO_m.get g₁ = (FRO_m.get g₂).noflags

                                                                                                                                                                                                  equiv RO_FRO_init : RO.init ~ FRO.init : true ==> RO.m{1} = noflags FRO.m{2}.

                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.RO_FRO_get (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (RO_m : Lens (FMap in_t out_t) VariableAssignment) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                  prhlProc (fun (a₁ : (procsig (in_t) → out_t).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (in_t) → out_t).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ RO_m.get g₁ = (FRO_m.get g₂).noflags) (ROmap.get in_t out_t (RO in_t out_t dout RO_m)).procedure (FRO_T.get in_t out_t (FRO in_t out_t dout FRO_m)).procedure fun (r₁ : (procsig (in_t) → out_t).ret) (g₁ : VariableAssignment) (r₂ : (procsig (in_t) → out_t).ret) (g₂ : VariableAssignment) => r₁ = r₂ ∧ RO_m.get g₁ = (FRO_m.get g₂).noflags

                                                                                                                                                                                                  equiv RO_FRO_get : RO.get ~ FRO.get : ={x} /\ RO.m{1} = noflags FRO.m{2} ==> ={res} /\ RO.m{1} = noflags FRO.m{2}.

                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.RO_FRO_set (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (RO_m : Lens (FMap in_t out_t) VariableAssignment) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                  prhlProc (fun (a₁ : (procsig (in_t, out_t) → Unit).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (in_t, out_t) → Unit).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ RO_m.get g₁ = (FRO_m.get g₂).noflags) (ROmap.set in_t out_t (RO in_t out_t dout RO_m)).procedure (FRO_T.set in_t out_t (FRO in_t out_t dout FRO_m)).procedure fun (x : (procsig (in_t, out_t) → Unit).ret) (g₁ : VariableAssignment) (x_1 : (procsig (in_t, out_t) → Unit).ret) (g₂ : VariableAssignment) => RO_m.get g₁ = (FRO_m.get g₂).noflags

                                                                                                                                                                                                  equiv RO_FRO_set : RO.set ~ FRO.set : ={x, y} /\ RO.m{1} = noflags FRO.m{2} ==> RO.m{1} = noflags FRO.m{2}.

                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.RO_FRO_rem (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (RO_m : Lens (FMap in_t out_t) VariableAssignment) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                  prhlProc (fun (a₁ : (procsig (in_t) → Unit).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (in_t) → Unit).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ RO_m.get g₁ = (FRO_m.get g₂).noflags) (ROmap.rem in_t out_t (RO in_t out_t dout RO_m)).procedure (FRO_T.rem in_t out_t (FRO in_t out_t dout FRO_m)).procedure fun (x : (procsig (in_t) → Unit).ret) (g₁ : VariableAssignment) (x_1 : (procsig (in_t) → Unit).ret) (g₂ : VariableAssignment) => RO_m.get g₁ = (FRO_m.get g₂).noflags

                                                                                                                                                                                                  equiv RO_FRO_rem : RO.rem ~ FRO.rem : ={x} /\ RO.m{1} = noflags FRO.m{2} ==> RO.m{1} = noflags FRO.m{2}.

                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.RO_FRO_sample (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (RO_m : Lens (FMap in_t out_t) VariableAssignment) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                  prhlProc (fun (a₁ : (procsig (in_t) → Unit).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (in_t) → Unit).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ RO_m.get g₁ = (FRO_m.get g₂).noflags) (ROmap.sample in_t out_t (RO in_t out_t dout RO_m)).procedure (FRO_T.sample in_t out_t (FRO in_t out_t dout FRO_m)).procedure fun (x : (procsig (in_t) → Unit).ret) (g₁ : VariableAssignment) (x_1 : (procsig (in_t) → Unit).ret) (g₂ : VariableAssignment) => RO_m.get g₁ = (FRO_m.get g₂).noflags

                                                                                                                                                                                                  equiv RO_FRO_sample : RO.sample ~ FRO.sample : ={x} /\ RO.m{1} = noflags FRO.m{2} ==> RO.m{1} = noflags FRO.m{2}.

                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.RO_FRO_D (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (RO_m : Lens (FMap in_t out_t) VariableAssignment) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) [Countable in_t] [Countable out_t] [RO_m.Disjoint FRO_m] {sig : ProcedureSignature} (D : Module.Arr (RO_T in_t out_t) (Module.Proc sig)) (hD : Module.ECModule D (RO_ext in_t out_t)) (hdisj : FVP.fvP D ≤ (RO_m.footprint ⊔ FRO_m.footprint)ᶜ) :
                                                                                                                                                                                                  prhlProc (fun (a₁ : sig.ParamType) (g₁ : VariableAssignment) (a₂ : sig.ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ (FVP.fvP D).touched_getter.get g₁ = (FVP.fvP D).touched_getter.get g₂ ∧ RO_m.get g₁ = (FRO_m.get g₂).noflags) (Module.app D (RO.asRO in_t out_t dout RO_m)).procedure (Module.app D (FRO.asRO in_t out_t dout FRO_m)).procedure fun (r₁ : sig.ret) (g₁ : VariableAssignment) (r₂ : sig.ret) (g₂ : VariableAssignment) => r₁ = r₂ ∧ (FVP.fvP D).touched_getter.get g₁ = (FVP.fvP D).touched_getter.get g₂ ∧ RO_m.get g₁ = (FRO_m.get g₂).noflags

                                                                                                                                                                                                  equiv RO_FRO_D (D <: RO_Distinguisher { -RO, -FRO }) : D(RO).distinguish ~ D(FRO).distinguish : ={arg, glob D} /\ RO.m{1} = noflags FRO.m{2} ==> ={res, glob D} /\ RO.m{1} = noflags FRO.m{2}. RO.m and FRO.m are distinct variables, and the oracles' arguments countable (exception E8).

                                                                                                                                                                                                  @[simp]
                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.I.f.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                  f in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                                                                  noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.I (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                                                  The module declared by module RRO.I: the record of its procedures RRO.I.f.

                                                                                                                                                                                                  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 RRO.I.apply_simp to apply it with.

                                                                                                                                                                                                  Equations
                                                                                                                                                                                                  Instances For
                                                                                                                                                                                                    noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.I.f.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                                                    The body of proc f of module RRO.I, 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 RRO.I.f.procedure.apply_simp) rather than run. Use RRO.I.f for this procedure as a module.

                                                                                                                                                                                                    Equations
                                                                                                                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                    Instances For
                                                                                                                                                                                                      theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.I.f.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                                                      (procedure in_t out_t dout m).instantiate holeArgs✝ = proc (x : in_t) : Unit { var c : out_t; c <$ dout §x; m <- (§m).set §x (§c, Unknown); return () }

                                                                                                                                                                                                      Instantiating the holes of RRO.I.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 [RRO.I.f.procedure.apply_simp]).

                                                                                                                                                                                                      noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.I.f (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

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

                                                                                                                                                                                                      Equations
                                                                                                                                                                                                      Instances For
                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.get.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                                                        (procedure in_t out_t dout m).instantiate holeArgs✝ = proc (x : in_t) : out_t { var r : out_t; r <$ dout §x; if (!decide ((§m).dom §x) || decide (is_ ((§m).get §x) Unknown)) { m <- (§m).set §x (§r, Known); } return (oget ((§m).get §x)).1 }

                                                                                                                                                                                                        Instantiating the holes of RRO.own.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 [RRO.own.get.procedure.apply_simp]).

                                                                                                                                                                                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.resample.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                                                        The body of proc resample of module RRO.own, 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 RRO.own.resample.procedure.apply_simp) rather than run. Use RRO.own.resample for this procedure as a module.

                                                                                                                                                                                                        Equations
                                                                                                                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                        Instances For
                                                                                                                                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.resample.procedure.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                                                          (procedure in_t out_t dout m).instantiate holeArgs✝ = proc () : Unit { call IterProc.Iter(in_t, (I in_t out_t dout m)).iter.procedure ((FMap.restr Unknown §m).fdom.toList); return () }

                                                                                                                                                                                                          Instantiating the holes of RRO.own.resample.procedure with a tuple holeArgs of procedures: the body of proc resample 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 [RRO.own.resample.procedure.apply_simp]).

                                                                                                                                                                                                          noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.get.procedure (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                                                          The body of proc get of module RRO.own, 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 RRO.own.get.procedure.apply_simp) rather than run. Use RRO.own.get for this procedure as a module.

                                                                                                                                                                                                          Equations
                                                                                                                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                          Instances For
                                                                                                                                                                                                            @[simp]
                                                                                                                                                                                                            theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.resample.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                            resample in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                                                                            @[simp]
                                                                                                                                                                                                            theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.get.apply_simp (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                            get in_t out_t dout m = Module.proc (procedure in_t out_t dout m)

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

                                                                                                                                                                                                            noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.get (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

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

                                                                                                                                                                                                            Equations
                                                                                                                                                                                                            Instances For
                                                                                                                                                                                                              noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.resample (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

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

                                                                                                                                                                                                              Equations
                                                                                                                                                                                                              Instances For
                                                                                                                                                                                                                noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own (in_t out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                                                                The module declared by module RRO.own: the record of its procedures RRO.own.get, RRO.own.resample.

                                                                                                                                                                                                                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 RRO.own.apply_simp to apply it with.

                                                                                                                                                                                                                Equations
                                                                                                                                                                                                                • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                Instances For
                                                                                                                                                                                                                  noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.RRO (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                                  FRO_T in_t out_t

                                                                                                                                                                                                                  EC's FullEager.RRO : FRO (with proc init = FRO.init …; its extra procedure resample is RRO.own.resample).

                                                                                                                                                                                                                  Equations
                                                                                                                                                                                                                  • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                  Instances For
                                                                                                                                                                                                                    noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.asRO (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                                    RO_T in_t out_t

                                                                                                                                                                                                                    RRO at the type RO (EasyCrypt's subtyping FRO <: RO: D(RRO) for an RO_Distinguisher D).

                                                                                                                                                                                                                    Equations
                                                                                                                                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                    Instances For
                                                                                                                                                                                                                      @[reducible, inline]
                                                                                                                                                                                                                      noncomputable abbrev GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.resampleDen (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :

                                                                                                                                                                                                                      RRO.resample();, the block of PROM's eager judgments, as a program on the globals.

                                                                                                                                                                                                                      Equations
                                                                                                                                                                                                                      • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                      Instances For
                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.resample_fvP (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                                        FVP.fvP_proc (own.resample in_t out_t dout FRO_m).procedure ≤ FRO_m.footprint

                                                                                                                                                                                                                        RRO.resample touches only FRO.m (EC: by its code).

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.resample_inFootprint (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                                        (resampleDen in_t out_t dout FRO_m).inFootprint FRO_m.footprint
                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.resample_keeps (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) {F : Footprint VariableAssignment} (hF : FRO_m.footprint ≤ Fᶜ) (g : VariableAssignment) :
                                                                                                                                                                                                                        (resampleDen in_t out_t dout FRO_m g).satisfies fun (u : Unit × VariableAssignment) => F.touched_getter.get u.2 = F.touched_getter.get g

                                                                                                                                                                                                                        RRO.resample() keeps every region outside FRO.m, glob D in particular.

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.I_f_denotation (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (t : in_t) (g : VariableAssignment) :
                                                                                                                                                                                                                        procedureDenotation (I.f.procedure in_t out_t dout FRO_m) t g = (dout t).hbind fun (c : out_t) => pure ((), FRO_m.set ((FRO_m.get g).set t (c, Unknown)) g)

                                                                                                                                                                                                                        RRO.I.f's run: sample c, write FRO.m.[t] <- (c, Unknown).

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.I_f_procedure (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                                        (IterProc.Orcl.f in_t (I in_t out_t dout FRO_m)).procedure = I.f.procedure in_t out_t dout FRO_m
                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.iter_perm2 (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (t₁ t₂ : in_t) :
                                                                                                                                                                                                                        (do let _ ← procedureDenotation (IterProc.Orcl.f in_t (RRO.I in_t out_t dout FRO_m)).procedure t₁ procedureDenotation (IterProc.Orcl.f in_t (RRO.I in_t out_t dout FRO_m)).procedure t₂) = do let _ ← procedureDenotation (IterProc.Orcl.f in_t (RRO.I in_t out_t dout FRO_m)).procedure t₂ procedureDenotation (IterProc.Orcl.f in_t (RRO.I in_t out_t dout FRO_m)).procedure t₁

                                                                                                                                                                                                                        equiv iter_perm2 : Iter(RRO.I).iter_12 ~ Iter(RRO.I).iter_21 : ={glob RRO.I, t1, t2} ==> ={glob RRO.I}, denotationally (exception E9: the form iter_perm and iter1_perm take). EC: proc; inline*; case: ((t1 = t2){1}); first by auto. swap{2} [4..5] -3; auto … set_setE.

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO_I_f_ll (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) :
                                                                                                                                                                                                                        (IterProc.Orcl.f in_t (RRO.I in_t out_t dout FRO_m)).procedure.IsLossless

                                                                                                                                                                                                                        RRO.I.f is lossless (EC: proc; auto=> /> &m'; exact/dout_ll in RRO_resample_ll).

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO_resample_ll (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) :
                                                                                                                                                                                                                        (RRO.own.resample in_t out_t dout FRO_m).procedure.IsLossless

                                                                                                                                                                                                                        lemma RRO_resample_ll : islossless RRO.resample. EC: proc; call (iter_ll RRO.I _)=> //. by proc; auto=> /> &m'; exact/dout_ll.

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.eager_init (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) (a : (procsig () → Unit).ParamType) :
                                                                                                                                                                                                                        (RRO.resampleDen in_t out_t dout FRO_m).eagerR (RRO.resampleDen in_t out_t dout FRO_m) (fun (σ₁ σ₂ : VariableAssignment) => σ₁ = σ₂) (procedureDenotation (FRO_T.init in_t out_t (FRO in_t out_t dout FRO_m)).procedure a) (procedureDenotation (FRO_T.init in_t out_t (RRO in_t out_t dout FRO_m)).procedure a) fun (u v : (procsig () → Unit).ret × VariableAssignment) => u = v

                                                                                                                                                                                                                        eager [RRO.resample();, FRO.init ~ RRO.init, RRO.resample(); : ={FRO.m} ==> ={FRO.m}], at equality invariants (exception E10).

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.resample_denotation (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (g : VariableAssignment) :
                                                                                                                                                                                                                        procedureDenotation (own.resample in_t out_t dout FRO_m).procedure () g = procedureDenotation (Module.app (IterProc.Iter.iter in_t) (I in_t out_t dout FRO_m)).procedure (FMap.restr Unknown (FRO_m.get g)).fdom.toList g

                                                                                                                                                                                                                        RRO.resample()'s run: Iter(RRO.I).iter over the Unknown entries.

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.resample_call_eq (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                                        programDenotation (GaudiProg[ call (own.resample in_t out_t dout FRO_m).procedure (); ]) = programDenotation (GaudiProg[ call (Module.app (IterProc.Iter.iter in_t) (I in_t out_t dout FRO_m)).procedure ((FMap.restr Unknown §FRO_m).fdom.toList); ])

                                                                                                                                                                                                                        RRO.resample() as the call of Iter(RRO.I).iter it makes.

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.resample_call_split (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (x : in_t) (σ : ProgramState) (hx : (FRO_m.get σ.globals).in_dom_with x Unknown) :
                                                                                                                                                                                                                        programDenotation (GaudiProg[ call (own.resample in_t out_t dout FRO_m).procedure (); ]) σ = programDenotation (GaudiProg[ call (IterProc.Orcl.f in_t (I in_t out_t dout FRO_m)).procedure (x); call (Module.app (IterProc.Iter.iter in_t) (I in_t out_t dout FRO_m)).procedure (((FMap.restr Unknown §FRO_m).fdom \ {x}).toList); ]) σ

                                                                                                                                                                                                                        From a state where x is bound with flag Unknown, RRO.resample() is RRO.I.f(x) then the iteration over the other Unknown entries (EC's Iter(RRO.I).iter_1s(x, elems (fdom (restr Unknown FRO.m) ` fset1 x)), by iter1_perm RRO.I iter_perm2`).

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.I_f_eqex (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (x1 : in_t) (mx1 mx2 : Option (out_t × flag)) :
                                                                                                                                                                                                                        prhlProc (fun (a₁ : (procsig (in_t) → Unit).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (in_t) → Unit).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ x1 ≠ a₁ ∧ FMap.eq_except (fun (x : in_t) => x = x1) (FRO_m.get g₁) (FRO_m.get g₂) ∧ (FRO_m.get g₁).get x1 = mx1 ∧ (FRO_m.get g₂).get x1 = mx2) (IterProc.Orcl.f in_t (RRO.I in_t out_t dout FRO_m)).procedure (IterProc.Orcl.f in_t (RRO.I in_t out_t dout FRO_m)).procedure fun (x : (procsig (in_t) → Unit).ret) (g₁ : VariableAssignment) (x_1 : (procsig (in_t) → Unit).ret) (g₂ : VariableAssignment) => FMap.eq_except (fun (x : in_t) => x = x1) (FRO_m.get g₁) (FRO_m.get g₂) ∧ (FRO_m.get g₁).get x1 = mx1 ∧ (FRO_m.get g₂).get x1 = mx2

                                                                                                                                                                                                                        equiv I_f_eqex x1 mx1 mx2 : RRO.I.f ~ RRO.I.f : ={x} /\ x1 <> x{1} /\ eq_except (pred1 x1) FRO.m{1} FRO.m{2} /\ FRO.m{1}.[x1] = mx1 /\ FRO.m{2}.[x1] = mx2 ==> eq_except (pred1 x1) FRO.m{1} FRO.m{2} /\ FRO.m{1}.[x1] = mx1 /\ FRO.m{2}.[x1] = mx2.

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.I_f_neq (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (x1 : in_t) (mx1 : Option (out_t × flag)) :
                                                                                                                                                                                                                        prhlProc (fun (a₁ : (procsig (in_t) → Unit).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (in_t) → Unit).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ x1 ≠ a₁ ∧ FRO_m.get g₁ = FRO_m.get g₂ ∧ (FRO_m.get g₁).get x1 = mx1) (IterProc.Orcl.f in_t (RRO.I in_t out_t dout FRO_m)).procedure (IterProc.Orcl.f in_t (RRO.I in_t out_t dout FRO_m)).procedure fun (x : (procsig (in_t) → Unit).ret) (g₁ : VariableAssignment) (x_1 : (procsig (in_t) → Unit).ret) (g₂ : VariableAssignment) => FRO_m.get g₁ = FRO_m.get g₂ ∧ (FRO_m.get g₁).get x1 = mx1

                                                                                                                                                                                                                        equiv I_f_neq x1 mx1 : RRO.I.f ~ RRO.I.f : ={x, FRO.m} /\ x1 <> x{1} /\ FRO.m{1}.[x1] = mx1 ==> ={FRO.m} /\ FRO.m{1}.[x1] = mx1.

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.I_f_set (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (x1 : in_t) (r1 : out_t) :
                                                                                                                                                                                                                        prhlProc (fun (a₁ : (procsig (in_t) → Unit).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (in_t) → Unit).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ x1 ≠ a₁ ∧ (FRO_m.get g₁).get x1 = none ∧ FRO_m.get g₂ = (FRO_m.get g₁).set x1 (r1, Known)) (IterProc.Orcl.f in_t (RRO.I in_t out_t dout FRO_m)).procedure (IterProc.Orcl.f in_t (RRO.I in_t out_t dout FRO_m)).procedure fun (x : (procsig (in_t) → Unit).ret) (g₁ : VariableAssignment) (x_1 : (procsig (in_t) → Unit).ret) (g₂ : VariableAssignment) => (FRO_m.get g₁).get x1 = none ∧ FRO_m.get g₂ = (FRO_m.get g₁).set x1 (r1, Known)

                                                                                                                                                                                                                        equiv I_f_set x1 r1 : RRO.I.f ~ RRO.I.f : ={x} /\ x1 <> x{1} /\ FRO.m{1}.[x1] = None /\ FRO.m{2} = FRO.m{1}.[x1 <- (r1, Known)] ==> FRO.m{1}.[x1] = None /\ FRO.m{2} = FRO.m{1}.[x1 <- (r1, Known)].

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.eager_get (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) (a : in_t) :
                                                                                                                                                                                                                        (RRO.resampleDen in_t out_t dout FRO_m).eagerR (RRO.resampleDen in_t out_t dout FRO_m) (fun (σ₁ σ₂ : VariableAssignment) => σ₁ = σ₂) (procedureDenotation (FRO_T.get in_t out_t (FRO in_t out_t dout FRO_m)).procedure a) (procedureDenotation (FRO_T.get in_t out_t (RRO in_t out_t dout FRO_m)).procedure a) fun (u v : (procsig (in_t) → out_t).ret × VariableAssignment) => u = v

                                                                                                                                                                                                                        eager [RRO.resample();, FRO.get ~ RRO.get, RRO.resample(); : ={x, FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.eager_set (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) (a : in_t × out_t) :
                                                                                                                                                                                                                        (RRO.resampleDen in_t out_t dout FRO_m).eagerR (RRO.resampleDen in_t out_t dout FRO_m) (fun (σ₁ σ₂ : VariableAssignment) => σ₁ = σ₂) (procedureDenotation (FRO_T.set in_t out_t (FRO in_t out_t dout FRO_m)).procedure a) (procedureDenotation (FRO_T.set in_t out_t (RRO in_t out_t dout FRO_m)).procedure a) fun (u v : (procsig (in_t, out_t) → Unit).ret × VariableAssignment) => u = v

                                                                                                                                                                                                                        eager [RRO.resample();, FRO.set ~ RRO.set, RRO.resample(); : ={x, y} /\ ={FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.eager_rem (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) (a : in_t) :
                                                                                                                                                                                                                        (RRO.resampleDen in_t out_t dout FRO_m).eagerR (RRO.resampleDen in_t out_t dout FRO_m) (fun (σ₁ σ₂ : VariableAssignment) => σ₁ = σ₂) (procedureDenotation (FRO_T.rem in_t out_t (FRO in_t out_t dout FRO_m)).procedure a) (procedureDenotation (FRO_T.rem in_t out_t (RRO in_t out_t dout FRO_m)).procedure a) fun (u v : (procsig (in_t) → Unit).ret × VariableAssignment) => u = v

                                                                                                                                                                                                                        eager [RRO.resample();, FRO.rem ~ RRO.rem, RRO.resample(); : ={x} /\ ={FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.eager_sample (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) (a : in_t) :
                                                                                                                                                                                                                        (RRO.resampleDen in_t out_t dout FRO_m).eagerR (RRO.resampleDen in_t out_t dout FRO_m) (fun (σ₁ σ₂ : VariableAssignment) => σ₁ = σ₂) (procedureDenotation (FRO_T.sample in_t out_t (FRO in_t out_t dout FRO_m)).procedure a) (procedureDenotation (FRO_T.sample in_t out_t (RRO in_t out_t dout FRO_m)).procedure a) fun (u v : (procsig (in_t) → Unit).ret × VariableAssignment) => u = v

                                                                                                                                                                                                                        eager [RRO.resample();, FRO.sample ~ RRO.sample, RRO.resample(); : ={x, FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.eager_queried (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) (a : (procsig (in_t, flag) → Bool).ParamType) :
                                                                                                                                                                                                                        (RRO.resampleDen in_t out_t dout FRO_m).eagerR (RRO.resampleDen in_t out_t dout FRO_m) (fun (σ₁ σ₂ : VariableAssignment) => σ₁ = σ₂) (procedureDenotation (FRO_T.queried in_t out_t (FRO in_t out_t dout FRO_m)).procedure a) (procedureDenotation (FRO_T.queried in_t out_t (RRO in_t out_t dout FRO_m)).procedure a) fun (u v : (procsig (in_t, flag) → Bool).ret × VariableAssignment) => u = v

                                                                                                                                                                                                                        eager [RRO.resample();, FRO.queried ~ RRO.queried, RRO.resample(); : ={x, f} /\ ={FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.eager_allKnown (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) (a : (procsig () → FMap in_t out_t).ParamType) :
                                                                                                                                                                                                                        (RRO.resampleDen in_t out_t dout FRO_m).eagerR (RRO.resampleDen in_t out_t dout FRO_m) (fun (σ₁ σ₂ : VariableAssignment) => σ₁ = σ₂) (procedureDenotation (FRO_T.allKnown in_t out_t (FRO in_t out_t dout FRO_m)).procedure a) (procedureDenotation (FRO_T.allKnown in_t out_t (RRO in_t out_t dout FRO_m)).procedure a) fun (u v : (procsig () → FMap in_t out_t).ret × VariableAssignment) => u = v

                                                                                                                                                                                                                        eager [RRO.resample();, FRO.allKnown ~ RRO.allKnown, RRO.resample(); : ={FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.eager_D (in_t out_t d_in_t d_out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) [Countable in_t] [Countable out_t] (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) (hD : Module.ECModule D (FRO_ext in_t out_t)) (hdisj : FVP.fvP D ≤ FRO_m.footprintᶜ) (a : d_in_t) :
                                                                                                                                                                                                                        (RRO.resampleDen in_t out_t dout FRO_m).eagerR (RRO.resampleDen in_t out_t dout FRO_m) (fun (σ₁ σ₂ : VariableAssignment) => σ₁ = σ₂) (procedureDenotation (Module.app D (FRO in_t out_t dout FRO_m)).procedure a) (procedureDenotation (Module.app D (RRO in_t out_t dout FRO_m)).procedure a) fun (u v : (procsig (d_in_t) → d_out_t).ret × VariableAssignment) => u = v

                                                                                                                                                                                                                        lemma eager_D (D <: FRO_Distinguisher {-FRO}) : eager [RRO.resample();, D(FRO).distinguish ~ D(RRO).distinguish, RRO.resample(); : ={glob D, FRO.m, arg} ==> ={FRO.m, glob D} /\ ={res}], at equality invariants (exception E10). EC: eager proc (={FRO.m}) => //; try by sim; then the seven eager_* lemmas — here eager_call_module, whose SwapLoc side is footprint disjointness.

                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.eager_D_RO (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) [Countable in_t] [Countable out_t] (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) {sig : ProcedureSignature} (D : Module.Arr (RO_T in_t out_t) (Module.Proc sig)) (hD : Module.ECModule D (RO_ext in_t out_t)) (hdisj : FVP.fvP D ≤ FRO_m.footprintᶜ) (a : sig.ParamType) :
                                                                                                                                                                                                                        (RRO.resampleDen in_t out_t dout FRO_m).eagerR (RRO.resampleDen in_t out_t dout FRO_m) (fun (σ₁ σ₂ : VariableAssignment) => σ₁ = σ₂) (procedureDenotation (Module.app D (FRO.asRO in_t out_t dout FRO_m)).procedure a) (procedureDenotation (Module.app D (RRO.asRO in_t out_t dout FRO_m)).procedure a) fun (u v : sig.ret × VariableAssignment) => u = v

                                                                                                                                                                                                                        EC's eager_D at an RO_Distinguisher (EasyCrypt's subtyping RO_Distinguisher <: FRO_Distinguisher): eager_call_module over RO's procedures, by the same oracle lemmas.

                                                                                                                                                                                                                        @[simp]
                                                                                                                                                                                                                        theorem GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main2.apply_simp (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] [_gaudiParam3 : Inhabited d_in_t] [_gaudiParam4 : Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) :
                                                                                                                                                                                                                        main2 in_t out_t d_in_t d_out_t dout FRO_m D = Module.proc (procedure in_t out_t d_in_t d_out_t dout FRO_m D)

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

                                                                                                                                                                                                                        noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.Eager (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] [_gaudiParam3 : Inhabited d_in_t] [_gaudiParam4 : Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) :

                                                                                                                                                                                                                        The module declared by module Eager: the record of its procedures Eager.main1, Eager.main2.

                                                                                                                                                                                                                        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 Eager.apply_simp to apply it with.

                                                                                                                                                                                                                        Equations
                                                                                                                                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                        Instances For
                                                                                                                                                                                                                          theorem GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main1.procedure.apply_simp (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] [_gaudiParam3 : Inhabited d_in_t] [_gaudiParam4 : Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                                                                          (procedure in_t out_t d_in_t d_out_t dout FRO_m D).instantiate holeArgs✝ = proc (x : d_in_t) : d_out_t { var b : d_out_t; call (FRO_T.init in_t out_t (FRO in_t out_t dout FRO_m)).procedure (); b <- call (Module.app D (FRO in_t out_t dout FRO_m)).procedure (§x); return §b }

                                                                                                                                                                                                                          Instantiating the holes of Eager.main1.procedure with a tuple holeArgs of procedures: the body of proc main1 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 [Eager.main1.procedure.apply_simp]).

                                                                                                                                                                                                                          noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main2 (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] [_gaudiParam3 : Inhabited d_in_t] [_gaudiParam4 : Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) :

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

                                                                                                                                                                                                                          Equations
                                                                                                                                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                          Instances For
                                                                                                                                                                                                                            noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main1 (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] [_gaudiParam3 : Inhabited d_in_t] [_gaudiParam4 : Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) :

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

                                                                                                                                                                                                                            Equations
                                                                                                                                                                                                                            • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                            Instances For
                                                                                                                                                                                                                              noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main1.procedure (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] [_gaudiParam3 : Inhabited d_in_t] [_gaudiParam4 : Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) :

                                                                                                                                                                                                                              The body of proc main1 of module Eager, 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 Eager.main1.procedure.apply_simp) rather than run. Use Eager.main1 for this procedure as a module.

                                                                                                                                                                                                                              Equations
                                                                                                                                                                                                                              • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                              Instances For
                                                                                                                                                                                                                                @[simp]
                                                                                                                                                                                                                                theorem GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main1.apply_simp (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] [_gaudiParam3 : Inhabited d_in_t] [_gaudiParam4 : Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) :
                                                                                                                                                                                                                                main1 in_t out_t d_in_t d_out_t dout FRO_m D = Module.proc (procedure in_t out_t d_in_t d_out_t dout FRO_m D)

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

                                                                                                                                                                                                                                noncomputable def GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main2.procedure (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] [_gaudiParam3 : Inhabited d_in_t] [_gaudiParam4 : Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) :

                                                                                                                                                                                                                                The body of proc main2 of module Eager, 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 Eager.main2.procedure.apply_simp) rather than run. Use Eager.main2 for this procedure as a module.

                                                                                                                                                                                                                                Equations
                                                                                                                                                                                                                                • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                                Instances For
                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main2.procedure.apply_simp (in_t out_t d_in_t d_out_t : Type) [_gaudiParam0 : DecidableEq in_t] [_gaudiParam1 : Inhabited in_t] [_gaudiParam2 : Inhabited out_t] [_gaudiParam3 : Inhabited d_in_t] [_gaudiParam4 : Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) (holeArgs✝ : HoleSigs.empty.Instantiation) :
                                                                                                                                                                                                                                  (procedure in_t out_t d_in_t d_out_t dout FRO_m D).instantiate holeArgs✝ = proc (x : d_in_t) : d_out_t { var b : d_out_t; call (FRO_T.init in_t out_t (FRO in_t out_t dout FRO_m)).procedure (); b <- call (Module.app D (RRO in_t out_t dout FRO_m)).procedure (§x); call (RRO.own.resample in_t out_t dout FRO_m).procedure (); return §b }

                                                                                                                                                                                                                                  Instantiating the holes of Eager.main2.procedure with a tuple holeArgs of procedures: the body of proc main2 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 [Eager.main2.procedure.apply_simp]).

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main1_denotation (in_t out_t d_in_t d_out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] [Inhabited d_in_t] [Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) (a : d_in_t) :
                                                                                                                                                                                                                                  procedureDenotation (main1 in_t out_t d_in_t d_out_t dout FRO_m D).procedure a = do let _ ← procedureDenotation (FRO_T.init in_t out_t (FRO in_t out_t dout FRO_m)).procedure () procedureDenotation (Module.app D (FRO in_t out_t dout FRO_m)).procedure a

                                                                                                                                                                                                                                  Eager(D).main1's run: FRO.init(), then D(FRO).

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main2_denotation (in_t out_t d_in_t d_out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] [Inhabited d_in_t] [Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) (a : d_in_t) :
                                                                                                                                                                                                                                  procedureDenotation (main2 in_t out_t d_in_t d_out_t dout FRO_m D).procedure a = do let _ ← procedureDenotation (FRO_T.init in_t out_t (FRO in_t out_t dout FRO_m)).procedure () let b ← procedureDenotation (Module.app D (RRO in_t out_t dout FRO_m)).procedure a RRO.resampleDen in_t out_t dout FRO_m pure b

                                                                                                                                                                                                                                  Eager(D).main2's run: FRO.init(), D(RRO), then RRO.resample().

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.FRO_init_denotation (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (g : VariableAssignment) :
                                                                                                                                                                                                                                  procedureDenotation (FRO_T.init in_t out_t (FRO in_t out_t dout FRO_m)).procedure () g = pure ((), FRO_m.set FMap.empty g)

                                                                                                                                                                                                                                  FRO.init()'s run: FRO.m <- empty.

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.FRO_init_resample (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) :
                                                                                                                                                                                                                                  (do let _ ← procedureDenotation (FRO_T.init in_t out_t (FRO in_t out_t dout FRO_m)).procedure () RRO.resampleDen in_t out_t dout FRO_m) = procedureDenotation (FRO_T.init in_t out_t (FRO in_t out_t dout FRO_m)).procedure ()

                                                                                                                                                                                                                                  EC's inline *; rcondf{2} 3 … restr0 fdom0 elems_fset0: RRO.resample() right after FRO.init() does nothing.

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main2_eq_main1 (in_t out_t d_in_t d_out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] [Inhabited d_in_t] [Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) [Countable in_t] [Countable out_t] (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) (hD : Module.ECModule D (FRO_ext in_t out_t)) (hdisj : FVP.fvP D ≤ FRO_m.footprintᶜ) (a : d_in_t) :
                                                                                                                                                                                                                                  procedureDenotation (main2 in_t out_t d_in_t d_out_t dout FRO_m D).procedure a = procedureDenotation (main1 in_t out_t d_in_t d_out_t dout FRO_m D).procedure a

                                                                                                                                                                                                                                  EC's transitivity{1} { FRO.init(); RRO.resample(); b <@ D(FRO).distinguish(x); } … and eager call (eager_D D): main2 runs as main1.

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.Eager.main1_self (in_t out_t d_in_t d_out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] [Inhabited d_in_t] [Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) [Countable in_t] [Countable out_t] (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) (hD : Module.ECModule D (FRO_ext in_t out_t)) (hdisj : FVP.fvP D ≤ FRO_m.footprintᶜ) :
                                                                                                                                                                                                                                  prhlProc (fun (a₁ : (procsig (d_in_t) → d_out_t).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (d_in_t) → d_out_t).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ (FVP.fvP D).touched_getter.get g₁ = (FVP.fvP D).touched_getter.get g₂) (main1 in_t out_t d_in_t d_out_t dout FRO_m D).procedure (main1 in_t out_t d_in_t d_out_t dout FRO_m D).procedure fun (r₁ : (procsig (d_in_t) → d_out_t).ret) (g₁ : VariableAssignment) (r₂ : (procsig (d_in_t) → d_out_t).ret) (g₂ : VariableAssignment) => r₁ = r₂ ∧ FRO_m.get g₁ = FRO_m.get g₂ ∧ (FVP.fvP D).touched_getter.get g₁ = (FVP.fvP D).touched_getter.get g₂

                                                                                                                                                                                                                                  main1 against itself, from ={glob D, arg} (EC's seq 1 1 : (={glob D, FRO.m, x}) and the abstract call of D with FRO on both sides, whose oracles are sim).

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.Eager_1_2 (in_t out_t d_in_t d_out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] [Inhabited d_in_t] [Inhabited d_out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) [Countable in_t] [Countable out_t] (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) (D : FRO_Distinguisher in_t out_t d_in_t d_out_t) (hD : Module.ECModule D (FRO_ext in_t out_t)) (hdisj : FVP.fvP D ≤ FRO_m.footprintᶜ) :
                                                                                                                                                                                                                                  prhlProc (fun (a₁ : (procsig (d_in_t) → d_out_t).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (d_in_t) → d_out_t).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ (FVP.fvP D).touched_getter.get g₁ = (FVP.fvP D).touched_getter.get g₂) (Eager.main1 in_t out_t d_in_t d_out_t dout FRO_m D).procedure (Eager.main2 in_t out_t d_in_t d_out_t dout FRO_m D).procedure fun (r₁ : (procsig (d_in_t) → d_out_t).ret) (g₁ : VariableAssignment) (r₂ : (procsig (d_in_t) → d_out_t).ret) (g₂ : VariableAssignment) => r₁ = r₂ ∧ FRO_m.get g₁ = FRO_m.get g₂ ∧ (FVP.fvP D).touched_getter.get g₁ = (FVP.fvP D).touched_getter.get g₂

                                                                                                                                                                                                                                  EC's FullEager.EagerCore.Eager_1_2, for declare module D <: FRO_Distinguisher {-FRO} (the oracles' arguments countable: exception E8): equiv[ Eager(D).main1 ~ Eager(D).main2 : ={glob D, arg} ==> ={res, glob FRO, glob D} ].

                                                                                                                                                                                                                                  EC's LRO_RRO_init … LRO_RRO_D: LRO and RRO agree on the known entries.

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.LRO_RRO_init (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (RO_m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                                                                                  prhlProc (fun (x : (procsig () → Unit).ParamType) (x_1 : VariableAssignment) (x_2 : (procsig () → Unit).ParamType) (x_3 : VariableAssignment) => True) (RO_T.init in_t out_t (LRO in_t out_t dout RO_m)).procedure (FRO_T.init in_t out_t (RRO in_t out_t dout FRO_m)).procedure fun (x : (procsig () → Unit).ret) (g₁ : VariableAssignment) (x_1 : (procsig () → Unit).ret) (g₂ : VariableAssignment) => RO_m.get g₁ = FMap.restr Known (FRO_m.get g₂)

                                                                                                                                                                                                                                  equiv LRO_RRO_init : LRO.init ~ RRO.init : true ==> RO.m{1} = restr Known FRO.m{2}.

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.LRO_RRO_get (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (RO_m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                                                                                  prhlProc (fun (a₁ : (procsig (in_t) → out_t).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (in_t) → out_t).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ RO_m.get g₁ = FMap.restr Known (FRO_m.get g₂)) (RO_T.get in_t out_t (LRO in_t out_t dout RO_m)).procedure (FRO_T.get in_t out_t (RRO in_t out_t dout FRO_m)).procedure fun (r₁ : (procsig (in_t) → out_t).ret) (g₁ : VariableAssignment) (r₂ : (procsig (in_t) → out_t).ret) (g₂ : VariableAssignment) => r₁ = r₂ ∧ RO_m.get g₁ = FMap.restr Known (FRO_m.get g₂)

                                                                                                                                                                                                                                  equiv LRO_RRO_get : LRO.get ~ RRO.get : ={x} /\ RO.m{1} = restr Known FRO.m{2} ==> ={res} /\ RO.m{1} = restr Known FRO.m{2}.

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.LRO_RRO_set (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (RO_m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                                                                                  prhlProc (fun (a₁ : (procsig (in_t, out_t) → Unit).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (in_t, out_t) → Unit).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ RO_m.get g₁ = FMap.restr Known (FRO_m.get g₂)) (RO_T.set in_t out_t (LRO in_t out_t dout RO_m)).procedure (FRO_T.set in_t out_t (RRO in_t out_t dout FRO_m)).procedure fun (x : (procsig (in_t, out_t) → Unit).ret) (g₁ : VariableAssignment) (x_1 : (procsig (in_t, out_t) → Unit).ret) (g₂ : VariableAssignment) => RO_m.get g₁ = FMap.restr Known (FRO_m.get g₂)

                                                                                                                                                                                                                                  equiv LRO_RRO_set : LRO.set ~ RRO.set : ={x, y} /\ RO.m{1} = restr Known FRO.m{2} ==> RO.m{1} = restr Known FRO.m{2}.

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.LRO_RRO_rem (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (RO_m : Lens (FMap in_t out_t) VariableAssignment) :
                                                                                                                                                                                                                                  prhlProc (fun (a₁ : (procsig (in_t) → Unit).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (in_t) → Unit).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ RO_m.get g₁ = FMap.restr Known (FRO_m.get g₂)) (RO_T.rem in_t out_t (LRO in_t out_t dout RO_m)).procedure (FRO_T.rem in_t out_t (RRO in_t out_t dout FRO_m)).procedure fun (x : (procsig (in_t) → Unit).ret) (g₁ : VariableAssignment) (x_1 : (procsig (in_t) → Unit).ret) (g₂ : VariableAssignment) => RO_m.get g₁ = FMap.restr Known (FRO_m.get g₂)

                                                                                                                                                                                                                                  equiv LRO_RRO_rem : LRO.rem ~ RRO.rem : ={x} /\ RO.m{1} = restr Known FRO.m{2} ==> RO.m{1} = restr Known FRO.m{2}.

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.LRO_RRO_sample (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (RO_m : Lens (FMap in_t out_t) VariableAssignment) (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) :
                                                                                                                                                                                                                                  prhlProc (fun (a₁ : (procsig (in_t) → Unit).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (in_t) → Unit).ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ RO_m.get g₁ = FMap.restr Known (FRO_m.get g₂)) (RO_T.sample in_t out_t (LRO in_t out_t dout RO_m)).procedure (FRO_T.sample in_t out_t (RRO in_t out_t dout FRO_m)).procedure fun (x : (procsig (in_t) → Unit).ret) (g₁ : VariableAssignment) (x_1 : (procsig (in_t) → Unit).ret) (g₂ : VariableAssignment) => RO_m.get g₁ = FMap.restr Known (FRO_m.get g₂)

                                                                                                                                                                                                                                  equiv LRO_RRO_sample : LRO.sample ~ RRO.sample : ={x} /\ RO.m{1} = restr Known FRO.m{2} ==> RO.m{1} = restr Known FRO.m{2} (with the section's dout_ll).

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.LRO_RRO_D (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) (RO_m : Lens (FMap in_t out_t) VariableAssignment) (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) [Countable in_t] [Countable out_t] [RO_m.Disjoint FRO_m] {sig : ProcedureSignature} (D : Module.Arr (RO_T in_t out_t) (Module.Proc sig)) (hD : Module.ECModule D (RO_ext in_t out_t)) (hdisj : FVP.fvP D ≤ (RO_m.footprint ⊔ FRO_m.footprint)ᶜ) :
                                                                                                                                                                                                                                  prhlProc (fun (a₁ : sig.ParamType) (g₁ : VariableAssignment) (a₂ : sig.ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ (FVP.fvP D).touched_getter.get g₁ = (FVP.fvP D).touched_getter.get g₂ ∧ RO_m.get g₁ = FMap.restr Known (FRO_m.get g₂)) (Module.app D (LRO in_t out_t dout RO_m)).procedure (Module.app D (RRO.asRO in_t out_t dout FRO_m)).procedure fun (r₁ : sig.ret) (g₁ : VariableAssignment) (r₂ : sig.ret) (g₂ : VariableAssignment) => r₁ = r₂ ∧ (FVP.fvP D).touched_getter.get g₁ = (FVP.fvP D).touched_getter.get g₂ ∧ RO_m.get g₁ = FMap.restr Known (FRO_m.get g₂)

                                                                                                                                                                                                                                  equiv LRO_RRO_D (D <: RO_Distinguisher{-RO, -FRO}) : D(LRO).distinguish ~ D(RRO).distinguish : ={glob D, arg} /\ RO.m{1} = restr Known FRO.m{2} ==> ={res, glob D} /\ RO.m{1} = restr Known FRO.m{2}. RO.m and FRO.m are distinct variables, and the oracles' arguments countable (exception E8).

                                                                                                                                                                                                                                  theorem GaudisCrypt.EC.PROM.FullRO.FullEager.RO_LRO_D (in_t out_t : Type) [DecidableEq in_t] [Inhabited in_t] [Inhabited out_t] (dout : in_t → SubProbability out_t) (FRO_m : Lens (FMap in_t (out_t × flag)) VariableAssignment) [Countable in_t] [Countable out_t] (dout_ll : ∀ (x : in_t), ↑(dout x) Set.univ = 1) (RO_m : Lens (FMap in_t out_t) VariableAssignment) [RO_m.Disjoint FRO_m] {sig : ProcedureSignature} (D : Module.Arr (RO_T in_t out_t) (Module.Proc sig)) (hD : Module.ECModule D (RO_ext in_t out_t)) (hdisj : FVP.fvP D ≤ (RO_m.footprint ⊔ FRO_m.footprint)ᶜ) :
                                                                                                                                                                                                                                  prhlProc (fun (a₁ : sig.ParamType) (g₁ : VariableAssignment) (a₂ : sig.ParamType) (g₂ : VariableAssignment) => a₁ = a₂ ∧ (FVP.fvP D).touched_getter.get g₁ = (FVP.fvP D).touched_getter.get g₂ ∧ RO_m.get g₁ = RO_m.get g₂) (Module.app D (RO.asRO in_t out_t dout RO_m)).procedure (Module.app D (LRO in_t out_t dout RO_m)).procedure fun (r₁ : sig.ret) (g₁ : VariableAssignment) (r₂ : sig.ret) (g₂ : VariableAssignment) => r₁ = r₂ ∧ (FVP.fvP D).touched_getter.get g₁ = (FVP.fvP D).touched_getter.get g₂

                                                                                                                                                                                                                                  EC's FullEager.RO_LRO_D, for declare module D <: RO_Distinguisher {-RO, -FRO} and axiom dout_ll x : is_lossless (dout x): equiv[ D(RO).distinguish ~ D(LRO).distinguish : ={glob D, RO.m, arg} ==> ={res, glob D} ]. RO.m and FRO.m are distinct variables, and the oracles' arguments countable (exception E8). EC's proof: two transitivitys through M.main1 = RRO.resample(); D(FRO) and M.main2 = D(RRO); RRO.resample(), by RO_FRO_D, eager_D and LRO_RRO_D.

                                                                                                                                                                                                                                  D's procedure may have any signature, not only RO_Distinguisher's procmod (d_in_t) → d_out_t: EC's proc distinguish() with d_in_t = unit is procmod () → … here, which is not procmod (Unit) → … (an alias proc distinguish = D(…).distinguish has the callee's).