Skip to content

Commit

Permalink
Restrict the "simp" hint database to not unfold constants by default,…
Browse files Browse the repository at this point in the history
… for efficiency and backward compatibility.
  • Loading branch information
mattam82 committed May 23, 2024
1 parent 9597598 commit fec3cbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/AlmostFull.v
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ Section SCT.
graphs_relation (compose_family g g') x y.
Proof.
intros gxz gzy.
induction g in g', x, y, z, gxz, gzy |- *; simp compose_family.
induction g in g', x, y, z, gxz, gzy |- *; simp compose_family; auto.
unfold graphs_relation in gxz.
simpl in gxz. destruct gxz.
unfold graphs_relation.
Expand Down
3 changes: 3 additions & 0 deletions theories/Init.v
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ Tactic Notation "forward" constr(H) "by" tactic(tac) := forward_gen H tac.
solve recursive calls obligations or during [simp] calls. *)

Create HintDb simp discriminated.
Hint Variables Opaque : simp.
Hint Constants Opaque : simp.
Hint Projections Opaque : simp.

(** Forward reference to an internal tactic to unfold well-founded fixpoints *)
Ltac unfold_recursor := fail "Equations.Init.unfold_recursor has not been bound yet".
Expand Down

0 comments on commit fec3cbb

Please sign in to comment.