A polynomial represented by an ascending coefficient list.
Equations
Instances For
Addition on ascending coefficients, preserving zeros for cheap reduction.
Equations
- HexPolyTheory.addLists [] x✝ = x✝
- HexPolyTheory.addLists x✝ [] = x✝
- HexPolyTheory.addLists (x_2 :: xs) (y :: ys) = x_2.add y :: HexPolyTheory.addLists xs ys
Instances For
Structural coefficient convolution.
Equations
- HexPolyTheory.mulLists [] x✝ = []
- HexPolyTheory.mulLists (x_2 :: xs) x✝ = HexPolyTheory.addLists (HexPolyTheory.scaleList x_2 x✝) (0 :: HexPolyTheory.mulLists xs x✝)
Instances For
Equations
- HexPolyTheory.powList xs 0 = [1]
- HexPolyTheory.powList xs n.succ = HexPolyTheory.mulLists (HexPolyTheory.powList xs n) xs