File: bug_12532.v

package info (click to toggle)
coq 8.20.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 44,116 kB
  • sloc: ml: 234,160; sh: 4,301; python: 3,270; ansic: 2,644; makefile: 882; lisp: 172; javascript: 63; xml: 24; sed: 2
file content (56 lines) | stat: -rw-r--r-- 1,139 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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.