Skip to content

Commit

Permalink
Clean up unnecessary premise
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbotsch committed Nov 5, 2020
1 parent b5f35d5 commit b644e64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
2 changes: 0 additions & 2 deletions erasure/_PluginProject.in
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ src/pCUICChecker.ml
src/pCUICChecker.mli
src/pCUICPretty.mli
src/pCUICPretty.ml
#src/pCUICSafeLemmata.mli
#src/pCUICSafeLemmata.ml
src/templateToPCUIC.mli
src/templateToPCUIC.ml

Expand Down
17 changes: 5 additions & 12 deletions pcuic/theories/PCUICNormal.v
Original file line number Diff line number Diff line change
Expand Up @@ -1019,11 +1019,10 @@ Hint Resolve whnf_red_red : pcuic.

Lemma whnf_red_mkApps Σ Γ hd hd' args args' :
whnf_red Σ Γ hd hd' ->
red Σ Γ hd hd' ->
All2 (red Σ Γ) args args' ->
whnf_red Σ Γ (mkApps hd args) (mkApps hd' args').
Proof.
intros shape r ra.
intros r ra.
induction ra using All2_rect_rev; auto.
rewrite <- !mkApps_nested.
cbn.
Expand Down Expand Up @@ -1188,15 +1187,13 @@ Proof.
cbn.
intros ? ? (?&[= -> -> ->]).
auto.
+ now apply red1_red, fix_red_ty.
+ apply All2_same; auto.
- apply whnf_red_mkApps; eauto.
+ constructor.
eapply OnOne2_All2; eauto.
cbn.
intros ? ? (?&[= -> -> ->]).
auto.
+ now apply red1_red, fix_red_body.
+ apply All2_same; auto.
- constructor; auto.
apply All2_same; auto.
Expand Down Expand Up @@ -1233,16 +1230,14 @@ Proof.
constructor.
apply All2_same; auto.
+ apply whnf_red_mkApps.
3: apply All2_same; auto.
2: apply red1_red, fix_red_ty; auto.
2: apply All2_same; auto.
constructor.
eapply OnOne2_All2; eauto.
cbn.
intros ? ? (?&[= -> -> ->]).
auto.
+ apply whnf_red_mkApps.
3: apply All2_same; auto.
2: apply red1_red, fix_red_body; auto.
2: apply All2_same; auto.
constructor.
eapply OnOne2_All2; eauto.
cbn.
Expand All @@ -1255,16 +1250,14 @@ Proof.
constructor.
apply All2_same; auto.
+ apply whnf_red_mkApps.
3: apply All2_same; auto.
2: apply red1_red, cofix_red_ty; auto.
2: apply All2_same; auto.
constructor.
eapply OnOne2_All2; eauto.
cbn.
intros ? ? (?&[= -> -> ->]).
auto.
+ apply whnf_red_mkApps.
3: apply All2_same; auto.
2: apply red1_red, cofix_red_body; auto.
2: apply All2_same; auto.
constructor.
eapply OnOne2_All2; eauto.
cbn.
Expand Down

0 comments on commit b644e64

Please sign in to comment.