SubMonoid.tex 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. \begin{code}
  2. \\[\AgdaEmptyExtraSkip]%
  3. \>[0]\AgdaKeyword{record}\AgdaSpace{}%
  4. \AgdaRecord{IsSubMonoid}\AgdaSpace{}%
  5. \AgdaSymbol{\{}\AgdaBound{a}\AgdaSpace{}%
  6. \AgdaBound{b}\AgdaSpace{}%
  7. \AgdaBound{ℓ}\AgdaSymbol{\}}\AgdaSpace{}%
  8. \AgdaSymbol{\{}\AgdaBound{A}\AgdaSpace{}%
  9. \AgdaSymbol{:}\AgdaSpace{}%
  10. \AgdaPrimitiveType{Set}\AgdaSpace{}%
  11. \AgdaBound{a}\AgdaSymbol{\}}\AgdaSpace{}%
  12. \AgdaSymbol{(}\AgdaOperator{\AgdaBound{\AgdaUnderscore{}≈\AgdaUnderscore{}}}\AgdaSpace{}%
  13. \AgdaSymbol{:}\AgdaSpace{}%
  14. \AgdaFunction{Rel}\AgdaSpace{}%
  15. \AgdaBound{A}\AgdaSpace{}%
  16. \AgdaBound{ℓ}\AgdaSymbol{)}\<%
  17. \\
  18. \>[0][@{}l@{\AgdaIndent{0}}]%
  19. \>[4]\AgdaSymbol{(}\AgdaBound{I}\AgdaSpace{}%
  20. \AgdaSymbol{:}\AgdaSpace{}%
  21. \AgdaFunction{Pred}\AgdaSpace{}%
  22. \AgdaBound{A}\AgdaSpace{}%
  23. \AgdaBound{b}\AgdaSymbol{)}\AgdaSpace{}%
  24. \AgdaSymbol{(}\AgdaOperator{\AgdaBound{\AgdaUnderscore{}∙\AgdaUnderscore{}}}\AgdaSpace{}%
  25. \AgdaSymbol{:}\AgdaSpace{}%
  26. \AgdaFunction{Op₂}\AgdaSpace{}%
  27. \AgdaBound{A}\AgdaSymbol{)}\AgdaSpace{}%
  28. \AgdaSymbol{(}\AgdaBound{\ensuremath{\epsilon}}\AgdaSpace{}%
  29. \AgdaSymbol{:}\AgdaSpace{}%
  30. \AgdaBound{A}\AgdaSymbol{)}\AgdaSpace{}%
  31. \AgdaSymbol{:}\AgdaSpace{}%
  32. \AgdaPrimitiveType{Set}\AgdaSpace{}%
  33. \AgdaSymbol{(}\AgdaBound{a}\AgdaSpace{}%
  34. \AgdaOperator{\AgdaPrimitive{⊔}}\AgdaSpace{}%
  35. \AgdaBound{ℓ}\AgdaSpace{}%
  36. \AgdaOperator{\AgdaPrimitive{⊔}}\AgdaSpace{}%
  37. \AgdaBound{b}\AgdaSymbol{)}\AgdaSpace{}%
  38. \AgdaKeyword{where}\<%
  39. \\
  40. \>[0][@{}l@{\AgdaIndent{0}}]%
  41. \>[2]\AgdaKeyword{field}\<%
  42. \\
  43. \>[2][@{}l@{\AgdaIndent{0}}]%
  44. \>[4]\AgdaField{isMonoid}\AgdaSpace{}%
  45. \AgdaSymbol{:}\AgdaSpace{}%
  46. \AgdaRecord{IsMonoid}\AgdaSpace{}%
  47. \AgdaOperator{\AgdaBound{\AgdaUnderscore{}≈\AgdaUnderscore{}}}\AgdaSpace{}%
  48. \AgdaOperator{\AgdaBound{\AgdaUnderscore{}∙\AgdaUnderscore{}}}\AgdaSpace{}%
  49. \AgdaBound{\ensuremath{\epsilon}}\<%
  50. \\
  51. %
  52. \>[4]\AgdaOperator{\AgdaField{∙\AgdaUnderscore{}isSubStructure}}\AgdaSpace{}%
  53. \AgdaSymbol{:}\AgdaSpace{}%
  54. \AgdaBound{I}\AgdaSpace{}%
  55. \AgdaOperator{\AgdaFunction{ClosedUnder}}\AgdaSpace{}%
  56. \AgdaOperator{\AgdaBound{\AgdaUnderscore{}∙\AgdaUnderscore{}}}\<%
  57. \\
  58. %
  59. \>[4]\AgdaOperator{\AgdaField{≈\AgdaUnderscore{}respect}}\AgdaSpace{}%
  60. \AgdaSymbol{:}\AgdaSpace{}%
  61. \AgdaBound{I}\AgdaSpace{}%
  62. \AgdaOperator{\AgdaFunction{Respects}}\AgdaSpace{}%
  63. \AgdaOperator{\AgdaBound{\AgdaUnderscore{}≈\AgdaUnderscore{}}}\<%
  64. \\
  65. %
  66. \>[4]\AgdaField{\ensuremath{\epsilon}InSubset}\AgdaSpace{}%
  67. \AgdaSymbol{:}\AgdaSpace{}%
  68. \AgdaBound{I}\AgdaSpace{}%
  69. \AgdaBound{\ensuremath{\epsilon}}\<%
  70. \\
  71. \>[0]\<%
  72. \end{code}