Skip to content

Commit 1ea1a8f

Browse files
committed
Fix evaluation of TBox: it should reduce to itself when applied
1 parent c864bc3 commit 1ea1a8f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

extraction/theories/WcbvEval.v

+8-3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ Definition is_constructor n ts :=
5454
end.
5555

5656

57+
Definition mktApp f l :=
58+
match l with
59+
| nil => f
60+
| l => tApp f l
61+
end.
62+
5763
(** ** Big step version of weak cbv beta-zeta-iota-fix-delta reduction.
5864
5965
TODO: CoFixpoints *)
@@ -64,8 +70,7 @@ Section Wcbv.
6470

6571
Inductive eval : term -> term -> Prop :=
6672
(** Reductions *)
67-
| eval_box : eval tBox tBox
68-
73+
| eval_box l : eval (mktApp tBox l) tBox
6974

7075
(** Beta *)
7176
| eval_beta f na t b a a' l res :
@@ -144,7 +149,7 @@ Section Wcbv.
144149

145150
Lemma eval_evals_ind :
146151
forall P : term -> term -> Prop,
147-
(P tBox tBox) ->
152+
(forall l, P (mktApp tBox l) tBox) ->
148153
(forall (f : term) (na : name) (t b a a' : term) (l : list term) (res : term),
149154
eval f (tLambda na t b) ->
150155
P f (tLambda na t b) ->

0 commit comments

Comments
 (0)