Equations
- Nat.fromExpr? e = do let __discr ← liftM (OptionT.run (Lean.Meta.evalNat e)) match __discr with | some n => pure (some n) | x => pure none
Instances For
Equations
- Nat.reduceSucc = Nat.reduceUnary `Nat.succ 1 fun (x : Nat) => x + 1
Instances For
Equations
- Nat.reduceAdd = Nat.reduceBin `HAdd.hAdd 6 fun (x x_1 : Nat) => x + x_1
Instances For
Equations
- Nat.reduceMul = Nat.reduceBin `HMul.hMul 6 fun (x x_1 : Nat) => x * x_1
Instances For
Equations
- Nat.reduceSub = Nat.reduceBin `HSub.hSub 6 fun (x x_1 : Nat) => x - x_1
Instances For
Equations
- Nat.reduceDiv = Nat.reduceBin `HDiv.hDiv 6 fun (x x_1 : Nat) => x / x_1
Instances For
Equations
- Nat.reduceMod = Nat.reduceBin `HMod.hMod 6 fun (x x_1 : Nat) => x % x_1
Instances For
Equations
- Nat.reducePow = Nat.reduceBin `HPow.hPow 6 fun (x x_1 : Nat) => x ^ x_1
Instances For
Equations
- Nat.reduceGcd = Nat.reduceBin `Nat.gcd 2 Nat.gcd
Instances For
Equations
- Nat.reduceLT = Nat.reduceBinPred `LT.lt 4 fun (x x_1 : Nat) => decide (x < x_1)
Instances For
Equations
- Nat.reduceLE = Nat.reduceBinPred `LE.le 4 fun (x x_1 : Nat) => decide (x ≤ x_1)
Instances For
Equations
- Nat.reduceGT = Nat.reduceBinPred `GT.gt 4 fun (x x_1 : Nat) => decide (x > x_1)
Instances For
Equations
- Nat.reduceGE = Nat.reduceBinPred `GE.ge 4 fun (x x_1 : Nat) => decide (x ≥ x_1)
Instances For
Equations
- One or more equations did not get rendered due to their size.