Issue982.lagda 476 B

123456789101112131415161718192021222324252627
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \begin{document}
  4. %\renewcommand{\AgdaIndent}{\;\;}
  5. \begin{code}
  6. record Sigma (A : Set) (B : A → Set) : Set where
  7. constructor _,_
  8. field
  9. proj₁ : A
  10. proj₂ : B proj₁
  11. open Sigma public
  12. \end{code}
  13. \begin{code}
  14. uncurry : {A : Set} {B : A → Set} {C : Sigma A B → Set} →
  15. ((x : A) → (y : B x) → C (x , y)) →
  16. ((p : Sigma A B) → C p)
  17. uncurry f (x , y) = f x y
  18. \end{code}
  19. \end{document}