TorchLean API

Lean.Meta.Tactic.FunIndInfo

This module defines the data structure and environment extension to remember how to map the function's arguments to the functional induction principle's arguments. Also used for functional cases.

A FunIndInfo indicates how a function's arguments map to the arguments of the functional induction (resp. cases) theorem.

The size of params also indicates the arity of the function.

  • funName : Name
  • funIndName : Name
  • levelMask : Array Bool

    true means that the corresponding level parameter of the function is also a level param of the induction principle.

Instances For
    @[implicit_reducible]
    def Lean.Meta.getFunInductName (declName : Name) (unfolding : Bool := false) :
    Instances For
      def Lean.Meta.getFunCasesName (declName : Name) (unfolding : Bool := false) :
      Instances For
        def Lean.Meta.getMutualInductName (declName : Name) (unfolding : Bool := false) :
        Instances For
          def Lean.Meta.getFunInduct? (unfolding cases : Bool) (declName : Name) :
          Instances For
            Instances For
              def Lean.Meta.getFunIndInfo? (cases unfolding : Bool) (funName : Name) :
              Instances For