Documentation

StrataDDM.Elab.Tree

Information about the type or category of a bound variable.

  • expr (tp : TypeExpr) : BindingKind

    Variable is an expression with the given type.

  • type (ann : SourceRange) (params : List String) (value : Option TypeExpr) : BindingKind

    Variable is a type or parametric type.

    Type variables may be declared as synonyms for existing types. In this case, the value is a type expression over the parameters.

  • cat (k : SyntaxCat) : BindingKind

    Variable belongs to the particular category below.

  • tvar (ann : SourceRange) (name : String) : BindingKind

    Variable is a polymorphic type variable (for function type parameters). These are passed through to the dialect's typechecker for inference.

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

        A single binder may declare multiple identifiers, but they all have the same type and metadata.

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

            A sequence of bindings.

            Includes an additional map that maps the identifiers to the index of the binder for them.

            Instances For
              Equations
              Instances For
                @[implicit_reducible]
                Equations
                @[implicit_reducible]
                Equations
                Equations
                Instances For

                  Remove the last i pushed bindings

                  Equations
                  Instances For
                    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

                            Remove the last count entries pushed to tctx.

                            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

                                Create a new TypingContext with a different GlobalContext but the same local bindings. Used for recursive datatype definitions where the datatype name needs to be added to the GlobalContext before parsing constructor field types.

                                Equations
                                Instances For

                                  This contains information about a bound or global variable.

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

                                      Common information for each node in the Strata info tree.

                                      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
                                                • 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
                                                    @[reducible, inline]
                                                    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
                                                          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
                                                                    Instances For
                                                                      Equations
                                                                      Instances For
                                                                        Equations
                                                                        Instances For
                                                                          Instances For
                                                                            Equations
                                                                            Instances For
                                                                              Equations
                                                                              Instances For
                                                                                @[implicit_reducible]
                                                                                Equations
                                                                                @[simp]
                                                                                theorem StrataDDM.Elab.Tree.node_getElem (info : Info) (c : Array Tree) (i : Nat) (p : i < (node info c).children.size) :
                                                                                (node info c)[i] = c[i]
                                                                                Instances For
                                                                                  @[irreducible]
                                                                                  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

                                                                                          Retun array of bindings for a tree with category Option Bindings

                                                                                          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