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
                                            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

                                                    Translate a forward type declaration. This creates a placeholder entry that will be replaced when the actual datatype definition is encountered in a mutual block.

                                                    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) :
                                                                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
                                                                          • 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

                                                                                                        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
                                                                                                            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 declaration to Boogie declarations, updating bindings appropriately.

                                                                                                                        Important: The returned Core.Decls only contains the type declaration itself. Factory functions (constructors, testers, destructors) are generated automatically by Env.addDatatypes during program evaluation to avoid duplicates.

                                                                                                                        Parameters:

                                                                                                                        • p: The DDM Program (provides dialect map)
                                                                                                                        • bindings: Current translation bindings
                                                                                                                        • op: The command_datatype operation to translate
                                                                                                                        Equations
                                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                                        Instances For

                                                                                                                          Translate a mutual block containing mutually recursive datatype definitions. This collects all datatypes, creates a single TypeDecl.data with all of them, and updates the forward-declared entries in bindings.freeVars.

                                                                                                                          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