I encountered this doubt in an online intro-logic open course offered by Stanford Uni.
Under the section 9.4 of this textbook here: http://logic.stanford.edu/intrologic/secondary/notes/chapter_09.html
It says:
The axioms shown here define the same relation in terms of 0 and s.(where the functional constant letter s below represents the successor function, e.g. s(0)=1, s(1)=2, s(2)=3 )
∀x.same(x,x)
∀x.(¬same(0,s(x)) ∧ ¬same(s(x),0))
∀x.∀y.(¬same(x,y) ⇒ ¬same(s(x),s(y)))
As my understanding, :
The first sentence says two identical numbers are same. The second and third sentences are used to define what is not same.
The second says no successor of any number is same to 0.
The third says if two numbers are not the same, then their successors are not same. For example, if 1≠3, then 2≠4.
However, I think the third sentence should be bi-conditional because, if I'm not wrong, the definition didn't cover the instance where the number being testified are smaller than the given number,otherwise it is possible to say if 2≠4, then 1=3.
So I wondered is this an error in text book or there's something wrong of my reasoning.
There is no error here. The book is asserting that these axioms are enough to determine whether any two particular natural numbers (of the form $s(s(\dots (s(0))\dots))$) are the same, as it explains after stating the definition. It is not attempting to write down every single true statement about the "same" relation. It is indeed true that the reverse implication of the third axiom holds for natural numbers, but it is not necessary to include this in the axiomatization in order to be able to determine whether any two particular natural numbers are the same. Failing to include this reverse implication as an axiom doesn't mean they are claiming it isn't true; it just means that they don't need it as an assumption.