我试图证明以下关于自然顺序的玩具定理:
Inductive Le: nat -> nat -> Prop :=
| le_n: forall n, Le n n
| le_S: forall n m, Le n m -> Le n (S m).
Theorem le_Sn_m: forall n m,
Le (S n) m -> Le n m.
在纸面上,这是对 的简单归纳Le (S n) m
。特别是,基本情况le_n
是微不足道的。
不过,在 Coq 中,以归纳法开始我的证明给了我以下信息:
Proof.
intros n m H. induction H.
1 subgoal
n, n0 : nat
______________________________________(1/1)
Le n n0
...在这种情况下,我被阻止了。
我应该如何继续?