![]() |
Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
|
Mirrors > Home > MPE Home > Th. List > numltc | Structured version Visualization version GIF version |
Description: Comparing two decimal integers (unequal higher places). (Contributed by Mario Carneiro, 18-Feb-2014.) |
Ref | Expression |
---|---|
numlt.1 | ⊢ 𝑇 ∈ ℕ |
numlt.2 | ⊢ 𝐴 ∈ ℕ0 |
numlt.3 | ⊢ 𝐵 ∈ ℕ0 |
numltc.3 | ⊢ 𝐶 ∈ ℕ0 |
numltc.4 | ⊢ 𝐷 ∈ ℕ0 |
numltc.5 | ⊢ 𝐶 < 𝑇 |
numltc.6 | ⊢ 𝐴 < 𝐵 |
Ref | Expression |
---|---|
numltc | ⊢ ((𝑇 · 𝐴) + 𝐶) < ((𝑇 · 𝐵) + 𝐷) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | numlt.1 | . . . . 5 ⊢ 𝑇 ∈ ℕ | |
2 | numlt.2 | . . . . 5 ⊢ 𝐴 ∈ ℕ0 | |
3 | numltc.3 | . . . . 5 ⊢ 𝐶 ∈ ℕ0 | |
4 | numltc.5 | . . . . 5 ⊢ 𝐶 < 𝑇 | |
5 | 1, 2, 3, 1, 4 | numlt 11930 | . . . 4 ⊢ ((𝑇 · 𝐴) + 𝐶) < ((𝑇 · 𝐴) + 𝑇) |
6 | 1 | nnrei 11441 | . . . . . . 7 ⊢ 𝑇 ∈ ℝ |
7 | 6 | recni 10446 | . . . . . 6 ⊢ 𝑇 ∈ ℂ |
8 | 2 | nn0rei 11712 | . . . . . . 7 ⊢ 𝐴 ∈ ℝ |
9 | 8 | recni 10446 | . . . . . 6 ⊢ 𝐴 ∈ ℂ |
10 | ax-1cn 10385 | . . . . . 6 ⊢ 1 ∈ ℂ | |
11 | 7, 9, 10 | adddii 10444 | . . . . 5 ⊢ (𝑇 · (𝐴 + 1)) = ((𝑇 · 𝐴) + (𝑇 · 1)) |
12 | 7 | mulid1i 10436 | . . . . . 6 ⊢ (𝑇 · 1) = 𝑇 |
13 | 12 | oveq2i 6981 | . . . . 5 ⊢ ((𝑇 · 𝐴) + (𝑇 · 1)) = ((𝑇 · 𝐴) + 𝑇) |
14 | 11, 13 | eqtri 2796 | . . . 4 ⊢ (𝑇 · (𝐴 + 1)) = ((𝑇 · 𝐴) + 𝑇) |
15 | 5, 14 | breqtrri 4950 | . . 3 ⊢ ((𝑇 · 𝐴) + 𝐶) < (𝑇 · (𝐴 + 1)) |
16 | numltc.6 | . . . . 5 ⊢ 𝐴 < 𝐵 | |
17 | numlt.3 | . . . . . 6 ⊢ 𝐵 ∈ ℕ0 | |
18 | nn0ltp1le 11846 | . . . . . 6 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → (𝐴 < 𝐵 ↔ (𝐴 + 1) ≤ 𝐵)) | |
19 | 2, 17, 18 | mp2an 679 | . . . . 5 ⊢ (𝐴 < 𝐵 ↔ (𝐴 + 1) ≤ 𝐵) |
20 | 16, 19 | mpbi 222 | . . . 4 ⊢ (𝐴 + 1) ≤ 𝐵 |
21 | 1 | nngt0i 11472 | . . . . 5 ⊢ 0 < 𝑇 |
22 | peano2re 10605 | . . . . . . 7 ⊢ (𝐴 ∈ ℝ → (𝐴 + 1) ∈ ℝ) | |
23 | 8, 22 | ax-mp 5 | . . . . . 6 ⊢ (𝐴 + 1) ∈ ℝ |
24 | 17 | nn0rei 11712 | . . . . . 6 ⊢ 𝐵 ∈ ℝ |
25 | 23, 24, 6 | lemul2i 11356 | . . . . 5 ⊢ (0 < 𝑇 → ((𝐴 + 1) ≤ 𝐵 ↔ (𝑇 · (𝐴 + 1)) ≤ (𝑇 · 𝐵))) |
26 | 21, 25 | ax-mp 5 | . . . 4 ⊢ ((𝐴 + 1) ≤ 𝐵 ↔ (𝑇 · (𝐴 + 1)) ≤ (𝑇 · 𝐵)) |
27 | 20, 26 | mpbi 222 | . . 3 ⊢ (𝑇 · (𝐴 + 1)) ≤ (𝑇 · 𝐵) |
28 | 6, 8 | remulcli 10448 | . . . . 5 ⊢ (𝑇 · 𝐴) ∈ ℝ |
29 | 3 | nn0rei 11712 | . . . . 5 ⊢ 𝐶 ∈ ℝ |
30 | 28, 29 | readdcli 10447 | . . . 4 ⊢ ((𝑇 · 𝐴) + 𝐶) ∈ ℝ |
31 | 6, 23 | remulcli 10448 | . . . 4 ⊢ (𝑇 · (𝐴 + 1)) ∈ ℝ |
32 | 6, 24 | remulcli 10448 | . . . 4 ⊢ (𝑇 · 𝐵) ∈ ℝ |
33 | 30, 31, 32 | ltletri 10560 | . . 3 ⊢ ((((𝑇 · 𝐴) + 𝐶) < (𝑇 · (𝐴 + 1)) ∧ (𝑇 · (𝐴 + 1)) ≤ (𝑇 · 𝐵)) → ((𝑇 · 𝐴) + 𝐶) < (𝑇 · 𝐵)) |
34 | 15, 27, 33 | mp2an 679 | . 2 ⊢ ((𝑇 · 𝐴) + 𝐶) < (𝑇 · 𝐵) |
35 | numltc.4 | . . 3 ⊢ 𝐷 ∈ ℕ0 | |
36 | 32, 35 | nn0addge1i 11750 | . 2 ⊢ (𝑇 · 𝐵) ≤ ((𝑇 · 𝐵) + 𝐷) |
37 | 35 | nn0rei 11712 | . . . 4 ⊢ 𝐷 ∈ ℝ |
38 | 32, 37 | readdcli 10447 | . . 3 ⊢ ((𝑇 · 𝐵) + 𝐷) ∈ ℝ |
39 | 30, 32, 38 | ltletri 10560 | . 2 ⊢ ((((𝑇 · 𝐴) + 𝐶) < (𝑇 · 𝐵) ∧ (𝑇 · 𝐵) ≤ ((𝑇 · 𝐵) + 𝐷)) → ((𝑇 · 𝐴) + 𝐶) < ((𝑇 · 𝐵) + 𝐷)) |
40 | 34, 36, 39 | mp2an 679 | 1 ⊢ ((𝑇 · 𝐴) + 𝐶) < ((𝑇 · 𝐵) + 𝐷) |
Colors of variables: wff setvar class |
Syntax hints: ↔ wb 198 ∈ wcel 2048 class class class wbr 4923 (class class class)co 6970 ℝcr 10326 0cc0 10327 1c1 10328 + caddc 10330 · cmul 10332 < clt 10466 ≤ cle 10467 ℕcn 11431 ℕ0cn0 11700 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1758 ax-4 1772 ax-5 1869 ax-6 1928 ax-7 1964 ax-8 2050 ax-9 2057 ax-10 2077 ax-11 2091 ax-12 2104 ax-13 2299 ax-ext 2745 ax-sep 5054 ax-nul 5061 ax-pow 5113 ax-pr 5180 ax-un 7273 ax-resscn 10384 ax-1cn 10385 ax-icn 10386 ax-addcl 10387 ax-addrcl 10388 ax-mulcl 10389 ax-mulrcl 10390 ax-mulcom 10391 ax-addass 10392 ax-mulass 10393 ax-distr 10394 ax-i2m1 10395 ax-1ne0 10396 ax-1rid 10397 ax-rnegex 10398 ax-rrecex 10399 ax-cnre 10400 ax-pre-lttri 10401 ax-pre-lttrn 10402 ax-pre-ltadd 10403 ax-pre-mulgt0 10404 |
This theorem depends on definitions: df-bi 199 df-an 388 df-or 834 df-3or 1069 df-3an 1070 df-tru 1510 df-ex 1743 df-nf 1747 df-sb 2014 df-mo 2544 df-eu 2580 df-clab 2754 df-cleq 2765 df-clel 2840 df-nfc 2912 df-ne 2962 df-nel 3068 df-ral 3087 df-rex 3088 df-reu 3089 df-rab 3091 df-v 3411 df-sbc 3678 df-csb 3783 df-dif 3828 df-un 3830 df-in 3832 df-ss 3839 df-pss 3841 df-nul 4174 df-if 4345 df-pw 4418 df-sn 4436 df-pr 4438 df-tp 4440 df-op 4442 df-uni 4707 df-iun 4788 df-br 4924 df-opab 4986 df-mpt 5003 df-tr 5025 df-id 5305 df-eprel 5310 df-po 5319 df-so 5320 df-fr 5359 df-we 5361 df-xp 5406 df-rel 5407 df-cnv 5408 df-co 5409 df-dm 5410 df-rn 5411 df-res 5412 df-ima 5413 df-pred 5980 df-ord 6026 df-on 6027 df-lim 6028 df-suc 6029 df-iota 6146 df-fun 6184 df-fn 6185 df-f 6186 df-f1 6187 df-fo 6188 df-f1o 6189 df-fv 6190 df-riota 6931 df-ov 6973 df-oprab 6974 df-mpo 6975 df-om 7391 df-wrecs 7743 df-recs 7805 df-rdg 7843 df-er 8081 df-en 8299 df-dom 8300 df-sdom 8301 df-pnf 10468 df-mnf 10469 df-xr 10470 df-ltxr 10471 df-le 10472 df-sub 10664 df-neg 10665 df-nn 11432 df-n0 11701 df-z 11787 |
This theorem is referenced by: decltc 11934 numlti 11942 |
Copyright terms: Public domain | W3C validator |