annotate src/AgdaPushPopProof.agda.replaced @ 1:73127e0ab57c

(none)
author soto@cr.ie.u-ryukyu.ac.jp
date Tue, 08 Sep 2020 18:38:08 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1 id-meta : @$\mathbb{N}$@ @$\rightarrow$@ @$\mathbb{N}$@ @$\rightarrow$@ SingleLinkedStack @$\mathbb{N}$@ @$\rightarrow$@ Meta
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
2 id-meta n e s = record { context = record {n = n ; element = just e}
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3 ; nextCS = (N.cs id) ; stack = s}
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5 push-pop-type : @$\mathbb{N}$@ @$\rightarrow$@ @$\mathbb{N}$@ @$\rightarrow$@ @$\mathbb{N}$@ @$\rightarrow$@ Element @$\mathbb{N}$@ @$\rightarrow$@ Set@$\_{1}$@
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6 push-pop-type n e x s = M.exec (M.csComp {meta} (M.cs popOnce) (M.cs pushOnce)) meta @$\equiv$@ meta
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7 where
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
8 meta = id-meta n e record {top = just (cons x (just s))}
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
9
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
10 push-pop : (n e x : @$\mathbb{N}$@) @$\rightarrow$@ (s : Element @$\mathbb{N}$@) @$\rightarrow$@ push-pop-type n e x s
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
11 push-pop n e x s = refl