Debian Codegraph @

test-suite/bugs/bug_20085.v

raw
1 Require ssreflect.
2
3 Axiom proof_admitted : False.
4 Tactic Notation "admit" := abstract case proof_admitted.
5 Set Universe Polymorphism.
6 Set Printing Universes.
7
8 Declare Scope lean_scope.
9 Global Open Scope lean_scope.
10
11 Cumulative
12 Inductive eq@{u|} {α:Type@{u}} (a:α) : α -> SProp
13 := eq_refl : eq a a.
14 Notation "x = y" := (eq x y) : lean_scope.
15
16 #[export]
17 Set Implicit Arguments.
18 Record Iso (A B : Type) : Type := {
19 to : A -> B;
20 }.
21
22 Definition rel_iso {A B} (i : Iso A B) : A -> B -> _ := fun x y => i.(to) x = y.
23
24 Existing Class Iso.
25 Import ssreflect.
26
27 Inductive Nat := Nat_zero : Nat | Nat_succ : Nat -> Nat.
28
29 Instance nat_iso : Iso nat Nat.
30 Admitted.
31
32 Axiom add_comm : forall n m, n + m = m + n.
33
34 Definition plus_iso
35 : forall n m,
36 rel_iso nat_iso (n + m) Nat_zero.
37 Proof.
38 intros n m.
39 rewrite add_comm.
40 all: admit.
41 Defined.
42 (* Binder (_evar_0_ : "rel_iso@{Set Set} nat_iso (m + n) (nat_iso m)")
43 has relevance mark set to relevant but was expected to be
44 irrelevant (maybe a bugged tactic). *)