annotate list-nat.agda @ 291:c8e26650ddf9

limit preserving ...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 25 Sep 2013 18:07:58 +0900
parents 3249aaddc405
children d6a6dd305da2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
1 module list-nat where
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
2
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
3 open import Level
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
6 postulate A : Set
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
8 postulate a : A
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
9 postulate b : A
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
10 postulate c : A
153
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
11
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 infixr 40 _::_
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
14 data List (A : Set ) : Set where
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 [] : List A
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 _::_ : A -> List A -> List A
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 infixl 30 _++_
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
20 _++_ : {A : Set } -> List A -> List A -> List A
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 [] ++ ys = ys
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 (x :: xs) ++ ys = x :: (xs ++ ys)
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 l1 = a :: []
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 l2 = a :: b :: a :: c :: []
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 l3 = l1 ++ l2
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
29 data Node ( A : Set ) : Set where
30
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
30 leaf : A -> Node A
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
31 node : Node A -> Node A -> Node A
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
32
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
33 flatten : { A : Set } -> Node A -> List A
30
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
34 flatten ( leaf a ) = a :: []
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
35 flatten ( node a b ) = flatten a ++ flatten b
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
36
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
37 n1 = node ( leaf a ) ( node ( leaf b ) ( leaf c ))
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
38
18
da1b8250e72a reasoning worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
39 open import Relation.Binary.PropositionalEquality
da1b8250e72a reasoning worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
40
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 infixr 20 _==_
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
43 data _==_ {A : Set } : List A -> List A -> Set where
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 reflection : {x : List A} -> x == x
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
45
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
46 cong1 : {A : Set } { B : Set } ->
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
47 ( f : List A -> List B ) -> {x : List A } -> {y : List A} -> x == y -> f x == f y
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
48 cong1 f reflection = reflection
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
49
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
50 eq-cons : {A : Set } {x y : List A} ( a : A ) -> x == y -> ( a :: x ) == ( a :: y )
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
51 eq-cons a z = cong1 ( \x -> ( a :: x) ) z
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
52
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
53 trans-list : {A : Set } {x y z : List A} -> x == y -> y == z -> x == z
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
54 trans-list reflection reflection = reflection
18
da1b8250e72a reasoning worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
55
da1b8250e72a reasoning worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
56
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
57 ==-to-≡ : {A : Set } {x y : List A} -> x == y -> x ≡ y
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
58 ==-to-≡ reflection = refl
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
59
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 list-id-l : { A : Set } -> { x : List A} -> [] ++ x == x
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 list-id-l = reflection
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
62
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 list-id-r : { A : Set } -> ( x : List A ) -> x ++ [] == x
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 list-id-r [] = reflection
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
65 list-id-r (x :: xs) = eq-cons x ( list-id-r xs )
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
66
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 list-assoc : {A : Set } -> ( xs ys zs : List A ) ->
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 ( ( xs ++ ys ) ++ zs ) == ( xs ++ ( ys ++ zs ) )
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 list-assoc [] ys zs = reflection
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
70 list-assoc (x :: xs) ys zs = eq-cons x ( list-assoc xs ys zs )
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
71
18
da1b8250e72a reasoning worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
72
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
73 module ==-Reasoning (A : Set ) where
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
74
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
75 infixr 2 _∎
30
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
76 infixr 2 _==⟨_⟩_ _==⟨⟩_
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
77 infix 1 begin_
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
78
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
79
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
80 data _IsRelatedTo_ (x y : List A) :
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
81 Set where
18
da1b8250e72a reasoning worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
82 relTo : (x≈y : x == y ) → x IsRelatedTo y
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
83
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
84 begin_ : {x : List A } {y : List A} →
18
da1b8250e72a reasoning worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
85 x IsRelatedTo y → x == y
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
86 begin relTo x≈y = x≈y
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
87
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
88 _==⟨_⟩_ : (x : List A ) {y z : List A} →
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
89 x == y → y IsRelatedTo z → x IsRelatedTo z
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
90 _ ==⟨ x≈y ⟩ relTo y≈z = relTo (trans-list x≈y y≈z)
18
da1b8250e72a reasoning worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
91
30
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
92 _==⟨⟩_ : (x : List A ) {y : List A}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
93 → x IsRelatedTo y → x IsRelatedTo y
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
94 _ ==⟨⟩ x≈y = x≈y
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
95
20
e34c93046acf clean up list-nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 19
diff changeset
96 _∎ : (x : List A ) → x IsRelatedTo x
18
da1b8250e72a reasoning worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
97 _∎ _ = relTo reflection
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
98
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
99 lemma11 : (A : Set ) ( x : List A ) -> x == x
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
100 lemma11 A x = let open ==-Reasoning A in
18
da1b8250e72a reasoning worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
101 begin x ∎
da1b8250e72a reasoning worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
102
130
5f331dfc000b remove Kleisli record
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
103 ++-assoc : (L : Set ) ( xs ys zs : List L ) -> (xs ++ ys) ++ zs == xs ++ (ys ++ zs)
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
104 ++-assoc A [] ys zs = let open ==-Reasoning A in
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
105 begin -- to prove ([] ++ ys) ++ zs == [] ++ (ys ++ zs)
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 ( [] ++ ys ) ++ zs
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
107 ==⟨ reflection ⟩
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
108 ys ++ zs
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
109 ==⟨ reflection ⟩
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
110 [] ++ ( ys ++ zs )
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
111
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
112
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
113 ++-assoc A (x :: xs) ys zs = let open ==-Reasoning A in
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
114 begin -- to prove ((x :: xs) ++ ys) ++ zs == (x :: xs) ++ (ys ++ zs)
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
115 ((x :: xs) ++ ys) ++ zs
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
116 ==⟨ reflection ⟩
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
117 (x :: (xs ++ ys)) ++ zs
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
118 ==⟨ reflection ⟩
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
119 x :: ((xs ++ ys) ++ zs)
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 18
diff changeset
120 ==⟨ cong1 (_::_ x) (++-assoc A xs ys zs) ⟩
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
121 x :: (xs ++ (ys ++ zs))
17
03d39cabebb7 not working yet
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 16
diff changeset
122 ==⟨ reflection ⟩
15
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
123 (x :: xs) ++ (ys ++ zs)
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
124
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
125
730a4a59a7bd list nat
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
126
153
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
127
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
128 --data Bool : Set where
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
129 -- true : Bool
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
130 -- false : Bool
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
131
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
132
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
133 --postulate Obj : Set
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
134
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
135 --postulate Hom : Obj -> Obj -> Set
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
136
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
137
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
138 --postulate id : { a : Obj } -> Hom a a
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
139
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
140
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
141 --infixr 80 _○_
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
142 --postulate _○_ : { a b c : Obj } -> Hom b c -> Hom a b -> Hom a c
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
143
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
144 -- postulate axId1 : {a b : Obj} -> ( f : Hom a b ) -> f == id ○ f
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
145 -- postulate axId2 : {a b : Obj} -> ( f : Hom a b ) -> f == f ○ id
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
146
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
147 --assoc : { a b c d : Obj } ->
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
148 -- (f : Hom c d ) -> (g : Hom b c) -> (h : Hom a b) ->
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
149 -- (f ○ g) ○ h == f ○ ( g ○ h)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
150
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
151
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
152 --a = Set
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
153
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
154 -- ListObj : {A : Set} -> List A
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
155 -- ListObj = List Set
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
156
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
157 -- ListHom : ListObj -> ListObj -> Set
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 130
diff changeset
158