Documentation

Mathlib.Tactic.Inclusion.ExtensionAPI.Attr

Attributes for inclusion extensions #

This file defines the attributes used to register inclusion and hypothesis extensions.

Syntax for registering an inclusion parameter using the inclusion_param attribute.

Equations
Instances For

    Add the inclusion parameter declared by declName.

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

      Syntax for declaring an inclusion extension using the inclusion_ext attribute.

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

        Add the inclusion extension declName under keys.

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

          Syntax for declaring a hypothesis extension using the hypothesis_ext attribute.

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

            Add the hypothesis extension declName under keys.

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

              The argument indices of an element x, a set s, and an inclusion hypothesis x ∈ s in some theorem statement.

              • elemIdx :

                The index of the element argument.

              • setIdx :

                The index of the set argument.

              • proofIdx :

                The index of the membership proof argument.

              Instances For
                @[instance_reducible]
                Equations
                Equations
                Instances For

                  The name of an inclusion parameter and its index in some theorem statement.

                  • name : Lean.Name

                    The name of the registered inclusion parameter.

                  • idx :

                    The index of the corresponding theorem argument.

                  Instances For
                    Equations
                    Instances For
                      @[instance_reducible]
                      Equations

                      Apply the inclusion theorem theoremName to e, recursively constructing the inclusion bodies specified by hypArgs and filling the registered parameter arguments specified by paramArgs.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def Inclusion.deriveHypothesisOp (theoremName : Lean.Name) (sourceIdx : ) (hypArgs : Array HypArg) (paramArgs : Array ParamArg) (h : Lean.Expr) :

                        Apply the hypothesis theorem theoremName to h as its source hypothesis at sourceIdx, recursively constructing the closed inclusion bodies specified by hypArgs and filling the registered parameter arguments specified by paramArgs.

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

                          Syntax for registering an inclusion extension from a theorem using the inclusion_op attribute.

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

                            Syntax for registering a hypothesis extension from a theorem using the hypothesis_op attribute.

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