Skip to content

Commit

Permalink
Add test case that resulted in sigma hanging (crap)
Browse files Browse the repository at this point in the history
  • Loading branch information
takanuva committed Oct 2, 2024
1 parent 1b202e3 commit bf8cb50
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions theories/Substitution.v
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,11 @@ Create HintDb sigma.

Ltac sigma_solver :=
match goal with
| |- @deBruijnLaws _ _ =>
| |- @deBruijnLaws ?A ?B =>
idtac "trying to solve @deBruijnLaws" A B;
typeclasses eauto
| |- ?G =>
(* idtac "trying to solve" G; *)
idtac "trying to solve" G;
(* TODO: rewrite those if they are within the context of a substitution;
this can most certainly be done by using proper setoid rewriting. *)
try repeat (rewrite smap_length
Expand Down Expand Up @@ -1273,4 +1274,16 @@ Section Tests.

(* TODO: can we make right_cycle_right_cycle_simplification simpler? *)

(* Oh no... *)

Goal
forall x l k,
bsmap (subst_cons (var 0) subst_ids) k
(bsmap (subst_app [var 1; var 0] (subst_lift 2)) k
(x :: l)) =
bsmap (subst_cons (var 0) subst_ids) (S k) (x :: l).
Proof.
intros.
timeout 60 sigma.

Check failure on line 1287 in theories/Substitution.v

View workflow job for this annotation

GitHub Actions / build

Tactic failure: [Proofview.tclTIMEOUT] Tactic timeout!.

Check failure on line 1287 in theories/Substitution.v

View workflow job for this annotation

GitHub Actions / build

Tactic failure: [Proofview.tclTIMEOUT] Tactic timeout!.

End Tests.

0 comments on commit bf8cb50

Please sign in to comment.