Proof of Theorem sumsplitdc
Step | Hyp | Ref
| Expression |
1 | | sumsplit.4 |
. . 3
⊢ (𝜑 → (𝐴 ∪ 𝐵) ⊆ 𝑍) |
2 | | sumsplitdc.a |
. . . . 5
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → DECID 𝑘 ∈ 𝐴) |
3 | | sumsplitdc.b |
. . . . 5
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → DECID 𝑘 ∈ 𝐵) |
4 | 2, 3 | dcun 3519 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → DECID 𝑘 ∈ (𝐴 ∪ 𝐵)) |
5 | 4 | ralrimiva 2539 |
. . 3
⊢ (𝜑 → ∀𝑘 ∈ 𝑍 DECID 𝑘 ∈ (𝐴 ∪ 𝐵)) |
6 | | sumsplit.7 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ (𝐴 ∪ 𝐵)) → 𝐶 ∈ ℂ) |
7 | 6 | ralrimiva 2539 |
. . 3
⊢ (𝜑 → ∀𝑘 ∈ (𝐴 ∪ 𝐵)𝐶 ∈ ℂ) |
8 | | sumsplit.2 |
. . . . 5
⊢ (𝜑 → 𝑀 ∈ ℤ) |
9 | | sumsplit.1 |
. . . . . . 7
⊢ 𝑍 =
(ℤ≥‘𝑀) |
10 | 9 | eqimssi 3198 |
. . . . . 6
⊢ 𝑍 ⊆
(ℤ≥‘𝑀) |
11 | 10 | a1i 9 |
. . . . 5
⊢ (𝜑 → 𝑍 ⊆ (ℤ≥‘𝑀)) |
12 | 9 | eleq2i 2233 |
. . . . . . . . . 10
⊢ (𝑘 ∈ 𝑍 ↔ 𝑘 ∈ (ℤ≥‘𝑀)) |
13 | 12 | biimpri 132 |
. . . . . . . . 9
⊢ (𝑘 ∈
(ℤ≥‘𝑀) → 𝑘 ∈ 𝑍) |
14 | 13 | orcd 723 |
. . . . . . . 8
⊢ (𝑘 ∈
(ℤ≥‘𝑀) → (𝑘 ∈ 𝑍 ∨ ¬ 𝑘 ∈ 𝑍)) |
15 | | df-dc 825 |
. . . . . . . 8
⊢
(DECID 𝑘 ∈ 𝑍 ↔ (𝑘 ∈ 𝑍 ∨ ¬ 𝑘 ∈ 𝑍)) |
16 | 14, 15 | sylibr 133 |
. . . . . . 7
⊢ (𝑘 ∈
(ℤ≥‘𝑀) → DECID 𝑘 ∈ 𝑍) |
17 | 16 | adantl 275 |
. . . . . 6
⊢ ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → DECID
𝑘 ∈ 𝑍) |
18 | 17 | ralrimiva 2539 |
. . . . 5
⊢ (𝜑 → ∀𝑘 ∈ (ℤ≥‘𝑀)DECID 𝑘 ∈ 𝑍) |
19 | 8, 11, 18 | 3jca 1167 |
. . . 4
⊢ (𝜑 → (𝑀 ∈ ℤ ∧ 𝑍 ⊆ (ℤ≥‘𝑀) ∧ ∀𝑘 ∈
(ℤ≥‘𝑀)DECID 𝑘 ∈ 𝑍)) |
20 | 19 | orcd 723 |
. . 3
⊢ (𝜑 → ((𝑀 ∈ ℤ ∧ 𝑍 ⊆ (ℤ≥‘𝑀) ∧ ∀𝑘 ∈
(ℤ≥‘𝑀)DECID 𝑘 ∈ 𝑍) ∨ 𝑍 ∈ Fin)) |
21 | 1, 5, 7, 20 | isumss2 11334 |
. 2
⊢ (𝜑 → Σ𝑘 ∈ (𝐴 ∪ 𝐵)𝐶 = Σ𝑘 ∈ 𝑍 if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0)) |
22 | | sumsplit.5 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐶, 0)) |
23 | | elun1 3289 |
. . . . . . 7
⊢ (𝑘 ∈ 𝐴 → 𝑘 ∈ (𝐴 ∪ 𝐵)) |
24 | 23, 6 | sylan2 284 |
. . . . . 6
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐶 ∈ ℂ) |
25 | 24 | adantlr 469 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ 𝑘 ∈ 𝐴) → 𝐶 ∈ ℂ) |
26 | | 0cnd 7892 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → 0 ∈ ℂ) |
27 | 25, 26, 2 | ifcldadc 3549 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → if(𝑘 ∈ 𝐴, 𝐶, 0) ∈ ℂ) |
28 | | sumsplit.6 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → (𝐺‘𝑘) = if(𝑘 ∈ 𝐵, 𝐶, 0)) |
29 | | elun2 3290 |
. . . . . . 7
⊢ (𝑘 ∈ 𝐵 → 𝑘 ∈ (𝐴 ∪ 𝐵)) |
30 | 29, 6 | sylan2 284 |
. . . . . 6
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐵) → 𝐶 ∈ ℂ) |
31 | 30 | adantlr 469 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ 𝑘 ∈ 𝐵) → 𝐶 ∈ ℂ) |
32 | | 0cnd 7892 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐵) → 0 ∈ ℂ) |
33 | 31, 32, 3 | ifcldadc 3549 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → if(𝑘 ∈ 𝐵, 𝐶, 0) ∈ ℂ) |
34 | | sumsplit.8 |
. . . 4
⊢ (𝜑 → seq𝑀( + , 𝐹) ∈ dom ⇝ ) |
35 | | sumsplit.9 |
. . . 4
⊢ (𝜑 → seq𝑀( + , 𝐺) ∈ dom ⇝ ) |
36 | 9, 8, 22, 27, 28, 33, 34, 35 | isumadd 11372 |
. . 3
⊢ (𝜑 → Σ𝑘 ∈ 𝑍 (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0)) = (Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐴, 𝐶, 0) + Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐵, 𝐶, 0))) |
37 | 24 | addid1d 8047 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → (𝐶 + 0) = 𝐶) |
38 | | iftrue 3525 |
. . . . . . . . 9
⊢ (𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐶, 0) = 𝐶) |
39 | 38 | adantl 275 |
. . . . . . . 8
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐴, 𝐶, 0) = 𝐶) |
40 | | noel 3413 |
. . . . . . . . . . . 12
⊢ ¬
𝑘 ∈
∅ |
41 | | sumsplit.3 |
. . . . . . . . . . . . . 14
⊢ (𝜑 → (𝐴 ∩ 𝐵) = ∅) |
42 | 41 | eleq2d 2236 |
. . . . . . . . . . . . 13
⊢ (𝜑 → (𝑘 ∈ (𝐴 ∩ 𝐵) ↔ 𝑘 ∈ ∅)) |
43 | | elin 3305 |
. . . . . . . . . . . . 13
⊢ (𝑘 ∈ (𝐴 ∩ 𝐵) ↔ (𝑘 ∈ 𝐴 ∧ 𝑘 ∈ 𝐵)) |
44 | 42, 43 | bitr3di 194 |
. . . . . . . . . . . 12
⊢ (𝜑 → (𝑘 ∈ ∅ ↔ (𝑘 ∈ 𝐴 ∧ 𝑘 ∈ 𝐵))) |
45 | 40, 44 | mtbii 664 |
. . . . . . . . . . 11
⊢ (𝜑 → ¬ (𝑘 ∈ 𝐴 ∧ 𝑘 ∈ 𝐵)) |
46 | | imnan 680 |
. . . . . . . . . . 11
⊢ ((𝑘 ∈ 𝐴 → ¬ 𝑘 ∈ 𝐵) ↔ ¬ (𝑘 ∈ 𝐴 ∧ 𝑘 ∈ 𝐵)) |
47 | 45, 46 | sylibr 133 |
. . . . . . . . . 10
⊢ (𝜑 → (𝑘 ∈ 𝐴 → ¬ 𝑘 ∈ 𝐵)) |
48 | 47 | imp 123 |
. . . . . . . . 9
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → ¬ 𝑘 ∈ 𝐵) |
49 | 48 | iffalsed 3530 |
. . . . . . . 8
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐵, 𝐶, 0) = 0) |
50 | 39, 49 | oveq12d 5860 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0)) = (𝐶 + 0)) |
51 | | iftrue 3525 |
. . . . . . . . 9
⊢ (𝑘 ∈ (𝐴 ∪ 𝐵) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = 𝐶) |
52 | 23, 51 | syl 14 |
. . . . . . . 8
⊢ (𝑘 ∈ 𝐴 → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = 𝐶) |
53 | 52 | adantl 275 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = 𝐶) |
54 | 37, 50, 53 | 3eqtr4rd 2209 |
. . . . . 6
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
55 | 54 | adantlr 469 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
56 | 33 | adantr 274 |
. . . . . . 7
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐵, 𝐶, 0) ∈ ℂ) |
57 | 56 | addid2d 8048 |
. . . . . 6
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → (0 + if(𝑘 ∈ 𝐵, 𝐶, 0)) = if(𝑘 ∈ 𝐵, 𝐶, 0)) |
58 | | iffalse 3528 |
. . . . . . . . 9
⊢ (¬
𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐶, 0) = 0) |
59 | 58 | adantl 275 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐴, 𝐶, 0) = 0) |
60 | 59 | oveq1d 5857 |
. . . . . . 7
⊢ ((𝜑 ∧ ¬ 𝑘 ∈ 𝐴) → (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0)) = (0 + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
61 | 60 | adantlr 469 |
. . . . . 6
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0)) = (0 + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
62 | | elun 3263 |
. . . . . . . . . 10
⊢ (𝑘 ∈ (𝐴 ∪ 𝐵) ↔ (𝑘 ∈ 𝐴 ∨ 𝑘 ∈ 𝐵)) |
63 | | biorf 734 |
. . . . . . . . . 10
⊢ (¬
𝑘 ∈ 𝐴 → (𝑘 ∈ 𝐵 ↔ (𝑘 ∈ 𝐴 ∨ 𝑘 ∈ 𝐵))) |
64 | 62, 63 | bitr4id 198 |
. . . . . . . . 9
⊢ (¬
𝑘 ∈ 𝐴 → (𝑘 ∈ (𝐴 ∪ 𝐵) ↔ 𝑘 ∈ 𝐵)) |
65 | 64 | adantl 275 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ 𝑘 ∈ 𝐴) → (𝑘 ∈ (𝐴 ∪ 𝐵) ↔ 𝑘 ∈ 𝐵)) |
66 | 65 | ifbid 3541 |
. . . . . . 7
⊢ ((𝜑 ∧ ¬ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = if(𝑘 ∈ 𝐵, 𝐶, 0)) |
67 | 66 | adantlr 469 |
. . . . . 6
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = if(𝑘 ∈ 𝐵, 𝐶, 0)) |
68 | 57, 61, 67 | 3eqtr4rd 2209 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
69 | | exmiddc 826 |
. . . . . 6
⊢
(DECID 𝑘 ∈ 𝐴 → (𝑘 ∈ 𝐴 ∨ ¬ 𝑘 ∈ 𝐴)) |
70 | 2, 69 | syl 14 |
. . . . 5
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → (𝑘 ∈ 𝐴 ∨ ¬ 𝑘 ∈ 𝐴)) |
71 | 55, 68, 70 | mpjaodan 788 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
72 | 71 | sumeq2dv 11309 |
. . 3
⊢ (𝜑 → Σ𝑘 ∈ 𝑍 if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = Σ𝑘 ∈ 𝑍 (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
73 | 1 | unssad 3299 |
. . . . 5
⊢ (𝜑 → 𝐴 ⊆ 𝑍) |
74 | 2 | ralrimiva 2539 |
. . . . 5
⊢ (𝜑 → ∀𝑘 ∈ 𝑍 DECID 𝑘 ∈ 𝐴) |
75 | 24 | ralrimiva 2539 |
. . . . 5
⊢ (𝜑 → ∀𝑘 ∈ 𝐴 𝐶 ∈ ℂ) |
76 | 73, 74, 75, 20 | isumss2 11334 |
. . . 4
⊢ (𝜑 → Σ𝑘 ∈ 𝐴 𝐶 = Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐴, 𝐶, 0)) |
77 | 1 | unssbd 3300 |
. . . . 5
⊢ (𝜑 → 𝐵 ⊆ 𝑍) |
78 | 3 | ralrimiva 2539 |
. . . . 5
⊢ (𝜑 → ∀𝑘 ∈ 𝑍 DECID 𝑘 ∈ 𝐵) |
79 | 30 | ralrimiva 2539 |
. . . . 5
⊢ (𝜑 → ∀𝑘 ∈ 𝐵 𝐶 ∈ ℂ) |
80 | 77, 78, 79, 20 | isumss2 11334 |
. . . 4
⊢ (𝜑 → Σ𝑘 ∈ 𝐵 𝐶 = Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐵, 𝐶, 0)) |
81 | 76, 80 | oveq12d 5860 |
. . 3
⊢ (𝜑 → (Σ𝑘 ∈ 𝐴 𝐶 + Σ𝑘 ∈ 𝐵 𝐶) = (Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐴, 𝐶, 0) + Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐵, 𝐶, 0))) |
82 | 36, 72, 81 | 3eqtr4rd 2209 |
. 2
⊢ (𝜑 → (Σ𝑘 ∈ 𝐴 𝐶 + Σ𝑘 ∈ 𝐵 𝐶) = Σ𝑘 ∈ 𝑍 if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0)) |
83 | 21, 82 | eqtr4d 2201 |
1
⊢ (𝜑 → Σ𝑘 ∈ (𝐴 ∪ 𝐵)𝐶 = (Σ𝑘 ∈ 𝐴 𝐶 + Σ𝑘 ∈ 𝐵 𝐶)) |