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 3525 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → DECID 𝑘 ∈ (𝐴 ∪ 𝐵)) |
5 | 4 | ralrimiva 2543 |
. . 3
⊢ (𝜑 → ∀𝑘 ∈ 𝑍 DECID 𝑘 ∈ (𝐴 ∪ 𝐵)) |
6 | | sumsplit.7 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ (𝐴 ∪ 𝐵)) → 𝐶 ∈ ℂ) |
7 | 6 | ralrimiva 2543 |
. . 3
⊢ (𝜑 → ∀𝑘 ∈ (𝐴 ∪ 𝐵)𝐶 ∈ ℂ) |
8 | | sumsplit.2 |
. . . . 5
⊢ (𝜑 → 𝑀 ∈ ℤ) |
9 | | sumsplit.1 |
. . . . . . 7
⊢ 𝑍 =
(ℤ≥‘𝑀) |
10 | 9 | eqimssi 3203 |
. . . . . 6
⊢ 𝑍 ⊆
(ℤ≥‘𝑀) |
11 | 10 | a1i 9 |
. . . . 5
⊢ (𝜑 → 𝑍 ⊆ (ℤ≥‘𝑀)) |
12 | 9 | eleq2i 2237 |
. . . . . . . . . 10
⊢ (𝑘 ∈ 𝑍 ↔ 𝑘 ∈ (ℤ≥‘𝑀)) |
13 | 12 | biimpri 132 |
. . . . . . . . 9
⊢ (𝑘 ∈
(ℤ≥‘𝑀) → 𝑘 ∈ 𝑍) |
14 | 13 | orcd 728 |
. . . . . . . 8
⊢ (𝑘 ∈
(ℤ≥‘𝑀) → (𝑘 ∈ 𝑍 ∨ ¬ 𝑘 ∈ 𝑍)) |
15 | | df-dc 830 |
. . . . . . . 8
⊢
(DECID 𝑘 ∈ 𝑍 ↔ (𝑘 ∈ 𝑍 ∨ ¬ 𝑘 ∈ 𝑍)) |
16 | 14, 15 | sylibr 133 |
. . . . . . 7
⊢ (𝑘 ∈
(ℤ≥‘𝑀) → DECID 𝑘 ∈ 𝑍) |
17 | 16 | adantl 275 |
. . . . . 6
⊢ ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → DECID
𝑘 ∈ 𝑍) |
18 | 17 | ralrimiva 2543 |
. . . . 5
⊢ (𝜑 → ∀𝑘 ∈ (ℤ≥‘𝑀)DECID 𝑘 ∈ 𝑍) |
19 | 8, 11, 18 | 3jca 1172 |
. . . 4
⊢ (𝜑 → (𝑀 ∈ ℤ ∧ 𝑍 ⊆ (ℤ≥‘𝑀) ∧ ∀𝑘 ∈
(ℤ≥‘𝑀)DECID 𝑘 ∈ 𝑍)) |
20 | 19 | orcd 728 |
. . 3
⊢ (𝜑 → ((𝑀 ∈ ℤ ∧ 𝑍 ⊆ (ℤ≥‘𝑀) ∧ ∀𝑘 ∈
(ℤ≥‘𝑀)DECID 𝑘 ∈ 𝑍) ∨ 𝑍 ∈ Fin)) |
21 | 1, 5, 7, 20 | isumss2 11356 |
. 2
⊢ (𝜑 → Σ𝑘 ∈ (𝐴 ∪ 𝐵)𝐶 = Σ𝑘 ∈ 𝑍 if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0)) |
22 | | sumsplit.5 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐶, 0)) |
23 | | elun1 3294 |
. . . . . . 7
⊢ (𝑘 ∈ 𝐴 → 𝑘 ∈ (𝐴 ∪ 𝐵)) |
24 | 23, 6 | sylan2 284 |
. . . . . 6
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐶 ∈ ℂ) |
25 | 24 | adantlr 474 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ 𝑘 ∈ 𝐴) → 𝐶 ∈ ℂ) |
26 | | 0cnd 7913 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → 0 ∈ ℂ) |
27 | 25, 26, 2 | ifcldadc 3555 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → if(𝑘 ∈ 𝐴, 𝐶, 0) ∈ ℂ) |
28 | | sumsplit.6 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → (𝐺‘𝑘) = if(𝑘 ∈ 𝐵, 𝐶, 0)) |
29 | | elun2 3295 |
. . . . . . 7
⊢ (𝑘 ∈ 𝐵 → 𝑘 ∈ (𝐴 ∪ 𝐵)) |
30 | 29, 6 | sylan2 284 |
. . . . . 6
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐵) → 𝐶 ∈ ℂ) |
31 | 30 | adantlr 474 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ 𝑘 ∈ 𝐵) → 𝐶 ∈ ℂ) |
32 | | 0cnd 7913 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐵) → 0 ∈ ℂ) |
33 | 31, 32, 3 | ifcldadc 3555 |
. . . 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 11394 |
. . 3
⊢ (𝜑 → Σ𝑘 ∈ 𝑍 (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0)) = (Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐴, 𝐶, 0) + Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐵, 𝐶, 0))) |
37 | 24 | addid1d 8068 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → (𝐶 + 0) = 𝐶) |
38 | | iftrue 3531 |
. . . . . . . . 9
⊢ (𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐶, 0) = 𝐶) |
39 | 38 | adantl 275 |
. . . . . . . 8
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐴, 𝐶, 0) = 𝐶) |
40 | | noel 3418 |
. . . . . . . . . . . 12
⊢ ¬
𝑘 ∈
∅ |
41 | | sumsplit.3 |
. . . . . . . . . . . . . 14
⊢ (𝜑 → (𝐴 ∩ 𝐵) = ∅) |
42 | 41 | eleq2d 2240 |
. . . . . . . . . . . . 13
⊢ (𝜑 → (𝑘 ∈ (𝐴 ∩ 𝐵) ↔ 𝑘 ∈ ∅)) |
43 | | elin 3310 |
. . . . . . . . . . . . 13
⊢ (𝑘 ∈ (𝐴 ∩ 𝐵) ↔ (𝑘 ∈ 𝐴 ∧ 𝑘 ∈ 𝐵)) |
44 | 42, 43 | bitr3di 194 |
. . . . . . . . . . . 12
⊢ (𝜑 → (𝑘 ∈ ∅ ↔ (𝑘 ∈ 𝐴 ∧ 𝑘 ∈ 𝐵))) |
45 | 40, 44 | mtbii 669 |
. . . . . . . . . . 11
⊢ (𝜑 → ¬ (𝑘 ∈ 𝐴 ∧ 𝑘 ∈ 𝐵)) |
46 | | imnan 685 |
. . . . . . . . . . 11
⊢ ((𝑘 ∈ 𝐴 → ¬ 𝑘 ∈ 𝐵) ↔ ¬ (𝑘 ∈ 𝐴 ∧ 𝑘 ∈ 𝐵)) |
47 | 45, 46 | sylibr 133 |
. . . . . . . . . 10
⊢ (𝜑 → (𝑘 ∈ 𝐴 → ¬ 𝑘 ∈ 𝐵)) |
48 | 47 | imp 123 |
. . . . . . . . 9
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → ¬ 𝑘 ∈ 𝐵) |
49 | 48 | iffalsed 3536 |
. . . . . . . 8
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐵, 𝐶, 0) = 0) |
50 | 39, 49 | oveq12d 5871 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0)) = (𝐶 + 0)) |
51 | | iftrue 3531 |
. . . . . . . . 9
⊢ (𝑘 ∈ (𝐴 ∪ 𝐵) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = 𝐶) |
52 | 23, 51 | syl 14 |
. . . . . . . 8
⊢ (𝑘 ∈ 𝐴 → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = 𝐶) |
53 | 52 | adantl 275 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = 𝐶) |
54 | 37, 50, 53 | 3eqtr4rd 2214 |
. . . . . 6
⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
55 | 54 | adantlr 474 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
56 | 33 | adantr 274 |
. . . . . . 7
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐵, 𝐶, 0) ∈ ℂ) |
57 | 56 | addid2d 8069 |
. . . . . 6
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → (0 + if(𝑘 ∈ 𝐵, 𝐶, 0)) = if(𝑘 ∈ 𝐵, 𝐶, 0)) |
58 | | iffalse 3534 |
. . . . . . . . 9
⊢ (¬
𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐶, 0) = 0) |
59 | 58 | adantl 275 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐴, 𝐶, 0) = 0) |
60 | 59 | oveq1d 5868 |
. . . . . . 7
⊢ ((𝜑 ∧ ¬ 𝑘 ∈ 𝐴) → (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0)) = (0 + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
61 | 60 | adantlr 474 |
. . . . . 6
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0)) = (0 + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
62 | | elun 3268 |
. . . . . . . . . 10
⊢ (𝑘 ∈ (𝐴 ∪ 𝐵) ↔ (𝑘 ∈ 𝐴 ∨ 𝑘 ∈ 𝐵)) |
63 | | biorf 739 |
. . . . . . . . . 10
⊢ (¬
𝑘 ∈ 𝐴 → (𝑘 ∈ 𝐵 ↔ (𝑘 ∈ 𝐴 ∨ 𝑘 ∈ 𝐵))) |
64 | 62, 63 | bitr4id 198 |
. . . . . . . . 9
⊢ (¬
𝑘 ∈ 𝐴 → (𝑘 ∈ (𝐴 ∪ 𝐵) ↔ 𝑘 ∈ 𝐵)) |
65 | 64 | adantl 275 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ 𝑘 ∈ 𝐴) → (𝑘 ∈ (𝐴 ∪ 𝐵) ↔ 𝑘 ∈ 𝐵)) |
66 | 65 | ifbid 3547 |
. . . . . . 7
⊢ ((𝜑 ∧ ¬ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = if(𝑘 ∈ 𝐵, 𝐶, 0)) |
67 | 66 | adantlr 474 |
. . . . . 6
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = if(𝑘 ∈ 𝐵, 𝐶, 0)) |
68 | 57, 61, 67 | 3eqtr4rd 2214 |
. . . . 5
⊢ (((𝜑 ∧ 𝑘 ∈ 𝑍) ∧ ¬ 𝑘 ∈ 𝐴) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
69 | | exmiddc 831 |
. . . . . 6
⊢
(DECID 𝑘 ∈ 𝐴 → (𝑘 ∈ 𝐴 ∨ ¬ 𝑘 ∈ 𝐴)) |
70 | 2, 69 | syl 14 |
. . . . 5
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → (𝑘 ∈ 𝐴 ∨ ¬ 𝑘 ∈ 𝐴)) |
71 | 55, 68, 70 | mpjaodan 793 |
. . . 4
⊢ ((𝜑 ∧ 𝑘 ∈ 𝑍) → if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
72 | 71 | sumeq2dv 11331 |
. . 3
⊢ (𝜑 → Σ𝑘 ∈ 𝑍 if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0) = Σ𝑘 ∈ 𝑍 (if(𝑘 ∈ 𝐴, 𝐶, 0) + if(𝑘 ∈ 𝐵, 𝐶, 0))) |
73 | 1 | unssad 3304 |
. . . . 5
⊢ (𝜑 → 𝐴 ⊆ 𝑍) |
74 | 2 | ralrimiva 2543 |
. . . . 5
⊢ (𝜑 → ∀𝑘 ∈ 𝑍 DECID 𝑘 ∈ 𝐴) |
75 | 24 | ralrimiva 2543 |
. . . . 5
⊢ (𝜑 → ∀𝑘 ∈ 𝐴 𝐶 ∈ ℂ) |
76 | 73, 74, 75, 20 | isumss2 11356 |
. . . 4
⊢ (𝜑 → Σ𝑘 ∈ 𝐴 𝐶 = Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐴, 𝐶, 0)) |
77 | 1 | unssbd 3305 |
. . . . 5
⊢ (𝜑 → 𝐵 ⊆ 𝑍) |
78 | 3 | ralrimiva 2543 |
. . . . 5
⊢ (𝜑 → ∀𝑘 ∈ 𝑍 DECID 𝑘 ∈ 𝐵) |
79 | 30 | ralrimiva 2543 |
. . . . 5
⊢ (𝜑 → ∀𝑘 ∈ 𝐵 𝐶 ∈ ℂ) |
80 | 77, 78, 79, 20 | isumss2 11356 |
. . . 4
⊢ (𝜑 → Σ𝑘 ∈ 𝐵 𝐶 = Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐵, 𝐶, 0)) |
81 | 76, 80 | oveq12d 5871 |
. . 3
⊢ (𝜑 → (Σ𝑘 ∈ 𝐴 𝐶 + Σ𝑘 ∈ 𝐵 𝐶) = (Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐴, 𝐶, 0) + Σ𝑘 ∈ 𝑍 if(𝑘 ∈ 𝐵, 𝐶, 0))) |
82 | 36, 72, 81 | 3eqtr4rd 2214 |
. 2
⊢ (𝜑 → (Σ𝑘 ∈ 𝐴 𝐶 + Σ𝑘 ∈ 𝐵 𝐶) = Σ𝑘 ∈ 𝑍 if(𝑘 ∈ (𝐴 ∪ 𝐵), 𝐶, 0)) |
83 | 21, 82 | eqtr4d 2206 |
1
⊢ (𝜑 → Σ𝑘 ∈ (𝐴 ∪ 𝐵)𝐶 = (Σ𝑘 ∈ 𝐴 𝐶 + Σ𝑘 ∈ 𝐵 𝐶)) |