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

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

Proof of Theorem addsdilem3
StepHypRef Expression
1 oveq1 7420 . . . . . 6 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s (𝐵 +s 𝐶)) = (𝑋 ·s (𝐵 +s 𝐶)))
2 oveq1 7420 . . . . . . 7 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝐵) = (𝑋 ·s 𝐵))
3 oveq1 7420 . . . . . . 7 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝐶) = (𝑋 ·s 𝐶))
42, 3oveq12d 7431 . . . . . 6 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝐶)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)))
51, 4eqeq12d 2750 . . . . 5 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s (𝐵 +s 𝐶)) = ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝐶)) ↔ (𝑋 ·s (𝐵 +s 𝐶)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶))))
6 addsdilem3.4 . . . . . 6 (𝜑 → ∀𝑥𝑂 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴))(𝑥𝑂 ·s (𝐵 +s 𝐶)) = ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝐶)))
76adantr 480 . . . . 5 ((𝜑𝜓) → ∀𝑥𝑂 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴))(𝑥𝑂 ·s (𝐵 +s 𝐶)) = ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝐶)))
8 addsdilem3.7 . . . . . 6 (𝜓𝑋 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴)))
98adantl 481 . . . . 5 ((𝜑𝜓) → 𝑋 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴)))
105, 7, 9rspcdva 3606 . . . 4 ((𝜑𝜓) → (𝑋 ·s (𝐵 +s 𝐶)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)))
11 oveq1 7420 . . . . . . 7 (𝑦𝑂 = 𝑌 → (𝑦𝑂 +s 𝐶) = (𝑌 +s 𝐶))
1211oveq2d 7429 . . . . . 6 (𝑦𝑂 = 𝑌 → (𝐴 ·s (𝑦𝑂 +s 𝐶)) = (𝐴 ·s (𝑌 +s 𝐶)))
13 oveq2 7421 . . . . . . 7 (𝑦𝑂 = 𝑌 → (𝐴 ·s 𝑦𝑂) = (𝐴 ·s 𝑌))
1413oveq1d 7428 . . . . . 6 (𝑦𝑂 = 𝑌 → ((𝐴 ·s 𝑦𝑂) +s (𝐴 ·s 𝐶)) = ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶)))
1512, 14eqeq12d 2750 . . . . 5 (𝑦𝑂 = 𝑌 → ((𝐴 ·s (𝑦𝑂 +s 𝐶)) = ((𝐴 ·s 𝑦𝑂) +s (𝐴 ·s 𝐶)) ↔ (𝐴 ·s (𝑌 +s 𝐶)) = ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
16 addsdilem3.5 . . . . . 6 (𝜑 → ∀𝑦𝑂 ∈ (( L ‘𝐵) ∪ ( R ‘𝐵))(𝐴 ·s (𝑦𝑂 +s 𝐶)) = ((𝐴 ·s 𝑦𝑂) +s (𝐴 ·s 𝐶)))
1716adantr 480 . . . . 5 ((𝜑𝜓) → ∀𝑦𝑂 ∈ (( L ‘𝐵) ∪ ( R ‘𝐵))(𝐴 ·s (𝑦𝑂 +s 𝐶)) = ((𝐴 ·s 𝑦𝑂) +s (𝐴 ·s 𝐶)))
18 addsdilem3.8 . . . . . 6 (𝜓𝑌 ∈ (( L ‘𝐵) ∪ ( R ‘𝐵)))
1918adantl 481 . . . . 5 ((𝜑𝜓) → 𝑌 ∈ (( L ‘𝐵) ∪ ( R ‘𝐵)))
2015, 17, 19rspcdva 3606 . . . 4 ((𝜑𝜓) → (𝐴 ·s (𝑌 +s 𝐶)) = ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶)))
2110, 20oveq12d 7431 . . 3 ((𝜑𝜓) → ((𝑋 ·s (𝐵 +s 𝐶)) +s (𝐴 ·s (𝑌 +s 𝐶))) = (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
22 oveq1 7420 . . . . 5 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s (𝑦𝑂 +s 𝐶)) = (𝑋 ·s (𝑦𝑂 +s 𝐶)))
23 oveq1 7420 . . . . . 6 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝑦𝑂) = (𝑋 ·s 𝑦𝑂))
2423, 3oveq12d 7431 . . . . 5 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s 𝑦𝑂) +s (𝑥𝑂 ·s 𝐶)) = ((𝑋 ·s 𝑦𝑂) +s (𝑋 ·s 𝐶)))
2522, 24eqeq12d 2750 . . . 4 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s (𝑦𝑂 +s 𝐶)) = ((𝑥𝑂 ·s 𝑦𝑂) +s (𝑥𝑂 ·s 𝐶)) ↔ (𝑋 ·s (𝑦𝑂 +s 𝐶)) = ((𝑋 ·s 𝑦𝑂) +s (𝑋 ·s 𝐶))))
2611oveq2d 7429 . . . . 5 (𝑦𝑂 = 𝑌 → (𝑋 ·s (𝑦𝑂 +s 𝐶)) = (𝑋 ·s (𝑌 +s 𝐶)))
27 oveq2 7421 . . . . . 6 (𝑦𝑂 = 𝑌 → (𝑋 ·s 𝑦𝑂) = (𝑋 ·s 𝑌))
2827oveq1d 7428 . . . . 5 (𝑦𝑂 = 𝑌 → ((𝑋 ·s 𝑦𝑂) +s (𝑋 ·s 𝐶)) = ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶)))
2926, 28eqeq12d 2750 . . . 4 (𝑦𝑂 = 𝑌 → ((𝑋 ·s (𝑦𝑂 +s 𝐶)) = ((𝑋 ·s 𝑦𝑂) +s (𝑋 ·s 𝐶)) ↔ (𝑋 ·s (𝑌 +s 𝐶)) = ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶))))
30 addsdilem3.6 . . . . 5 (𝜑 → ∀𝑥𝑂 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴))∀𝑦𝑂 ∈ (( L ‘𝐵) ∪ ( R ‘𝐵))(𝑥𝑂 ·s (𝑦𝑂 +s 𝐶)) = ((𝑥𝑂 ·s 𝑦𝑂) +s (𝑥𝑂 ·s 𝐶)))
3130adantr 480 . . . 4 ((𝜑𝜓) → ∀𝑥𝑂 ∈ (( L ‘𝐴) ∪ ( R ‘𝐴))∀𝑦𝑂 ∈ (( L ‘𝐵) ∪ ( R ‘𝐵))(𝑥𝑂 ·s (𝑦𝑂 +s 𝐶)) = ((𝑥𝑂 ·s 𝑦𝑂) +s (𝑥𝑂 ·s 𝐶)))
3225, 29, 31, 9, 19rspc2dv 3620 . . 3 ((𝜑𝜓) → (𝑋 ·s (𝑌 +s 𝐶)) = ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶)))
3321, 32oveq12d 7431 . 2 ((𝜑𝜓) → (((𝑋 ·s (𝐵 +s 𝐶)) +s (𝐴 ·s (𝑌 +s 𝐶))) -s (𝑋 ·s (𝑌 +s 𝐶))) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶))))
34 leftssno 27855 . . . . . . . . . . 11 ( L ‘𝐴) ⊆ No
35 rightssno 27856 . . . . . . . . . . 11 ( R ‘𝐴) ⊆ No
3634, 35unssi 4171 . . . . . . . . . 10 (( L ‘𝐴) ∪ ( R ‘𝐴)) ⊆ No
3736, 8sselid 3961 . . . . . . . . 9 (𝜓𝑋 No )
3837adantl 481 . . . . . . . 8 ((𝜑𝜓) → 𝑋 No )
39 addsdilem3.2 . . . . . . . . 9 (𝜑𝐵 No )
4039adantr 480 . . . . . . . 8 ((𝜑𝜓) → 𝐵 No )
4138, 40mulscld 28097 . . . . . . 7 ((𝜑𝜓) → (𝑋 ·s 𝐵) ∈ No )
42 addsdilem3.3 . . . . . . . . 9 (𝜑𝐶 No )
4342adantr 480 . . . . . . . 8 ((𝜑𝜓) → 𝐶 No )
4438, 43mulscld 28097 . . . . . . 7 ((𝜑𝜓) → (𝑋 ·s 𝐶) ∈ No )
45 pncans 28038 . . . . . . 7 (((𝑋 ·s 𝐵) ∈ No ∧ (𝑋 ·s 𝐶) ∈ No ) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) = (𝑋 ·s 𝐵))
4641, 44, 45syl2anc 584 . . . . . 6 ((𝜑𝜓) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) = (𝑋 ·s 𝐵))
4746oveq1d 7428 . . . . 5 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) = ((𝑋 ·s 𝐵) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
4841, 44addscld 27949 . . . . . 6 ((𝜑𝜓) → ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) ∈ No )
49 addsdilem3.1 . . . . . . . . 9 (𝜑𝐴 No )
5049adantr 480 . . . . . . . 8 ((𝜑𝜓) → 𝐴 No )
51 leftssno 27855 . . . . . . . . . . 11 ( L ‘𝐵) ⊆ No
52 rightssno 27856 . . . . . . . . . . 11 ( R ‘𝐵) ⊆ No
5351, 52unssi 4171 . . . . . . . . . 10 (( L ‘𝐵) ∪ ( R ‘𝐵)) ⊆ No
5453, 18sselid 3961 . . . . . . . . 9 (𝜓𝑌 No )
5554adantl 481 . . . . . . . 8 ((𝜑𝜓) → 𝑌 No )
5650, 55mulscld 28097 . . . . . . 7 ((𝜑𝜓) → (𝐴 ·s 𝑌) ∈ No )
5749, 42mulscld 28097 . . . . . . . 8 (𝜑 → (𝐴 ·s 𝐶) ∈ No )
5857adantr 480 . . . . . . 7 ((𝜑𝜓) → (𝐴 ·s 𝐶) ∈ No )
5956, 58addscld 27949 . . . . . 6 ((𝜑𝜓) → ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶)) ∈ No )
6048, 59, 44addsubsd 28048 . . . . 5 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s (𝑋 ·s 𝐶)) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
6141, 56, 58addsassd 27975 . . . . 5 ((𝜑𝜓) → (((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)) = ((𝑋 ·s 𝐵) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
6247, 60, 613eqtr4d 2779 . . . 4 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s (𝑋 ·s 𝐶)) = (((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)))
6362oveq1d 7428 . . 3 ((𝜑𝜓) → (((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝑌)) = ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)) -s (𝑋 ·s 𝑌)))
6448, 59addscld 27949 . . . . 5 ((𝜑𝜓) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) ∈ No )
6537, 54mulscld 28097 . . . . . 6 (𝜓 → (𝑋 ·s 𝑌) ∈ No )
6665adantl 481 . . . . 5 ((𝜑𝜓) → (𝑋 ·s 𝑌) ∈ No )
6764, 44, 66subsubs4d 28060 . . . 4 ((𝜑𝜓) → (((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝑌)) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s ((𝑋 ·s 𝐶) +s (𝑋 ·s 𝑌))))
6844, 66addscomd 27936 . . . . 5 ((𝜑𝜓) → ((𝑋 ·s 𝐶) +s (𝑋 ·s 𝑌)) = ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶)))
6968oveq2d 7429 . . . 4 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s ((𝑋 ·s 𝐶) +s (𝑋 ·s 𝑌))) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶))))
7067, 69eqtrd 2769 . . 3 ((𝜑𝜓) → (((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝑌)) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶))))
7141, 56addscld 27949 . . . 4 ((𝜑𝜓) → ((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) ∈ No )
7271, 58, 66addsubsd 28048 . . 3 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)) -s (𝑋 ·s 𝑌)) = ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) -s (𝑋 ·s 𝑌)) +s (𝐴 ·s 𝐶)))
7363, 70, 723eqtr3d 2777 . 2 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶))) = ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) -s (𝑋 ·s 𝑌)) +s (𝐴 ·s 𝐶)))
7433, 73eqtrd 2769 1 ((𝜑𝜓) → (((𝑋 ·s (𝐵 +s 𝐶)) +s (𝐴 ·s (𝑌 +s 𝐶))) -s (𝑋 ·s (𝑌 +s 𝐶))) = ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) -s (𝑋 ·s 𝑌)) +s (𝐴 ·s 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2107  wral 3050  cun 3929  cfv 6541  (class class class)co 7413   No csur 27620   L cleft 27820   R cright 27821   +s cadds 27928   -s csubs 27988   ·s cmuls 28068
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1794  ax-4 1808  ax-5 1909  ax-6 1966  ax-7 2006  ax-8 2109  ax-9 2117  ax-10 2140  ax-11 2156  ax-12 2176  ax-ext 2706  ax-rep 5259  ax-sep 5276  ax-nul 5286  ax-pow 5345  ax-pr 5412  ax-un 7737
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1779  df-nf 1783  df-sb 2064  df-mo 2538  df-eu 2567  df-clab 2713  df-cleq 2726  df-clel 2808  df-nfc 2884  df-ne 2932  df-ral 3051  df-rex 3060  df-rmo 3363  df-reu 3364  df-rab 3420  df-v 3465  df-sbc 3771  df-csb 3880  df-dif 3934  df-un 3936  df-in 3938  df-ss 3948  df-pss 3951  df-nul 4314  df-if 4506  df-pw 4582  df-sn 4607  df-pr 4609  df-tp 4611  df-op 4613  df-ot 4615  df-uni 4888  df-int 4927  df-iun 4973  df-br 5124  df-opab 5186  df-mpt 5206  df-tr 5240  df-id 5558  df-eprel 5564  df-po 5572  df-so 5573  df-fr 5617  df-se 5618  df-we 5619  df-xp 5671  df-rel 5672  df-cnv 5673  df-co 5674  df-dm 5675  df-rn 5676  df-res 5677  df-ima 5678  df-pred 6301  df-ord 6366  df-on 6367  df-suc 6369  df-iota 6494  df-fun 6543  df-fn 6544  df-f 6545  df-f1 6546  df-fo 6547  df-f1o 6548  df-fv 6549  df-riota 7370  df-ov 7416  df-oprab 7417  df-mpo 7418  df-1st 7996  df-2nd 7997  df-frecs 8288  df-wrecs 8319  df-recs 8393  df-1o 8488  df-2o 8489  df-nadd 8686  df-no 27623  df-slt 27624  df-bday 27625  df-sle 27726  df-sslt 27762  df-scut 27764  df-0s 27805  df-made 27822  df-old 27823  df-left 27825  df-right 27826  df-norec 27907  df-norec2 27918  df-adds 27929  df-negs 27989  df-subs 27990  df-muls 28069
This theorem is referenced by:  addsdi  28117
  Copyright terms: Public domain W3C validator