| Intuitionistic Logic Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > ILE Home > Th. List > clwwlknonex2lem1 | GIF version | ||
| Description: Lemma 1 for clwwlknonex2 16316: Transformation of a special half-open integer range into a union of a smaller half-open integer range and an unordered pair. This Lemma would not hold for 𝑁 = 2, i.e., (♯‘𝑊) = 0, because (0..^(((♯‘𝑊) + 2) − 1)) = (0..^((0 + 2) − 1)) = (0..^1) = {0} ≠ {-1, 0} = (∅ ∪ {-1, 0}) = ((0..^(0 − 1)) ∪ {(0 − 1), 0}) = ((0..^((♯‘𝑊) − 1)) ∪ {((♯‘𝑊) − 1), (♯‘𝑊)}). (Contributed by AV, 22-Sep-2018.) (Revised by AV, 26-Jan-2022.) |
| Ref | Expression |
|---|---|
| clwwlknonex2lem1 | ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → (0..^(((♯‘𝑊) + 2) − 1)) = ((0..^((♯‘𝑊) − 1)) ∪ {((♯‘𝑊) − 1), (♯‘𝑊)})) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | eluzelcn 9769 | . . . . . . 7 ⊢ (𝑁 ∈ (ℤ≥‘3) → 𝑁 ∈ ℂ) | |
| 2 | 2cnd 9218 | . . . . . . 7 ⊢ (𝑁 ∈ (ℤ≥‘3) → 2 ∈ ℂ) | |
| 3 | 1, 2 | subcld 8492 | . . . . . 6 ⊢ (𝑁 ∈ (ℤ≥‘3) → (𝑁 − 2) ∈ ℂ) |
| 4 | 3 | adantr 276 | . . . . 5 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → (𝑁 − 2) ∈ ℂ) |
| 5 | eleq1 2293 | . . . . . 6 ⊢ ((♯‘𝑊) = (𝑁 − 2) → ((♯‘𝑊) ∈ ℂ ↔ (𝑁 − 2) ∈ ℂ)) | |
| 6 | 5 | adantl 277 | . . . . 5 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → ((♯‘𝑊) ∈ ℂ ↔ (𝑁 − 2) ∈ ℂ)) |
| 7 | 4, 6 | mpbird 167 | . . . 4 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → (♯‘𝑊) ∈ ℂ) |
| 8 | 2cnd 9218 | . . . 4 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → 2 ∈ ℂ) | |
| 9 | 1cnd 8197 | . . . 4 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → 1 ∈ ℂ) | |
| 10 | 7, 8, 9 | addsubd 8513 | . . 3 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → (((♯‘𝑊) + 2) − 1) = (((♯‘𝑊) − 1) + 2)) |
| 11 | 10 | oveq2d 6036 | . 2 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → (0..^(((♯‘𝑊) + 2) − 1)) = (0..^(((♯‘𝑊) − 1) + 2))) |
| 12 | oveq1 6027 | . . . . 5 ⊢ ((♯‘𝑊) = (𝑁 − 2) → ((♯‘𝑊) − 1) = ((𝑁 − 2) − 1)) | |
| 13 | 12 | adantl 277 | . . . 4 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → ((♯‘𝑊) − 1) = ((𝑁 − 2) − 1)) |
| 14 | uznn0sub 9790 | . . . . . 6 ⊢ (𝑁 ∈ (ℤ≥‘3) → (𝑁 − 3) ∈ ℕ0) | |
| 15 | 1cnd 8197 | . . . . . . . 8 ⊢ (𝑁 ∈ (ℤ≥‘3) → 1 ∈ ℂ) | |
| 16 | 1, 2, 15 | subsub4d 8523 | . . . . . . 7 ⊢ (𝑁 ∈ (ℤ≥‘3) → ((𝑁 − 2) − 1) = (𝑁 − (2 + 1))) |
| 17 | 2p1e3 9279 | . . . . . . . 8 ⊢ (2 + 1) = 3 | |
| 18 | 17 | oveq2i 6031 | . . . . . . 7 ⊢ (𝑁 − (2 + 1)) = (𝑁 − 3) |
| 19 | 16, 18 | eqtrdi 2279 | . . . . . 6 ⊢ (𝑁 ∈ (ℤ≥‘3) → ((𝑁 − 2) − 1) = (𝑁 − 3)) |
| 20 | nn0uz 9793 | . . . . . . . 8 ⊢ ℕ0 = (ℤ≥‘0) | |
| 21 | 20 | eqcomi 2234 | . . . . . . 7 ⊢ (ℤ≥‘0) = ℕ0 |
| 22 | 21 | a1i 9 | . . . . . 6 ⊢ (𝑁 ∈ (ℤ≥‘3) → (ℤ≥‘0) = ℕ0) |
| 23 | 14, 19, 22 | 3eltr4d 2314 | . . . . 5 ⊢ (𝑁 ∈ (ℤ≥‘3) → ((𝑁 − 2) − 1) ∈ (ℤ≥‘0)) |
| 24 | 23 | adantr 276 | . . . 4 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → ((𝑁 − 2) − 1) ∈ (ℤ≥‘0)) |
| 25 | 13, 24 | eqeltrd 2307 | . . 3 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → ((♯‘𝑊) − 1) ∈ (ℤ≥‘0)) |
| 26 | fzosplitpr 10482 | . . 3 ⊢ (((♯‘𝑊) − 1) ∈ (ℤ≥‘0) → (0..^(((♯‘𝑊) − 1) + 2)) = ((0..^((♯‘𝑊) − 1)) ∪ {((♯‘𝑊) − 1), (((♯‘𝑊) − 1) + 1)})) | |
| 27 | 25, 26 | syl 14 | . 2 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → (0..^(((♯‘𝑊) − 1) + 2)) = ((0..^((♯‘𝑊) − 1)) ∪ {((♯‘𝑊) − 1), (((♯‘𝑊) − 1) + 1)})) |
| 28 | 7, 9 | npcand 8496 | . . . 4 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → (((♯‘𝑊) − 1) + 1) = (♯‘𝑊)) |
| 29 | 28 | preq2d 3754 | . . 3 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → {((♯‘𝑊) − 1), (((♯‘𝑊) − 1) + 1)} = {((♯‘𝑊) − 1), (♯‘𝑊)}) |
| 30 | 29 | uneq2d 3360 | . 2 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → ((0..^((♯‘𝑊) − 1)) ∪ {((♯‘𝑊) − 1), (((♯‘𝑊) − 1) + 1)}) = ((0..^((♯‘𝑊) − 1)) ∪ {((♯‘𝑊) − 1), (♯‘𝑊)})) |
| 31 | 11, 27, 30 | 3eqtrd 2267 | 1 ⊢ ((𝑁 ∈ (ℤ≥‘3) ∧ (♯‘𝑊) = (𝑁 − 2)) → (0..^(((♯‘𝑊) + 2) − 1)) = ((0..^((♯‘𝑊) − 1)) ∪ {((♯‘𝑊) − 1), (♯‘𝑊)})) |
| Colors of variables: wff set class |
| Syntax hints: → wi 4 ∧ wa 104 ↔ wb 105 = wceq 1397 ∈ wcel 2201 ∪ cun 3197 {cpr 3669 ‘cfv 5325 (class class class)co 6020 ℂcc 8032 0cc0 8034 1c1 8035 + caddc 8037 − cmin 8352 2c2 9196 3c3 9197 ℕ0cn0 9404 ℤ≥cuz 9757 ..^cfzo 10379 ♯chash 11040 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-ia1 106 ax-ia2 107 ax-ia3 108 ax-in1 619 ax-in2 620 ax-io 716 ax-5 1495 ax-7 1496 ax-gen 1497 ax-ie1 1541 ax-ie2 1542 ax-8 1552 ax-10 1553 ax-11 1554 ax-i12 1555 ax-bndl 1557 ax-4 1558 ax-17 1574 ax-i9 1578 ax-ial 1582 ax-i5r 1583 ax-13 2203 ax-14 2204 ax-ext 2212 ax-sep 4206 ax-pow 4263 ax-pr 4298 ax-un 4529 ax-setind 4634 ax-cnex 8125 ax-resscn 8126 ax-1cn 8127 ax-1re 8128 ax-icn 8129 ax-addcl 8130 ax-addrcl 8131 ax-mulcl 8132 ax-addcom 8134 ax-addass 8136 ax-distr 8138 ax-i2m1 8139 ax-0lt1 8140 ax-0id 8142 ax-rnegex 8143 ax-cnre 8145 ax-pre-ltirr 8146 ax-pre-ltwlin 8147 ax-pre-lttrn 8148 ax-pre-apti 8149 ax-pre-ltadd 8150 |
| This theorem depends on definitions: df-bi 117 df-3or 1005 df-3an 1006 df-tru 1400 df-fal 1403 df-nf 1509 df-sb 1810 df-eu 2081 df-mo 2082 df-clab 2217 df-cleq 2223 df-clel 2226 df-nfc 2362 df-ne 2402 df-nel 2497 df-ral 2514 df-rex 2515 df-reu 2516 df-rab 2518 df-v 2803 df-sbc 3031 df-csb 3127 df-dif 3201 df-un 3203 df-in 3205 df-ss 3212 df-pw 3653 df-sn 3674 df-pr 3675 df-op 3677 df-uni 3893 df-int 3928 df-iun 3971 df-br 4088 df-opab 4150 df-mpt 4151 df-id 4389 df-xp 4730 df-rel 4731 df-cnv 4732 df-co 4733 df-dm 4734 df-rn 4735 df-res 4736 df-ima 4737 df-iota 5285 df-fun 5327 df-fn 5328 df-f 5329 df-fv 5333 df-riota 5973 df-ov 6023 df-oprab 6024 df-mpo 6025 df-1st 6305 df-2nd 6306 df-pnf 8218 df-mnf 8219 df-xr 8220 df-ltxr 8221 df-le 8222 df-sub 8354 df-neg 8355 df-inn 9146 df-2 9204 df-3 9205 df-n0 9405 df-z 9482 df-uz 9758 df-fz 10246 df-fzo 10380 |
| This theorem is referenced by: clwwlknonex2 16316 |
| Copyright terms: Public domain | W3C validator |