Number.quick.tex 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. \documentclass[draft]{article}
  2. \usepackage{agda}
  3. \begin{document}
  4. Lemma~\ref{code:B} below shows that $\AgdaPrimitiveType{Set1}$ is inhabited.
  5. %
  6. A preliminary definition:
  7. %
  8. \begin{code}[number]%
  9. %
  10. \>[2]\AgdaFunction{A}\AgdaSpace{}%
  11. \AgdaSymbol{:}\AgdaSpace{}%
  12. \AgdaPrimitive{Set1}\<%
  13. \\
  14. %
  15. \>[2]\AgdaFunction{A}\AgdaSpace{}%
  16. \AgdaSymbol{=}\AgdaSpace{}%
  17. \AgdaPrimitive{Set}\<%
  18. \end{code}
  19. %
  20. Lemma~\ref{code:B2}:
  21. %
  22. \begin{code}[number=code:B,number=code:B2]%
  23. %
  24. \>[2]\AgdaFunction{B}\AgdaSpace{}%
  25. \AgdaSymbol{:}\AgdaSpace{}%
  26. \AgdaPrimitive{Set1}\<%
  27. \\
  28. %
  29. \>[2]\AgdaFunction{B}\AgdaSpace{}%
  30. \AgdaSymbol{=}\AgdaSpace{}%
  31. \AgdaFunction{A}\<%
  32. \end{code}
  33. \begin{code}[hide,number=code:Invisible]%
  34. %
  35. \>[2]\AgdaFunction{Invisible}\AgdaSpace{}%
  36. \AgdaSymbol{:}\AgdaSpace{}%
  37. \AgdaPrimitive{Set1}\<%
  38. \\
  39. %
  40. \>[2]\AgdaFunction{Invisible}\AgdaSpace{}%
  41. \AgdaSymbol{=}\AgdaSpace{}%
  42. \AgdaPrimitive{Set}\<%
  43. \end{code}
  44. Numbers are not generated for inline code, like
  45. %
  46. \begin{code}[inline*,number=code:Inline1]%
  47. %
  48. \>[2]\AgdaFunction{Inline1}\AgdaSpace{}%
  49. \AgdaSymbol{=}\AgdaSpace{}%
  50. \AgdaPrimitive{Set}\<%
  51. \end{code}
  52. %
  53. and
  54. %
  55. \begin{code}[inline,number=code:Inline2]%
  56. %
  57. \>[2]\AgdaFunction{Inline2}\AgdaSpace{}%
  58. \AgdaSymbol{=}\AgdaSpace{}%
  59. \AgdaPrimitive{Set}\<%
  60. \end{code}.
  61. A wide piece of code:
  62. %
  63. \begin{code}[number]%
  64. %
  65. \>[2]\AgdaFunction{Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}\AgdaSpace{}%
  66. \AgdaSymbol{=}\AgdaSpace{}%
  67. \AgdaPrimitive{Set}\<%
  68. \end{code}
  69. \end{document}