123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- \documentclass{article}
- \usepackage{agda}
- \begin{document}
- \begin{code}%
- \>[0]\AgdaKeyword{data}\AgdaSpace{}%
- \AgdaDatatype{Nat}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaPrimitive{Set}\AgdaSpace{}%
- \AgdaKeyword{where}\<%
- \\
- \>[0][@{}l@{\AgdaIndent{0}}]%
- \>[2]\AgdaInductiveConstructor{zero}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaDatatype{Nat}\<%
- \\
- %
- \>[2]\AgdaInductiveConstructor{suc}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaDatatype{Nat}\AgdaSpace{}%
- \AgdaSymbol{→}\AgdaSpace{}%
- \AgdaDatatype{Nat}\<%
- \\
- %
- \\[\AgdaEmptyExtraSkip]%
- \>[0]\AgdaKeyword{module}\AgdaSpace{}%
- \AgdaModule{\AgdaUnderscore{}}\AgdaSpace{}%
- \AgdaKeyword{where}\<%
- \\
- %
- \\[\AgdaEmptyExtraSkip]%
- \>[0][@{}l@{\AgdaIndent{0}}]%
- \>[2]\AgdaKeyword{pattern}\AgdaSpace{}%
- \AgdaInductiveConstructor{two}%
- \>[16]\AgdaSymbol{=}\AgdaSpace{}%
- \AgdaInductiveConstructor{suc}\AgdaSpace{}%
- \AgdaSymbol{(}\AgdaInductiveConstructor{suc}\AgdaSpace{}%
- \AgdaInductiveConstructor{zero}\AgdaSymbol{)}\<%
- \\
- %
- \>[2]\AgdaKeyword{pattern}\AgdaSpace{}%
- \AgdaInductiveConstructor{three}\AgdaSpace{}%
- \AgdaSymbol{=}\AgdaSpace{}%
- \AgdaInductiveConstructor{suc}\AgdaSpace{}%
- \AgdaInductiveConstructor{two}\<%
- \\
- %
- \\[\AgdaEmptyExtraSkip]%
- \>[0]\AgdaKeyword{data}\AgdaSpace{}%
- \AgdaDatatype{Bot}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaPrimitive{Set}\AgdaSpace{}%
- \AgdaKeyword{where}\<%
- \end{code}
- \end{document}
|