ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fz0fzdiffz0 GIF version

Theorem fz0fzdiffz0 9270
Description: The difference of an integer in a finite set of sequential nonnegative integers and and an integer of a finite set of sequential integers with the same upper bound and the nonnegative integer as lower bound is a member of the finite set of sequential nonnegative integers. (Contributed by Alexander van der Vekens, 6-Jun-2018.)
Assertion
Ref Expression
fz0fzdiffz0 ((𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁)) → (𝐾𝑀) ∈ (0...𝑁))

Proof of Theorem fz0fzdiffz0
StepHypRef Expression
1 fz0fzelfz0 9267 . . 3 ((𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁)) → 𝐾 ∈ (0...𝑁))
2 elfzle1 9174 . . . . . . 7 (𝐾 ∈ (𝑀...𝑁) → 𝑀𝐾)
32adantl 271 . . . . . 6 ((𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁)) → 𝑀𝐾)
43adantl 271 . . . . 5 ((𝐾 ∈ (0...𝑁) ∧ (𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁))) → 𝑀𝐾)
5 elfznn0 9259 . . . . . . 7 (𝑀 ∈ (0...𝑁) → 𝑀 ∈ ℕ0)
65adantr 270 . . . . . 6 ((𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁)) → 𝑀 ∈ ℕ0)
7 elfznn0 9259 . . . . . 6 (𝐾 ∈ (0...𝑁) → 𝐾 ∈ ℕ0)
8 nn0sub 8550 . . . . . 6 ((𝑀 ∈ ℕ0𝐾 ∈ ℕ0) → (𝑀𝐾 ↔ (𝐾𝑀) ∈ ℕ0))
96, 7, 8syl2anr 284 . . . . 5 ((𝐾 ∈ (0...𝑁) ∧ (𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁))) → (𝑀𝐾 ↔ (𝐾𝑀) ∈ ℕ0))
104, 9mpbid 145 . . . 4 ((𝐾 ∈ (0...𝑁) ∧ (𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁))) → (𝐾𝑀) ∈ ℕ0)
11 elfz3nn0 9260 . . . . 5 (𝐾 ∈ (0...𝑁) → 𝑁 ∈ ℕ0)
1211adantr 270 . . . 4 ((𝐾 ∈ (0...𝑁) ∧ (𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁))) → 𝑁 ∈ ℕ0)
13 elfz2nn0 9257 . . . . . . 7 (𝑀 ∈ (0...𝑁) ↔ (𝑀 ∈ ℕ0𝑁 ∈ ℕ0𝑀𝑁))
14 elfz2 9164 . . . . . . . . . . 11 (𝐾 ∈ (𝑀...𝑁) ↔ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ (𝑀𝐾𝐾𝑁)))
15 zsubcl 8525 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝐾 ∈ ℤ ∧ 𝑀 ∈ ℤ) → (𝐾𝑀) ∈ ℤ)
1615zred 8602 . . . . . . . . . . . . . . . . . . . . . 22 ((𝐾 ∈ ℤ ∧ 𝑀 ∈ ℤ) → (𝐾𝑀) ∈ ℝ)
1716ancoms 264 . . . . . . . . . . . . . . . . . . . . 21 ((𝑀 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (𝐾𝑀) ∈ ℝ)
18173adant2 958 . . . . . . . . . . . . . . . . . . . 20 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (𝐾𝑀) ∈ ℝ)
19 zre 8488 . . . . . . . . . . . . . . . . . . . . 21 (𝐾 ∈ ℤ → 𝐾 ∈ ℝ)
20193ad2ant3 962 . . . . . . . . . . . . . . . . . . . 20 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → 𝐾 ∈ ℝ)
21 zre 8488 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℤ → 𝑁 ∈ ℝ)
22213ad2ant2 961 . . . . . . . . . . . . . . . . . . . 20 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → 𝑁 ∈ ℝ)
2318, 20, 223jca 1119 . . . . . . . . . . . . . . . . . . 19 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → ((𝐾𝑀) ∈ ℝ ∧ 𝐾 ∈ ℝ ∧ 𝑁 ∈ ℝ))
2423adantr 270 . . . . . . . . . . . . . . . . . 18 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ 𝑀 ∈ ℕ0) → ((𝐾𝑀) ∈ ℝ ∧ 𝐾 ∈ ℝ ∧ 𝑁 ∈ ℝ))
2524adantr 270 . . . . . . . . . . . . . . . . 17 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ 𝑀 ∈ ℕ0) ∧ 𝐾𝑁) → ((𝐾𝑀) ∈ ℝ ∧ 𝐾 ∈ ℝ ∧ 𝑁 ∈ ℝ))
26 nn0ge0 8432 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ ℕ0 → 0 ≤ 𝑀)
2726adantl 271 . . . . . . . . . . . . . . . . . . 19 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ 𝑀 ∈ ℕ0) → 0 ≤ 𝑀)
28 nn0re 8416 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ ℕ0𝑀 ∈ ℝ)
29 subge02 7701 . . . . . . . . . . . . . . . . . . . 20 ((𝐾 ∈ ℝ ∧ 𝑀 ∈ ℝ) → (0 ≤ 𝑀 ↔ (𝐾𝑀) ≤ 𝐾))
3020, 28, 29syl2an 283 . . . . . . . . . . . . . . . . . . 19 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ 𝑀 ∈ ℕ0) → (0 ≤ 𝑀 ↔ (𝐾𝑀) ≤ 𝐾))
3127, 30mpbid 145 . . . . . . . . . . . . . . . . . 18 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ 𝑀 ∈ ℕ0) → (𝐾𝑀) ≤ 𝐾)
3231anim1i 333 . . . . . . . . . . . . . . . . 17 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ 𝑀 ∈ ℕ0) ∧ 𝐾𝑁) → ((𝐾𝑀) ≤ 𝐾𝐾𝑁))
33 letr 7313 . . . . . . . . . . . . . . . . 17 (((𝐾𝑀) ∈ ℝ ∧ 𝐾 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (((𝐾𝑀) ≤ 𝐾𝐾𝑁) → (𝐾𝑀) ≤ 𝑁))
3425, 32, 33sylc 61 . . . . . . . . . . . . . . . 16 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ 𝑀 ∈ ℕ0) ∧ 𝐾𝑁) → (𝐾𝑀) ≤ 𝑁)
3534exp31 356 . . . . . . . . . . . . . . 15 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (𝑀 ∈ ℕ0 → (𝐾𝑁 → (𝐾𝑀) ≤ 𝑁)))
3635a1i 9 . . . . . . . . . . . . . 14 (𝑁 ∈ ℕ0 → ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (𝑀 ∈ ℕ0 → (𝐾𝑁 → (𝐾𝑀) ≤ 𝑁))))
3736com14 87 . . . . . . . . . . . . 13 (𝐾𝑁 → ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (𝑀 ∈ ℕ0 → (𝑁 ∈ ℕ0 → (𝐾𝑀) ≤ 𝑁))))
3837adantl 271 . . . . . . . . . . . 12 ((𝑀𝐾𝐾𝑁) → ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (𝑀 ∈ ℕ0 → (𝑁 ∈ ℕ0 → (𝐾𝑀) ≤ 𝑁))))
3938impcom 123 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ (𝑀𝐾𝐾𝑁)) → (𝑀 ∈ ℕ0 → (𝑁 ∈ ℕ0 → (𝐾𝑀) ≤ 𝑁)))
4014, 39sylbi 119 . . . . . . . . . 10 (𝐾 ∈ (𝑀...𝑁) → (𝑀 ∈ ℕ0 → (𝑁 ∈ ℕ0 → (𝐾𝑀) ≤ 𝑁)))
4140com13 79 . . . . . . . . 9 (𝑁 ∈ ℕ0 → (𝑀 ∈ ℕ0 → (𝐾 ∈ (𝑀...𝑁) → (𝐾𝑀) ≤ 𝑁)))
4241impcom 123 . . . . . . . 8 ((𝑀 ∈ ℕ0𝑁 ∈ ℕ0) → (𝐾 ∈ (𝑀...𝑁) → (𝐾𝑀) ≤ 𝑁))
43423adant3 959 . . . . . . 7 ((𝑀 ∈ ℕ0𝑁 ∈ ℕ0𝑀𝑁) → (𝐾 ∈ (𝑀...𝑁) → (𝐾𝑀) ≤ 𝑁))
4413, 43sylbi 119 . . . . . 6 (𝑀 ∈ (0...𝑁) → (𝐾 ∈ (𝑀...𝑁) → (𝐾𝑀) ≤ 𝑁))
4544imp 122 . . . . 5 ((𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁)) → (𝐾𝑀) ≤ 𝑁)
4645adantl 271 . . . 4 ((𝐾 ∈ (0...𝑁) ∧ (𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁))) → (𝐾𝑀) ≤ 𝑁)
4710, 12, 463jca 1119 . . 3 ((𝐾 ∈ (0...𝑁) ∧ (𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁))) → ((𝐾𝑀) ∈ ℕ0𝑁 ∈ ℕ0 ∧ (𝐾𝑀) ≤ 𝑁))
481, 47mpancom 413 . 2 ((𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁)) → ((𝐾𝑀) ∈ ℕ0𝑁 ∈ ℕ0 ∧ (𝐾𝑀) ≤ 𝑁))
49 elfz2nn0 9257 . 2 ((𝐾𝑀) ∈ (0...𝑁) ↔ ((𝐾𝑀) ∈ ℕ0𝑁 ∈ ℕ0 ∧ (𝐾𝑀) ≤ 𝑁))
5048, 49sylibr 132 1 ((𝑀 ∈ (0...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁)) → (𝐾𝑀) ∈ (0...𝑁))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 102  wb 103  w3a 920  wcel 1434   class class class wbr 3805  (class class class)co 5563  cr 7094  0cc0 7095  cle 7268  cmin 7398  0cn0 8407  cz 8484  ...cfz 9157
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 577  ax-in2 578  ax-io 663  ax-5 1377  ax-7 1378  ax-gen 1379  ax-ie1 1423  ax-ie2 1424  ax-8 1436  ax-10 1437  ax-11 1438  ax-i12 1439  ax-bndl 1440  ax-4 1441  ax-13 1445  ax-14 1446  ax-17 1460  ax-i9 1464  ax-ial 1468  ax-i5r 1469  ax-ext 2065  ax-sep 3916  ax-pow 3968  ax-pr 3992  ax-un 4216  ax-setind 4308  ax-cnex 7181  ax-resscn 7182  ax-1cn 7183  ax-1re 7184  ax-icn 7185  ax-addcl 7186  ax-addrcl 7187  ax-mulcl 7188  ax-addcom 7190  ax-addass 7192  ax-distr 7194  ax-i2m1 7195  ax-0lt1 7196  ax-0id 7198  ax-rnegex 7199  ax-cnre 7201  ax-pre-ltirr 7202  ax-pre-ltwlin 7203  ax-pre-lttrn 7204  ax-pre-ltadd 7206
This theorem depends on definitions:  df-bi 115  df-3or 921  df-3an 922  df-tru 1288  df-fal 1291  df-nf 1391  df-sb 1688  df-eu 1946  df-mo 1947  df-clab 2070  df-cleq 2076  df-clel 2079  df-nfc 2212  df-ne 2250  df-nel 2345  df-ral 2358  df-rex 2359  df-reu 2360  df-rab 2362  df-v 2612  df-sbc 2825  df-dif 2984  df-un 2986  df-in 2988  df-ss 2995  df-pw 3402  df-sn 3422  df-pr 3423  df-op 3425  df-uni 3622  df-int 3657  df-br 3806  df-opab 3860  df-mpt 3861  df-id 4076  df-xp 4397  df-rel 4398  df-cnv 4399  df-co 4400  df-dm 4401  df-rn 4402  df-res 4403  df-ima 4404  df-iota 4917  df-fun 4954  df-fn 4955  df-f 4956  df-fv 4960  df-riota 5519  df-ov 5566  df-oprab 5567  df-mpt2 5568  df-pnf 7269  df-mnf 7270  df-xr 7271  df-ltxr 7272  df-le 7273  df-sub 7400  df-neg 7401  df-inn 8159  df-n0 8408  df-z 8485  df-uz 8753  df-fz 9158
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator