| 1 |
Inductive Le : nat -> nat -> Set := |
| 2 |
| LeO : forall n : nat, Le 0 n |
| 3 |
| LeS : forall n m : nat, Le n m -> Le (S n) (S m). |
| 4 |
|
| 5 |
Parameter discr_l : forall n : nat, S n <> 0. |
| 6 |
|
| 7 |
Type |
| 8 |
(fun n : nat => |
| 9 |
match n return (n = 0 \/ n <> 0) with |
| 10 |
| O => or_introl (0 <> 0) (refl_equal 0) |
| 11 |
| S O => or_intror (1 = 0) (discr_l 0) |
| 12 |
| S (S x) => or_intror (S (S x) = 0) (discr_l (S x)) |
| 13 |
end). |
| 14 |
|
| 15 |
Parameter iguales : forall (n m : nat) (h : Le n m), Prop. |
| 16 |
|
| 17 |
Type |
| 18 |
match LeO 0 as h in (Le n m) return Prop with |
| 19 |
| LeO O => True |
| 20 |
| LeS (S x) (S y) H => iguales (S x) (S y) H |
| 21 |
| _ => False |
| 22 |
end. |
| 23 |
|
| 24 |
Type |
| 25 |
match LeO 0 as h in (Le n m) return Prop with |
| 26 |
| LeO O => True |
| 27 |
| LeS (S x) O H => iguales (S x) 0 H |
| 28 |
| _ => False |
| 29 |
end. |