Equations
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.reduceAdd = Fin.reduceBin `HAdd.hAdd 6 fun {n : Nat} (x1 x2 : Fin n) => x1 + x2
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.reduceDiv = Fin.reduceBin `HDiv.hDiv 6 fun {n : Nat} (x1 x2 : Fin n) => x1 / x2
Instances For
Equations
- Fin.reduceMod = Fin.reduceBin `HMod.hMod 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.reduceGT = Fin.reduceBinPred `GT.gt 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.reduceEq = Fin.reduceBinPred `Eq 3 fun (x1 x2 : Nat) => decide (x1 = x2)
Instances For
Equations
- Fin.reduceNe = Fin.reduceBinPred `Ne 3 fun (x1 x2 : Nat) => decide (x1 ≠ x2)
Instances For
Equations
- Fin.reduceBEq = Fin.reduceBoolPred `BEq.beq 4 fun (x1 x2 : Nat) => x1 == x2
Instances For
Equations
- Fin.reduceBNe = Fin.reduceBoolPred `bne 4 fun (x1 x2 : Nat) => x1 != x2
Instances For
Simplification procedure for ensuring Fin
literals are normalized.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.