Documentation

StrataDDM.Integration.Lean.HashCommands

class StrataDDM.HasInputContext (m : TypeType u_1) [Functor m] :
Type u_1
Instances

    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
      @[implicit_reducible]

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

      Equations
      @[implicit_reducible]

      Allow SourcedProgram to be used wherever a Program is expected; the source/positions are dropped. Removes ~200 explicit .program accessors at consumer call sites.

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

                Add a definition to environment and compile it.

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

                  Declare dialect and add to environment.

                  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

                          Derive the package source root from a module's file path and name by stripping one directory component per name part. For example, given /repo/Strata/Languages/Foo.lean and module name Strata.Languages.Foo, returns /repo.

                          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