Mercurial > hg > Members > atton > agda-proofs
annotate cbc/maybe-subtype.agda @ 60:bd428bd6b394
Trying define n-push/n-pop
author | atton <atton@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Jan 2017 00:00:40 +0000 |
parents | 352e8a724829 |
children |
rev | line source |
---|---|
57 | 1 open import Level |
60
bd428bd6b394
Trying define n-push/n-pop
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
59
diff
changeset
|
2 open import Data.Maybe |
57 | 3 open import Function using (id) |
4 open import Relation.Binary.PropositionalEquality | |
5 | |
60
bd428bd6b394
Trying define n-push/n-pop
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
59
diff
changeset
|
6 module maybe-subtype (A : Set) where |
57 | 7 |
8 | |
60
bd428bd6b394
Trying define n-push/n-pop
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
59
diff
changeset
|
9 record Context : Set where |
57 | 10 |
60
bd428bd6b394
Trying define n-push/n-pop
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
59
diff
changeset
|
11 open import subtype Context as N |
57 | 12 |
13 | |
14 record Meta (A : Set) : Set where | |
15 field | |
60
bd428bd6b394
Trying define n-push/n-pop
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
59
diff
changeset
|
16 context : Context |
bd428bd6b394
Trying define n-push/n-pop
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
59
diff
changeset
|
17 maybeElem : Maybe A |
57 | 18 |
19 |