123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- \documentclass{article}
- \usepackage{agda}
- \begin{document}
- \begin{code}%
- \>[0]\AgdaSymbol{\{-\#}\AgdaSpace{}%
- \AgdaKeyword{OPTIONS}\AgdaSpace{}%
- \AgdaPragma{--sized-types}\AgdaSpace{}%
- \AgdaSymbol{\#-\}}\<%
- \\
- %
- \\[\AgdaEmptyExtraSkip]%
- \>[0]\AgdaSymbol{\{-\#}\AgdaSpace{}%
- \AgdaKeyword{BUILTIN}\AgdaSpace{}%
- \AgdaKeyword{SIZE}\AgdaSpace{}%
- \AgdaPostulate{Size}\AgdaSpace{}%
- \AgdaSymbol{\#-\}}\<%
- \\
- %
- \\[\AgdaEmptyExtraSkip]%
- \>[0]\AgdaKeyword{record}\AgdaSpace{}%
- \AgdaRecord{Sigma}\AgdaSpace{}%
- \AgdaSymbol{(}\AgdaBound{A}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaPrimitive{Set}\AgdaSymbol{)}\AgdaSpace{}%
- \AgdaSymbol{(}\AgdaBound{B}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaBound{A}\AgdaSpace{}%
- \AgdaSymbol{→}\AgdaSpace{}%
- \AgdaPrimitive{Set}\AgdaSymbol{)}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaPrimitive{Set}\AgdaSpace{}%
- \AgdaKeyword{where}\<%
- \\
- \>[0][@{}l@{\AgdaIndent{0}}]%
- \>[2]\AgdaKeyword{coinductive}\<%
- \\
- %
- \>[2]\AgdaKeyword{constructor}\AgdaSpace{}%
- \AgdaCoinductiveConstructor{c}\<%
- \\
- %
- \>[2]\AgdaKeyword{field}\<%
- \\
- \>[2][@{}l@{\AgdaIndent{0}}]%
- \>[4]\AgdaField{proj₁}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaBound{A}\<%
- \\
- %
- \>[4]\AgdaField{proj₂}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaBound{B}\AgdaSpace{}%
- \AgdaField{proj₁}\<%
- \\
- %
- \\[\AgdaEmptyExtraSkip]%
- \>[0]\AgdaKeyword{data}\AgdaSpace{}%
- \AgdaDatatype{D}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaPrimitive{Set}\AgdaSpace{}%
- \AgdaKeyword{where}\<%
- \\
- \>[0][@{}l@{\AgdaIndent{0}}]%
- \>[2]\AgdaInductiveConstructor{c}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaDatatype{D}\<%
- \\
- %
- \\[\AgdaEmptyExtraSkip]%
- \>[0]\AgdaFunction{f}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaSymbol{\{}\AgdaBound{A}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaPrimitive{Set}\AgdaSymbol{\}}\AgdaSpace{}%
- \AgdaSymbol{\{}\AgdaBound{B}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaBound{A}\AgdaSpace{}%
- \AgdaSymbol{→}\AgdaSpace{}%
- \AgdaPrimitive{Set}\AgdaSymbol{\}}\AgdaSpace{}%
- \AgdaSymbol{(}\AgdaBound{x}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaBound{A}\AgdaSymbol{)}\AgdaSpace{}%
- \AgdaSymbol{→}\AgdaSpace{}%
- \AgdaBound{B}\AgdaSpace{}%
- \AgdaBound{x}\AgdaSpace{}%
- \AgdaSymbol{→}\AgdaSpace{}%
- \AgdaRecord{Sigma}\AgdaSpace{}%
- \AgdaBound{A}\AgdaSpace{}%
- \AgdaBound{B}\<%
- \\
- \>[0]\AgdaFunction{f}\AgdaSpace{}%
- \AgdaSymbol{=}\AgdaSpace{}%
- \AgdaCoinductiveConstructor{c}\<%
- \end{code}
- \end{document}
|