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

Theorem quoremnn0ALT 13827
Description: Alternate proof of quoremnn0 13826 not using quoremz 13825. TODO - Keep either quoremnn0ALT 13827 (if we don't keep quoremz 13825) or quoremnn0 13826? (Contributed by NM, 14-Aug-2008.) (Proof modification is discouraged.) (New usage is discouraged.)
Hypotheses
Ref Expression
quorem.1 ๐‘„ = (โŒŠโ€˜(๐ด / ๐ต))
quorem.2 ๐‘… = (๐ด โˆ’ (๐ต ยท ๐‘„))
Assertion
Ref Expression
quoremnn0ALT ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ((๐‘„ โˆˆ โ„•0 โˆง ๐‘… โˆˆ โ„•0) โˆง (๐‘… < ๐ต โˆง ๐ด = ((๐ต ยท ๐‘„) + ๐‘…))))

Proof of Theorem quoremnn0ALT
StepHypRef Expression
1 quorem.1 . . 3 ๐‘„ = (โŒŠโ€˜(๐ด / ๐ต))
2 fldivnn0 13792 . . 3 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (โŒŠโ€˜(๐ด / ๐ต)) โˆˆ โ„•0)
31, 2eqeltrid 2836 . 2 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐‘„ โˆˆ โ„•0)
4 quorem.2 . . 3 ๐‘… = (๐ด โˆ’ (๐ต ยท ๐‘„))
5 nnnn0 12484 . . . . . 6 (๐ต โˆˆ โ„• โ†’ ๐ต โˆˆ โ„•0)
65adantl 481 . . . . 5 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐ต โˆˆ โ„•0)
76, 3nn0mulcld 12542 . . . 4 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐ต ยท ๐‘„) โˆˆ โ„•0)
8 simpl 482 . . . 4 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐ด โˆˆ โ„•0)
93nn0cnd 12539 . . . . . . 7 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐‘„ โˆˆ โ„‚)
10 nncn 12225 . . . . . . . 8 (๐ต โˆˆ โ„• โ†’ ๐ต โˆˆ โ„‚)
1110adantl 481 . . . . . . 7 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐ต โˆˆ โ„‚)
12 nnne0 12251 . . . . . . . 8 (๐ต โˆˆ โ„• โ†’ ๐ต โ‰  0)
1312adantl 481 . . . . . . 7 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐ต โ‰  0)
149, 11, 13divcan3d 12000 . . . . . 6 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ((๐ต ยท ๐‘„) / ๐ต) = ๐‘„)
15 nn0nndivcl 12548 . . . . . . . 8 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐ด / ๐ต) โˆˆ โ„)
16 flle 13769 . . . . . . . 8 ((๐ด / ๐ต) โˆˆ โ„ โ†’ (โŒŠโ€˜(๐ด / ๐ต)) โ‰ค (๐ด / ๐ต))
1715, 16syl 17 . . . . . . 7 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (โŒŠโ€˜(๐ด / ๐ต)) โ‰ค (๐ด / ๐ต))
181, 17eqbrtrid 5184 . . . . . 6 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐‘„ โ‰ค (๐ด / ๐ต))
1914, 18eqbrtrd 5171 . . . . 5 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ((๐ต ยท ๐‘„) / ๐ต) โ‰ค (๐ด / ๐ต))
207nn0red 12538 . . . . . 6 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐ต ยท ๐‘„) โˆˆ โ„)
21 nn0re 12486 . . . . . . 7 (๐ด โˆˆ โ„•0 โ†’ ๐ด โˆˆ โ„)
2221adantr 480 . . . . . 6 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐ด โˆˆ โ„)
23 nnre 12224 . . . . . . 7 (๐ต โˆˆ โ„• โ†’ ๐ต โˆˆ โ„)
2423adantl 481 . . . . . 6 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐ต โˆˆ โ„)
25 nngt0 12248 . . . . . . 7 (๐ต โˆˆ โ„• โ†’ 0 < ๐ต)
2625adantl 481 . . . . . 6 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ 0 < ๐ต)
27 lediv1 12084 . . . . . 6 (((๐ต ยท ๐‘„) โˆˆ โ„ โˆง ๐ด โˆˆ โ„ โˆง (๐ต โˆˆ โ„ โˆง 0 < ๐ต)) โ†’ ((๐ต ยท ๐‘„) โ‰ค ๐ด โ†” ((๐ต ยท ๐‘„) / ๐ต) โ‰ค (๐ด / ๐ต)))
2820, 22, 24, 26, 27syl112anc 1373 . . . . 5 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ((๐ต ยท ๐‘„) โ‰ค ๐ด โ†” ((๐ต ยท ๐‘„) / ๐ต) โ‰ค (๐ด / ๐ต)))
2919, 28mpbird 256 . . . 4 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐ต ยท ๐‘„) โ‰ค ๐ด)
30 nn0sub2 12628 . . . 4 (((๐ต ยท ๐‘„) โˆˆ โ„•0 โˆง ๐ด โˆˆ โ„•0 โˆง (๐ต ยท ๐‘„) โ‰ค ๐ด) โ†’ (๐ด โˆ’ (๐ต ยท ๐‘„)) โˆˆ โ„•0)
317, 8, 29, 30syl3anc 1370 . . 3 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐ด โˆ’ (๐ต ยท ๐‘„)) โˆˆ โ„•0)
324, 31eqeltrid 2836 . 2 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐‘… โˆˆ โ„•0)
331oveq2i 7423 . . . . . 6 ((๐ด / ๐ต) โˆ’ ๐‘„) = ((๐ด / ๐ต) โˆ’ (โŒŠโ€˜(๐ด / ๐ต)))
34 fraclt1 13772 . . . . . . 7 ((๐ด / ๐ต) โˆˆ โ„ โ†’ ((๐ด / ๐ต) โˆ’ (โŒŠโ€˜(๐ด / ๐ต))) < 1)
3515, 34syl 17 . . . . . 6 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ((๐ด / ๐ต) โˆ’ (โŒŠโ€˜(๐ด / ๐ต))) < 1)
3633, 35eqbrtrid 5184 . . . . 5 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ((๐ด / ๐ต) โˆ’ ๐‘„) < 1)
374oveq1i 7422 . . . . . 6 (๐‘… / ๐ต) = ((๐ด โˆ’ (๐ต ยท ๐‘„)) / ๐ต)
38 nn0cn 12487 . . . . . . . . 9 (๐ด โˆˆ โ„•0 โ†’ ๐ด โˆˆ โ„‚)
3938adantr 480 . . . . . . . 8 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐ด โˆˆ โ„‚)
407nn0cnd 12539 . . . . . . . 8 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐ต ยท ๐‘„) โˆˆ โ„‚)
4110, 12jca 511 . . . . . . . . 9 (๐ต โˆˆ โ„• โ†’ (๐ต โˆˆ โ„‚ โˆง ๐ต โ‰  0))
4241adantl 481 . . . . . . . 8 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐ต โˆˆ โ„‚ โˆง ๐ต โ‰  0))
43 divsubdir 11913 . . . . . . . 8 ((๐ด โˆˆ โ„‚ โˆง (๐ต ยท ๐‘„) โˆˆ โ„‚ โˆง (๐ต โˆˆ โ„‚ โˆง ๐ต โ‰  0)) โ†’ ((๐ด โˆ’ (๐ต ยท ๐‘„)) / ๐ต) = ((๐ด / ๐ต) โˆ’ ((๐ต ยท ๐‘„) / ๐ต)))
4439, 40, 42, 43syl3anc 1370 . . . . . . 7 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ((๐ด โˆ’ (๐ต ยท ๐‘„)) / ๐ต) = ((๐ด / ๐ต) โˆ’ ((๐ต ยท ๐‘„) / ๐ต)))
4514oveq2d 7428 . . . . . . 7 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ((๐ด / ๐ต) โˆ’ ((๐ต ยท ๐‘„) / ๐ต)) = ((๐ด / ๐ต) โˆ’ ๐‘„))
4644, 45eqtrd 2771 . . . . . 6 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ((๐ด โˆ’ (๐ต ยท ๐‘„)) / ๐ต) = ((๐ด / ๐ต) โˆ’ ๐‘„))
4737, 46eqtrid 2783 . . . . 5 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐‘… / ๐ต) = ((๐ด / ๐ต) โˆ’ ๐‘„))
4810, 12dividd 11993 . . . . . 6 (๐ต โˆˆ โ„• โ†’ (๐ต / ๐ต) = 1)
4948adantl 481 . . . . 5 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐ต / ๐ต) = 1)
5036, 47, 493brtr4d 5181 . . . 4 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐‘… / ๐ต) < (๐ต / ๐ต))
5132nn0red 12538 . . . . 5 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐‘… โˆˆ โ„)
52 ltdiv1 12083 . . . . 5 ((๐‘… โˆˆ โ„ โˆง ๐ต โˆˆ โ„ โˆง (๐ต โˆˆ โ„ โˆง 0 < ๐ต)) โ†’ (๐‘… < ๐ต โ†” (๐‘… / ๐ต) < (๐ต / ๐ต)))
5351, 24, 24, 26, 52syl112anc 1373 . . . 4 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐‘… < ๐ต โ†” (๐‘… / ๐ต) < (๐ต / ๐ต)))
5450, 53mpbird 256 . . 3 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐‘… < ๐ต)
554oveq2i 7423 . . . 4 ((๐ต ยท ๐‘„) + ๐‘…) = ((๐ต ยท ๐‘„) + (๐ด โˆ’ (๐ต ยท ๐‘„)))
5640, 39pncan3d 11579 . . . 4 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ((๐ต ยท ๐‘„) + (๐ด โˆ’ (๐ต ยท ๐‘„))) = ๐ด)
5755, 56eqtr2id 2784 . . 3 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ๐ด = ((๐ต ยท ๐‘„) + ๐‘…))
5854, 57jca 511 . 2 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ (๐‘… < ๐ต โˆง ๐ด = ((๐ต ยท ๐‘„) + ๐‘…)))
593, 32, 58jca31 514 1 ((๐ด โˆˆ โ„•0 โˆง ๐ต โˆˆ โ„•) โ†’ ((๐‘„ โˆˆ โ„•0 โˆง ๐‘… โˆˆ โ„•0) โˆง (๐‘… < ๐ต โˆง ๐ด = ((๐ต ยท ๐‘„) + ๐‘…))))
Colors of variables: wff setvar class
Syntax hints:   โ†’ wi 4   โ†” wb 205   โˆง wa 395   = wceq 1540   โˆˆ wcel 2105   โ‰  wne 2939   class class class wbr 5149  โ€˜cfv 6544  (class class class)co 7412  โ„‚cc 11111  โ„cr 11112  0cc0 11113  1c1 11114   + caddc 11116   ยท cmul 11118   < clt 11253   โ‰ค cle 11254   โˆ’ cmin 11449   / cdiv 11876  โ„•cn 12217  โ„•0cn0 12477  โŒŠcfl 13760
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2702  ax-sep 5300  ax-nul 5307  ax-pow 5364  ax-pr 5428  ax-un 7728  ax-cnex 11169  ax-resscn 11170  ax-1cn 11171  ax-icn 11172  ax-addcl 11173  ax-addrcl 11174  ax-mulcl 11175  ax-mulrcl 11176  ax-mulcom 11177  ax-addass 11178  ax-mulass 11179  ax-distr 11180  ax-i2m1 11181  ax-1ne0 11182  ax-1rid 11183  ax-rnegex 11184  ax-rrecex 11185  ax-cnre 11186  ax-pre-lttri 11187  ax-pre-lttrn 11188  ax-pre-ltadd 11189  ax-pre-mulgt0 11190  ax-pre-sup 11191
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 845  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2533  df-eu 2562  df-clab 2709  df-cleq 2723  df-clel 2809  df-nfc 2884  df-ne 2940  df-nel 3046  df-ral 3061  df-rex 3070  df-rmo 3375  df-reu 3376  df-rab 3432  df-v 3475  df-sbc 3779  df-csb 3895  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-pss 3968  df-nul 4324  df-if 4530  df-pw 4605  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-iun 5000  df-br 5150  df-opab 5212  df-mpt 5233  df-tr 5267  df-id 5575  df-eprel 5581  df-po 5589  df-so 5590  df-fr 5632  df-we 5634  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-pred 6301  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6496  df-fun 6546  df-fn 6547  df-f 6548  df-f1 6549  df-fo 6550  df-f1o 6551  df-fv 6552  df-riota 7368  df-ov 7415  df-oprab 7416  df-mpo 7417  df-om 7859  df-2nd 7979  df-frecs 8269  df-wrecs 8300  df-recs 8374  df-rdg 8413  df-er 8706  df-en 8943  df-dom 8944  df-sdom 8945  df-sup 9440  df-inf 9441  df-pnf 11255  df-mnf 11256  df-xr 11257  df-ltxr 11258  df-le 11259  df-sub 11451  df-neg 11452  df-div 11877  df-nn 12218  df-n0 12478  df-z 12564  df-uz 12828  df-fl 13762
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator