MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  addsdilem4 Structured version   Visualization version   GIF version

Theorem addsdilem4 28533
Description: Lemma for addsdi 28534. Show one of the equalities involved in the final expression. (Contributed by Scott Fenton, 9-Mar-2025.)
Hypotheses
Ref Expression
addsdilem4.1 (𝜑 → 𝐴 ∈ No )
addsdilem4.2 (𝜑 → 𝐵 ∈ No )
addsdilem4.3 (𝜑 → 𝐶 ∈ No )
addsdilem4.4 (𝜑 → ∀𝑥𝑂 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴))(𝑥𝑂 ·s (𝐵 +s 𝐶)) = ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝐶)))
addsdilem4.5 (𝜑 → ∀𝑧𝑂 ∈ (( L ‘𝐶) ∪ ( R ‘𝐶))(𝐴 ·s (𝐵 +s 𝑧𝑂)) = ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑧𝑂)))
addsdilem4.6 (𝜑 → ∀𝑥𝑂 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴))∀𝑧𝑂 ∈ (( L ‘𝐶) ∪ ( R ‘𝐶))(𝑥𝑂 ·s (𝐵 +s 𝑧𝑂)) = ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝑧𝑂)))
addsdilem4.7 (𝜓 → 𝑋 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴)))
addsdilem4.8 (𝜓 → 𝑍 ∈ (( L ‘𝐶) ∪ ( R ‘𝐶)))
Assertion
Ref Expression
addsdilem4 ((𝜑 ∧ 𝜓) → (((𝑋 ·s (𝐵 +s 𝐶)) +s (𝐴 ·s (𝐵 +s 𝑍))) -s (𝑋 ·s (𝐵 +s 𝑍))) = ((𝐴 ·s 𝐵) +s (((𝑋 ·s 𝐶) +s (𝐴 ·s 𝑍)) -s (𝑋 ·s 𝑍))))
Distinct variable groups:   𝐴,𝑥𝑂,𝑧𝑂   𝐵,𝑥𝑂,𝑧𝑂   𝐶,𝑥𝑂,𝑧𝑂   𝑋,𝑥𝑂,𝑧𝑂   𝑍,𝑧𝑂
Allowed substitution hints:   𝜑(𝑥𝑂, 𝑧𝑂)   𝜓(𝑥𝑂, 𝑧𝑂)   𝑍(𝑥𝑂)

