My question is: why 'intuition' works in my example?
I'm trying to prove
Lemma eqb_false : forall n m : nat, eqb n m = false -> n <> m.
At the last step, I can see
n : nat
IHn : forall m : nat, (n =? m) = false -> n <> m
m : nat
IHm : (S n =? m) = false -> S n <> m
============================
(n =? m) = false -> S n <> S m
Then 'intuition'/'firstorder'/'auto' all work on the current goal.
But why do they work? The Coq manual says they will some search work. Does it mean it can be rewritten with some other simple tactics?
Thank you!
EDIT: It can be seen that I applied induction on n and m in the proof above. According to @Vinz's answer, it has no necessity to conduct such an induction process. intros
at the first step and intro
at the goal of n <> m
, it will generate a contradictory hypothesis to H.