| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > fz0to4untppr | Structured version Visualization version GIF version | ||
| 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.) (Proof shortened by AV, 7-Aug-2025.) |
| Ref | Expression |
|---|---|
| fz0to4untppr | ⊢ (0...4) = ({0, 1, 2} ∪ {3, 4}) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | 2p1e3 12523 | . . . 4 ⊢ (2 + 1) = 3 | |
| 2 | 0z 12743 | . . . . 5 ⊢ 0 ∈ ℤ | |
| 3 | 3z 12768 | . . . . 5 ⊢ 3 ∈ ℤ | |
| 4 | 0re 11348 | . . . . . 6 ⊢ 0 ∈ ℝ | |
| 5 | 3re 12462 | . . . . . 6 ⊢ 3 ∈ ℝ | |
| 6 | 3pos 12490 | . . . . . 6 ⊢ 0 < 3 | |
| 7 | 4, 5, 6 | ltleii 11471 | . . . . 5 ⊢ 0 ≤ 3 |
| 8 | eluz2 13010 | . . . . 5 ⊢ (3 ∈ (ℤ≥‘0) ↔ (0 ∈ ℤ ∧ 3 ∈ ℤ ∧ 0 ≤ 3)) | |
| 9 | 2, 3, 7, 8 | mpbir3an 1362 | . . . 4 ⊢ 3 ∈ (ℤ≥‘0) |
| 10 | 1, 9 | eqeltri 2863 | . . 3 ⊢ (2 + 1) ∈ (ℤ≥‘0) |
| 11 | 2z 12767 | . . . 4 ⊢ 2 ∈ ℤ | |
| 12 | 4z 12769 | . . . 4 ⊢ 4 ∈ ℤ | |
| 13 | 2re 12456 | . . . . 5 ⊢ 2 ∈ ℝ | |
| 14 | 4re 12466 | . . . . 5 ⊢ 4 ∈ ℝ | |
| 15 | 2lt4 12559 | . . . . 5 ⊢ 2 < 4 | |
| 16 | 13, 14, 15 | ltleii 11471 | . . . 4 ⊢ 2 ≤ 4 |
| 17 | eluz2 13010 | . . . 4 ⊢ (4 ∈ (ℤ≥‘2) ↔ (2 ∈ ℤ ∧ 4 ∈ ℤ ∧ 2 ≤ 4)) | |
| 18 | 11, 12, 16, 17 | mpbir3an 1362 | . . 3 ⊢ 4 ∈ (ℤ≥‘2) |
| 19 | fzsplit2 13722 | . . 3 ⊢ (((2 + 1) ∈ (ℤ≥‘0) ∧ 4 ∈ (ℤ≥‘2)) → (0...4) = ((0...2) ∪ ((2 + 1)...4))) | |
| 20 | 10, 18, 19 | mp2an 705 | . 2 ⊢ (0...4) = ((0...2) ∪ ((2 + 1)...4)) |
| 21 | fz0tp 13801 | . . 3 ⊢ (0...2) = {0, 1, 2} | |
| 22 | 1 | oveq1i 7460 | . . . 4 ⊢ ((2 + 1)...4) = (3...4) |
| 23 | df-4 12446 | . . . . . 6 ⊢ 4 = (3 + 1) | |
| 24 | 23 | oveq2i 7461 | . . . . 5 ⊢ (3...4) = (3...(3 + 1)) |
| 25 | fzpr 13752 | . . . . . 6 ⊢ (3 ∈ ℤ → (3...(3 + 1)) = {3, (3 + 1)}) | |
| 26 | 3, 25 | ax-mp 5 | . . . . 5 ⊢ (3...(3 + 1)) = {3, (3 + 1)} |
| 27 | 3p1e4 12526 | . . . . . 6 ⊢ (3 + 1) = 4 | |
| 28 | 27 | preq2i 4699 | . . . . 5 ⊢ {3, (3 + 1)} = {3, 4} |
| 29 | 24, 26, 28 | 3eqtri 2793 | . . . 4 ⊢ (3...4) = {3, 4} |
| 30 | 22, 29 | eqtri 2789 | . . 3 ⊢ ((2 + 1)...4) = {3, 4} |
| 31 | 21, 30 | uneq12i 4167 | . 2 ⊢ ((0...2) ∪ ((2 + 1)...4)) = ({0, 1, 2} ∪ {3, 4}) |
| 32 | 20, 31 | eqtri 2789 | 1 ⊢ (0...4) = ({0, 1, 2} ∪ {3, 4}) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: = wceq 1572 ∈ wcel 2150 ∪ cun 4151 {cpr 4589 {ctp 4591 class class class wbr 5107 ‘cfv 6565 (class class class)co 7450 0cc0 11238 1c1 11239 + caddc 11241 ≤ cle 11382 2c2 12436 3c3 12437 4c4 12438 ℤcz 12732 ℤ≥cuz 13004 ...cfz 13678 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1830 ax-4 1844 ax-5 1947 ax-6 2004 ax-7 2045 ax-8 2152 ax-9 2160 ax-10 2183 ax-11 2200 ax-12 2219 ax-ext 2738 ax-sep 5254 ax-nul 5265 ax-pow 5333 ax-pr 5397 ax-un 7782 ax-cnex 11294 ax-resscn 11295 ax-1cn 11296 ax-icn 11297 ax-addcl 11298 ax-addrcl 11299 ax-mulcl 11300 ax-mulrcl 11301 ax-mulcom 11302 ax-addass 11303 ax-mulass 11304 ax-distr 11305 ax-i2m1 11306 ax-1ne0 11307 ax-1rid 11308 ax-rnegex 11309 ax-rrecex 11310 ax-cnre 11311 ax-pre-lttri 11312 ax-pre-lttrn 11313 ax-pre-ltadd 11314 ax-pre-mulgt0 11315 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-3or 1105 df-3an 1106 df-tru 1575 df-fal 1585 df-ex 1815 df-nf 1819 df-sb 2104 df-mo 2570 df-eu 2600 df-clab 2745 df-cleq 2758 df-clel 2842 df-nfc 2916 df-ne 2963 df-nel 3069 df-ral 3084 df-rex 3094 df-reu 3369 df-rab 3416 df-v 3455 df-sbc 3742 df-csb 3851 df-ss 3900 df-pss 4016 df-dif 4049 df-in 4093 df-un 4153 df-nul 4281 df-if 4485 df-pw 4561 df-sn 4588 df-pr 4590 df-tp 4592 df-op 4840 df-uni 4872 df-iun 4957 df-br 5108 df-opab 5173 df-mpt 5192 df-tr 5218 df-id 5552 df-eprel 5557 df-po 5565 df-so 5566 df-fr 5610 df-we 5612 df-xp 5663 df-rel 5664 df-cnv 5665 df-co 5666 df-dm 5667 df-rn 5668 df-res 5669 df-ima 5670 df-pred 6329 df-ord 6390 df-on 6391 df-lim 6392 df-suc 6393 df-iota 6519 df-fun 6567 df-fn 6568 df-f 6569 df-f1 6570 df-fo 6571 df-f1o 6572 df-fv 6573 df-riota 7407 df-ov 7453 df-oprab 7454 df-mpo 7455 df-om 7911 df-1st 8034 df-2nd 8035 df-frecs 8336 df-wrecs 8367 df-recs 8416 df-rdg 8455 df-er 8754 df-en 9011 df-dom 9012 df-sdom 9013 df-pnf 11383 df-mnf 11384 df-xr 11385 df-ltxr 11386 df-le 11387 df-sub 11581 df-neg 11582 df-nn 12375 df-2 12444 df-3 12445 df-4 12446 df-n0 12646 df-z 12733 df-uz 13005 df-fz 13679 |
| This theorem is used by: prm23lt5 17038 usgrexmplvtx 29901 |
| Copyright terms: Public domain | W3C validator |