Skip to content

Commit

Permalink
core-spec: Fix S_MatchData
Browse files Browse the repository at this point in the history
Previously, it would substitute e for n without an e being around.
I clarify that by naming the scrutinee e.
  • Loading branch information
nomeata committed Dec 2, 2016
1 parent eb6f673 commit 90c5af4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/core-spec/OpSem.ott
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ S |- e --> e'
S |- case e as n return t of </ alti // i /> --> case e' as n return t of </ alti // i />

altj = K </ alphabb_kbb // bb /> </ xcc_tcc // cc /> -> u
e = K </ t'aa // aa /> </ sbb // bb /> </ ecc // cc />
u' = u[n |-> e] </ [alphabb_kbb |-> sbb] // bb /> </ [xcc_tcc |-> ecc] // cc />
-------------------------------------------------------------- :: MatchData
S |- case K </ t'aa // aa /> </ sbb // bb /> </ ecc // cc /> as n return t of </ alti // i /> --> u'
S |- case e as n return t of </ alti // i /> --> u'

altj = lit -> u
---------------------------------------------------------------- :: MatchLit
Expand Down
Binary file modified docs/core-spec/core-spec.pdf
Binary file not shown.

0 comments on commit 90c5af4

Please sign in to comment.