IdTex.tex 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. \begin{code}%
  2. %% \>[0]\AgdaSymbol{\{{-}\#}\AgdaSpace{}%
  3. %% \AgdaKeyword{OPTIONS}\AgdaSpace{}%
  4. %% \AgdaOption{{-}{-}allow{-}unsolved{-}metas}\AgdaSpace{}%
  5. %% \AgdaSymbol{\#{-}\}}\<%
  6. %% \\
  7. %% %
  8. %% \\[\AgdaEmptyExtraSkip]%
  9. %% \>[0]\AgdaKeyword{module}\AgdaSpace{}%
  10. %% \AgdaModule{IdTex}\AgdaSpace{}%
  11. %% \AgdaKeyword{where}\<%
  12. %% \\
  13. %% \>[0]\AgdaKeyword{open}\AgdaSpace{}%
  14. %% \AgdaKeyword{import}\AgdaSpace{}%
  15. %% \AgdaModule{Level}\AgdaSpace{}%
  16. %% \AgdaKeyword{using}\AgdaSpace{}%
  17. %% \AgdaSymbol{(}\AgdaPostulate{Level}\AgdaSymbol{)}\<%
  18. %% \\
  19. %% \>[0]\AgdaKeyword{open}\AgdaSpace{}%
  20. %% \AgdaKeyword{import}\AgdaSpace{}%
  21. %% \AgdaModule{latex.Nat}\<%
  22. %% \\
  23. %% %
  24. %% \\[\AgdaEmptyExtraSkip]%
  25. \>[0]\AgdaKeyword{data}\AgdaSpace{}%
  26. \AgdaDatatype{Id}\AgdaSpace{}%
  27. \AgdaSymbol{\{}\AgdaBound{a}\AgdaSpace{}%
  28. \AgdaSymbol{:}\AgdaSpace{}%
  29. \AgdaPostulate{Level}\AgdaSymbol{\}}\AgdaSpace{}%
  30. \AgdaSymbol{\{}\AgdaBound{A}\AgdaSpace{}%
  31. \AgdaSymbol{:}\AgdaSpace{}%
  32. \AgdaPrimitiveType{Set}\AgdaSpace{}%
  33. \AgdaBound{a}\AgdaSymbol{\}}\AgdaSpace{}%
  34. \AgdaSymbol{:}\AgdaSpace{}%
  35. \AgdaBound{A}\AgdaSpace{}%
  36. \AgdaSymbol{→}\AgdaSpace{}%
  37. \AgdaBound{A}\AgdaSpace{}%
  38. \AgdaSymbol{→}\AgdaSpace{}%
  39. \AgdaPrimitiveType{Set}\AgdaSpace{}%
  40. \AgdaBound{a}\AgdaSpace{}%
  41. \AgdaKeyword{where}\<%
  42. \\
  43. \>[0][@{}l@{\AgdaIndent{0}}]%
  44. \>[2]\AgdaKeyword{instance}\AgdaSpace{}%
  45. \AgdaInductiveConstructor{refl}\AgdaSpace{}%
  46. \AgdaSymbol{:}\AgdaSpace{}%
  47. \AgdaSymbol{(}\AgdaBound{x}\AgdaSpace{}%
  48. \AgdaSymbol{:}\AgdaSpace{}%
  49. \AgdaBound{A}\AgdaSymbol{)}\AgdaSpace{}%
  50. \AgdaSymbol{→}\AgdaSpace{}%
  51. \AgdaDatatype{Id}\AgdaSpace{}%
  52. \AgdaBound{x}\AgdaSpace{}%
  53. \AgdaBound{x}\<%
  54. \\
  55. %
  56. \\[\AgdaEmptyExtraSkip]%
  57. \>[0]\AgdaFunction{0{-}eq{-}0}\AgdaSpace{}%
  58. \AgdaSymbol{:}\AgdaSpace{}%
  59. \AgdaDatatype{Id}\AgdaSpace{}%
  60. \AgdaInductiveConstructor{0\#}\AgdaSpace{}%
  61. \AgdaInductiveConstructor{0\#}\<%
  62. \\
  63. \>[0]\AgdaFunction{0{-}eq{-}0}\AgdaSpace{}%
  64. \AgdaSymbol{=}\AgdaSpace{}%
  65. \AgdaInductiveConstructor{refl}\AgdaSpace{}%
  66. \AgdaInductiveConstructor{0\#}\<%
  67. \\
  68. %
  69. \\[\AgdaEmptyExtraSkip]%
  70. \>[0]\AgdaFunction{1{-}eq{-}0}\AgdaSpace{}%
  71. \AgdaSymbol{:}\AgdaSpace{}%
  72. \AgdaDatatype{Id}\AgdaSpace{}%
  73. \AgdaSymbol{(}\AgdaInductiveConstructor{suc}\AgdaSpace{}%
  74. \AgdaInductiveConstructor{0\#}\AgdaSymbol{)}\AgdaSpace{}%
  75. \AgdaInductiveConstructor{0\#}\<%
  76. \\
  77. \>[0]\AgdaFunction{1{-}eq{-}0}\AgdaSpace{}%
  78. \AgdaSymbol{=}\AgdaSpace{}%
  79. \AgdaSymbol{\{!!\}}\<%
  80. \\
  81. \>[0]\<%
  82. \end{code}