Skip to content

Commit

Permalink
Adapt to Coq PR #17991 which refolds partially applied fixpoints in s…
Browse files Browse the repository at this point in the history
…impl.

Done by modifying the code so that it is insensitive to the behavior
of simpl before and after the Coq PR.
  • Loading branch information
herbelin committed Aug 31, 2023
1 parent 6843d48 commit 1db7245
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions template-coq/theories/Typing.v
Original file line number Diff line number Diff line change
Expand Up @@ -1410,10 +1410,11 @@ Proof.
typing_size Hty <
S
((typing_spine_size
(fun x (x0 : context) (x1 x2 : term) (x3 : x;;; x0 |- x1 : x2) =>
typing_size x3) Σ Γ t_ty l t' t0)) ->
(@typing_size cf) Σ Γ t_ty l t' t0)) ->
on_global_env cumul_gen (lift_typing P) Σ.1 * P Σ Γ0 t1 T). {
intros. unshelve eapply X14; eauto. lia. }
intros. unshelve eapply X14; eauto.
change (fun x x0 x1 x2 x3 => typing_size x3) with (@typing_size cf). (* Needed with old versions of "simpl" in "simpl in X14" *)
lia. }
clear X14. simpl in pΓ. clear n e H pΓ.
induction t0; constructor.
unshelve eapply X; clear X; simpl; auto with arith.
Expand Down

0 comments on commit 1db7245

Please sign in to comment.