Metamath Proof Explorer


Theorem fzm1ne1

Description: Elementhood of an integer and its predecessor in finite intervals of integers. (Contributed by Thierry Arnoux, 1-Jan-2024)

Ref Expression
Assertion fzm1ne1 KMNKMK1MN1

Proof

Step Hyp Ref Expression
1 fzne1 KMNKMKM+1N
2 elfzel1 KM+1NM+1
3 elfzel2 KM+1NN
4 elfzelz KM+1NK
5 1zzd KM+1N1
6 id KM+1NKM+1N
7 fzsubel M+1NK1KM+1NK1M+1-1N1
8 7 biimp3a M+1NK1KM+1NK1M+1-1N1
9 2 3 4 5 6 8 syl221anc KM+1NK1M+1-1N1
10 1 9 syl KMNKMK1M+1-1N1
11 elfzel1 KMNM
12 11 adantr KMNKMM
13 12 zcnd KMNKMM
14 1cnd KMNKM1
15 13 14 pncand KMNKMM+1-1=M
16 15 oveq1d KMNKMM+1-1N1=MN1
17 10 16 eleqtrd KMNKMK1MN1