macros.tex 712 B

1234567891011121314151617181920212223242526272829303132
  1. \newcommand\Con[1]{\mathsf{{#1}}}
  2. \newcommand\Def[1]{\mathit{{#1}}}
  3. \newcommand\Typ[1]{\mathbf{{#1}}}
  4. \newcommand\PI[2]{({#1} : {#2}) → {}}
  5. \newcommand\hPI[2]{\{{#1} : {#2}\} → {}}
  6. \newcommand\SIGMA[2]{({#1} : {#2}) × {}}
  7. \newcommand\Zero{\Typ{0}}
  8. \newcommand\One{\Typ{1}}
  9. \newcommand\Two{\Typ{2}}
  10. \newcommand\lam[1]{λ {#1} \mathrel{.} {}}
  11. \newcommand\Set{\Def{set}}
  12. \newcommand\Type{\Def{type}}
  13. \newcommand\Refl{\Con{refl}}
  14. \newcommand\HasType[3]{{#1} ⊢ {#2} : {#3}}
  15. \newcommand\IsType[2]{\HasType{#1}{#2}{\Type}}
  16. \newcommand\TODO[1]{
  17. {\setlength \parindent {0mm}
  18. \addtolength \textwidth {-1cm}
  19. {~}
  20. \par
  21. \fbox{\begin{tabular}{p{\textwidth}}TODO: #1\end{tabular}}
  22. \par
  23. {~}
  24. }}