Documentation

Lean.Meta.CasesInfo

This modules defines the CasesInfo data structure and functions to obtain it. It contains information about the structure of casesOn-like functions, namely of

It recognizes .casesOn by using isCasesOnRecursor (name + isAuxDecl env ext), and the others via the isSparseCasesOn env ext.

It is used in particular by the code generator to replace calls to such functions with LCNF's cases construct.

The getSparseCasesInfo? function calculates the CasesInfo from the type of the declaration, and makes certian assumptions about their shapes. If this is too fragile, the sparseCasesOn env extension could carry more information from which the shape can be calculated..

inductive CasesAltInfo :
Instances For
    structure CasesInfo :

    Information about the shape of casesOn-like declarations.

    We treat them uniformly in the code generator.

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