Proof of Theorem sadcaddlem
Step | Hyp | Ref
| Expression |
1 | | cad1 1624 |
. . . . 5
⊢ (∅
∈ (𝐶‘𝑁) → (cadd(𝑁 ∈ 𝐴, 𝑁 ∈ 𝐵, ∅ ∈ (𝐶‘𝑁)) ↔ (𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵))) |
2 | 1 | adantl 485 |
. . . 4
⊢ ((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) → (cadd(𝑁 ∈ 𝐴, 𝑁 ∈ 𝐵, ∅ ∈ (𝐶‘𝑁)) ↔ (𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵))) |
3 | | 2nn 11903 |
. . . . . . . . . . 11
⊢ 2 ∈
ℕ |
4 | 3 | a1i 11 |
. . . . . . . . . 10
⊢ (𝜑 → 2 ∈
ℕ) |
5 | | sadcp1.n |
. . . . . . . . . 10
⊢ (𝜑 → 𝑁 ∈
ℕ0) |
6 | 4, 5 | nnexpcld 13812 |
. . . . . . . . 9
⊢ (𝜑 → (2↑𝑁) ∈ ℕ) |
7 | 6 | nnred 11845 |
. . . . . . . 8
⊢ (𝜑 → (2↑𝑁) ∈ ℝ) |
8 | 7 | ad2antrr 726 |
. . . . . . 7
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵)) → (2↑𝑁) ∈ ℝ) |
9 | | inss1 4143 |
. . . . . . . . . . . . 13
⊢ (𝐴 ∩ (0..^𝑁)) ⊆ 𝐴 |
10 | | sadval.a |
. . . . . . . . . . . . 13
⊢ (𝜑 → 𝐴 ⊆
ℕ0) |
11 | 9, 10 | sstrid 3912 |
. . . . . . . . . . . 12
⊢ (𝜑 → (𝐴 ∩ (0..^𝑁)) ⊆
ℕ0) |
12 | | fzofi 13547 |
. . . . . . . . . . . . . 14
⊢
(0..^𝑁) ∈
Fin |
13 | 12 | a1i 11 |
. . . . . . . . . . . . 13
⊢ (𝜑 → (0..^𝑁) ∈ Fin) |
14 | | inss2 4144 |
. . . . . . . . . . . . 13
⊢ (𝐴 ∩ (0..^𝑁)) ⊆ (0..^𝑁) |
15 | | ssfi 8851 |
. . . . . . . . . . . . 13
⊢
(((0..^𝑁) ∈ Fin
∧ (𝐴 ∩ (0..^𝑁)) ⊆ (0..^𝑁)) → (𝐴 ∩ (0..^𝑁)) ∈ Fin) |
16 | 13, 14, 15 | sylancl 589 |
. . . . . . . . . . . 12
⊢ (𝜑 → (𝐴 ∩ (0..^𝑁)) ∈ Fin) |
17 | | elfpw 8978 |
. . . . . . . . . . . 12
⊢ ((𝐴 ∩ (0..^𝑁)) ∈ (𝒫 ℕ0
∩ Fin) ↔ ((𝐴 ∩
(0..^𝑁)) ⊆
ℕ0 ∧ (𝐴 ∩ (0..^𝑁)) ∈ Fin)) |
18 | 11, 16, 17 | sylanbrc 586 |
. . . . . . . . . . 11
⊢ (𝜑 → (𝐴 ∩ (0..^𝑁)) ∈ (𝒫 ℕ0
∩ Fin)) |
19 | | bitsf1o 16004 |
. . . . . . . . . . . . . . 15
⊢ (bits
↾ ℕ0):ℕ0–1-1-onto→(𝒫 ℕ0 ∩
Fin) |
20 | | f1ocnv 6673 |
. . . . . . . . . . . . . . 15
⊢ ((bits
↾ ℕ0):ℕ0–1-1-onto→(𝒫 ℕ0 ∩ Fin)
→ ◡(bits ↾
ℕ0):(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0) |
21 | 19, 20 | ax-mp 5 |
. . . . . . . . . . . . . 14
⊢ ◡(bits ↾
ℕ0):(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0 |
22 | | sadcadd.k |
. . . . . . . . . . . . . . 15
⊢ 𝐾 = ◡(bits ↾
ℕ0) |
23 | | f1oeq1 6649 |
. . . . . . . . . . . . . . 15
⊢ (𝐾 = ◡(bits ↾ ℕ0) →
(𝐾:(𝒫
ℕ0 ∩ Fin)–1-1-onto→ℕ0 ↔ ◡(bits ↾
ℕ0):(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0)) |
24 | 22, 23 | ax-mp 5 |
. . . . . . . . . . . . . 14
⊢ (𝐾:(𝒫 ℕ0
∩ Fin)–1-1-onto→ℕ0 ↔ ◡(bits ↾
ℕ0):(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0) |
25 | 21, 24 | mpbir 234 |
. . . . . . . . . . . . 13
⊢ 𝐾:(𝒫 ℕ0
∩ Fin)–1-1-onto→ℕ0 |
26 | | f1of 6661 |
. . . . . . . . . . . . 13
⊢ (𝐾:(𝒫 ℕ0
∩ Fin)–1-1-onto→ℕ0 → 𝐾:(𝒫 ℕ0 ∩
Fin)⟶ℕ0) |
27 | 25, 26 | ax-mp 5 |
. . . . . . . . . . . 12
⊢ 𝐾:(𝒫 ℕ0
∩ Fin)⟶ℕ0 |
28 | 27 | ffvelrni 6903 |
. . . . . . . . . . 11
⊢ ((𝐴 ∩ (0..^𝑁)) ∈ (𝒫 ℕ0
∩ Fin) → (𝐾‘(𝐴 ∩ (0..^𝑁))) ∈
ℕ0) |
29 | 18, 28 | syl 17 |
. . . . . . . . . 10
⊢ (𝜑 → (𝐾‘(𝐴 ∩ (0..^𝑁))) ∈
ℕ0) |
30 | | inss1 4143 |
. . . . . . . . . . . . 13
⊢ (𝐵 ∩ (0..^𝑁)) ⊆ 𝐵 |
31 | | sadval.b |
. . . . . . . . . . . . 13
⊢ (𝜑 → 𝐵 ⊆
ℕ0) |
32 | 30, 31 | sstrid 3912 |
. . . . . . . . . . . 12
⊢ (𝜑 → (𝐵 ∩ (0..^𝑁)) ⊆
ℕ0) |
33 | | inss2 4144 |
. . . . . . . . . . . . 13
⊢ (𝐵 ∩ (0..^𝑁)) ⊆ (0..^𝑁) |
34 | | ssfi 8851 |
. . . . . . . . . . . . 13
⊢
(((0..^𝑁) ∈ Fin
∧ (𝐵 ∩ (0..^𝑁)) ⊆ (0..^𝑁)) → (𝐵 ∩ (0..^𝑁)) ∈ Fin) |
35 | 13, 33, 34 | sylancl 589 |
. . . . . . . . . . . 12
⊢ (𝜑 → (𝐵 ∩ (0..^𝑁)) ∈ Fin) |
36 | | elfpw 8978 |
. . . . . . . . . . . 12
⊢ ((𝐵 ∩ (0..^𝑁)) ∈ (𝒫 ℕ0
∩ Fin) ↔ ((𝐵 ∩
(0..^𝑁)) ⊆
ℕ0 ∧ (𝐵 ∩ (0..^𝑁)) ∈ Fin)) |
37 | 32, 35, 36 | sylanbrc 586 |
. . . . . . . . . . 11
⊢ (𝜑 → (𝐵 ∩ (0..^𝑁)) ∈ (𝒫 ℕ0
∩ Fin)) |
38 | 27 | ffvelrni 6903 |
. . . . . . . . . . 11
⊢ ((𝐵 ∩ (0..^𝑁)) ∈ (𝒫 ℕ0
∩ Fin) → (𝐾‘(𝐵 ∩ (0..^𝑁))) ∈
ℕ0) |
39 | 37, 38 | syl 17 |
. . . . . . . . . 10
⊢ (𝜑 → (𝐾‘(𝐵 ∩ (0..^𝑁))) ∈
ℕ0) |
40 | 29, 39 | nn0addcld 12154 |
. . . . . . . . 9
⊢ (𝜑 → ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) ∈
ℕ0) |
41 | 40 | nn0red 12151 |
. . . . . . . 8
⊢ (𝜑 → ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) ∈ ℝ) |
42 | 41 | ad2antrr 726 |
. . . . . . 7
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵)) → ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) ∈ ℝ) |
43 | | 2nn0 12107 |
. . . . . . . . . . . . 13
⊢ 2 ∈
ℕ0 |
44 | 43 | a1i 11 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ 𝑁 ∈ 𝐴) → 2 ∈
ℕ0) |
45 | 5 | adantr 484 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ 𝑁 ∈ 𝐴) → 𝑁 ∈
ℕ0) |
46 | 44, 45 | nn0expcld 13813 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ 𝑁 ∈ 𝐴) → (2↑𝑁) ∈
ℕ0) |
47 | | 0nn0 12105 |
. . . . . . . . . . . 12
⊢ 0 ∈
ℕ0 |
48 | 47 | a1i 11 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ ¬ 𝑁 ∈ 𝐴) → 0 ∈
ℕ0) |
49 | 46, 48 | ifclda 4474 |
. . . . . . . . . 10
⊢ (𝜑 → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) ∈
ℕ0) |
50 | 43 | a1i 11 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ 𝑁 ∈ 𝐵) → 2 ∈
ℕ0) |
51 | 5 | adantr 484 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ 𝑁 ∈ 𝐵) → 𝑁 ∈
ℕ0) |
52 | 50, 51 | nn0expcld 13813 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ 𝑁 ∈ 𝐵) → (2↑𝑁) ∈
ℕ0) |
53 | 47 | a1i 11 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ ¬ 𝑁 ∈ 𝐵) → 0 ∈
ℕ0) |
54 | 52, 53 | ifclda 4474 |
. . . . . . . . . 10
⊢ (𝜑 → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) ∈
ℕ0) |
55 | 49, 54 | nn0addcld 12154 |
. . . . . . . . 9
⊢ (𝜑 → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ∈
ℕ0) |
56 | 55 | nn0red 12151 |
. . . . . . . 8
⊢ (𝜑 → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ∈ ℝ) |
57 | 56 | ad2antrr 726 |
. . . . . . 7
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵)) → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ∈ ℝ) |
58 | | sadcaddlem.1 |
. . . . . . . . 9
⊢ (𝜑 → (∅ ∈ (𝐶‘𝑁) ↔ (2↑𝑁) ≤ ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))))) |
59 | 58 | biimpa 480 |
. . . . . . . 8
⊢ ((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) → (2↑𝑁) ≤ ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁))))) |
60 | 59 | adantr 484 |
. . . . . . 7
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵)) → (2↑𝑁) ≤ ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁))))) |
61 | 6 | nnnn0d 12150 |
. . . . . . . . . . . . 13
⊢ (𝜑 → (2↑𝑁) ∈
ℕ0) |
62 | | ifcl 4484 |
. . . . . . . . . . . . 13
⊢
(((2↑𝑁) ∈
ℕ0 ∧ 0 ∈ ℕ0) → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) ∈
ℕ0) |
63 | 61, 47, 62 | sylancl 589 |
. . . . . . . . . . . 12
⊢ (𝜑 → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) ∈
ℕ0) |
64 | 63 | nn0ge0d 12153 |
. . . . . . . . . . 11
⊢ (𝜑 → 0 ≤ if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) |
65 | 7 | adantr 484 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ 𝑁 ∈ 𝐵) → (2↑𝑁) ∈ ℝ) |
66 | | 0red 10836 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑁 ∈ 𝐵) → 0 ∈ ℝ) |
67 | 65, 66 | ifclda 4474 |
. . . . . . . . . . . 12
⊢ (𝜑 → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) ∈ ℝ) |
68 | 7, 67 | addge01d 11420 |
. . . . . . . . . . 11
⊢ (𝜑 → (0 ≤ if(𝑁 ∈ 𝐵, (2↑𝑁), 0) ↔ (2↑𝑁) ≤ ((2↑𝑁) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)))) |
69 | 64, 68 | mpbid 235 |
. . . . . . . . . 10
⊢ (𝜑 → (2↑𝑁) ≤ ((2↑𝑁) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) |
70 | 69 | ad2antrr 726 |
. . . . . . . . 9
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ 𝑁 ∈ 𝐴) → (2↑𝑁) ≤ ((2↑𝑁) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) |
71 | | iftrue 4445 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ 𝐴 → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) = (2↑𝑁)) |
72 | 71 | adantl 485 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ 𝑁 ∈ 𝐴) → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) = (2↑𝑁)) |
73 | 72 | oveq1d 7228 |
. . . . . . . . 9
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ 𝑁 ∈ 𝐴) → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) = ((2↑𝑁) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) |
74 | 70, 73 | breqtrrd 5081 |
. . . . . . . 8
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ 𝑁 ∈ 𝐴) → (2↑𝑁) ≤ (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) |
75 | | ifcl 4484 |
. . . . . . . . . . . . 13
⊢
(((2↑𝑁) ∈
ℕ0 ∧ 0 ∈ ℕ0) → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) ∈
ℕ0) |
76 | 61, 47, 75 | sylancl 589 |
. . . . . . . . . . . 12
⊢ (𝜑 → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) ∈
ℕ0) |
77 | 76 | nn0ge0d 12153 |
. . . . . . . . . . 11
⊢ (𝜑 → 0 ≤ if(𝑁 ∈ 𝐴, (2↑𝑁), 0)) |
78 | 7 | adantr 484 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ 𝑁 ∈ 𝐴) → (2↑𝑁) ∈ ℝ) |
79 | | 0red 10836 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑁 ∈ 𝐴) → 0 ∈ ℝ) |
80 | 78, 79 | ifclda 4474 |
. . . . . . . . . . . 12
⊢ (𝜑 → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) ∈ ℝ) |
81 | 7, 80 | addge02d 11421 |
. . . . . . . . . . 11
⊢ (𝜑 → (0 ≤ if(𝑁 ∈ 𝐴, (2↑𝑁), 0) ↔ (2↑𝑁) ≤ (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + (2↑𝑁)))) |
82 | 77, 81 | mpbid 235 |
. . . . . . . . . 10
⊢ (𝜑 → (2↑𝑁) ≤ (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + (2↑𝑁))) |
83 | 82 | ad2antrr 726 |
. . . . . . . . 9
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ 𝑁 ∈ 𝐵) → (2↑𝑁) ≤ (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + (2↑𝑁))) |
84 | | iftrue 4445 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ 𝐵 → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) = (2↑𝑁)) |
85 | 84 | adantl 485 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ 𝑁 ∈ 𝐵) → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) = (2↑𝑁)) |
86 | 85 | oveq2d 7229 |
. . . . . . . . 9
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ 𝑁 ∈ 𝐵) → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) = (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + (2↑𝑁))) |
87 | 83, 86 | breqtrrd 5081 |
. . . . . . . 8
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ 𝑁 ∈ 𝐵) → (2↑𝑁) ≤ (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) |
88 | 74, 87 | jaodan 958 |
. . . . . . 7
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵)) → (2↑𝑁) ≤ (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) |
89 | 8, 8, 42, 57, 60, 88 | le2addd 11451 |
. . . . . 6
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵)) → ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)))) |
90 | 89 | ex 416 |
. . . . 5
⊢ ((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) → ((𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵) → ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
91 | | ioran 984 |
. . . . . 6
⊢ (¬
(𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵) ↔ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) |
92 | | iffalse 4448 |
. . . . . . . . . . . . . 14
⊢ (¬
𝑁 ∈ 𝐴 → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) = 0) |
93 | 92 | ad2antrl 728 |
. . . . . . . . . . . . 13
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) = 0) |
94 | | iffalse 4448 |
. . . . . . . . . . . . . 14
⊢ (¬
𝑁 ∈ 𝐵 → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) = 0) |
95 | 94 | ad2antll 729 |
. . . . . . . . . . . . 13
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) = 0) |
96 | 93, 95 | oveq12d 7231 |
. . . . . . . . . . . 12
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) = (0 + 0)) |
97 | | 00id 11007 |
. . . . . . . . . . . 12
⊢ (0 + 0) =
0 |
98 | 96, 97 | eqtrdi 2794 |
. . . . . . . . . . 11
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) = 0) |
99 | 98 | oveq2d 7229 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) = (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + 0)) |
100 | 29 | nn0red 12151 |
. . . . . . . . . . . . . 14
⊢ (𝜑 → (𝐾‘(𝐴 ∩ (0..^𝑁))) ∈ ℝ) |
101 | 100 | ad2antrr 726 |
. . . . . . . . . . . . 13
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → (𝐾‘(𝐴 ∩ (0..^𝑁))) ∈ ℝ) |
102 | 39 | nn0red 12151 |
. . . . . . . . . . . . . 14
⊢ (𝜑 → (𝐾‘(𝐵 ∩ (0..^𝑁))) ∈ ℝ) |
103 | 102 | ad2antrr 726 |
. . . . . . . . . . . . 13
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → (𝐾‘(𝐵 ∩ (0..^𝑁))) ∈ ℝ) |
104 | 101, 103 | readdcld 10862 |
. . . . . . . . . . . 12
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) ∈ ℝ) |
105 | 104 | recnd 10861 |
. . . . . . . . . . 11
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) ∈ ℂ) |
106 | 105 | addid1d 11032 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + 0) = ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁))))) |
107 | 99, 106 | eqtrd 2777 |
. . . . . . . . 9
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) = ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁))))) |
108 | 22 | fveq1i 6718 |
. . . . . . . . . . . . . . . 16
⊢ (𝐾‘(𝐴 ∩ (0..^𝑁))) = (◡(bits ↾
ℕ0)‘(𝐴 ∩ (0..^𝑁))) |
109 | 108 | fveq2i 6720 |
. . . . . . . . . . . . . . 15
⊢ ((bits
↾ ℕ0)‘(𝐾‘(𝐴 ∩ (0..^𝑁)))) = ((bits ↾
ℕ0)‘(◡(bits
↾ ℕ0)‘(𝐴 ∩ (0..^𝑁)))) |
110 | 29 | fvresd 6737 |
. . . . . . . . . . . . . . 15
⊢ (𝜑 → ((bits ↾
ℕ0)‘(𝐾‘(𝐴 ∩ (0..^𝑁)))) = (bits‘(𝐾‘(𝐴 ∩ (0..^𝑁))))) |
111 | | f1ocnvfv2 7088 |
. . . . . . . . . . . . . . . 16
⊢ (((bits
↾ ℕ0):ℕ0–1-1-onto→(𝒫 ℕ0 ∩ Fin)
∧ (𝐴 ∩ (0..^𝑁)) ∈ (𝒫
ℕ0 ∩ Fin)) → ((bits ↾
ℕ0)‘(◡(bits
↾ ℕ0)‘(𝐴 ∩ (0..^𝑁)))) = (𝐴 ∩ (0..^𝑁))) |
112 | 19, 18, 111 | sylancr 590 |
. . . . . . . . . . . . . . 15
⊢ (𝜑 → ((bits ↾
ℕ0)‘(◡(bits
↾ ℕ0)‘(𝐴 ∩ (0..^𝑁)))) = (𝐴 ∩ (0..^𝑁))) |
113 | 109, 110,
112 | 3eqtr3a 2802 |
. . . . . . . . . . . . . 14
⊢ (𝜑 → (bits‘(𝐾‘(𝐴 ∩ (0..^𝑁)))) = (𝐴 ∩ (0..^𝑁))) |
114 | 113, 14 | eqsstrdi 3955 |
. . . . . . . . . . . . 13
⊢ (𝜑 → (bits‘(𝐾‘(𝐴 ∩ (0..^𝑁)))) ⊆ (0..^𝑁)) |
115 | 29 | nn0zd 12280 |
. . . . . . . . . . . . . 14
⊢ (𝜑 → (𝐾‘(𝐴 ∩ (0..^𝑁))) ∈ ℤ) |
116 | | bitsfzo 15994 |
. . . . . . . . . . . . . 14
⊢ (((𝐾‘(𝐴 ∩ (0..^𝑁))) ∈ ℤ ∧ 𝑁 ∈ ℕ0) → ((𝐾‘(𝐴 ∩ (0..^𝑁))) ∈ (0..^(2↑𝑁)) ↔ (bits‘(𝐾‘(𝐴 ∩ (0..^𝑁)))) ⊆ (0..^𝑁))) |
117 | 115, 5, 116 | syl2anc 587 |
. . . . . . . . . . . . 13
⊢ (𝜑 → ((𝐾‘(𝐴 ∩ (0..^𝑁))) ∈ (0..^(2↑𝑁)) ↔ (bits‘(𝐾‘(𝐴 ∩ (0..^𝑁)))) ⊆ (0..^𝑁))) |
118 | 114, 117 | mpbird 260 |
. . . . . . . . . . . 12
⊢ (𝜑 → (𝐾‘(𝐴 ∩ (0..^𝑁))) ∈ (0..^(2↑𝑁))) |
119 | | elfzolt2 13252 |
. . . . . . . . . . . 12
⊢ ((𝐾‘(𝐴 ∩ (0..^𝑁))) ∈ (0..^(2↑𝑁)) → (𝐾‘(𝐴 ∩ (0..^𝑁))) < (2↑𝑁)) |
120 | 118, 119 | syl 17 |
. . . . . . . . . . 11
⊢ (𝜑 → (𝐾‘(𝐴 ∩ (0..^𝑁))) < (2↑𝑁)) |
121 | 22 | fveq1i 6718 |
. . . . . . . . . . . . . . . 16
⊢ (𝐾‘(𝐵 ∩ (0..^𝑁))) = (◡(bits ↾
ℕ0)‘(𝐵 ∩ (0..^𝑁))) |
122 | 121 | fveq2i 6720 |
. . . . . . . . . . . . . . 15
⊢ ((bits
↾ ℕ0)‘(𝐾‘(𝐵 ∩ (0..^𝑁)))) = ((bits ↾
ℕ0)‘(◡(bits
↾ ℕ0)‘(𝐵 ∩ (0..^𝑁)))) |
123 | 39 | fvresd 6737 |
. . . . . . . . . . . . . . 15
⊢ (𝜑 → ((bits ↾
ℕ0)‘(𝐾‘(𝐵 ∩ (0..^𝑁)))) = (bits‘(𝐾‘(𝐵 ∩ (0..^𝑁))))) |
124 | | f1ocnvfv2 7088 |
. . . . . . . . . . . . . . . 16
⊢ (((bits
↾ ℕ0):ℕ0–1-1-onto→(𝒫 ℕ0 ∩ Fin)
∧ (𝐵 ∩ (0..^𝑁)) ∈ (𝒫
ℕ0 ∩ Fin)) → ((bits ↾
ℕ0)‘(◡(bits
↾ ℕ0)‘(𝐵 ∩ (0..^𝑁)))) = (𝐵 ∩ (0..^𝑁))) |
125 | 19, 37, 124 | sylancr 590 |
. . . . . . . . . . . . . . 15
⊢ (𝜑 → ((bits ↾
ℕ0)‘(◡(bits
↾ ℕ0)‘(𝐵 ∩ (0..^𝑁)))) = (𝐵 ∩ (0..^𝑁))) |
126 | 122, 123,
125 | 3eqtr3a 2802 |
. . . . . . . . . . . . . 14
⊢ (𝜑 → (bits‘(𝐾‘(𝐵 ∩ (0..^𝑁)))) = (𝐵 ∩ (0..^𝑁))) |
127 | 126, 33 | eqsstrdi 3955 |
. . . . . . . . . . . . 13
⊢ (𝜑 → (bits‘(𝐾‘(𝐵 ∩ (0..^𝑁)))) ⊆ (0..^𝑁)) |
128 | 39 | nn0zd 12280 |
. . . . . . . . . . . . . 14
⊢ (𝜑 → (𝐾‘(𝐵 ∩ (0..^𝑁))) ∈ ℤ) |
129 | | bitsfzo 15994 |
. . . . . . . . . . . . . 14
⊢ (((𝐾‘(𝐵 ∩ (0..^𝑁))) ∈ ℤ ∧ 𝑁 ∈ ℕ0) → ((𝐾‘(𝐵 ∩ (0..^𝑁))) ∈ (0..^(2↑𝑁)) ↔ (bits‘(𝐾‘(𝐵 ∩ (0..^𝑁)))) ⊆ (0..^𝑁))) |
130 | 128, 5, 129 | syl2anc 587 |
. . . . . . . . . . . . 13
⊢ (𝜑 → ((𝐾‘(𝐵 ∩ (0..^𝑁))) ∈ (0..^(2↑𝑁)) ↔ (bits‘(𝐾‘(𝐵 ∩ (0..^𝑁)))) ⊆ (0..^𝑁))) |
131 | 127, 130 | mpbird 260 |
. . . . . . . . . . . 12
⊢ (𝜑 → (𝐾‘(𝐵 ∩ (0..^𝑁))) ∈ (0..^(2↑𝑁))) |
132 | | elfzolt2 13252 |
. . . . . . . . . . . 12
⊢ ((𝐾‘(𝐵 ∩ (0..^𝑁))) ∈ (0..^(2↑𝑁)) → (𝐾‘(𝐵 ∩ (0..^𝑁))) < (2↑𝑁)) |
133 | 131, 132 | syl 17 |
. . . . . . . . . . 11
⊢ (𝜑 → (𝐾‘(𝐵 ∩ (0..^𝑁))) < (2↑𝑁)) |
134 | 100, 102,
7, 7, 120, 133 | lt2addd 11455 |
. . . . . . . . . 10
⊢ (𝜑 → ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) < ((2↑𝑁) + (2↑𝑁))) |
135 | 134 | ad2antrr 726 |
. . . . . . . . 9
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) < ((2↑𝑁) + (2↑𝑁))) |
136 | 107, 135 | eqbrtrd 5075 |
. . . . . . . 8
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) < ((2↑𝑁) + (2↑𝑁))) |
137 | 80 | ad2antrr 726 |
. . . . . . . . . . 11
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) ∈ ℝ) |
138 | 67 | ad2antrr 726 |
. . . . . . . . . . 11
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) ∈ ℝ) |
139 | 137, 138 | readdcld 10862 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ∈ ℝ) |
140 | 104, 139 | readdcld 10862 |
. . . . . . . . 9
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) ∈ ℝ) |
141 | 7 | ad2antrr 726 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → (2↑𝑁) ∈ ℝ) |
142 | 141, 141 | readdcld 10862 |
. . . . . . . . 9
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → ((2↑𝑁) + (2↑𝑁)) ∈ ℝ) |
143 | 140, 142 | ltnled 10979 |
. . . . . . . 8
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → ((((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) < ((2↑𝑁) + (2↑𝑁)) ↔ ¬ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
144 | 136, 143 | mpbid 235 |
. . . . . . 7
⊢ (((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) ∧ (¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵)) → ¬ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)))) |
145 | 144 | ex 416 |
. . . . . 6
⊢ ((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) → ((¬ 𝑁 ∈ 𝐴 ∧ ¬ 𝑁 ∈ 𝐵) → ¬ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
146 | 91, 145 | syl5bi 245 |
. . . . 5
⊢ ((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) → (¬ (𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵) → ¬ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
147 | 90, 146 | impcon4bid 230 |
. . . 4
⊢ ((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) → ((𝑁 ∈ 𝐴 ∨ 𝑁 ∈ 𝐵) ↔ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
148 | 2, 147 | bitrd 282 |
. . 3
⊢ ((𝜑 ∧ ∅ ∈ (𝐶‘𝑁)) → (cadd(𝑁 ∈ 𝐴, 𝑁 ∈ 𝐵, ∅ ∈ (𝐶‘𝑁)) ↔ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
149 | | cad0 1625 |
. . . . 5
⊢ (¬
∅ ∈ (𝐶‘𝑁) → (cadd(𝑁 ∈ 𝐴, 𝑁 ∈ 𝐵, ∅ ∈ (𝐶‘𝑁)) ↔ (𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵))) |
150 | 149 | adantl 485 |
. . . 4
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (cadd(𝑁 ∈ 𝐴, 𝑁 ∈ 𝐵, ∅ ∈ (𝐶‘𝑁)) ↔ (𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵))) |
151 | 40 | nn0ge0d 12153 |
. . . . . . . . 9
⊢ (𝜑 → 0 ≤ ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁))))) |
152 | 7, 7 | readdcld 10862 |
. . . . . . . . . 10
⊢ (𝜑 → ((2↑𝑁) + (2↑𝑁)) ∈ ℝ) |
153 | 152, 41 | addge02d 11421 |
. . . . . . . . 9
⊢ (𝜑 → (0 ≤ ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) ↔ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + ((2↑𝑁) + (2↑𝑁))))) |
154 | 151, 153 | mpbid 235 |
. . . . . . . 8
⊢ (𝜑 → ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + ((2↑𝑁) + (2↑𝑁)))) |
155 | 154 | ad2antrr 726 |
. . . . . . 7
⊢ (((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) ∧ (𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵)) → ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + ((2↑𝑁) + (2↑𝑁)))) |
156 | 71, 84 | oveqan12d 7232 |
. . . . . . . . 9
⊢ ((𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵) → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) = ((2↑𝑁) + (2↑𝑁))) |
157 | 156 | adantl 485 |
. . . . . . . 8
⊢ (((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) ∧ (𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵)) → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) = ((2↑𝑁) + (2↑𝑁))) |
158 | 157 | oveq2d 7229 |
. . . . . . 7
⊢ (((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) ∧ (𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵)) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) = (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + ((2↑𝑁) + (2↑𝑁)))) |
159 | 155, 158 | breqtrrd 5081 |
. . . . . 6
⊢ (((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) ∧ (𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵)) → ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)))) |
160 | 159 | ex 416 |
. . . . 5
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → ((𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵) → ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
161 | 100 | adantr 484 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (𝐾‘(𝐴 ∩ (0..^𝑁))) ∈ ℝ) |
162 | 102 | adantr 484 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (𝐾‘(𝐵 ∩ (0..^𝑁))) ∈ ℝ) |
163 | 161, 162 | readdcld 10862 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) ∈ ℝ) |
164 | 7 | adantr 484 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (2↑𝑁) ∈ ℝ) |
165 | 7, 41 | lenltd 10978 |
. . . . . . . . . . . 12
⊢ (𝜑 → ((2↑𝑁) ≤ ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) ↔ ¬ ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) < (2↑𝑁))) |
166 | 58, 165 | bitrd 282 |
. . . . . . . . . . 11
⊢ (𝜑 → (∅ ∈ (𝐶‘𝑁) ↔ ¬ ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) < (2↑𝑁))) |
167 | 166 | con2bid 358 |
. . . . . . . . . 10
⊢ (𝜑 → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) < (2↑𝑁) ↔ ¬ ∅ ∈ (𝐶‘𝑁))) |
168 | 167 | biimpar 481 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) < (2↑𝑁)) |
169 | 163, 164,
164, 168 | ltadd1dd 11443 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (2↑𝑁)) < ((2↑𝑁) + (2↑𝑁))) |
170 | 163, 164 | readdcld 10862 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (2↑𝑁)) ∈ ℝ) |
171 | 152 | adantr 484 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → ((2↑𝑁) + (2↑𝑁)) ∈ ℝ) |
172 | 41, 56 | readdcld 10862 |
. . . . . . . . . 10
⊢ (𝜑 → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) ∈ ℝ) |
173 | 172 | adantr 484 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) ∈ ℝ) |
174 | | ltletr 10924 |
. . . . . . . . 9
⊢
(((((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (2↑𝑁)) ∈ ℝ ∧ ((2↑𝑁) + (2↑𝑁)) ∈ ℝ ∧ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) ∈ ℝ) → (((((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (2↑𝑁)) < ((2↑𝑁) + (2↑𝑁)) ∧ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)))) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (2↑𝑁)) < (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
175 | 170, 171,
173, 174 | syl3anc 1373 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (((((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (2↑𝑁)) < ((2↑𝑁) + (2↑𝑁)) ∧ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)))) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (2↑𝑁)) < (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
176 | 169, 175 | mpand 695 |
. . . . . . 7
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (2↑𝑁)) < (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
177 | 56 | adantr 484 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ∈ ℝ) |
178 | 41 | adantr 484 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → ((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) ∈ ℝ) |
179 | 164, 177,
178 | ltadd2d 10988 |
. . . . . . 7
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → ((2↑𝑁) < (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ↔ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (2↑𝑁)) < (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
180 | 176, 179 | sylibrd 262 |
. . . . . 6
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) → (2↑𝑁) < (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)))) |
181 | 7, 56 | ltnled 10979 |
. . . . . . . 8
⊢ (𝜑 → ((2↑𝑁) < (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ↔ ¬ (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ≤ (2↑𝑁))) |
182 | 63 | nn0cnd 12152 |
. . . . . . . . . . . . 13
⊢ (𝜑 → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) ∈ ℂ) |
183 | 182 | addid2d 11033 |
. . . . . . . . . . . 12
⊢ (𝜑 → (0 + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) = if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) |
184 | 7 | leidd 11398 |
. . . . . . . . . . . . 13
⊢ (𝜑 → (2↑𝑁) ≤ (2↑𝑁)) |
185 | 61 | nn0ge0d 12153 |
. . . . . . . . . . . . 13
⊢ (𝜑 → 0 ≤ (2↑𝑁)) |
186 | | breq1 5056 |
. . . . . . . . . . . . . 14
⊢
((2↑𝑁) =
if(𝑁 ∈ 𝐵, (2↑𝑁), 0) → ((2↑𝑁) ≤ (2↑𝑁) ↔ if(𝑁 ∈ 𝐵, (2↑𝑁), 0) ≤ (2↑𝑁))) |
187 | | breq1 5056 |
. . . . . . . . . . . . . 14
⊢ (0 =
if(𝑁 ∈ 𝐵, (2↑𝑁), 0) → (0 ≤ (2↑𝑁) ↔ if(𝑁 ∈ 𝐵, (2↑𝑁), 0) ≤ (2↑𝑁))) |
188 | 186, 187 | ifboth 4478 |
. . . . . . . . . . . . 13
⊢
(((2↑𝑁) ≤
(2↑𝑁) ∧ 0 ≤
(2↑𝑁)) → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) ≤ (2↑𝑁)) |
189 | 184, 185,
188 | syl2anc 587 |
. . . . . . . . . . . 12
⊢ (𝜑 → if(𝑁 ∈ 𝐵, (2↑𝑁), 0) ≤ (2↑𝑁)) |
190 | 183, 189 | eqbrtrd 5075 |
. . . . . . . . . . 11
⊢ (𝜑 → (0 + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ≤ (2↑𝑁)) |
191 | 92 | oveq1d 7228 |
. . . . . . . . . . . 12
⊢ (¬
𝑁 ∈ 𝐴 → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) = (0 + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) |
192 | 191 | breq1d 5063 |
. . . . . . . . . . 11
⊢ (¬
𝑁 ∈ 𝐴 → ((if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ≤ (2↑𝑁) ↔ (0 + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ≤ (2↑𝑁))) |
193 | 190, 192 | syl5ibrcom 250 |
. . . . . . . . . 10
⊢ (𝜑 → (¬ 𝑁 ∈ 𝐴 → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ≤ (2↑𝑁))) |
194 | 193 | con1d 147 |
. . . . . . . . 9
⊢ (𝜑 → (¬ (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ≤ (2↑𝑁) → 𝑁 ∈ 𝐴)) |
195 | 76 | nn0cnd 12152 |
. . . . . . . . . . . . 13
⊢ (𝜑 → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) ∈ ℂ) |
196 | 195 | addid1d 11032 |
. . . . . . . . . . . 12
⊢ (𝜑 → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + 0) = if(𝑁 ∈ 𝐴, (2↑𝑁), 0)) |
197 | | breq1 5056 |
. . . . . . . . . . . . . 14
⊢
((2↑𝑁) =
if(𝑁 ∈ 𝐴, (2↑𝑁), 0) → ((2↑𝑁) ≤ (2↑𝑁) ↔ if(𝑁 ∈ 𝐴, (2↑𝑁), 0) ≤ (2↑𝑁))) |
198 | | breq1 5056 |
. . . . . . . . . . . . . 14
⊢ (0 =
if(𝑁 ∈ 𝐴, (2↑𝑁), 0) → (0 ≤ (2↑𝑁) ↔ if(𝑁 ∈ 𝐴, (2↑𝑁), 0) ≤ (2↑𝑁))) |
199 | 197, 198 | ifboth 4478 |
. . . . . . . . . . . . 13
⊢
(((2↑𝑁) ≤
(2↑𝑁) ∧ 0 ≤
(2↑𝑁)) → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) ≤ (2↑𝑁)) |
200 | 184, 185,
199 | syl2anc 587 |
. . . . . . . . . . . 12
⊢ (𝜑 → if(𝑁 ∈ 𝐴, (2↑𝑁), 0) ≤ (2↑𝑁)) |
201 | 196, 200 | eqbrtrd 5075 |
. . . . . . . . . . 11
⊢ (𝜑 → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + 0) ≤ (2↑𝑁)) |
202 | 94 | oveq2d 7229 |
. . . . . . . . . . . 12
⊢ (¬
𝑁 ∈ 𝐵 → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) = (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + 0)) |
203 | 202 | breq1d 5063 |
. . . . . . . . . . 11
⊢ (¬
𝑁 ∈ 𝐵 → ((if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ≤ (2↑𝑁) ↔ (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + 0) ≤ (2↑𝑁))) |
204 | 201, 203 | syl5ibrcom 250 |
. . . . . . . . . 10
⊢ (𝜑 → (¬ 𝑁 ∈ 𝐵 → (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ≤ (2↑𝑁))) |
205 | 204 | con1d 147 |
. . . . . . . . 9
⊢ (𝜑 → (¬ (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ≤ (2↑𝑁) → 𝑁 ∈ 𝐵)) |
206 | 194, 205 | jcad 516 |
. . . . . . . 8
⊢ (𝜑 → (¬ (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) ≤ (2↑𝑁) → (𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵))) |
207 | 181, 206 | sylbid 243 |
. . . . . . 7
⊢ (𝜑 → ((2↑𝑁) < (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) → (𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵))) |
208 | 207 | adantr 484 |
. . . . . 6
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → ((2↑𝑁) < (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)) → (𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵))) |
209 | 180, 208 | syld 47 |
. . . . 5
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) → (𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵))) |
210 | 160, 209 | impbid 215 |
. . . 4
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → ((𝑁 ∈ 𝐴 ∧ 𝑁 ∈ 𝐵) ↔ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
211 | 150, 210 | bitrd 282 |
. . 3
⊢ ((𝜑 ∧ ¬ ∅ ∈ (𝐶‘𝑁)) → (cadd(𝑁 ∈ 𝐴, 𝑁 ∈ 𝐵, ∅ ∈ (𝐶‘𝑁)) ↔ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
212 | 148, 211 | pm2.61dan 813 |
. 2
⊢ (𝜑 → (cadd(𝑁 ∈ 𝐴, 𝑁 ∈ 𝐵, ∅ ∈ (𝐶‘𝑁)) ↔ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
213 | | sadval.c |
. . 3
⊢ 𝐶 = seq0((𝑐 ∈ 2o, 𝑚 ∈ ℕ0 ↦
if(cadd(𝑚 ∈ 𝐴, 𝑚 ∈ 𝐵, ∅ ∈ 𝑐), 1o, ∅)), (𝑛 ∈ ℕ0
↦ if(𝑛 = 0, ∅,
(𝑛 −
1)))) |
214 | 10, 31, 213, 5 | sadcp1 16014 |
. 2
⊢ (𝜑 → (∅ ∈ (𝐶‘(𝑁 + 1)) ↔ cadd(𝑁 ∈ 𝐴, 𝑁 ∈ 𝐵, ∅ ∈ (𝐶‘𝑁)))) |
215 | | 2cnd 11908 |
. . . . 5
⊢ (𝜑 → 2 ∈
ℂ) |
216 | 215, 5 | expp1d 13717 |
. . . 4
⊢ (𝜑 → (2↑(𝑁 + 1)) = ((2↑𝑁) · 2)) |
217 | 6 | nncnd 11846 |
. . . . 5
⊢ (𝜑 → (2↑𝑁) ∈ ℂ) |
218 | 217 | times2d 12074 |
. . . 4
⊢ (𝜑 → ((2↑𝑁) · 2) = ((2↑𝑁) + (2↑𝑁))) |
219 | 216, 218 | eqtrd 2777 |
. . 3
⊢ (𝜑 → (2↑(𝑁 + 1)) = ((2↑𝑁) + (2↑𝑁))) |
220 | 22 | bitsinvp1 16008 |
. . . . . 6
⊢ ((𝐴 ⊆ ℕ0
∧ 𝑁 ∈
ℕ0) → (𝐾‘(𝐴 ∩ (0..^(𝑁 + 1)))) = ((𝐾‘(𝐴 ∩ (0..^𝑁))) + if(𝑁 ∈ 𝐴, (2↑𝑁), 0))) |
221 | 10, 5, 220 | syl2anc 587 |
. . . . 5
⊢ (𝜑 → (𝐾‘(𝐴 ∩ (0..^(𝑁 + 1)))) = ((𝐾‘(𝐴 ∩ (0..^𝑁))) + if(𝑁 ∈ 𝐴, (2↑𝑁), 0))) |
222 | 22 | bitsinvp1 16008 |
. . . . . 6
⊢ ((𝐵 ⊆ ℕ0
∧ 𝑁 ∈
ℕ0) → (𝐾‘(𝐵 ∩ (0..^(𝑁 + 1)))) = ((𝐾‘(𝐵 ∩ (0..^𝑁))) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) |
223 | 31, 5, 222 | syl2anc 587 |
. . . . 5
⊢ (𝜑 → (𝐾‘(𝐵 ∩ (0..^(𝑁 + 1)))) = ((𝐾‘(𝐵 ∩ (0..^𝑁))) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) |
224 | 221, 223 | oveq12d 7231 |
. . . 4
⊢ (𝜑 → ((𝐾‘(𝐴 ∩ (0..^(𝑁 + 1)))) + (𝐾‘(𝐵 ∩ (0..^(𝑁 + 1))))) = (((𝐾‘(𝐴 ∩ (0..^𝑁))) + if(𝑁 ∈ 𝐴, (2↑𝑁), 0)) + ((𝐾‘(𝐵 ∩ (0..^𝑁))) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)))) |
225 | 29 | nn0cnd 12152 |
. . . . 5
⊢ (𝜑 → (𝐾‘(𝐴 ∩ (0..^𝑁))) ∈ ℂ) |
226 | 39 | nn0cnd 12152 |
. . . . 5
⊢ (𝜑 → (𝐾‘(𝐵 ∩ (0..^𝑁))) ∈ ℂ) |
227 | 225, 195,
226, 182 | add4d 11060 |
. . . 4
⊢ (𝜑 → (((𝐾‘(𝐴 ∩ (0..^𝑁))) + if(𝑁 ∈ 𝐴, (2↑𝑁), 0)) + ((𝐾‘(𝐵 ∩ (0..^𝑁))) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))) = (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)))) |
228 | 224, 227 | eqtrd 2777 |
. . 3
⊢ (𝜑 → ((𝐾‘(𝐴 ∩ (0..^(𝑁 + 1)))) + (𝐾‘(𝐵 ∩ (0..^(𝑁 + 1))))) = (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0)))) |
229 | 219, 228 | breq12d 5066 |
. 2
⊢ (𝜑 → ((2↑(𝑁 + 1)) ≤ ((𝐾‘(𝐴 ∩ (0..^(𝑁 + 1)))) + (𝐾‘(𝐵 ∩ (0..^(𝑁 + 1))))) ↔ ((2↑𝑁) + (2↑𝑁)) ≤ (((𝐾‘(𝐴 ∩ (0..^𝑁))) + (𝐾‘(𝐵 ∩ (0..^𝑁)))) + (if(𝑁 ∈ 𝐴, (2↑𝑁), 0) + if(𝑁 ∈ 𝐵, (2↑𝑁), 0))))) |
230 | 212, 214,
229 | 3bitr4d 314 |
1
⊢ (𝜑 → (∅ ∈ (𝐶‘(𝑁 + 1)) ↔ (2↑(𝑁 + 1)) ≤ ((𝐾‘(𝐴 ∩ (0..^(𝑁 + 1)))) + (𝐾‘(𝐵 ∩ (0..^(𝑁 + 1))))))) |