przyklad-liczby-calkowite.tex 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. \>[0]\AgdaFunction{twierdzenie}\AgdaSpace{}%
  2. \AgdaSymbol{:}\AgdaSpace{}%
  3. \AgdaSymbol{(}\AgdaBound{a}\AgdaSpace{}%
  4. \AgdaSymbol{:}\AgdaSpace{}%
  5. \AgdaDatatype{ℤ}\AgdaSymbol{)}\AgdaSpace{}%
  6. \AgdaSymbol{→}\AgdaSpace{}%
  7. \AgdaSymbol{(}\AgdaBound{b}\AgdaSpace{}%
  8. \AgdaSymbol{:}\AgdaSpace{}%
  9. \AgdaDatatype{ℤ}\AgdaSymbol{)}\AgdaSpace{}%
  10. \AgdaSymbol{→}\AgdaSpace{}%
  11. \AgdaSymbol{(}\AgdaBound{założenie}\AgdaSpace{}%
  12. \AgdaSymbol{:}\AgdaSpace{}%
  13. \AgdaBound{a}\AgdaSpace{}%
  14. \AgdaOperator{\AgdaFunction{{-}}}\AgdaSpace{}%
  15. \AgdaBound{b}\AgdaSpace{}%
  16. \AgdaOperator{\AgdaDatatype{≡}}\AgdaSpace{}%
  17. \AgdaSymbol{(}\AgdaOperator{\AgdaInductiveConstructor{+}}\AgdaSpace{}%
  18. \AgdaNumber{0}\AgdaSymbol{))}\AgdaSpace{}%
  19. \AgdaSymbol{→}\AgdaSpace{}%
  20. \AgdaBound{a}\AgdaSpace{}%
  21. \AgdaOperator{\AgdaDatatype{≡}}\AgdaSpace{}%
  22. \AgdaBound{b}\<%
  23. \\
  24. \>[0]\AgdaFunction{twierdzenie}\AgdaSpace{}%
  25. \AgdaBound{a}\AgdaSpace{}%
  26. \AgdaBound{b}\AgdaSpace{}%
  27. \AgdaBound{założenie}\AgdaSpace{}%
  28. \AgdaSymbol{=}\AgdaSpace{}%
  29. \AgdaOperator{\AgdaFunction{begin}}\<%
  30. \\
  31. \>[0][@{}l@{\AgdaIndent{0}}]%
  32. \>[2]\AgdaBound{a}%
  33. \>[16]\AgdaOperator{\AgdaFunction{≡⟨}}\AgdaSpace{}%
  34. \AgdaFunction{sym}\AgdaSpace{}%
  35. \AgdaSymbol{(}\AgdaFunction{+{-}identity$^r$}\AgdaSpace{}%
  36. \AgdaBound{a}\AgdaSymbol{)}\AgdaSpace{}%
  37. \AgdaOperator{\AgdaFunction{⟩}}\<%
  38. \\
  39. %
  40. \>[2]\AgdaBound{a}\AgdaSpace{}%
  41. \AgdaOperator{\AgdaFunction{+}}\AgdaSpace{}%
  42. \AgdaSymbol{(}\AgdaOperator{\AgdaInductiveConstructor{+}}\AgdaSpace{}%
  43. \AgdaNumber{0}\AgdaSymbol{)}%
  44. \>[16]\AgdaOperator{\AgdaFunction{≡⟨}}\AgdaSpace{}%
  45. \AgdaFunction{cong₂}\AgdaSpace{}%
  46. \AgdaSymbol{(}\AgdaOperator{\AgdaFunction{\AgdaUnderscore{}+\AgdaUnderscore{}}}\AgdaSymbol{)}\AgdaSpace{}%
  47. \AgdaSymbol{(}\AgdaInductiveConstructor{refl}\AgdaSpace{}%
  48. \AgdaSymbol{\{}\AgdaArgument{x}\AgdaSpace{}%
  49. \AgdaSymbol{=}\AgdaSpace{}%
  50. \AgdaBound{a}\AgdaSymbol{\})}\AgdaSpace{}%
  51. \AgdaSymbol{(}\AgdaFunction{sym}\AgdaSpace{}%
  52. \AgdaSymbol{(}\AgdaFunction{+{-}inverse$^l$}\AgdaSpace{}%
  53. \AgdaBound{b}\AgdaSymbol{))}\AgdaSpace{}%
  54. \AgdaOperator{\AgdaFunction{⟩}}\<%
  55. \\
  56. %
  57. \>[2]\AgdaBound{a}\AgdaSpace{}%
  58. \AgdaOperator{\AgdaFunction{+}}\AgdaSpace{}%
  59. \AgdaSymbol{(}\AgdaOperator{\AgdaFunction{{-}}}\AgdaSpace{}%
  60. \AgdaBound{b}\AgdaSpace{}%
  61. \AgdaOperator{\AgdaFunction{+}}\AgdaSpace{}%
  62. \AgdaBound{b}\AgdaSymbol{)}\AgdaSpace{}%
  63. \AgdaOperator{\AgdaFunction{≡⟨}}\AgdaSpace{}%
  64. \AgdaFunction{sym}\AgdaSpace{}%
  65. \AgdaSymbol{(}\AgdaFunction{+{-}assoc}\AgdaSpace{}%
  66. \AgdaBound{a}\AgdaSpace{}%
  67. \AgdaSymbol{(}\AgdaOperator{\AgdaFunction{{-}}}\AgdaSpace{}%
  68. \AgdaBound{b}\AgdaSymbol{)}\AgdaSpace{}%
  69. \AgdaBound{b}\AgdaSymbol{)}\AgdaSpace{}%
  70. \AgdaOperator{\AgdaFunction{⟩}}\<%
  71. \\
  72. %
  73. \>[2]\AgdaSymbol{(}\AgdaBound{a}\AgdaSpace{}%
  74. \AgdaOperator{\AgdaFunction{{-}}}\AgdaSpace{}%
  75. \AgdaBound{b}\AgdaSymbol{)}\AgdaSpace{}%
  76. \AgdaOperator{\AgdaFunction{+}}\AgdaSpace{}%
  77. \AgdaBound{b}%
  78. \>[16]\AgdaOperator{\AgdaFunction{≡⟨}}\AgdaSpace{}%
  79. \AgdaFunction{cong₂}\AgdaSpace{}%
  80. \AgdaSymbol{(}\AgdaOperator{\AgdaFunction{\AgdaUnderscore{}+\AgdaUnderscore{}}}\AgdaSymbol{)}\AgdaSpace{}%
  81. \AgdaBound{założenie}\AgdaSpace{}%
  82. \AgdaInductiveConstructor{refl}\AgdaSpace{}%
  83. \AgdaOperator{\AgdaFunction{⟩}}\<%
  84. \\
  85. %
  86. \>[2]\AgdaSymbol{(}\AgdaOperator{\AgdaInductiveConstructor{+}}\AgdaSpace{}%
  87. \AgdaNumber{0}\AgdaSymbol{)}\AgdaSpace{}%
  88. \AgdaOperator{\AgdaFunction{+}}\AgdaSpace{}%
  89. \AgdaBound{b}%
  90. \>[16]\AgdaOperator{\AgdaFunction{≡⟨}}\AgdaSpace{}%
  91. \AgdaFunction{+{-}identity$^l$}\AgdaSpace{}%
  92. \AgdaBound{b}\AgdaSpace{}%
  93. \AgdaOperator{\AgdaFunction{⟩}}\<%
  94. \\
  95. %
  96. \>[2]\AgdaBound{b}%
  97. \>[16]\AgdaOperator{\AgdaFunction{$\qed$}}\<%
  98. \\
  99. \>[0]\<%