Debian Codegraph @

test-suite/bugs/bug_4160_1.v

raw
1 (* -*- mode: coq; coq-prog-args: ("-indices-matter") -*- *)
2 Axiom proof_admitted : False.
3 Tactic Notation "admit" := case proof_admitted.
4 Inductive paths {A : Type} (a : A) : A -> Type := idpath : paths a a where "x = y" := (@ paths _ x y) : type_scope.
5 Inductive String : Set :=
6 | empty : String
7 | string (c : bool) (cs : String) : String.
8 Definition head_type (s : String) : Set :=
9 match s with
10 | empty => unit
11 | string _ _ => bool
12 end.
13 Definition head (s : String) : head_type s :=
14 match s return head_type s with
15 | empty => tt
16 | string c _ => c
17 end.
18 Definition ne_head (x y : bool) (xs ys: String)
19 : string x xs = string y ys -> head (string x xs) = head (string y ys).
20 Proof.
21 intro H.
22 Fail destruct H.
23 Abort.