Documentation

Miri.Input.EvalConfigurationCore

Source-owned execution configuration. Compiler/global-memory, platform and native numerical capabilities remain explicit. Callback capacity is an execution resource, not a safety guarantee.

@[reducible, inline]
abbrev Miri.Input.EvalConfigurationCore.User (Os R P H D O Aff B Host : Type) :
Equations
Instances For
    @[reducible, inline]
    abbrev Miri.Input.EvalConfigurationCore.State (Os R P H D O Aff B Host : Type) :
    Equations
    Instances For
      @[reducible, inline]
      abbrev Miri.Input.EvalConfigurationCore.M (Os R P H D O Aff B Host A : Type) :
      Equations
      Instances For
        Instances For
          Instances For
            structure Miri.Input.EvalConfigurationCore.Leaves (Os R P H D O Aff B Host C ClockHost : Type) :

            Genuine residual effects and compiler queries. Physical reads/writes, local storage, retagging, calls/returns and every ordinary MIR operation are constructed below, rather than independently chosen callbacks.

            Instances For
              @[reducible, inline]
              abbrev Miri.Input.EvalConfigurationCore.SourceOther (Raw Listener TcpStream Error : Type) :
              Equations
              Instances For
                @[reducible, inline]
                abbrev Miri.Input.EvalConfigurationCore.SourceHost (Poll Instant System H D Raw Listener TcpStream Error Native Profiler : Type) :
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  @[reducible, inline]
                  abbrev Miri.Input.EvalConfigurationCore.SourceUser (Os R P H D Aff B Poll Instant System Native Profiler Raw Listener TcpStream Error : Type) :
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    @[reducible, inline]
                    abbrev Miri.Input.EvalConfigurationCore.SourceState (Os R P H D Aff B Poll Instant System Native Profiler Raw Listener TcpStream Error : Type) :
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      @[reducible, inline]
                      abbrev Miri.Input.EvalConfigurationCore.SourceControl (Os R P H D Aff B Poll Instant System Native Profiler Raw Listener TcpStream Error : Type) :
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        structure Miri.Input.EvalConfigurationCore.SourceLeaves (Os R P H D Aff B Poll Instant System Native Profiler Raw Listener TcpStream Error ErrorHost Meta Path Place C ClockHost I AddrIter : Type) :

                        Source-route inputs for the specialized production Core path. Unlike the legacy Leaves, this record cannot carry a completed ForeignItems.Hooks; the ordered source resolver is constructed internally from foreignSource. The dimensions match EvalWorld's canonical Unix Other/Host payload exactly.

                        Instances For
                          structure Miri.Input.EvalConfigurationCore.ForeignContext (Os R P H D O Aff B Host C ClockHost : Type) (Assembly : Type := Unit) :
                          Instances For
                            structure Miri.Input.EvalConfigurationCore.SourceCallbackProduct (Os R H D Aff B Poll Instant System Native Profiler Raw Listener TcpStream Error C AddrIter : Type) :

                            Existential source callback package. The host timezone and timestamp representations are not part of EvalWorld, so a real time-shim dictionary is carried at the higher-universe factory boundary instead of being erased to Unit inside EStateM state.

                            Instances For
                              structure Miri.Input.EvalConfigurationCore.SourcePackage (Os R H D Aff B Poll Instant System Native Profiler Raw Listener TcpStream Error ErrorHost Meta Path Place C ClockHost AddrIter : Type) :

                              Higher-universe source callback factory paired with the already-created configuration and canonical assembly. The builder consumes that exact assembly and execution config after Main and startup initialization exist; it does not rerun the source constructors or accept caller-built callbacks.

                              Instances For

                                Build startup/foreign environment memory from the exact live Core fields. This deliberately lives below EvalSyncObjectConstruction: it avoids a module cycle and does not take a separately assembled execution Config or memory record. The returned state lens is the same EvalWorld runtime used by MIR.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  @[reducible, inline]
                                  abbrev Miri.Input.EvalConfigurationCore.ForeignBuilder (Os R P H D O Aff B Host C ClockHost Assembly : Type) :

                                  Internal platform assembly edge. Production platform packages derive this builder from compiler facts and raw host leaves; this is not an input contract for client Rust safety claims.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    def Miri.Input.EvalConfigurationCore.makeWithForeignContext {Os R P H D O Aff B Host C ClockHost Assembly : Type} (p : CompilerProviders.Prepared) (image : AllocationImage.Imported) (bytes : CompilerGlobalBytes.Prepared) (options : Options) (leaves : Leaves Os R P H D O Aff B Host C ClockHost) (choice : C) (sourceHostConfiguration : Option HostRuntime.Configuration) (foreignBuilder : Option (ForeignBuilder Os R P H D O Aff B Host C ClockHost Assembly)) :
                                    Nat → Except Interpreter.StepError (Interpreter.ExecutionMachine.Config Memory.MiriMemoryKind (User Os R P H D O Aff B Host) C O ABI.ExternAbi ClockHost × ForeignContext Os R P H D O Aff B Host C ClockHost Assembly)

                                    Construct a fresh view of the same canonical state. The decreasing count is consumed only by synchronous visitor/helper/catch re-entry; exhaustion is an explicit runner resource result. Ordinary frame execution uses Step.step. Shared internal construction for source-owned platform packages retains the same live source assembly factory in startup and each recursive call.

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

                                      The legacy generic entry retains its complete semantic-hook input. The production source entry below fixes the canonical Unix state dimensions and constructs the ordered foreign resolver internally.

                                      def Miri.Input.EvalConfigurationCore.make {Os R P H D O Aff B Host C ClockHost : Type} (p : CompilerProviders.Prepared) (image : AllocationImage.Imported) (bytes : CompilerGlobalBytes.Prepared) (options : Options) (leaves : Leaves Os R P H D O Aff B Host C ClockHost) (choice : C) :
                                      Equations
                                      Instances For
                                        def Miri.Input.EvalConfigurationCore.makeFromSourcePackage {Os R H D B Poll Instant System Native Profiler Raw Listener TcpStream Error ErrorHost Meta Path C ClockHost I AddrIter : Type} [DecidableEq Os] (p : CompilerProviders.Prepared) (image : AllocationImage.Imported) (bytes : CompilerGlobalBytes.Prepared) (options : Options) (sourceLeaves : SourceLeaves Os R EvalSyncObjectAccess.Payload H D Interpreter.CpuAffinity.Mask B Poll Instant System Native Profiler Raw Listener TcpStream Error ErrorHost Meta Path MIR.Place C ClockHost I AddrIter) (choice : C) :
                                        Nat → Except Interpreter.StepError (SourcePackage Os R H D Interpreter.CpuAffinity.Mask B Poll Instant System Native Profiler Raw Listener TcpStream Error ErrorHost Meta Path MIR.Place C ClockHost AddrIter)

                                        Source-owned Core construction for the canonical Unix EvalWorld. This entry fixes the Other/Host state dimensions, derives native-library paths from the active HostRuntime, and internally constructs the ordered foreign factory from typed source components. There is no complete foreign-hook input.

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          def Miri.Input.EvalConfigurationCore.makeFromSource {Os R H D B Poll Instant System Native Profiler Raw Listener TcpStream Error ErrorHost Meta Path C ClockHost I AddrIter : Type} [DecidableEq Os] (p : CompilerProviders.Prepared) (image : AllocationImage.Imported) (bytes : CompilerGlobalBytes.Prepared) (options : Options) (sourceLeaves : SourceLeaves Os R EvalSyncObjectAccess.Payload H D Interpreter.CpuAffinity.Mask B Poll Instant System Native Profiler Raw Listener TcpStream Error ErrorHost Meta Path MIR.Place C ClockHost I AddrIter) (choice : C) :
                                          Nat → Except Interpreter.StepError (Interpreter.ExecutionMachine.Config Memory.MiriMemoryKind (SourceUser Os R EvalSyncObjectAccess.Payload H D Interpreter.CpuAffinity.Mask B Poll Instant System Native Profiler Raw Listener TcpStream Error) C (SourceOther Raw Listener TcpStream Error) ABI.ExternAbi ClockHost)

                                          Compatibility projection for callers that need only the executable configuration. The production startup runner uses makeFromSourcePackage so it can build startup and callback adapters from the exact context paired with that configuration.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            def Miri.Input.EvalConfigurationCore.validateInitialization {Os R P H D O Aff B Host C ClockHost : Type} (leaves : Leaves Os R P H D O Aff B Host C ClockHost) :
                                            M Os R P H D O Aff B Host Unit

                                            Source initialization consistency belongs to runner input construction, not an additional Rust memory-operation check. Call after configuring actual native libraries/backend and before interpreting the first MIR step.

                                            Equations
                                            Instances For

                                              Ordinary exported MIR enters the same fixed small-step interpreter. Unknown compiler/host/backend effects and resource exhaustion remain error outcomes.

                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For
                                                theorem Miri.Input.EvalConfigurationCore.make_eq_context {Os R P H D O Aff B Host C ClockHost : Type} (p : CompilerProviders.Prepared) (image : AllocationImage.Imported) (bytes : CompilerGlobalBytes.Prepared) (options : Options) (leaves : Leaves Os R P H D O Aff B Host C ClockHost) (choice : C) (capacity : Nat) :
                                                make p image bytes options leaves choice capacity = Except.map Prod.fst (makeWithForeignContext p image bytes options leaves choice none none capacity)

                                                Public proof boundary for the canonical factory. Operational dictionaries remain exactly those assembled by makeWithForeignContext.

                                                Reveal only the pure construction-error adapter to client proofs.

                                                Reveal only the universe lift used during factory construction.