Documentation

Mathlib.Tactic.FunProp.FunctionData

funProp data structure holding information about a function #

FunctionData holds data about function in the form fun x => f x₁ ... xₙ.

funProp-normal form of a function is of the form fun x => f x₁ ... xₙ.

Throws and error if function can't be turned into funProp-normal form.

Examples: In funProp-normal form

fun x => f x
fun x => y + x

Not in funProp-normal form

fun x y => f x y
HAdd.hAdd y
Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Structure storing parts of a function in funProp-normal form.

    Instances For

      Turn function data back to expression.

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

        Is head function of f a constant?

        If the head of f is a projection return the name of corresponding projection function.

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

          Get FunctionData for f. Throws if f can be put into funProp-normal form.

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

            If f is in the form fun x => @DFunLike.coe F α β self f x₁ ... xₙ return the number of arguments of DFunLike.coe i.e. n + 5.

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

              Decompose function f = (← fData.toExpr) into composition of two functions.

              Returns none if the decomposition would produce identity function.

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