annotate a02/agda/lambda.agda @ 252:9fc9e19f2c37

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 29 Jun 2021 20:03:32 +0900
parents b3f05cd08d24
children e5cf49902db3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
138
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 module lambda ( T : Set) ( t : T ) where
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 A→A : (A : Set ) → ( A → A )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 A→A = λ A → λ ( a : A ) → a
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 lemma2 : (A : Set ) → A → A
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 lemma2 A a = {!!}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
139
3be1afb87f82 add utm
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 138
diff changeset
10 →intro : {A B : Set } → A → B → ( A → B )
3be1afb87f82 add utm
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 138
diff changeset
11 →intro _ b = λ x → b
3be1afb87f82 add utm
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 138
diff changeset
12
3be1afb87f82 add utm
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 138
diff changeset
13 →elim : {A B : Set } → A → ( A → B ) → B
3be1afb87f82 add utm
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 138
diff changeset
14 →elim a f = f a
138
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 ex1 : {A B : Set} → Set
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 ex1 {A} {B} = ( A → B ) → A → B
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 ex1' : {A B : Set} → Set
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 ex1' {A} {B} = A → B → A → B
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 ex2 : {A : Set} → Set
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 ex2 {A} = A → ( A → A )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
141
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
25 proof2 : {A : Set } → ex2 {A}
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
26 proof2 = {!!}
138
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
141
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
28 ex3 : {A B : Set} → A → B
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
29 ex3 a = {!!}
138
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30
141
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
31 ex4 : {A B : Set} → A → B → B
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
32 ex4 {A}{B} a b = {!!}
138
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33
141
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
34 ex5 : {A B : Set} → A → B → A
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
35 ex5 = {!!}
138
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
38
141
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
39 postulate
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
40 Domain : Set
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
41 Range : Set
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
42 r : Range
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
43
b3f05cd08d24 clean up
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 139
diff changeset
44 ex6 : Domain → Range
138
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 ex6 a = {!!}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
46
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 ex7 : {A : Set} → A → T
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
48 ex7 a = {!!}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
49
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 ex11 : (A B : Set) → ( A → B ) → A → B
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 ex11 = {!!}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
52
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 ex12 : (A B : Set) → ( A → B ) → A → B
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 ex12 = {!!}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
55
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 ex13 : {A B : Set} → ( A → B ) → A → B
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 ex13 {A} {B} = {!!}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
58
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 ex14 : {A B : Set} → ( A → B ) → A → B
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 ex14 x = {!!}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
61
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
62