Documentation

Lean.Meta.SizeOf

def Lean.Meta.mkSizeOfFn (recName declName : Name) :

Create a "sizeOf" function with name declName using the recursor recName.

Equations
    Instances For

      Create sizeOf functions for all inductive datatypes in the mutual inductive declaration containing typeName The resulting array contains the generated functions names. The NameMap maps recursor names into the generated function names. There is a function for each element of the mutual inductive declaration, and for auxiliary recursors for nested inductive types.

      Equations
        Instances For
          Equations
            Instances For
              Equations
                Instances For

                  SizeOf spec theorem for nested inductive types #

                  Instances For
                    @[reducible, inline]
                    Equations
                      Instances For
                        Equations
                          Instances For
                            Equations
                              Instances For
                                Equations
                                  Instances For
                                    Equations
                                      Instances For
                                        Equations
                                          Instances For