Debian Codegraph @

test-suite/bugs/bug_12532.v

raw
1 (** This is a change of behaviour introduced by PR #12532. It is not clear
2 whether it is a legit behaviour but it is worth having it in the test
3 suite. *)
4
5 Module Foo.
6
7 Axiom whatever : Type.
8 Axiom name : Type.
9 Axiom nw : forall (P : Type), name -> P.
10 Axiom raft_data : Type.
11 Axiom In : raft_data -> Prop.
12
13 Axiom foo : forall st st', In st -> In st'.
14
15 Definition params := prod whatever raft_data.
16
17 Goal forall
18 (d : raft_data),
19 (forall (h : name), In (@snd whatever raft_data (@nw params h))) ->
20 In d.
21 Proof.
22 intros.
23 eapply foo.
24 solve [debug eauto].
25 Abort.
26
27 End Foo.
28
29 Module Bar.
30
31 Axiom whatever : Type.
32 Axiom AppendEntries : whatever -> Prop.
33 Axiom name : Type.
34 Axiom nw : forall (P : Type), name -> P.
35 Axiom raft_data : Type.
36 Axiom In : raft_data -> Prop.
37
38 Axiom foo :
39 forall st st' lid,
40 (AppendEntries lid -> In st) -> AppendEntries lid -> In st'.
41
42 Definition params := prod whatever raft_data.
43
44 Goal forall
45 (d : raft_data),
46 (forall (h : name) (w : whatever),
47 AppendEntries w -> In (@snd whatever raft_data (@nw params h))) ->
48 In d.
49 Proof.
50 intros.
51 eapply foo.
52 intros.
53 solve [debug eauto].
54 Abort.
55
56 End Bar.