Equations
- Lean.Meta.isFinPatLit e = (Lean.Expr.isAppOfArity e `Fin.ofNat 2 && Lean.Expr.isNatLit (Lean.Expr.appArg! e))
Instances For
Equations
Instances For
The frontend expands uint numerals occurring in patterns into UInt*.mk ..
contructor applications.
This method convert them back into UInt*.ofNat ..
applications.
Equations
- Lean.Meta.foldPatValue v = match Lean.Meta.isUIntPatLit? v with | some (typeName, numLit) => Lean.mkApp (Lean.mkConst (Lean.Name.mkStr typeName "ofNat")) numLit | x => v
Instances For
Return true is e
is a term that should be processed by the match
-compiler using casesValues