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

Theorem fz0to4untppr 13499
Description: An integer range from 0 to 4 is the union of a triple and a pair. (Contributed by Alexander van der Vekens, 13-Aug-2017.)
Assertion
Ref Expression
fz0to4untppr (0...4) = ({0, 1, 2} ∪ {3, 4})

Proof of Theorem fz0to4untppr
StepHypRef Expression
1 df-3 12176 . . . . 5 3 = (2 + 1)
2 2cn 12187 . . . . . . . 8 2 ∈ ℂ
32addid2i 11302 . . . . . . 7 (0 + 2) = 2
43eqcomi 2747 . . . . . 6 2 = (0 + 2)
54oveq1i 7362 . . . . 5 (2 + 1) = ((0 + 2) + 1)
61, 5eqtri 2766 . . . 4 3 = ((0 + 2) + 1)
7 3z 12495 . . . . 5 3 ∈ ℤ
8 0re 11116 . . . . . 6 0 ∈ ℝ
9 3re 12192 . . . . . 6 3 ∈ ℝ
10 3pos 12217 . . . . . 6 0 < 3
118, 9, 10ltleii 11237 . . . . 5 0 ≤ 3
12 0z 12469 . . . . . 6 0 ∈ ℤ
1312eluz1i 12730 . . . . 5 (3 ∈ (ℤ‘0) ↔ (3 ∈ ℤ ∧ 0 ≤ 3))
147, 11, 13mpbir2an 710 . . . 4 3 ∈ (ℤ‘0)
156, 14eqeltrri 2836 . . 3 ((0 + 2) + 1) ∈ (ℤ‘0)
16 4z 12496 . . . . 5 4 ∈ ℤ
17 2re 12186 . . . . . 6 2 ∈ ℝ
18 4re 12196 . . . . . 6 4 ∈ ℝ
19 2lt4 12287 . . . . . 6 2 < 4
2017, 18, 19ltleii 11237 . . . . 5 2 ≤ 4
21 2z 12494 . . . . . 6 2 ∈ ℤ
2221eluz1i 12730 . . . . 5 (4 ∈ (ℤ‘2) ↔ (4 ∈ ℤ ∧ 2 ≤ 4))
2316, 20, 22mpbir2an 710 . . . 4 4 ∈ (ℤ‘2)
244fveq2i 6843 . . . 4 (ℤ‘2) = (ℤ‘(0 + 2))
2523, 24eleqtri 2837 . . 3 4 ∈ (ℤ‘(0 + 2))
26 fzsplit2 13421 . . 3 ((((0 + 2) + 1) ∈ (ℤ‘0) ∧ 4 ∈ (ℤ‘(0 + 2))) → (0...4) = ((0...(0 + 2)) ∪ (((0 + 2) + 1)...4)))
2715, 25, 26mp2an 691 . 2 (0...4) = ((0...(0 + 2)) ∪ (((0 + 2) + 1)...4))
28 fztp 13452 . . . . 5 (0 ∈ ℤ → (0...(0 + 2)) = {0, (0 + 1), (0 + 2)})
2912, 28ax-mp 5 . . . 4 (0...(0 + 2)) = {0, (0 + 1), (0 + 2)}
30 ax-1cn 11068 . . . . 5 1 ∈ ℂ
31 eqidd 2739 . . . . . 6 (1 ∈ ℂ → 0 = 0)
32 addid2 11297 . . . . . 6 (1 ∈ ℂ → (0 + 1) = 1)
333a1i 11 . . . . . 6 (1 ∈ ℂ → (0 + 2) = 2)
3431, 32, 33tpeq123d 4708 . . . . 5 (1 ∈ ℂ → {0, (0 + 1), (0 + 2)} = {0, 1, 2})
3530, 34ax-mp 5 . . . 4 {0, (0 + 1), (0 + 2)} = {0, 1, 2}
3629, 35eqtri 2766 . . 3 (0...(0 + 2)) = {0, 1, 2}
373a1i 11 . . . . . . . 8 (3 ∈ ℤ → (0 + 2) = 2)
3837oveq1d 7367 . . . . . . 7 (3 ∈ ℤ → ((0 + 2) + 1) = (2 + 1))
3938, 1eqtr4di 2796 . . . . . 6 (3 ∈ ℤ → ((0 + 2) + 1) = 3)
4039oveq1d 7367 . . . . 5 (3 ∈ ℤ → (((0 + 2) + 1)...4) = (3...4))
41 eqid 2738 . . . . . . . . . 10 3 = 3
42 df-4 12177 . . . . . . . . . 10 4 = (3 + 1)
4341, 42pm3.2i 472 . . . . . . . . 9 (3 = 3 ∧ 4 = (3 + 1))
4443a1i 11 . . . . . . . 8 (3 ∈ ℤ → (3 = 3 ∧ 4 = (3 + 1)))
45 3lt4 12286 . . . . . . . . . . 11 3 < 4
469, 18, 45ltleii 11237 . . . . . . . . . 10 3 ≤ 4
477eluz1i 12730 . . . . . . . . . 10 (4 ∈ (ℤ‘3) ↔ (4 ∈ ℤ ∧ 3 ≤ 4))
4816, 46, 47mpbir2an 710 . . . . . . . . 9 4 ∈ (ℤ‘3)
49 fzopth 13433 . . . . . . . . 9 (4 ∈ (ℤ‘3) → ((3...4) = (3...(3 + 1)) ↔ (3 = 3 ∧ 4 = (3 + 1))))
5048, 49ax-mp 5 . . . . . . . 8 ((3...4) = (3...(3 + 1)) ↔ (3 = 3 ∧ 4 = (3 + 1)))
5144, 50sylibr 233 . . . . . . 7 (3 ∈ ℤ → (3...4) = (3...(3 + 1)))
52 fzpr 13451 . . . . . . 7 (3 ∈ ℤ → (3...(3 + 1)) = {3, (3 + 1)})
5351, 52eqtrd 2778 . . . . . 6 (3 ∈ ℤ → (3...4) = {3, (3 + 1)})
5442eqcomi 2747 . . . . . . 7 (3 + 1) = 4
5554preq2i 4697 . . . . . 6 {3, (3 + 1)} = {3, 4}
5653, 55eqtrdi 2794 . . . . 5 (3 ∈ ℤ → (3...4) = {3, 4})
5740, 56eqtrd 2778 . . . 4 (3 ∈ ℤ → (((0 + 2) + 1)...4) = {3, 4})
587, 57ax-mp 5 . . 3 (((0 + 2) + 1)...4) = {3, 4}
5936, 58uneq12i 4120 . 2 ((0...(0 + 2)) ∪ (((0 + 2) + 1)...4)) = ({0, 1, 2} ∪ {3, 4})
6027, 59eqtri 2766 1 (0...4) = ({0, 1, 2} ∪ {3, 4})
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 397   = wceq 1542  wcel 2107  cun 3907  {cpr 4587  {ctp 4589   class class class wbr 5104  cfv 6494  (class class class)co 7352  cc 11008  0cc0 11010  1c1 11011   + caddc 11013  cle 11149  2c2 12167  3c3 12168  4c4 12169  cz 12458  cuz 12722  ...cfz 13379
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2709  ax-sep 5255  ax-nul 5262  ax-pow 5319  ax-pr 5383  ax-un 7665  ax-cnex 11066  ax-resscn 11067  ax-1cn 11068  ax-icn 11069  ax-addcl 11070  ax-addrcl 11071  ax-mulcl 11072  ax-mulrcl 11073  ax-mulcom 11074  ax-addass 11075  ax-mulass 11076  ax-distr 11077  ax-i2m1 11078  ax-1ne0 11079  ax-1rid 11080  ax-rnegex 11081  ax-rrecex 11082  ax-cnre 11083  ax-pre-lttri 11084  ax-pre-lttrn 11085  ax-pre-ltadd 11086  ax-pre-mulgt0 11087
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3064  df-rex 3073  df-reu 3353  df-rab 3407  df-v 3446  df-sbc 3739  df-csb 3855  df-dif 3912  df-un 3914  df-in 3916  df-ss 3926  df-pss 3928  df-nul 4282  df-if 4486  df-pw 4561  df-sn 4586  df-pr 4588  df-tp 4590  df-op 4592  df-uni 4865  df-iun 4955  df-br 5105  df-opab 5167  df-mpt 5188  df-tr 5222  df-id 5530  df-eprel 5536  df-po 5544  df-so 5545  df-fr 5587  df-we 5589  df-xp 5638  df-rel 5639  df-cnv 5640  df-co 5641  df-dm 5642  df-rn 5643  df-res 5644  df-ima 5645  df-pred 6252  df-ord 6319  df-on 6320  df-lim 6321  df-suc 6322  df-iota 6446  df-fun 6496  df-fn 6497  df-f 6498  df-f1 6499  df-fo 6500  df-f1o 6501  df-fv 6502  df-riota 7308  df-ov 7355  df-oprab 7356  df-mpo 7357  df-om 7796  df-1st 7914  df-2nd 7915  df-frecs 8205  df-wrecs 8236  df-recs 8310  df-rdg 8349  df-er 8607  df-en 8843  df-dom 8844  df-sdom 8845  df-pnf 11150  df-mnf 11151  df-xr 11152  df-ltxr 11153  df-le 11154  df-sub 11346  df-neg 11347  df-nn 12113  df-2 12175  df-3 12176  df-4 12177  df-n0 12373  df-z 12459  df-uz 12723  df-fz 13380
This theorem is referenced by:  prm23lt5  16646  usgrexmplvtx  28038
  Copyright terms: Public domain W3C validator