Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #12532: Use the unification result for eauto's eapply.
Reviewed-by: mattam82
- Loading branch information
Showing
2 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
(** This is a change of behaviour introduced by PR #12532. It is not clear | ||
whether it is a legit behaviour but it is worth having it in the test | ||
suite. *) | ||
|
||
Module Foo. | ||
|
||
Axiom whatever : Type. | ||
Axiom name : Type. | ||
Axiom nw : forall (P : Type), name -> P. | ||
Axiom raft_data : Type. | ||
Axiom In : raft_data -> Prop. | ||
|
||
Axiom foo : forall st st', In st -> In st'. | ||
|
||
Definition params := prod whatever raft_data. | ||
|
||
Goal forall | ||
(d : raft_data), | ||
(forall (h : name), In (@snd whatever raft_data (@nw params h))) -> | ||
In d. | ||
Proof. | ||
intros. | ||
eapply foo. | ||
solve [debug eauto]. | ||
Abort. | ||
|
||
End Foo. | ||
|
||
Module Bar. | ||
|
||
Axiom whatever : Type. | ||
Axiom AppendEntries : whatever -> Prop. | ||
Axiom name : Type. | ||
Axiom nw : forall (P : Type), name -> P. | ||
Axiom raft_data : Type. | ||
Axiom In : raft_data -> Prop. | ||
|
||
Axiom foo : | ||
forall st st' lid, | ||
(AppendEntries lid -> In st) -> AppendEntries lid -> In st'. | ||
|
||
Definition params := prod whatever raft_data. | ||
|
||
Goal forall | ||
(d : raft_data), | ||
(forall (h : name) (w : whatever), | ||
AppendEntries w -> In (@snd whatever raft_data (@nw params h))) -> | ||
In d. | ||
Proof. | ||
intros. | ||
eapply foo. | ||
intros. | ||
solve [debug eauto]. | ||
Abort. | ||
|
||
End Bar. |