Debian Codegraph @

test-suite/bugs/bug_8004.v

raw
1 Require Export Corelib.Program.Tactics Corelib.Classes.SetoidTactics Corelib.Classes.CMorphisms .
2
3 Set Universe Polymorphism.
4
5 Delimit Scope category_theory_scope with category_theory.
6 Open Scope category_theory_scope.
7
8 Infix "∧" := prod (at level 80, right associativity) : category_theory_scope.
9
10 Class Setoid A := {
11 equiv : crelation A;
12 setoid_equiv :: Equivalence equiv
13 }.
14
15 Notation "f ≈ g" := (equiv f g) (at level 79) : category_theory_scope.
16
17 Open Scope list_scope.
18
19 Generalizable All Variables.
20
21 Fixpoint list_equiv `{Setoid A} (xs ys : list A) : Type :=
22 match xs, ys with
23 | nil, nil => True
24 | x :: xs, y :: ys => x ≈ y ∧ list_equiv xs ys
25 | _, _ => False
26 end.
27
28 Axiom proof_admitted : False.
29 Tactic Notation "admit" := abstract case proof_admitted.
30
31 #[export] Program Instance list_equivalence `{Setoid A} : Equivalence list_equiv.
32 Next Obligation.
33 repeat intro.
34 induction x; simpl; split; auto.
35 reflexivity.
36 Qed.
37 Next Obligation.
38 repeat intro.
39 generalize dependent y.
40 induction x, y; simpl; intros; auto.
41 destruct X; split.
42 now symmetry.
43 intuition.
44 Qed.
45 Next Obligation.
46 admit.
47 Defined.