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.reduceSucc = Fin.reduceOp `Fin.succ 2 (fun (x : Nat) => x + 1) fun {n : Nat} => Fin.succ
Instances For
Equations
- Fin.reduceRev = Fin.reduceOp `Fin.rev 2 (fun (x : Nat) => x) fun {n : Nat} => Fin.rev
Instances For
Equations
- Fin.reduceLast = Fin.reduceNatOp `Fin.last 1 (fun (x : Nat) => x + 1) Fin.last
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.reduceAnd = Fin.reduceBin `HAnd.hAnd 6 fun {n : Nat} (x1 x2 : Fin n) => x1 &&& x2
Instances For
Equations
- Fin.reduceOr = Fin.reduceBin `HOr.hOr 6 fun {n : Nat} (x1 x2 : Fin n) => x1 ||| x2
Instances For
Equations
- Fin.reduceXor = Fin.reduceBin `HXor.hXor 6 fun {n : Nat} (x1 x2 : Fin n) => x1 ^^^ x2
Instances For
Equations
- Fin.reduceShiftLeft = Fin.reduceBin `HShiftLeft.hShiftLeft 6 fun {n : Nat} (x1 x2 : Fin n) => x1 <<< x2
Instances For
Equations
- Fin.reduceShiftRight = Fin.reduceBin `HShiftRight.hShiftRight 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
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.
Instances For
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.
Instances For
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.
Instances For
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.
Instances For
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.