Skip to content

Commit

Permalink
switch to using Fix_eq' and get unstuck
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenConoly committed Sep 30, 2024
1 parent 6ab1564 commit b0dbeb7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions compiler/src/compiler/DeadCodeElimDef.v
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ Section WithArguments1.
Lemma fix_step e tup : dtransform_stmt_trace e tup = dtransform_stmt_trace_body e tup (fun y _ => dtransform_stmt_trace e y).
Proof.
cbv [dtransform_stmt_trace].
apply (@Fix_eq _ _ lt_tuple_wf _ (dtransform_stmt_trace_body e)).
apply (@Fix_eq' _ _ lt_tuple_wf _ (dtransform_stmt_trace_body e)).
{ intros. clear tup. rename f into f1. rename g into f2.
cbv [dtransform_stmt_trace_body]. cbv beta.
destruct x as [ [k s] u].
Expand All @@ -674,8 +674,7 @@ Section WithArguments1.
{ apply H. }
{ Tactics.destruct_one_match; try reflexivity. Tactics.destruct_one_match; try reflexivity.
repeat (Tactics.destruct_one_match; try reflexivity).
rewrite H in E. rewrite E in E0. (* stuck:( *)
rewrite H'. reflexivity. }
erewrite H in E. rewrite E in E0. inversion E0. subst. reflexivity. }
{ Tactics.destruct_one_match; try reflexivity. Tactics.destruct_one_match; try reflexivity.
erewrite H in E. rewrite E in E0. inversion E0. subst.
apply Let_In_pf_nd_ext. intros. Tactics.destruct_one_match; try reflexivity.
Expand All @@ -692,7 +691,6 @@ Section WithArguments1.
{ Tactics.destruct_one_match; try reflexivity. Tactics.destruct_one_match; try reflexivity.
Tactics.destruct_one_match; try reflexivity. Tactics.destruct_one_match.
Tactics.destruct_one_match. erewrite H. reflexivity. } }
{ reflexivity. }
Qed.

Definition dce_function: (list string *
Expand Down

0 comments on commit b0dbeb7

Please sign in to comment.