IndentingContainer.lagda 576 B

123456789101112131415161718192021222324252627282930313233
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \begin{document}
  4. \begin{code}
  5. record Sigma (A : Set) (B : A → Set) : Set where
  6. constructor _,_
  7. field
  8. proj₁ : A
  9. proj₂ : B proj₁
  10. open Sigma public
  11. \end{code}
  12. \begin{code}
  13. uncurry : {A : Set} {B : A → Set} {C : Sigma A B → Set} →
  14. ((x : A) → (y : B x) → C (x , y)) →
  15. ((p : Sigma A B) → C p)
  16. uncurry f (x , y) = f x y
  17. \end{code}
  18. \begin{code}
  19. record Container : Set₁ where
  20. constructor _◃_
  21. field
  22. Parameter : Set
  23. Arity : Parameter → Set
  24. \end{code}
  25. \end{document}