Instances For
Instances For
Similar to withoutModifyingEnv, but also returns the updated environment
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Matches if e is a constant that is an inductive type with one constructor.
Such types can be used with primitive projections.
See also Lean.matchConstNonRecStructure for a more restrictive version.
Instances For
Matches if e is a constant that is a non-recursive inductive type with no indices and with one constructor.
Such a type satisfies Lean.isNonRecStructure.
See also Lean.matchConstStructure for a less restrictive version.
Instances For
Instances For
Instances For
Instances For
Returns true if the recursor of the inductive type declName eliminates into an arbitrary Sort,
which is the case exactly when it takes an extra universe parameter for the motive.
Constructions that turn a value of the type into data (T.ctorIdx, T._sizeOf_1, T.noConfusion,
…) are only possible for such types.