Documentation

Miri.Input.JsonTraversalCache

Optional structural-hash memo for already resolved transport graphs. The authoritative resolver still owns all input checks. Cached keys use the same Json equality and hash; collisions are never treated as equality. A raw noncanonical object, or an unexpected shape, disables this optimization.

Instances For
    Instances For
      Equations
      Instances For

        Identity keys are confined to a single document traversal. Sharing is supplied by the exporter, never inferred from hashes.

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

            Inline children are traversed under their shared parent, without creating unique memo entries that can never be hit. Raw fallback keeps structural reuse.

            Equations
            Instances For
              def Miri.Input.JsonTraversalCache.Node.child (node : Node) (index : Nat) (fallback : Lean.Json) :

              Child positions follow the actual array or object's inorder traversal. Only the internal builder supplies cached children; an absent child falls back to the real JSON value, preserving checks rather than treating it as visited.

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

                  Only this constructor path creates the optional cache from the same input and resolver result. Fallback preserves arbitrary manually constructed Raw JSON. The cache performs no readiness or semantic validation of its own.

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

                    Diagnostic consistency check; deliberately expensive, never used as a readiness shortcut. It checks every cached child independently.