Skip to content

Instantly share code, notes, and snippets.

@nkaretnikov
Created April 4, 2016 22:41
Show Gist options
  • Save nkaretnikov/f5b8100fc2ee98d58cf12f9a70df4b76 to your computer and use it in GitHub Desktop.
Save nkaretnikov/f5b8100fc2ee98d58cf12f9a70df4b76 to your computer and use it in GitHub Desktop.
and.agda
{-
Inductive and (P Q : Prop) : Prop :=
conj : P -> Q -> (and P Q).
-}
data and {A : Set} {a : A} {P Q : A → Set} : P a → Q a → (A → Set) where
conj : P a → Q a → and (P a) (Q a)
{-
Sets.agda:4,27-30
Set₁ != Set
when checking that the expression P a has type _P_10 _a_9
-}
@adamse
Copy link

adamse commented Apr 4, 2016

data and (P Q : Set) : Set where
  conj : P -> Q -> and P Q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment