MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  divalglem10 Structured version   Visualization version   GIF version

Theorem divalglem10 15743
Description: Lemma for divalg 15744. (Contributed by Paul Chapman, 21-Mar-2011.) (Proof shortened by AV, 2-Oct-2020.)
Hypotheses
Ref Expression
divalglem8.1 𝑁 ∈ ℤ
divalglem8.2 𝐷 ∈ ℤ
divalglem8.3 𝐷 ≠ 0
divalglem8.4 𝑆 = {𝑟 ∈ ℕ0𝐷 ∥ (𝑁𝑟)}
Assertion
Ref Expression
divalglem10 ∃!𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))
Distinct variable groups:   𝐷,𝑞,𝑟   𝑁,𝑞,𝑟
Allowed substitution hints:   𝑆(𝑟,𝑞)

Proof of Theorem divalglem10
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 divalglem8.1 . . . 4 𝑁 ∈ ℤ
2 divalglem8.2 . . . 4 𝐷 ∈ ℤ
3 divalglem8.3 . . . 4 𝐷 ≠ 0
4 divalglem8.4 . . . 4 𝑆 = {𝑟 ∈ ℕ0𝐷 ∥ (𝑁𝑟)}
5 eqid 2798 . . . 4 inf(𝑆, ℝ, < ) = inf(𝑆, ℝ, < )
61, 2, 3, 4, 5divalglem9 15742 . . 3 ∃!𝑥𝑆 𝑥 < (abs‘𝐷)
7 elnn0z 11982 . . . . . . . . . 10 (𝑥 ∈ ℕ0 ↔ (𝑥 ∈ ℤ ∧ 0 ≤ 𝑥))
87anbi2i 625 . . . . . . . . 9 ((𝑥 < (abs‘𝐷) ∧ 𝑥 ∈ ℕ0) ↔ (𝑥 < (abs‘𝐷) ∧ (𝑥 ∈ ℤ ∧ 0 ≤ 𝑥)))
9 an12 644 . . . . . . . . . 10 ((𝑥 < (abs‘𝐷) ∧ (𝑥 ∈ ℤ ∧ 0 ≤ 𝑥)) ↔ (𝑥 ∈ ℤ ∧ (𝑥 < (abs‘𝐷) ∧ 0 ≤ 𝑥)))
10 ancom 464 . . . . . . . . . . 11 ((𝑥 < (abs‘𝐷) ∧ 0 ≤ 𝑥) ↔ (0 ≤ 𝑥𝑥 < (abs‘𝐷)))
1110anbi2i 625 . . . . . . . . . 10 ((𝑥 ∈ ℤ ∧ (𝑥 < (abs‘𝐷) ∧ 0 ≤ 𝑥)) ↔ (𝑥 ∈ ℤ ∧ (0 ≤ 𝑥𝑥 < (abs‘𝐷))))
129, 11bitri 278 . . . . . . . . 9 ((𝑥 < (abs‘𝐷) ∧ (𝑥 ∈ ℤ ∧ 0 ≤ 𝑥)) ↔ (𝑥 ∈ ℤ ∧ (0 ≤ 𝑥𝑥 < (abs‘𝐷))))
138, 12bitri 278 . . . . . . . 8 ((𝑥 < (abs‘𝐷) ∧ 𝑥 ∈ ℕ0) ↔ (𝑥 ∈ ℤ ∧ (0 ≤ 𝑥𝑥 < (abs‘𝐷))))
1413anbi1i 626 . . . . . . 7 (((𝑥 < (abs‘𝐷) ∧ 𝑥 ∈ ℕ0) ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ ((𝑥 ∈ ℤ ∧ (0 ≤ 𝑥𝑥 < (abs‘𝐷))) ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥)))
15 anass 472 . . . . . . 7 (((𝑥 ∈ ℤ ∧ (0 ≤ 𝑥𝑥 < (abs‘𝐷))) ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ (𝑥 ∈ ℤ ∧ ((0 ≤ 𝑥𝑥 < (abs‘𝐷)) ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥))))
1614, 15bitri 278 . . . . . 6 (((𝑥 < (abs‘𝐷) ∧ 𝑥 ∈ ℕ0) ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ (𝑥 ∈ ℤ ∧ ((0 ≤ 𝑥𝑥 < (abs‘𝐷)) ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥))))
17 oveq2 7143 . . . . . . . . . . 11 (𝑟 = 𝑥 → ((𝑞 · 𝐷) + 𝑟) = ((𝑞 · 𝐷) + 𝑥))
1817eqeq2d 2809 . . . . . . . . . 10 (𝑟 = 𝑥 → (𝑁 = ((𝑞 · 𝐷) + 𝑟) ↔ 𝑁 = ((𝑞 · 𝐷) + 𝑥)))
1918rexbidv 3256 . . . . . . . . 9 (𝑟 = 𝑥 → (∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑟) ↔ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥)))
201, 2, 3, 4divalglem4 15737 . . . . . . . . 9 𝑆 = {𝑟 ∈ ℕ0 ∣ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑟)}
2119, 20elrab2 3631 . . . . . . . 8 (𝑥𝑆 ↔ (𝑥 ∈ ℕ0 ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥)))
2221anbi2i 625 . . . . . . 7 ((𝑥 < (abs‘𝐷) ∧ 𝑥𝑆) ↔ (𝑥 < (abs‘𝐷) ∧ (𝑥 ∈ ℕ0 ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥))))
23 ancom 464 . . . . . . 7 ((𝑥𝑆𝑥 < (abs‘𝐷)) ↔ (𝑥 < (abs‘𝐷) ∧ 𝑥𝑆))
24 anass 472 . . . . . . 7 (((𝑥 < (abs‘𝐷) ∧ 𝑥 ∈ ℕ0) ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ (𝑥 < (abs‘𝐷) ∧ (𝑥 ∈ ℕ0 ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥))))
2522, 23, 243bitr4i 306 . . . . . 6 ((𝑥𝑆𝑥 < (abs‘𝐷)) ↔ ((𝑥 < (abs‘𝐷) ∧ 𝑥 ∈ ℕ0) ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥)))
26 df-3an 1086 . . . . . . . . 9 ((0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ ((0 ≤ 𝑥𝑥 < (abs‘𝐷)) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥)))
2726rexbii 3210 . . . . . . . 8 (∃𝑞 ∈ ℤ (0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ ∃𝑞 ∈ ℤ ((0 ≤ 𝑥𝑥 < (abs‘𝐷)) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥)))
28 r19.42v 3303 . . . . . . . 8 (∃𝑞 ∈ ℤ ((0 ≤ 𝑥𝑥 < (abs‘𝐷)) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ ((0 ≤ 𝑥𝑥 < (abs‘𝐷)) ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥)))
2927, 28bitri 278 . . . . . . 7 (∃𝑞 ∈ ℤ (0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ ((0 ≤ 𝑥𝑥 < (abs‘𝐷)) ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥)))
3029anbi2i 625 . . . . . 6 ((𝑥 ∈ ℤ ∧ ∃𝑞 ∈ ℤ (0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥))) ↔ (𝑥 ∈ ℤ ∧ ((0 ≤ 𝑥𝑥 < (abs‘𝐷)) ∧ ∃𝑞 ∈ ℤ 𝑁 = ((𝑞 · 𝐷) + 𝑥))))
3116, 25, 303bitr4i 306 . . . . 5 ((𝑥𝑆𝑥 < (abs‘𝐷)) ↔ (𝑥 ∈ ℤ ∧ ∃𝑞 ∈ ℤ (0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥))))
3231eubii 2645 . . . 4 (∃!𝑥(𝑥𝑆𝑥 < (abs‘𝐷)) ↔ ∃!𝑥(𝑥 ∈ ℤ ∧ ∃𝑞 ∈ ℤ (0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥))))
33 df-reu 3113 . . . 4 (∃!𝑥𝑆 𝑥 < (abs‘𝐷) ↔ ∃!𝑥(𝑥𝑆𝑥 < (abs‘𝐷)))
34 df-reu 3113 . . . 4 (∃!𝑥 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ ∃!𝑥(𝑥 ∈ ℤ ∧ ∃𝑞 ∈ ℤ (0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥))))
3532, 33, 343bitr4i 306 . . 3 (∃!𝑥𝑆 𝑥 < (abs‘𝐷) ↔ ∃!𝑥 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥)))
366, 35mpbi 233 . 2 ∃!𝑥 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥))
37 breq2 5034 . . . . 5 (𝑥 = 𝑟 → (0 ≤ 𝑥 ↔ 0 ≤ 𝑟))
38 breq1 5033 . . . . 5 (𝑥 = 𝑟 → (𝑥 < (abs‘𝐷) ↔ 𝑟 < (abs‘𝐷)))
39 oveq2 7143 . . . . . 6 (𝑥 = 𝑟 → ((𝑞 · 𝐷) + 𝑥) = ((𝑞 · 𝐷) + 𝑟))
4039eqeq2d 2809 . . . . 5 (𝑥 = 𝑟 → (𝑁 = ((𝑞 · 𝐷) + 𝑥) ↔ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))
4137, 38, 403anbi123d 1433 . . . 4 (𝑥 = 𝑟 → ((0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))))
4241rexbidv 3256 . . 3 (𝑥 = 𝑟 → (∃𝑞 ∈ ℤ (0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))))
4342cbvreuvw 3398 . 2 (∃!𝑥 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑥𝑥 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑥)) ↔ ∃!𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))
4436, 43mpbi 233 1 ∃!𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟))
Colors of variables: wff setvar class
Syntax hints:  wa 399  w3a 1084   = wceq 1538  wcel 2111  ∃!weu 2628  wne 2987  wrex 3107  ∃!wreu 3108  {crab 3110   class class class wbr 5030  cfv 6324  (class class class)co 7135  infcinf 8889  cr 10525  0cc0 10526   + caddc 10529   · cmul 10531   < clt 10664  cle 10665  cmin 10859  0cn0 11885  cz 11969  abscabs 14585  cdvds 15599
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603  ax-pre-sup 10604
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rmo 3114  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-1st 7671  df-2nd 7672  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-er 8272  df-en 8493  df-dom 8494  df-sdom 8495  df-sup 8890  df-inf 8891  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-div 11287  df-nn 11626  df-2 11688  df-3 11689  df-n0 11886  df-z 11970  df-uz 12232  df-rp 12378  df-fz 12886  df-seq 13365  df-exp 13426  df-cj 14450  df-re 14451  df-im 14452  df-sqrt 14586  df-abs 14587  df-dvds 15600
This theorem is referenced by:  divalg  15744
  Copyright terms: Public domain W3C validator