-
Notifications
You must be signed in to change notification settings - Fork 0
/
filter-semantics-collapse.agda
79 lines (72 loc) · 1.68 KB
/
filter-semantics-collapse.agda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
module filter-semantics where
open import quaternary-semantics
_⊔F_ : Four → Four → Four
one ⊔F _ = one
_ ⊔F one = one
half ⊔F _ = half
_ ⊔F half = half
forth ⊔F _ = forth
_ ⊔F forth = forth
zero ⊔F zero = zero
_⊙F_ : Four → Four → Four
zero ⊙F zero = zero
zero ⊙F forth = zero
zero ⊙F half = zero
zero ⊙F one = zero
forth ⊙F zero = zero
half ⊙F zero = zero
one ⊙F zero = zero
forth ⊙F forth = forth
forth ⊙F half = forth
forth ⊙F one = forth
half ⊙F forth = forth
half ⊙F half = forth
half ⊙F one = forth
one ⊙F forth = forth
one ⊙F half = forth
one ⊙F one = forth
_▷F_ : Four → Four → Four
half ▷F forth = one
half ▷F half = one
half ▷F one = one
one ▷F forth = one
one ▷F half = one
one ▷F one = one
forth ▷F half = forth
forth ▷F forth = forth
forth ▷F one = forth
_ ▷F _ = zero
_→F_ : Four → Four → Four
zero →F zero = one
forth →F zero = zero
half →F zero = zero
one →F zero = zero
zero →F forth = one
forth →F forth = forth
half →F forth = forth
one →F forth = forth
zero →F half = one
forth →F half = forth
half →F half = forth
one →F half = forth
zero →F one = one
forth →F one = one
half →F one = one
one →F one = one
_←F_ : Four → Four → Four
zero ←F zero = one
forth ←F zero = one
half ←F zero = one
one ←F zero = one
zero ←F forth = zero
forth ←F forth = one
half ←F forth = one
one ←F forth = one
zero ←F half = zero
forth ←F half = zero
half ←F half = zero
one ←F half = one
zero ←F one = zero
forth ←F one = zero
half ←F one = zero
one ←F one = one