Relative-indentation.quick.tex 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \begin{document}
  4. \begin{code}%
  5. \>[0]\AgdaKeyword{postulate}\<%
  6. \\
  7. \>[0][@{}l@{\AgdaIndent{0}}]%
  8. \>[2]\AgdaPostulate{A}%
  9. \>[5]\AgdaPostulate{B}\<%
  10. \\
  11. \>[5][@{}l@{\AgdaIndent{0}}]%
  12. \>[6]\AgdaPostulate{C}\AgdaSpace{}%
  13. \AgdaSymbol{:}\AgdaSpace{}%
  14. \AgdaPrimitive{Set}\<%
  15. \end{code}
  16. \begin{code}%
  17. \>[0]\AgdaKeyword{postulate}\<%
  18. \\
  19. \>[0][@{}l@{\AgdaIndent{0}}]%
  20. \>[2]\AgdaPostulate{D}%
  21. \>[5]\AgdaPostulate{E}\<%
  22. \\
  23. %
  24. \\[\AgdaEmptyExtraSkip]%
  25. \>[5][@{}l@{\AgdaIndent{0}}]%
  26. \>[6]\AgdaPostulate{F}\AgdaSpace{}%
  27. \AgdaSymbol{:}\AgdaSpace{}%
  28. \AgdaPrimitive{Set}\<%
  29. \end{code}
  30. \begin{code}%
  31. \>[0]\AgdaKeyword{postulate}\<%
  32. \\
  33. \>[0][@{}l@{\AgdaIndent{0}}]%
  34. \>[2]\AgdaPostulate{G}%
  35. \>[5]\AgdaPostulate{H}%
  36. \>[8]\AgdaSymbol{:}\AgdaSpace{}%
  37. \AgdaPrimitive{Set}\<%
  38. \\
  39. %
  40. \>[2]\AgdaPostulate{I}\<%
  41. \\
  42. \>[2][@{}l@{\AgdaIndent{0}}]%
  43. \>[6]\AgdaPostulate{J}\AgdaSpace{}%
  44. \AgdaSymbol{:}\AgdaSpace{}%
  45. \AgdaPrimitive{Set}\<%
  46. \end{code}
  47. \begin{AgdaMultiCode}
  48. \begin{code}%
  49. \>[0]\AgdaKeyword{postulate}\<%
  50. \\
  51. \>[0][@{}l@{\AgdaIndent{0}}]%
  52. \>[2]\AgdaPostulate{K}%
  53. \>[5]\AgdaPostulate{L}\<%
  54. \end{code}
  55. \begin{code}%
  56. \>[5][@{}l@{\AgdaIndent{1}}]%
  57. \>[6]\AgdaPostulate{M}\AgdaSpace{}%
  58. \AgdaSymbol{:}\AgdaSpace{}%
  59. \AgdaPrimitive{Set}\<%
  60. \end{code}
  61. \end{AgdaMultiCode}
  62. \begin{code}%
  63. \>[0]\AgdaKeyword{record}\AgdaSpace{}%
  64. \AgdaRecord{R}\AgdaSpace{}%
  65. \AgdaSymbol{:}\AgdaSpace{}%
  66. \AgdaPrimitive{Set₁}\AgdaSpace{}%
  67. \AgdaKeyword{where}\<%
  68. \\
  69. \>[0][@{}l@{\AgdaIndent{0}}]%
  70. \>[2]\AgdaKeyword{field}\AgdaSpace{}%
  71. \AgdaField{N}%
  72. \>[14I]\AgdaSymbol{:}\<%
  73. \\
  74. \>[14I][@{}l@{\AgdaIndent{0}}]%
  75. \>[12]\AgdaPrimitive{Set}\<%
  76. \end{code}
  77. % There is (and should be) trailing whitespace at the end of some
  78. % lines below.
  79. \begin{AgdaAlign}
  80. text \begin{code} %
  81. \>[0]\AgdaKeyword{module}\AgdaSpace{}%
  82. \AgdaModule{\AgdaUnderscore{}}\AgdaSpace{}%
  83. \AgdaKeyword{where}\<%
  84. \end{code} more text
  85. also text \begin{code}%
  86. \>[0][@{}l@{\AgdaIndent{1}}]%
  87. \>[4]\AgdaKeyword{postulate}\AgdaSpace{}%
  88. \AgdaPostulate{O}\AgdaSpace{}%
  89. \AgdaSymbol{:}\AgdaSpace{}%
  90. \AgdaPrimitive{Set}\<%
  91. \end{code} text again
  92. text \begin{code} %
  93. %
  94. \>[4]\AgdaKeyword{postulate}\AgdaSpace{}%
  95. \AgdaPostulate{o}\AgdaSpace{}%
  96. \AgdaSymbol{:}\AgdaSpace{}%
  97. \AgdaPostulate{O}\<%
  98. \end{code} text
  99. \end{AgdaAlign}
  100. \begin{code}%
  101. \>[0]\AgdaKeyword{postulate}\<%
  102. \\
  103. \>[0][@{}l@{\AgdaIndent{0}}]%
  104. \>[1]\AgdaPostulate{P}\AgdaSpace{}%
  105. \AgdaSymbol{:}\AgdaSpace{}%
  106. \AgdaPrimitive{Set}\<%
  107. \end{code}
  108. \begin{code}%
  109. \>[0]\AgdaKeyword{module}\AgdaSpace{}%
  110. \AgdaModule{\AgdaUnderscore{}}\AgdaSpace{}%
  111. \AgdaKeyword{where}\<%
  112. \\
  113. \>[0][@{}l@{\AgdaIndent{0}}]%
  114. \>[1]\AgdaKeyword{postulate}\<%
  115. \\
  116. \>[1][@{}l@{\AgdaIndent{0}}]%
  117. \>[2]\AgdaPostulate{Q}\AgdaSpace{}%
  118. \AgdaSymbol{:}\AgdaSpace{}%
  119. \AgdaPrimitive{Set}\<%
  120. \end{code}
  121. \begin{code}%
  122. \>[0]\AgdaKeyword{module}\AgdaSpace{}%
  123. \AgdaModule{\AgdaUnderscore{}}%
  124. \>[30I]\AgdaKeyword{where}\<%
  125. \\
  126. \>[.][@{}l@{}]\<[30I]%
  127. \>[9]\AgdaKeyword{postulate}\<%
  128. \\
  129. \>[9][@{}l@{\AgdaIndent{0}}]%
  130. \>[10]\AgdaPostulate{S}\AgdaSpace{}%
  131. \AgdaSymbol{:}\AgdaSpace{}%
  132. \AgdaPrimitive{Set}\<%
  133. \end{code}
  134. \begin{AgdaMultiCode}
  135. \begin{code}%
  136. \>[0]\AgdaKeyword{module}\AgdaSpace{}%
  137. \AgdaModule{\AgdaUnderscore{}}\AgdaSpace{}%
  138. \AgdaKeyword{where}\<%
  139. \end{code}
  140. \begin{code}%
  141. \>[0][@{}l@{\AgdaIndent{1}}]%
  142. \>[2]\AgdaKeyword{postulate}%
  143. \>[35I]\AgdaPostulate{T}\AgdaSpace{}%
  144. \AgdaSymbol{:}\AgdaSpace{}%
  145. \AgdaPrimitive{Set}\<%
  146. \\
  147. \>[.][@{}l@{}]\<[35I]%
  148. \>[12]\AgdaPostulate{U}\AgdaSpace{}%
  149. \AgdaSymbol{:}\AgdaSpace{}%
  150. \AgdaPrimitive{Set}\<%
  151. \end{code}
  152. \end{AgdaMultiCode}
  153. \begin{AgdaSuppressSpace}
  154. \begin{code}%
  155. \>[0]\AgdaKeyword{module}\AgdaSpace{}%
  156. \AgdaModule{\AgdaUnderscore{}}\AgdaSpace{}%
  157. \AgdaKeyword{where}\<%
  158. \end{code}
  159. \begin{code}%
  160. \>[0][@{}l@{\AgdaIndent{1}}]%
  161. \>[2]\AgdaKeyword{postulate}%
  162. \>[42I]\AgdaPostulate{V}\AgdaSpace{}%
  163. \AgdaSymbol{:}\AgdaSpace{}%
  164. \AgdaPrimitive{Set}\<%
  165. \\
  166. \>[.][@{}l@{}]\<[42I]%
  167. \>[12]\AgdaPostulate{W}\AgdaSpace{}%
  168. \AgdaSymbol{:}\AgdaSpace{}%
  169. \AgdaPrimitive{Set}\<%
  170. \end{code}
  171. \end{AgdaSuppressSpace}
  172. \begin{code}%
  173. \>[0]\AgdaFunction{X}\AgdaSpace{}%
  174. \AgdaSymbol{:}\AgdaSpace{}%
  175. \AgdaPrimitive{Set₁}\<%
  176. \\
  177. \>[0]\AgdaFunction{X}%
  178. \>[49I]\AgdaSymbol{=}\<%
  179. \\
  180. \>[.][@{}l@{}]\<[49I]%
  181. \>[2]\AgdaPrimitive{Set}\<%
  182. \end{code}
  183. \begin{code}%
  184. \>[0]\AgdaFunction{Y}\AgdaSpace{}%
  185. \AgdaSymbol{:}\AgdaSpace{}%
  186. \AgdaPrimitive{Set₁}\<%
  187. \\
  188. \>[0]\AgdaFunction{Y}\AgdaSpace{}%
  189. \AgdaSymbol{=}%
  190. \>[10]\AgdaPrimitive{Set}\<%
  191. \\
  192. %
  193. \\[\AgdaEmptyExtraSkip]%
  194. \>[0]\AgdaFunction{Zzzzzzzzz}\AgdaSpace{}%
  195. \AgdaSymbol{:}\AgdaSpace{}%
  196. \AgdaPrimitive{Set}\AgdaSpace{}%
  197. \AgdaSymbol{→}\AgdaSpace{}%
  198. \AgdaPrimitive{Set}\<%
  199. \\
  200. \>[0]\AgdaFunction{Zzzzzzzzz}%
  201. \>[57I]\AgdaBound{X}\<%
  202. \\
  203. \>[.][@{}l@{}]\<[57I]%
  204. \>[10]\AgdaSymbol{=}\AgdaSpace{}%
  205. \AgdaBound{X}\<%
  206. \end{code}
  207. \end{document}