Documentation

Strata.Languages.Core.DDMTransform.Translate

Instances For
    def Strata.TransM.run {α : Type} (ictx : Parser.InputContext) (m : TransM α) (gctx : GlobalContext := ) :
    Equations
    Instances For
      def Strata.TransM.error {α : Type} [Inhabited α] (msg : String) :
      Equations
      Instances For
        def Strata.checkOp {α : Type} (op : Operation) (name : QualifiedIdent) (argc : Nat) :
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Strata.checkOpArg (arg : Arg) (name : QualifiedIdent) (argc : Nat) :
          Equations
          Instances For
            def Strata.translateCommaSep {α : Type} [Inhabited α] (f : ArgTransM α) (arg : Arg) :
            Equations
            Instances For
              def Strata.translateOption {α : Type} [Inhabited α] (f : Option ArgTransM α) (arg : Arg) :
              Equations
              Instances For
                def Strata.translateIdent (Identifier : Type) [Coe String Identifier] [Inhabited Identifier] (arg : Arg) :
                TransM Identifier
                Equations
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    Equations
                    Instances For
                      def Strata.translateBitVec (width : Nat) (arg : Arg) :
                      Equations
                      Instances For
                        Equations
                        Instances For
                          Equations
                          Instances For
                            inductive Strata.GenKind :
                            Instances For
                              structure Strata.GenNum :

                              Counters for assigning default names for various definitions.

                              • var_def : Nat
                              • axiom_def : Nat
                              • assume_def : Nat
                              • assert_def : Nat
                              • cover_def : Nat
                              Instances For
                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  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.
                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        Equations
                                        Instances For
                                          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
                                                    Equations
                                                    Instances For
                                                      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
                                                            partial def Strata.translateQuantifier (qk : Lambda.QuantifierKind) (p : Program) (bindings : TransBindings) (xsa : Arg) (triggersa : Option Arg) (bodya : Arg) :

                                                            Resolve a function from a recFuncBlock by its global-context index.

                                                            Equations
                                                            • One or more equations did not get rendered due to their size.
                                                            Instances For
                                                              Equations
                                                              Instances For
                                                                Equations
                                                                Instances For
                                                                  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
                                                                        Instances For
                                                                          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

                                                                                Like translateBindings but also returns the index of the @[cases] parameter, if any.

                                                                                Equations
                                                                                • One or more equations did not get rendered due to their size.
                                                                                Instances For
                                                                                  Equations
                                                                                  Instances For
                                                                                    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
                                                                                          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

                                                                                                Translate a top-level block command as a nameless parameterless procedure

                                                                                                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
                                                                                                        Instances For
                                                                                                          Equations
                                                                                                          Instances For
                                                                                                            Equations
                                                                                                            • One or more equations did not get rendered due to their size.
                                                                                                            Instances For

                                                                                                              Translate a single function within a mutual recursive block. fnOp is a recfn_decl operation. preBindings has placeholder fvars for all functions in the block. siblingExprs contains the opExpr for each preceding sibling (for bvar resolution).

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

                                                                                                                Translate a command_recfndefs block (one or more mutually recursive functions).

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

                                                                                                                  Information about a single constructor extracted during translation. This is the Strata Core-specific version of ConstructorInfo from AST.lean, with types translated from TypeExpr to LMonoTy.

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

                                                                                                                      Extract and translate constructor information from a constructor list argument.

                                                                                                                      Parameters:

                                                                                                                      • p: The DDM Program (provides dialect map for annotation lookup)
                                                                                                                      • bindings: Current translation bindings (for type variable resolution)
                                                                                                                      • arg: The constructor list argument from the parsed datatype command
                                                                                                                      Equations
                                                                                                                      • One or more equations did not get rendered due to their size.
                                                                                                                      Instances For

                                                                                                                        Extract type arguments from a datatype's optional bindings argument.

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

                                                                                                                          Create a placeholder LDatatype for recursive type references.

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

                                                                                                                            Filter factory function declarations to extract constructor, tester, and field accessor decls for a single datatype.

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

                                                                                                                              Build LConstr list from TransConstructorInfo array.

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

                                                                                                                                Generate factory function declarations from a list of LDatatypes.

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

                                                                                                                                  Translate a datatype block (one or more datatype declarations). The @[preRegisterTypes] metadata on command_datatypes ensures that type names are pre-registered in the DDM GlobalContext before processing.

                                                                                                                                  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
                                                                                                                                        Equations
                                                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                                                        Instances For