Documentation

Miri.Input.RuntimeMetadata

Internal compiler-metadata bridge, not the public import API. Successful conversion supplies records and queries; it does not establish execution readiness, machine-hook adequacy, or Rust UB freedom. Original source nodes remain available beside every canonical layout result.

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

        A private, checked certificate that one immutable JSON tree compares equal to itself. JSON's BEq is not assumed lawful: a malformed tree may fail this test, in which case comparisons must retain their ordinary recursive path.

        Instances For
          Equations
          Instances For

            Compare in the source-left orientation, preserving left == candidate.

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

              Compare in the candidate-left orientation, preserving candidate == left.

              Equations
              Instances For

                Optional-cache entry point for callers that keep their historical API.

                Equations
                Instances For
                  theorem Miri.Input.RuntimeMetadata.JsonReflexivity.matchesRight_eq {left : Lean.Json} (certificate : JsonReflexivity left) (candidate : Lean.Json) :
                  certificate.matchesRight candidate = (left == candidate)
                  theorem Miri.Input.RuntimeMetadata.JsonReflexivity.matchesLeft_eq {left : Lean.Json} (certificate : JsonReflexivity left) (candidate : Lean.Json) :
                  certificate.matchesLeft candidate = (candidate == left)
                  theorem Miri.Input.RuntimeMetadata.JsonReflexivity.matchesRightOr_eq {left : Lean.Json} (certificate : Option (JsonReflexivity left)) (candidate : Lean.Json) :
                  matchesRightOr certificate candidate = (left == candidate)

                  Full-width rustc u128 JSON endpoints, with backward numeric encoding.

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

                                      Every canonical target field is required. LLVM's original layout string and address-space bounds stay in the enclosing source document as evidence.

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

                                        A prepared type-node table is tied to the exact source array it summarizes, and its table must equal the canonical first-row-wins map for that array.

                                        Instances For

                                          Build a first-row-wins index, matching Array.find? on nodes.

                                          Equations
                                          Instances For

                                            A prepared layout table indexed by the exact layout array it summarizes. Its entries equal the canonical first-row-wins map, retaining first-row errors.

                                            Instances For

                                              Internal metadata cache. A failed type-layout conversion remains a stored obligation; successful import never marks the document execution-ready.

                                              Instances For

                                                Preparation-only immutable lookup view. The public base record remains an array-backed value, so existing direct construction and record updates retain their old semantics. The index is constructed from one fixed metadata value; its first-entry policy matches the base .find? lookups for manually built records that contain duplicate keys.

                                                Instances For

                                                  Build exact-key tables for repeated source/compiler fact lookups. Duplicate keys in manually constructed records preserve the first source-order entry.

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

                                                    Compare a candidate document using the exact original JSON equality. The checked self-equality certificate permits Lean's safe withPtrEq fast path when the indexed metadata object is reused by the source world.

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

                                                              This is an explicit diagnostic inventory, not an execution-readiness test.

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

                                                                  Canonical primitive lookup compares the compiler integer tag, rather than choosing an arbitrary member of the broad int/uint shape category.

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

                                                                    Source Ty::new_tup identity from the exact ordered compiler element IDs. No size, display spelling, or first-match heuristic establishes a tuple type.

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

                                                                        Source type relationships are read from typed compiler payloads, never from display/debug strings. ADT field selection uses the selected variant.

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

                                                                          Reconstructs precisely LayoutData::for_variant in pinned rustc_abi/layout/simple.rs:158–185. Missing uninhabited-variant compiler queries remain obligations instead of fabricated field metadata.

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

                                                                              Boundary adapter preserves missing compiler metadata as explicit failures.

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