Debian Codegraph @

test-suite/output/Notations2.out

raw
1 2 3
2 : PAIR
3 2 [+] 3
4 : nat
5 forall (A : Set) (le : A -> A -> Prop) (x y : A), le x y \/ le y x
6 : Prop
7 match (0, 0, 0) with
8 | (x, y, z) => x + y + z
9 end
10 : nat
11 let '(a, _, _) := (2, 3, 4) in a
12 : nat
13 exists myx y : bool, myx = y
14 : Prop
15 fun (P : nat -> nat -> Prop) (x : nat) => exists y, P x y
16 : (nat -> nat -> Prop) -> nat -> Prop
17 ∃ n p : nat, n + p = 0
18 : Prop
19 let a := 0 in
20 ∃ (x y : nat) (b := 1) (c := b) (d := 2) (z : nat),
21 let e := 3 in
22 let f := 4 in x + y = z + d
23 : Prop
24 ∀ n p : nat, n + p = 0
25 : Prop
26 λ n p : nat, n + p = 0
27 : nat -> nat -> Prop
28 λ (A : Type) (n p : A), n = p
29 : ∀ A : Type, A -> A -> Prop
30 λ A : Type, ∃ n p : A, n = p
31 : Type -> Prop
32 λ A : Type, ∀ n p : A, n = p
33 : Type -> Prop
34 let' f (x y : nat) (a := 0) (z : nat) (_ : bool) := x + y + z + 1 in f 0 1 2
35 : bool -> nat
36 λ (f : nat -> nat) (x : nat), f(x) + S(x)
37 : (nat -> nat) -> nat -> nat
38 Notation plus2 n := (S(S(n)))
39 λ n : list(nat), match n with
40 | list1 => 0
41 | _ => 2
42 end
43 : list(nat) -> nat
44 λ n : list(nat),
45 match n with
46 | list1 => 0
47 | nil | 0 :: _ | 1 :: _ :: _ | plus2 _ :: _ => 2
48 end
49 : list(nat) -> nat
50 λ n : list(nat),
51 match n with
52 | nil => 2
53 | 0 :: _ => 2
54 | list1 => 0
55 | 1 :: _ :: _ => 2
56 | plus2 _ :: _ => 2
57 end
58 : list(nat) -> nat
59 # x : nat => x
60 : nat -> nat
61 # _ : nat => 2
62 : nat -> nat
63 # x : nat => # H : x <= 0 => exist (le x) 0 H
64 : ∀ x : nat, x <= 0 -> {x0 : nat | x <= x0}
65 exist (Q x) y conj
66 : {x0 : A | Q x x0}
67 % i
68 : nat -> nat
69 % j
70 : nat -> nat
71 {1, 2}
72 : nat -> Prop
73 a#
74 : Set
75 a#
76 : Set
77 a≡
78 : Set
79 a≡
80 : Set
81 .≡
82 : Set
83 .≡
84 : Set
85 .a#
86 : Set
87 .a#
88 : Set
89 .a≡
90 : Set
91 .a≡
92 : Set
93 .α
94 : Set
95 .α
96 : Set
97 # a : .α =>
98 # b : .α =>
99 let res := 0 in
100 for i from 0 to a updating (res)
101 {{for j from 0 to b updating (res) {{S res}};; res}};; res
102 : .α -> .α -> .α