Skip to content

Commit

Permalink
Stop relying on replace by automatic assumption-based solving (#1657
Browse files Browse the repository at this point in the history
)

Before coq/coq#17964 `replace foo with bar by tac` actually means
`replace foo with bar by first [assumption | symmetry; assumption | tac]`.
  • Loading branch information
SkySkimmer authored Sep 11, 2023
1 parent 4b562eb commit 4bd2596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fancy/Prod.v
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Ltac step_rhs :=
match goal with
| H: ?x = spec ?i ?args _
|- context [spec ?i ?args ?cc] =>
replace (spec i args cc) with x by idtac
replace (spec i args cc) with x by first [assumption | symmetry;assumption]
end;
match goal with
| H : ?y = (?x mod ?m)%Z |- context [(?x mod ?m)%Z] =>
Expand Down Expand Up @@ -397,4 +397,4 @@ Ltac push_value_unused :=
| _ => apply not_in_cons; split;
[ try assumption; symmetry; assumption | ]
| _ => apply in_nil
end.
end.

0 comments on commit 4bd2596

Please sign in to comment.