Bundle returned by the #strata term region. Carries:
program: the parsedStrata.Programwith 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#strataand#end. Test helpers use this to build a snippet-localFileMap.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]
Equations
Instances For
@[instance_reducible]
Forward ToString to the underlying Program so #eval printing keeps
working at existing call sites.
Equations
- StrataDDM.SourcedProgram.instToString = { toString := fun (s : StrataDDM.SourcedProgram) => s.toString }
@[instance_reducible]
Allow SourcedProgram to be used wherever a Program is expected;
the source/positions are dropped.
Equations
- StrataDDM.SourcedProgram.instCoeProgram = { coe := fun (s : StrataDDM.SourcedProgram) => s.program }
@[reducible, inline]
Instances For
@[reducible, inline]
Instances For
@[reducible, inline]
Instances For
@[reducible, inline]
Equations
Instances For
@[reducible, inline]