Mercurial > urweb
diff src/coq/Semantics.v @ 619:f38e009009bb
Time to start thinking about guards
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 21 Feb 2009 13:22:30 -0500 |
parents | be88d2d169f6 |
children | d828b143e147 |
line wrap: on
line diff
--- a/src/coq/Semantics.v Sat Feb 21 13:17:06 2009 -0500 +++ b/src/coq/Semantics.v Sat Feb 21 13:22:30 2009 -0500 @@ -209,5 +209,21 @@ | right _ => fun x => x end ((eDen e1) n) + | Concat c1 c2 e1 e2 => fun n => + match (cDen c1) n as D return match D with + | None => unit + | Some T => T + end + -> match (match D with + | None => (cDen c2) n + | v => v + end) with + | None => unit + | Some T => T + end with + | None => fun _ => (eDen e2) n + | _ => fun x => x + end ((eDen e1) n) + | _ => cheat _ end.