Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > ssfzunsn | Structured version Visualization version GIF version |
Description: A subset of a finite sequence of integers extended by an integer is a subset of a (possibly extended) finite sequence of integers. (Contributed by AV, 8-Jun-2021.) (Proof shortened by AV, 13-Nov-2021.) |
Ref | Expression |
---|---|
ssfzunsn | ⊢ ((𝑆 ⊆ (𝑀...𝑁) ∧ 𝑁 ∈ ℤ ∧ 𝐼 ∈ (ℤ≥‘𝑀)) → (𝑆 ∪ {𝐼}) ⊆ (𝑀...if(𝐼 ≤ 𝑁, 𝑁, 𝐼))) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | simp1 1134 | . . 3 ⊢ ((𝑆 ⊆ (𝑀...𝑁) ∧ 𝑁 ∈ ℤ ∧ 𝐼 ∈ (ℤ≥‘𝑀)) → 𝑆 ⊆ (𝑀...𝑁)) | |
2 | eluzel2 12516 | . . . 4 ⊢ (𝐼 ∈ (ℤ≥‘𝑀) → 𝑀 ∈ ℤ) | |
3 | 2 | 3ad2ant3 1133 | . . 3 ⊢ ((𝑆 ⊆ (𝑀...𝑁) ∧ 𝑁 ∈ ℤ ∧ 𝐼 ∈ (ℤ≥‘𝑀)) → 𝑀 ∈ ℤ) |
4 | simp2 1135 | . . 3 ⊢ ((𝑆 ⊆ (𝑀...𝑁) ∧ 𝑁 ∈ ℤ ∧ 𝐼 ∈ (ℤ≥‘𝑀)) → 𝑁 ∈ ℤ) | |
5 | eluzelz 12521 | . . . 4 ⊢ (𝐼 ∈ (ℤ≥‘𝑀) → 𝐼 ∈ ℤ) | |
6 | 5 | 3ad2ant3 1133 | . . 3 ⊢ ((𝑆 ⊆ (𝑀...𝑁) ∧ 𝑁 ∈ ℤ ∧ 𝐼 ∈ (ℤ≥‘𝑀)) → 𝐼 ∈ ℤ) |
7 | ssfzunsnext 13230 | . . 3 ⊢ ((𝑆 ⊆ (𝑀...𝑁) ∧ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐼 ∈ ℤ)) → (𝑆 ∪ {𝐼}) ⊆ (if(𝐼 ≤ 𝑀, 𝐼, 𝑀)...if(𝐼 ≤ 𝑁, 𝑁, 𝐼))) | |
8 | 1, 3, 4, 6, 7 | syl13anc 1370 | . 2 ⊢ ((𝑆 ⊆ (𝑀...𝑁) ∧ 𝑁 ∈ ℤ ∧ 𝐼 ∈ (ℤ≥‘𝑀)) → (𝑆 ∪ {𝐼}) ⊆ (if(𝐼 ≤ 𝑀, 𝐼, 𝑀)...if(𝐼 ≤ 𝑁, 𝑁, 𝐼))) |
9 | eluz2 12517 | . . . . 5 ⊢ (𝐼 ∈ (ℤ≥‘𝑀) ↔ (𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀 ≤ 𝐼)) | |
10 | zre 12253 | . . . . . . . . 9 ⊢ (𝐼 ∈ ℤ → 𝐼 ∈ ℝ) | |
11 | 10 | rexrd 10956 | . . . . . . . 8 ⊢ (𝐼 ∈ ℤ → 𝐼 ∈ ℝ*) |
12 | 11 | 3ad2ant2 1132 | . . . . . . 7 ⊢ ((𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀 ≤ 𝐼) → 𝐼 ∈ ℝ*) |
13 | zre 12253 | . . . . . . . . 9 ⊢ (𝑀 ∈ ℤ → 𝑀 ∈ ℝ) | |
14 | 13 | rexrd 10956 | . . . . . . . 8 ⊢ (𝑀 ∈ ℤ → 𝑀 ∈ ℝ*) |
15 | 14 | 3ad2ant1 1131 | . . . . . . 7 ⊢ ((𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀 ≤ 𝐼) → 𝑀 ∈ ℝ*) |
16 | simp3 1136 | . . . . . . 7 ⊢ ((𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀 ≤ 𝐼) → 𝑀 ≤ 𝐼) | |
17 | xrmineq 12843 | . . . . . . 7 ⊢ ((𝐼 ∈ ℝ* ∧ 𝑀 ∈ ℝ* ∧ 𝑀 ≤ 𝐼) → if(𝐼 ≤ 𝑀, 𝐼, 𝑀) = 𝑀) | |
18 | 12, 15, 16, 17 | syl3anc 1369 | . . . . . 6 ⊢ ((𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀 ≤ 𝐼) → if(𝐼 ≤ 𝑀, 𝐼, 𝑀) = 𝑀) |
19 | 18 | eqcomd 2744 | . . . . 5 ⊢ ((𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀 ≤ 𝐼) → 𝑀 = if(𝐼 ≤ 𝑀, 𝐼, 𝑀)) |
20 | 9, 19 | sylbi 216 | . . . 4 ⊢ (𝐼 ∈ (ℤ≥‘𝑀) → 𝑀 = if(𝐼 ≤ 𝑀, 𝐼, 𝑀)) |
21 | 20 | 3ad2ant3 1133 | . . 3 ⊢ ((𝑆 ⊆ (𝑀...𝑁) ∧ 𝑁 ∈ ℤ ∧ 𝐼 ∈ (ℤ≥‘𝑀)) → 𝑀 = if(𝐼 ≤ 𝑀, 𝐼, 𝑀)) |
22 | 21 | oveq1d 7270 | . 2 ⊢ ((𝑆 ⊆ (𝑀...𝑁) ∧ 𝑁 ∈ ℤ ∧ 𝐼 ∈ (ℤ≥‘𝑀)) → (𝑀...if(𝐼 ≤ 𝑁, 𝑁, 𝐼)) = (if(𝐼 ≤ 𝑀, 𝐼, 𝑀)...if(𝐼 ≤ 𝑁, 𝑁, 𝐼))) |
23 | 8, 22 | sseqtrrd 3958 | 1 ⊢ ((𝑆 ⊆ (𝑀...𝑁) ∧ 𝑁 ∈ ℤ ∧ 𝐼 ∈ (ℤ≥‘𝑀)) → (𝑆 ∪ {𝐼}) ⊆ (𝑀...if(𝐼 ≤ 𝑁, 𝑁, 𝐼))) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ∧ w3a 1085 = wceq 1539 ∈ wcel 2108 ∪ cun 3881 ⊆ wss 3883 ifcif 4456 {csn 4558 class class class wbr 5070 ‘cfv 6418 (class class class)co 7255 ℝ*cxr 10939 ≤ cle 10941 ℤcz 12249 ℤ≥cuz 12511 ...cfz 13168 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1799 ax-4 1813 ax-5 1914 ax-6 1972 ax-7 2012 ax-8 2110 ax-9 2118 ax-10 2139 ax-11 2156 ax-12 2173 ax-ext 2709 ax-sep 5218 ax-nul 5225 ax-pow 5283 ax-pr 5347 ax-un 7566 ax-cnex 10858 ax-resscn 10859 ax-pre-lttri 10876 ax-pre-lttrn 10877 |
This theorem depends on definitions: df-bi 206 df-an 396 df-or 844 df-3or 1086 df-3an 1087 df-tru 1542 df-fal 1552 df-ex 1784 df-nf 1788 df-sb 2069 df-mo 2540 df-eu 2569 df-clab 2716 df-cleq 2730 df-clel 2817 df-nfc 2888 df-ne 2943 df-nel 3049 df-ral 3068 df-rex 3069 df-rab 3072 df-v 3424 df-sbc 3712 df-csb 3829 df-dif 3886 df-un 3888 df-in 3890 df-ss 3900 df-nul 4254 df-if 4457 df-pw 4532 df-sn 4559 df-pr 4561 df-op 4565 df-uni 4837 df-iun 4923 df-br 5071 df-opab 5133 df-mpt 5154 df-id 5480 df-po 5494 df-so 5495 df-xp 5586 df-rel 5587 df-cnv 5588 df-co 5589 df-dm 5590 df-rn 5591 df-res 5592 df-ima 5593 df-iota 6376 df-fun 6420 df-fn 6421 df-f 6422 df-f1 6423 df-fo 6424 df-f1o 6425 df-fv 6426 df-ov 7258 df-oprab 7259 df-mpo 7260 df-1st 7804 df-2nd 7805 df-er 8456 df-en 8692 df-dom 8693 df-sdom 8694 df-pnf 10942 df-mnf 10943 df-xr 10944 df-ltxr 10945 df-le 10946 df-neg 11138 df-z 12250 df-uz 12512 df-fz 13169 |
This theorem is referenced by: (None) |
Copyright terms: Public domain | W3C validator |