Equations
- Fin.instReprValue = { reprPrec := Fin.reprValue✝ }
Equations
- Fin.fromExpr? e = do let __discr ← liftM (Lean.Meta.getFinValue? e) match __discr with | some ⟨n, value⟩ => pure (some { n := n, value := value }) | x => pure none
Instances For
Equations
- Fin.reduceMul = Fin.reduceBin `HMul.hMul 6 fun {n : Nat} (x1 x2 : Fin n) => x1 * x2
Instances For
Equations
- Fin.reduceSub = Fin.reduceBin `HSub.hSub 6 fun {n : Nat} (x1 x2 : Fin n) => x1 - x2
Instances For
Equations
- Fin.reduceLT = Fin.reduceBinPred `LT.lt 4 fun (x1 x2 : Nat) => decide (x1 < x2)
Instances For
Equations
- Fin.reduceLE = Fin.reduceBinPred `LE.le 4 fun (x1 x2 : Nat) => decide (x1 ≤ x2)
Instances For
Equations
- Fin.reduceGE = Fin.reduceBinPred `GE.ge 4 fun (x1 x2 : Nat) => decide (x1 ≥ x2)
Instances For
Equations
- Fin.reduceNe = Fin.reduceBinPred `Ne 3 fun (x1 x2 : Nat) => decide (x1 ≠ x2)