@@ -155,21 +155,21 @@ rule Step_exp/CMP-ctx2:
155155 -- Step_exp: S |- e_2 ~> e_2'
156156
157157rule Step_exp/CMP-EQ-true:
158- S |- CMP EQ e_1 e_2 ~> BOOL true
159- -- if e_1 = e_2
158+ S |- CMP EQ val_1 val_2 ~> BOOL true
159+ -- if val_1 = val_2
160160
161161rule Step_exp/CMP-EQ-false:
162162 S |- CMP EQ val_1 val_2 ~> BOOL false
163163 -- if val_1 =/= val_2
164164
165- rule Step_exp/CMP-NE-false:
166- S |- CMP NE e_1 e_2 ~> BOOL false
167- -- if e_1 = e_2
168-
169165rule Step_exp/CMP-NE-true:
170166 S |- CMP NE val_1 val_2 ~> BOOL true
171167 -- if val_1 =/= val_2
172168
169+ rule Step_exp/CMP-NE-false:
170+ S |- CMP NE val_1 val_2 ~> BOOL false
171+ -- if val_1 = val_2
172+
173173rule Step_exp/CMP-NUM:
174174 S |- CMP numcmpop num_1 num_2 ~> BOOL $numcmp(numcmpop, num_1, num_2)
175175
@@ -557,6 +557,8 @@ rule Step_argmatch/EXP-fail:
557557 S |- `{q*} (EXP e / EXP e') ~>_s `{} FAIL
558558 -- Step_expmatch: S |- `{q*} (e / e') ~>_s `{} FAIL
559559
560+ ;; TODO: EXP disjointness?
561+
560562
561563rule Step_argmatch_plain/ctx1:
562564 S |- a / a' ~> a'' / a'
@@ -566,14 +568,6 @@ rule Step_argmatch_plain/ctx2:
566568 S |- a / a' ~> a / a''
567569 -- Step_arg: S |- a' ~> a''
568570
569- rule Step_argmatch_plain/eq:
570- S |- a / a ~> eps
571-
572- ;; TODO: disjointness
573- ;;rule Step_argmatch_plain/neq:
574- ;; S |- a / a' ~> FAIL
575- ;; -- Disj_arg: S |- a =/= a'
576-
577571
578572rule Step_expmatch/plain:
579573 S |- `{q*} (e / e')* ~>_{} `{q*} (e'' / e''')*
@@ -616,7 +610,7 @@ rule Step_expmatch_plain/ctx2:
616610 -- Step_exp: S |- e' ~> e''
617611
618612rule Step_expmatch_plain/eq:
619- S |- e / e ~> eps
613+ S |- val / val ~> eps
620614
621615rule Step_expmatch_plain/UN-PLUS:
622616 S |- num / UN PLUS e ~> num / e
@@ -721,7 +715,7 @@ rule Step_expmatch_plain/SUB-SUB:
721715 SUB e t_1 t'_1 / e'
722716 -- Sub_typ: $storeenv(S) |- t_1 <: t'_1
723717
724- ;; TODO: disjointness
718+ ;; TODO: disjointness?
725719
726720rule Step_expmatch_plain/SUB-TUP:
727721 S |- TUP e^n / SUB e' (TUP (x_1 `: t'_1)^n) (TUP (x_2 `: t'_2)^n) ~>
0 commit comments