Documentation

StrataDDM.SourcedProgram

Bundle returned by the #strata term region. Carries:

  • program: the parsed Strata.Program with file-global AST byte offsets, so Boole-style consumers (and any code that uses byte offsets in obligation labels or diagnostic ranges) keep their existing behavior.
  • source: the raw snippet text between #strata and #end. Test helpers use this to build a snippet-local FileMap.
  • basePos: byte offset in the Lean file where the snippet starts, so helpers can convert file-global pipeline diagnostics back to snippet-local positions when matching against inline annotations.
  • baseLine / fileName: enough info for helpers to render <lean_file>:<line>:<col> in error messages so editors / quickfix lists can jump straight to the offending source.
Instances For
    @[instance_reducible]

    Forward ToString to the underlying Program so #eval printing keeps working at existing call sites.

    Equations
    @[instance_reducible]

    Allow SourcedProgram to be used wherever a Program is expected; the source/positions are dropped.

    Equations
    @[reducible, inline]
    Equations
    Instances For
      @[reducible, inline]
      Equations
      Instances For
        @[reducible, inline]
        Equations
        Instances For
          @[reducible, inline]
          Equations
          Instances For