Mercurial > hg > Members > atton > agda-proofs
view cbc/maybe-subtype-sample.agda @ 58:b7493ee642de
Trying define maybe-subtype...
author | atton <atton@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Jan 2017 01:05:06 +0000 |
parents | |
children | 352e8a724829 |
line wrap: on
line source
module maybe-subtype-sample where open import subtype return : {_ : Context A} {_ : Meta (Context A)} {{_ : N.DataSegment A}} {{_ : M.DataSegment A}} -> A -> Meta A return {c} {mc} {{nd}} {{md}} a = record {context = con ; maybeElem = just a} where con = record { elem = a } fmap : {B : Set} {{_ : M.DataSegment A}} {{_ : M.DataSegment B}} -> M.CodeSegment A B -> Meta (Context A) -> Meta (Context B) fmap code x = {!!} -- exec code x