| 1 |
swap = fun '(x, y) => (y, x) |
| 2 |
: A * B -> B * A |
| 3 |
|
| 4 |
Arguments swap pat |
| 5 |
fun '(x, y) => (y, x) |
| 6 |
: A * B -> B * A |
| 7 |
forall '(x, y), swap (x, y) = (y, x) |
| 8 |
: Prop |
| 9 |
proj_informative = fun '(exist _ x _) => x |
| 10 |
: {x : A | P x} -> A |
| 11 |
|
| 12 |
Arguments proj_informative pat |
| 13 |
foo = fun '(Bar n b tt p) => if b then n + p else n - p |
| 14 |
: Foo -> nat |
| 15 |
|
| 16 |
Arguments foo pat |
| 17 |
baz = |
| 18 |
fun '(Bar n1 _ tt p1) '(Bar _ _ tt _) => n1 + p1 |
| 19 |
: Foo -> Foo -> nat |
| 20 |
|
| 21 |
Arguments baz pat pat |
| 22 |
swap = |
| 23 |
fun (A B : Type) '(x, y) => (y, x) |
| 24 |
: forall {A B : Type}, A * B -> B * A |
| 25 |
|
| 26 |
Arguments swap {A B}%_type_scope pat |
| 27 |
fun (A B : Type) '(x, y) => swap (x, y) = (y, x) |
| 28 |
: forall A B : Type, A * B -> Prop |
| 29 |
forall (A B : Type) '(x, y), swap (x, y) = (y, x) |
| 30 |
: Prop |
| 31 |
exists '(x, y), swap (x, y) = (y, x) |
| 32 |
: Prop |
| 33 |
exists '(x, y) '(z, w), swap (x, y) = (z, w) |
| 34 |
: Prop |
| 35 |
fun '(x, y) => (y, x) |
| 36 |
: A * B -> B * A |
| 37 |
forall '(x, y), swap (x, y) = (y, x) |
| 38 |
: Prop |
| 39 |
both_z = |
| 40 |
fun pat : nat * nat => let '(n, p) as x := pat return F x in (Z n, Z p) |
| 41 |
: forall pat : nat * nat, F pat |
| 42 |
|
| 43 |
Arguments both_z pat |
| 44 |
fun '(x, y) '(z, t) => swap (x, y) = (z, t) |
| 45 |
: A * B -> B * A -> Prop |
| 46 |
forall '(x, y) '(z, t), swap (x, y) = (z, t) |
| 47 |
: Prop |
| 48 |
fun (pat : nat) '(x, y) => x + y = pat |
| 49 |
: nat -> nat * nat -> Prop |
| 50 |
f = fun x : nat => x + x |
| 51 |
: nat -> nat |
| 52 |
|
| 53 |
Arguments f x%_nat_scope |
| 54 |
fun x : nat => x + x |
| 55 |
: nat -> nat |