Debian Codegraph @

test-suite/output/PrintMatch.out

raw
1 eqT_rect@{u u0} =
2 fun (A : Type@{u}) (a : A) (P : forall a0 : A, eqT@{u} a a0 -> Type@{u0})
3 (reflT : P a (reflT@{u} a)) (a0 : A) (e : eqT@{u} a a0) =>
4 match e :> eqT@{u} a _ as e0 in eqT _ a1 return P a1 e0 with
5 | MatchAllSubterms.reflT _ => reflT
6 end
7 : forall (A : Type@{u}) (a : A)
8 (P : forall a0 : A, eqT@{u} a a0 -> Type@{u0}),
9 P a (reflT@{u} a) -> forall (a0 : A) (e : eqT@{u} a a0), P a0 e
10 (* u u0 |= *)
11
12 Arguments eqT_rect A%_type_scope a P%_function_scope reflT a0 e
13 seq_rect =
14 fun (A : Type@{seq_rect.u1}) (a : A)
15 (P : forall a0 : A, seq a a0 -> Type@{seq_rect.u0})
16 (srefl : P a (srefl a)) (a0 : A) (s : seq a a0) =>
17 match s :> seq a a0 as s0 in seq _ a1 return P a1 s0 with
18 | MatchAllSubterms.srefl _ => srefl
19 end
20 : forall (A : Type@{seq_rect.u1}) (a : A)
21 (P : forall a0 : A, seq a a0 -> Type@{seq_rect.u0}),
22 P a (srefl a) -> forall (a0 : A) (s : seq a a0), P a0 s
23
24 Arguments seq_rect A%_type_scope a P%_function_scope srefl a0 s
25 eq_sym =
26 fun (A : Type) (x y : A) (H : @eq A x y) =>
27 match H in @eq _ _ y0 return @eq A y0 x with
28 | @eq_refl _ _ => @eq_refl A x
29 end
30 : forall [A : Type] [x y : A] (_ : @eq A x y), @eq A y x
31
32 Arguments eq_sym [A]%_type_scope [x y] H
33 eq_sym =
34 fun (A : Type) (x y : A) (H : x = y) =>
35 match H in _ = y0 return y0 = x with
36 | @eq_refl _ _ => @eq_refl A x
37 end
38 : forall [A : Type] [x y : A], x = y -> y = x
39
40 Arguments eq_sym [A]%_type_scope [x y] H
41 eq_sym =
42 fun (A : Type) (x y : A) (H : x = y) =>
43 match H in _ = y0 return y0 = x with
44 | @eq_refl _ _ => @eq_refl A x
45 end
46 : forall [A : Type] [x y : A], x = y -> y = x
47
48 Arguments eq_sym [A]%_type_scope [x y] H
49 test =
50 fun (O : unit) (S : nat -> unit) (n : nat) =>
51 match n with
52 | 0 => O
53 | Datatypes.S n0 => S n0
54 end
55 : unit -> (nat -> unit) -> nat -> unit
56
57 Arguments test O S%_function_scope n%_nat_scope