StdPoly.tex 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. \begin{code}
  2. \>[0]\AgdaKeyword{data}\AgdaSpace{}%
  3. \AgdaDatatype{Polynomial}\AgdaSpace{}%
  4. \AgdaSymbol{(}\AgdaBound{m}\AgdaSpace{}%
  5. \AgdaSymbol{:}\AgdaSpace{}%
  6. \AgdaDatatype{ℕ}\AgdaSymbol{)}\AgdaSpace{}%
  7. \AgdaSymbol{:}\AgdaSpace{}%
  8. \AgdaPrimitiveType{Set}\AgdaSpace{}%
  9. \AgdaBound{r₁}\AgdaSpace{}%
  10. \AgdaKeyword{where}\<%
  11. \\
  12. \>[0][@{}l@{\AgdaIndent{0}}]%
  13. \>[2]\AgdaInductiveConstructor{op}%
  14. \>[7]\AgdaSymbol{:}\AgdaSpace{}%
  15. \AgdaSymbol{(}\AgdaBound{o}\AgdaSpace{}%
  16. \AgdaSymbol{:}\AgdaSpace{}%
  17. \AgdaDatatype{Op}\AgdaSymbol{)}\AgdaSpace{}%
  18. \AgdaSymbol{(}\AgdaBound{p₁}\AgdaSpace{}%
  19. \AgdaSymbol{:}\AgdaSpace{}%
  20. \AgdaDatatype{Polynomial}\AgdaSpace{}%
  21. \AgdaBound{m}\AgdaSymbol{)}\AgdaSpace{}%
  22. \AgdaSymbol{(}\AgdaBound{p₂}\AgdaSpace{}%
  23. \AgdaSymbol{:}\AgdaSpace{}%
  24. \AgdaDatatype{Polynomial}\AgdaSpace{}%
  25. \AgdaBound{m}\AgdaSymbol{)}\AgdaSpace{}%
  26. \AgdaSymbol{→}\AgdaSpace{}%
  27. \AgdaDatatype{Polynomial}\AgdaSpace{}%
  28. \AgdaBound{m}\<%
  29. \\
  30. %
  31. \>[2]\AgdaInductiveConstructor{con}%
  32. \>[7]\AgdaSymbol{:}\AgdaSpace{}%
  33. \AgdaSymbol{(}\AgdaBound{c}\AgdaSpace{}%
  34. \AgdaSymbol{:}\AgdaSpace{}%
  35. \AgdaFunction{C.Carrier}\AgdaSymbol{)}\AgdaSpace{}%
  36. \AgdaSymbol{→}\AgdaSpace{}%
  37. \AgdaDatatype{Polynomial}\AgdaSpace{}%
  38. \AgdaBound{m}\<%
  39. \\
  40. %
  41. \>[2]\AgdaInductiveConstructor{var}%
  42. \>[7]\AgdaSymbol{:}\AgdaSpace{}%
  43. \AgdaSymbol{(}\AgdaBound{x}\AgdaSpace{}%
  44. \AgdaSymbol{:}\AgdaSpace{}%
  45. \AgdaDatatype{Fin}\AgdaSpace{}%
  46. \AgdaBound{m}\AgdaSymbol{)}\AgdaSpace{}%
  47. \AgdaSymbol{→}\AgdaSpace{}%
  48. \AgdaDatatype{Polynomial}\AgdaSpace{}%
  49. \AgdaBound{m}\<%
  50. \\
  51. %
  52. \>[2]\AgdaOperator{\AgdaInductiveConstructor{\AgdaUnderscore{}:\textasciicircum{}\AgdaUnderscore{}}}\AgdaSpace{}%
  53. \AgdaSymbol{:}\AgdaSpace{}%
  54. \AgdaSymbol{(}\AgdaBound{p}\AgdaSpace{}%
  55. \AgdaSymbol{:}\AgdaSpace{}%
  56. \AgdaDatatype{Polynomial}\AgdaSpace{}%
  57. \AgdaBound{m}\AgdaSymbol{)}\AgdaSpace{}%
  58. \AgdaSymbol{(}\AgdaBound{n}\AgdaSpace{}%
  59. \AgdaSymbol{:}\AgdaSpace{}%
  60. \AgdaDatatype{ℕ}\AgdaSymbol{)}\AgdaSpace{}%
  61. \AgdaSymbol{→}\AgdaSpace{}%
  62. \AgdaDatatype{Polynomial}\AgdaSpace{}%
  63. \AgdaBound{m}\<%
  64. \\
  65. %
  66. \>[2]\AgdaOperator{\AgdaInductiveConstructor{:{-}\AgdaUnderscore{}}}%
  67. \>[7]\AgdaSymbol{:}\AgdaSpace{}%
  68. \AgdaSymbol{(}\AgdaBound{p}\AgdaSpace{}%
  69. \AgdaSymbol{:}\AgdaSpace{}%
  70. \AgdaDatatype{Polynomial}\AgdaSpace{}%
  71. \AgdaBound{m}\AgdaSymbol{)}\AgdaSpace{}%
  72. \AgdaSymbol{→}\AgdaSpace{}%
  73. \AgdaDatatype{Polynomial}\AgdaSpace{}%
  74. \AgdaBound{m}\<%
  75. \end{code}