Created
April 4, 2016 22:41
-
-
Save nkaretnikov/f5b8100fc2ee98d58cf12f9a70df4b76 to your computer and use it in GitHub Desktop.
and.agda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- | |
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 | |
-} |
Author
nkaretnikov
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