Proof of Theorem addsdilem4
StepHypRef Expression
1 oveq1 7425 . . . . . 6 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s (𝐵 +s 𝐶)) = (𝑋 ·s (𝐵 +s 𝐶)))
2 oveq1 7425 . . . . . . 7 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝐵) = (𝑋 ·s 𝐵))
3 oveq1 7425 . . . . . . 7 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝐶) = (𝑋 ·s 𝐶))
42, 3oveq12d 7436 . . . . . 6 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝐶)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)))
51, 4eqeq12d 2777 . . . . 5 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s (𝐵 +s 𝐶)) = ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝐶)) ↔ (𝑋 ·s (𝐵 +s 𝐶)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶))))
6 addsdilem4.4 . . . . . 6 (𝜑 → ∀𝑥𝑂 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴))(𝑥𝑂 ·s (𝐵 +s 𝐶)) = ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝐶)))
76adantr 486 . . . . 5 ((𝜑 ∧ 𝜓) → ∀𝑥𝑂 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴))(𝑥𝑂 ·s (𝐵 +s 𝐶)) = ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝐶)))
8 addsdilem4.7 . . . . . 6 (𝜓 → 𝑋 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴)))
98adantl 487 . . . . 5 ((𝜑 ∧ 𝜓) → 𝑋 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴)))
105, 7, 9rspcdva 3578 . . . 4 ((𝜑 ∧ 𝜓) → (𝑋 ·s (𝐵 +s 𝐶)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)))
11 oveq2 7426 . . . . . . 7 (𝑧𝑂 = 𝑍 → (𝐵 +s 𝑧𝑂) = (𝐵 +s 𝑍))
1211oveq2d 7434 . . . . . 6 (𝑧𝑂 = 𝑍 → (𝐴 ·s (𝐵 +s 𝑧𝑂)) = (𝐴 ·s (𝐵 +s 𝑍)))
13 oveq2 7426 . . . . . . 7 (𝑧𝑂 = 𝑍 → (𝐴 ·s 𝑧𝑂) = (𝐴 ·s 𝑍))
1413oveq2d 7434 . . . . . 6 (𝑧𝑂 = 𝑍 → ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑧𝑂)) = ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍)))
1512, 14eqeq12d 2777 . . . . 5 (𝑧𝑂 = 𝑍 → ((𝐴 ·s (𝐵 +s 𝑧𝑂)) = ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑧𝑂)) ↔ (𝐴 ·s (𝐵 +s 𝑍)) = ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))))
16 addsdilem4.5 . . . . . 6 (𝜑 → ∀𝑧𝑂 ∈ (( L ‘𝐶) ∪ ( R ‘𝐶))(𝐴 ·s (𝐵 +s 𝑧𝑂)) = ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑧𝑂)))
1716adantr 486 . . . . 5 ((𝜑 ∧ 𝜓) → ∀𝑧𝑂 ∈ (( L ‘𝐶) ∪ ( R ‘𝐶))(𝐴 ·s (𝐵 +s 𝑧𝑂)) = ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑧𝑂)))
18 addsdilem4.8 . . . . . 6 (𝜓 → 𝑍 ∈ (( L ‘𝐶) ∪ ( R ‘𝐶)))
1918adantl 487 . . . . 5 ((𝜑 ∧ 𝜓) → 𝑍 ∈ (( L ‘𝐶) ∪ ( R ‘𝐶)))
2015, 17, 19rspcdva 3578 . . . 4 ((𝜑 ∧ 𝜓) → (𝐴 ·s (𝐵 +s 𝑍)) = ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍)))
2110, 20oveq12d 7436 . . 3 ((𝜑 ∧ 𝜓) → ((𝑋 ·s (𝐵 +s 𝐶)) +s (𝐴 ·s (𝐵 +s 𝑍))) = (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))))
22 oveq1 7425 . . . . 5 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s (𝐵 +s 𝑧𝑂)) = (𝑋 ·s (𝐵 +s 𝑧𝑂)))
23 oveq1 7425 . . . . . 6 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝑧𝑂) = (𝑋 ·s 𝑧𝑂))
242, 23oveq12d 7436 . . . . 5 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝑧𝑂)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝑧𝑂)))
2522, 24eqeq12d 2777 . . . 4 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s (𝐵 +s 𝑧𝑂)) = ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝑧𝑂)) ↔ (𝑋 ·s (𝐵 +s 𝑧𝑂)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝑧𝑂))))
2611oveq2d 7434 . . . . 5 (𝑧𝑂 = 𝑍 → (𝑋 ·s (𝐵 +s 𝑧𝑂)) = (𝑋 ·s (𝐵 +s 𝑍)))
27 oveq2 7426 . . . . . 6 (𝑧𝑂 = 𝑍 → (𝑋 ·s 𝑧𝑂) = (𝑋 ·s 𝑍))
2827oveq2d 7434 . . . . 5 (𝑧𝑂 = 𝑍 → ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝑧𝑂)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝑍)))
2926, 28eqeq12d 2777 . . . 4 (𝑧𝑂 = 𝑍 → ((𝑋 ·s (𝐵 +s 𝑧𝑂)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝑧𝑂)) ↔ (𝑋 ·s (𝐵 +s 𝑍)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝑍))))
30 addsdilem4.6 . . . . 5 (𝜑 → ∀𝑥𝑂 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴))∀𝑧𝑂 ∈ (( L ‘𝐶) ∪ ( R ‘𝐶))(𝑥𝑂 ·s (𝐵 +s 𝑧𝑂)) = ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝑧𝑂)))
3130adantr 486 . . . 4 ((𝜑 ∧ 𝜓) → ∀𝑥𝑂 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴))∀𝑧𝑂 ∈ (( L ‘𝐶) ∪ ( R ‘𝐶))(𝑥𝑂 ·s (𝐵 +s 𝑧𝑂)) = ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝑧𝑂)))
3225, 29, 31, 9, 19rspc2dv 3591 . . 3 ((𝜑 ∧ 𝜓) → (𝑋 ·s (𝐵 +s 𝑍)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝑍)))
3321, 32oveq12d 7436 . 2 ((𝜑 ∧ 𝜓) → (((𝑋 ·s (𝐵 +s 𝐶)) +s (𝐴 ·s (𝐵 +s 𝑍))) -s (𝑋 ·s (𝐵 +s 𝑍))) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))) -s ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝑍))))
34 leftssno 28252 . . . . . . . . 9 ( L ‘𝐴) ⊆ No
35 rightssno 28253 . . . . . . . . 9 ( R ‘𝐴) ⊆ No
3634, 35unssi 4137 . . . . . . . 8 (( L ‘𝐴) ∪ ( R ‘𝐴)) ⊆ No
3736, 8sselid 3929 . . . . . . 7 (𝜓 → 𝑋 ∈ No )
3837adantl 487 . . . . . 6 ((𝜑 ∧ 𝜓) → 𝑋 ∈ No )
39 addsdilem4.2 . . . . . . 7 (𝜑 → 𝐵 ∈ No )
4039adantr 486 . . . . . 6 ((𝜑 ∧ 𝜓) → 𝐵 ∈ No )
4138, 40mulscld 28514 . . . . 5 ((𝜑 ∧ 𝜓) → (𝑋 ·s 𝐵) ∈ No )
42 addsdilem4.3 . . . . . . 7 (𝜑 → 𝐶 ∈ No )
4342adantr 486 . . . . . 6 ((𝜑 ∧ 𝜓) → 𝐶 ∈ No )
4438, 43mulscld 28514 . . . . 5 ((𝜑 ∧ 𝜓) → (𝑋 ·s 𝐶) ∈ No )
4541, 44addscld 28359 . . . 4 ((𝜑 ∧ 𝜓) → ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) ∈ No )
46 addsdilem4.1 . . . . . . 7 (𝜑 → 𝐴 ∈ No )
4746, 39mulscld 28514 . . . . . 6 (𝜑 → (𝐴 ·s 𝐵) ∈ No )
4847adantr 486 . . . . 5 ((𝜑 ∧ 𝜓) → (𝐴 ·s 𝐵) ∈ No )
4946adantr 486 . . . . . 6 ((𝜑 ∧ 𝜓) → 𝐴 ∈ No )
50 leftssno 28252 . . . . . . . . 9 ( L ‘𝐶) ⊆ No
51 rightssno 28253 . . . . . . . . 9 ( R ‘𝐶) ⊆ No
5250, 51unssi 4137 . . . . . . . 8 (( L ‘𝐶) ∪ ( R ‘𝐶)) ⊆ No
5352, 18sselid 3929 . . . . . . 7 (𝜓 → 𝑍 ∈ No )
5453adantl 487 . . . . . 6 ((𝜑 ∧ 𝜓) → 𝑍 ∈ No )
5549, 54mulscld 28514 . . . . 5 ((𝜑 ∧ 𝜓) → (𝐴 ·s 𝑍) ∈ No )
5648, 55addscld 28359 . . . 4 ((𝜑 ∧ 𝜓) → ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍)) ∈ No )
5745, 56addscld 28359 . . 3 ((𝜑 ∧ 𝜓) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))) ∈ No )
5838, 54mulscld 28514 . . 3 ((𝜑 ∧ 𝜓) → (𝑋 ·s 𝑍) ∈ No )
5957, 41, 58subsubs4d 28473 . 2 ((𝜑 ∧ 𝜓) → (((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))) -s (𝑋 ·s 𝐵)) -s (𝑋 ·s 𝑍)) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))) -s ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝑍))))
6045, 56, 41addsubsd 28461 . . . . 5 ((𝜑 ∧ 𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))) -s (𝑋 ·s 𝐵)) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐵)) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))))
6141, 44addscomd 28346 . . . . . . . 8 ((𝜑 ∧ 𝜓) → ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) = ((𝑋 ·s 𝐶) +s (𝑋 ·s 𝐵)))
6261oveq1d 7433 . . . . . . 7 ((𝜑 ∧ 𝜓) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐵)) = (((𝑋 ·s 𝐶) +s (𝑋 ·s 𝐵)) -s (𝑋 ·s 𝐵)))
63 pncans 28451 . . . . . . . 8 (((𝑋 ·s 𝐶) ∈ No ∧ (𝑋 ·s 𝐵) ∈ No ) → (((𝑋 ·s 𝐶) +s (𝑋 ·s 𝐵)) -s (𝑋 ·s 𝐵)) = (𝑋 ·s 𝐶))
6444, 41, 63syl2anc 596 . . . . . . 7 ((𝜑 ∧ 𝜓) → (((𝑋 ·s 𝐶) +s (𝑋 ·s 𝐵)) -s (𝑋 ·s 𝐵)) = (𝑋 ·s 𝐶))
6562, 64eqtrd 2796 . . . . . 6 ((𝜑 ∧ 𝜓) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐵)) = (𝑋 ·s 𝐶))
6665oveq1d 7433 . . . . 5 ((𝜑 ∧ 𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐵)) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))) = ((𝑋 ·s 𝐶) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))))
6744, 48, 55adds12d 28387 . . . . 5 ((𝜑 ∧ 𝜓) → ((𝑋 ·s 𝐶) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))) = ((𝐴 ·s 𝐵) +s ((𝑋 ·s 𝐶) +s (𝐴 ·s 𝑍))))
6860, 66, 673eqtrd 2800 . . . 4 ((𝜑 ∧ 𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))) -s (𝑋 ·s 𝐵)) = ((𝐴 ·s 𝐵) +s ((𝑋 ·s 𝐶) +s (𝐴 ·s 𝑍))))
6968oveq1d 7433 . . 3 ((𝜑 ∧ 𝜓) → (((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))) -s (𝑋 ·s 𝐵)) -s (𝑋 ·s 𝑍)) = (((𝐴 ·s 𝐵) +s ((𝑋 ·s 𝐶) +s (𝐴 ·s 𝑍))) -s (𝑋 ·s 𝑍)))
7044, 55addscld 28359 . . . 4 ((𝜑 ∧ 𝜓) → ((𝑋 ·s 𝐶) +s (𝐴 ·s 𝑍)) ∈ No )
7148, 70, 58addsubsassd 28460 . . 3 ((𝜑 ∧ 𝜓) → (((𝐴 ·s 𝐵) +s ((𝑋 ·s 𝐶) +s (𝐴 ·s 𝑍))) -s (𝑋 ·s 𝑍)) = ((𝐴 ·s 𝐵) +s (((𝑋 ·s 𝐶) +s (𝐴 ·s 𝑍)) -s (𝑋 ·s 𝑍))))
7269, 71eqtrd 2796 . 2 ((𝜑 ∧ 𝜓) → (((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝐵) +s (𝐴 ·s 𝑍))) -s (𝑋 ·s 𝐵)) -s (𝑋 ·s 𝑍)) = ((𝐴 ·s 𝐵) +s (((𝑋 ·s 𝐶) +s (𝐴 ·s 𝑍)) -s (𝑋 ·s 𝑍))))
7333, 59, 723eqtr2d 2802 1 ((𝜑 ∧ 𝜓) → (((𝑋 ·s (𝐵 +s 𝐶)) +s (𝐴 ·s (𝐵 +s 𝑍))) -s (𝑋 ·s (𝐵 +s 𝑍))) = ((𝐴 ·s 𝐵) +s (((𝑋 ·s 𝐶) +s (𝐴 ·s 𝑍)) -s (𝑋 ·s 𝑍))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2145  ∀wral 3077   ∪ cun 3897  ‘cfv 6537  (class class class)co 7418   No csur 27990   L cleft 28204   R cright 28205   +s cadds 28338   -s csubs 28399   ·s cmuls 28485
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7749
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-tp 4589  df-op 4591  df-ot 4593  df-uni 4868  df-int 4908  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-se 5605  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6303  df-ord 6364  df-on 6365  df-suc 6367  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fo 6543  df-f1o 6544  df-fv 6545  df-riota 7375  df-ov 7421  df-oprab 7422  df-mpo 7423  df-1st 7999  df-2nd 8000  df-frecs 8292  df-wrecs 8323  df-recs 8372  df-1o 8469  df-2o 8470  df-nadd 8668  df-no 27993  df-lts 27994  df-bday 27995  df-les 28095  df-slts 28137  df-cuts 28139  df-0s 28186  df-made 28206  df-old 28207  df-left 28209  df-right 28210  df-norec 28317  df-norec2 28328  df-adds 28339  df-negs 28400  df-subs 28401  df-muls 28486
This theorem is used by:  addsdi  28534
  Copyright terms: Public domain W3C validator