Debian Codegraph @

test-suite/failure/subterm.v

raw
1 Module Foo.
2 Inductive True2:Prop:= I2: (False->True2)->True2.
3
4 Axiom Heq: (False->True2)=True2.
5
6 Fail Fixpoint con (x:True2) :False :=
7 match x with
8 I2 f => con (match Heq with @eq_refl _ _ => f end)
9 end.
10 End Foo.
11
12 Inductive True1 : Prop := I1 : True1
13 with True2 : Prop := I2 : True1 -> True2.
14
15 Section func_unit_discr.
16
17 Hypothesis Heq : True1 = True2.
18
19 Fail Fixpoint contradiction (u : True2) : False :=
20 contradiction (
21 match u with
22 | I2 Tr =>
23 match Heq in (_ = T) return T with
24 | eq_refl => Tr
25 end
26 end).
27
28 End func_unit_discr.
29
30 Require Import TestSuite.vector.
31 Import Vector.
32
33 Local Notation "[]" := (@nil _).
34 Local Notation "h :: t" := (@cons _ h _ t) (at level 60, right associativity).
35 Definition is_nil {A n} (v : t A n) : bool := match v with [] => true | _ => false end.
36
37 Fixpoint id {A n} (v : t A n) : t A n :=
38 match v in t _ n' return t A n' with
39 | (h :: t) as v' => h :: id (tl _ v')
40 |_ => []
41 end.