Like List.set, but right-pad with zeroes as necessary first.
Equations
- Lean.Omega.IntList.set [] 0 y = [y]
- Lean.Omega.IntList.set [] i_2.succ y = 0 :: Lean.Omega.IntList.set [] i_2 y
- Lean.Omega.IntList.set (head :: xs_2) 0 y = y :: xs_2
- Lean.Omega.IntList.set (x :: xs_2) i_2.succ y = x :: Lean.Omega.IntList.set xs_2 i_2 y
Instances For
@[instance_reducible]
Equations
Runtime implementation of IntList.mul, which avoids List.zipWith because its runtime
implementation is not available here.
Equations
Instances For
@[instance_reducible]
Equations
@[instance_reducible]
Equations
@[instance_reducible]
Equations
@[instance_reducible]
Equations
- Lean.Omega.IntList.instHMulInt = { hMul := fun (i : Int) (xs : Lean.Omega.IntList) => xs.smul i }
Runtime implementation of IntList.sum, which avoids List.foldr because its runtime
implementation is not available here.
Equations
- Lean.Omega.IntList.sumImpl [] = 0
- Lean.Omega.IntList.sumImpl (x_1 :: xs) = x_1 + Lean.Omega.IntList.sumImpl xs
Instances For
Runtime implementation of IntList.gcd, which avoids List.foldr because its runtime
implementation is not available here.
Equations
- Lean.Omega.IntList.gcdImpl [] = 0
- Lean.Omega.IntList.gcdImpl (x_1 :: xs) = x_1.natAbs.gcd (Lean.Omega.IntList.gcdImpl xs)
Instances For
@[reducible, inline]
The difference between the balanced mod of a dot product, and the dot product with balanced mod applied to each entry of the left factor.