Proof of Theorem halfaddsub
Step | Hyp | Ref
| Expression |
1 | | ppncan 8140 |
. . . . . 6
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐴 ∈ ℂ) → ((𝐴 + 𝐵) + (𝐴 − 𝐵)) = (𝐴 + 𝐴)) |
2 | 1 | 3anidm13 1286 |
. . . . 5
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → ((𝐴 + 𝐵) + (𝐴 − 𝐵)) = (𝐴 + 𝐴)) |
3 | | 2times 8985 |
. . . . . 6
⊢ (𝐴 ∈ ℂ → (2
· 𝐴) = (𝐴 + 𝐴)) |
4 | 3 | adantr 274 |
. . . . 5
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → (2
· 𝐴) = (𝐴 + 𝐴)) |
5 | 2, 4 | eqtr4d 2201 |
. . . 4
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → ((𝐴 + 𝐵) + (𝐴 − 𝐵)) = (2 · 𝐴)) |
6 | 5 | oveq1d 5857 |
. . 3
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → (((𝐴 + 𝐵) + (𝐴 − 𝐵)) / 2) = ((2 · 𝐴) / 2)) |
7 | | addcl 7878 |
. . . 4
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → (𝐴 + 𝐵) ∈ ℂ) |
8 | | subcl 8097 |
. . . 4
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → (𝐴 − 𝐵) ∈ ℂ) |
9 | | 2cn 8928 |
. . . . . 6
⊢ 2 ∈
ℂ |
10 | | 2ap0 8950 |
. . . . . 6
⊢ 2 #
0 |
11 | 9, 10 | pm3.2i 270 |
. . . . 5
⊢ (2 ∈
ℂ ∧ 2 # 0) |
12 | | divdirap 8593 |
. . . . 5
⊢ (((𝐴 + 𝐵) ∈ ℂ ∧ (𝐴 − 𝐵) ∈ ℂ ∧ (2 ∈ ℂ
∧ 2 # 0)) → (((𝐴 +
𝐵) + (𝐴 − 𝐵)) / 2) = (((𝐴 + 𝐵) / 2) + ((𝐴 − 𝐵) / 2))) |
13 | 11, 12 | mp3an3 1316 |
. . . 4
⊢ (((𝐴 + 𝐵) ∈ ℂ ∧ (𝐴 − 𝐵) ∈ ℂ) → (((𝐴 + 𝐵) + (𝐴 − 𝐵)) / 2) = (((𝐴 + 𝐵) / 2) + ((𝐴 − 𝐵) / 2))) |
14 | 7, 8, 13 | syl2anc 409 |
. . 3
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → (((𝐴 + 𝐵) + (𝐴 − 𝐵)) / 2) = (((𝐴 + 𝐵) / 2) + ((𝐴 − 𝐵) / 2))) |
15 | | divcanap3 8594 |
. . . . 5
⊢ ((𝐴 ∈ ℂ ∧ 2 ∈
ℂ ∧ 2 # 0) → ((2 · 𝐴) / 2) = 𝐴) |
16 | 9, 10, 15 | mp3an23 1319 |
. . . 4
⊢ (𝐴 ∈ ℂ → ((2
· 𝐴) / 2) = 𝐴) |
17 | 16 | adantr 274 |
. . 3
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → ((2
· 𝐴) / 2) = 𝐴) |
18 | 6, 14, 17 | 3eqtr3d 2206 |
. 2
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → (((𝐴 + 𝐵) / 2) + ((𝐴 − 𝐵) / 2)) = 𝐴) |
19 | | pnncan 8139 |
. . . . . 6
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐵 ∈ ℂ) → ((𝐴 + 𝐵) − (𝐴 − 𝐵)) = (𝐵 + 𝐵)) |
20 | 19 | 3anidm23 1287 |
. . . . 5
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → ((𝐴 + 𝐵) − (𝐴 − 𝐵)) = (𝐵 + 𝐵)) |
21 | | 2times 8985 |
. . . . . 6
⊢ (𝐵 ∈ ℂ → (2
· 𝐵) = (𝐵 + 𝐵)) |
22 | 21 | adantl 275 |
. . . . 5
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → (2
· 𝐵) = (𝐵 + 𝐵)) |
23 | 20, 22 | eqtr4d 2201 |
. . . 4
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → ((𝐴 + 𝐵) − (𝐴 − 𝐵)) = (2 · 𝐵)) |
24 | 23 | oveq1d 5857 |
. . 3
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → (((𝐴 + 𝐵) − (𝐴 − 𝐵)) / 2) = ((2 · 𝐵) / 2)) |
25 | | divsubdirap 8604 |
. . . . 5
⊢ (((𝐴 + 𝐵) ∈ ℂ ∧ (𝐴 − 𝐵) ∈ ℂ ∧ (2 ∈ ℂ
∧ 2 # 0)) → (((𝐴 +
𝐵) − (𝐴 − 𝐵)) / 2) = (((𝐴 + 𝐵) / 2) − ((𝐴 − 𝐵) / 2))) |
26 | 11, 25 | mp3an3 1316 |
. . . 4
⊢ (((𝐴 + 𝐵) ∈ ℂ ∧ (𝐴 − 𝐵) ∈ ℂ) → (((𝐴 + 𝐵) − (𝐴 − 𝐵)) / 2) = (((𝐴 + 𝐵) / 2) − ((𝐴 − 𝐵) / 2))) |
27 | 7, 8, 26 | syl2anc 409 |
. . 3
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → (((𝐴 + 𝐵) − (𝐴 − 𝐵)) / 2) = (((𝐴 + 𝐵) / 2) − ((𝐴 − 𝐵) / 2))) |
28 | | divcanap3 8594 |
. . . . 5
⊢ ((𝐵 ∈ ℂ ∧ 2 ∈
ℂ ∧ 2 # 0) → ((2 · 𝐵) / 2) = 𝐵) |
29 | 9, 10, 28 | mp3an23 1319 |
. . . 4
⊢ (𝐵 ∈ ℂ → ((2
· 𝐵) / 2) = 𝐵) |
30 | 29 | adantl 275 |
. . 3
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → ((2
· 𝐵) / 2) = 𝐵) |
31 | 24, 27, 30 | 3eqtr3d 2206 |
. 2
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → (((𝐴 + 𝐵) / 2) − ((𝐴 − 𝐵) / 2)) = 𝐵) |
32 | 18, 31 | jca 304 |
1
⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) →
((((𝐴 + 𝐵) / 2) + ((𝐴 − 𝐵) / 2)) = 𝐴 ∧ (((𝐴 + 𝐵) / 2) − ((𝐴 − 𝐵) / 2)) = 𝐵)) |