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

Theorem addsdilem3 28113
Description: Lemma for addsdi 28115. 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 7417 . . . . . 6 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s (𝐵 +s 𝐶)) = (𝑋 ·s (𝐵 +s 𝐶)))
2 oveq1 7417 . . . . . . 7 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝐵) = (𝑋 ·s 𝐵))
3 oveq1 7417 . . . . . . 7 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝐶) = (𝑋 ·s 𝐶))
42, 3oveq12d 7428 . . . . . 6 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝐶)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)))
51, 4eqeq12d 2752 . . . . 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 3607 . . . 4 ((𝜑𝜓) → (𝑋 ·s (𝐵 +s 𝐶)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)))
11 oveq1 7417 . . . . . . 7 (𝑦𝑂 = 𝑌 → (𝑦𝑂 +s 𝐶) = (𝑌 +s 𝐶))
1211oveq2d 7426 . . . . . 6 (𝑦𝑂 = 𝑌 → (𝐴 ·s (𝑦𝑂 +s 𝐶)) = (𝐴 ·s (𝑌 +s 𝐶)))
13 oveq2 7418 . . . . . . 7 (𝑦𝑂 = 𝑌 → (𝐴 ·s 𝑦𝑂) = (𝐴 ·s 𝑌))
1413oveq1d 7425 . . . . . 6 (𝑦𝑂 = 𝑌 → ((𝐴 ·s 𝑦𝑂) +s (𝐴 ·s 𝐶)) = ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶)))
1512, 14eqeq12d 2752 . . . . 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 3607 . . . 4 ((𝜑𝜓) → (𝐴 ·s (𝑌 +s 𝐶)) = ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶)))
2110, 20oveq12d 7428 . . 3 ((𝜑𝜓) → ((𝑋 ·s (𝐵 +s 𝐶)) +s (𝐴 ·s (𝑌 +s 𝐶))) = (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
22 oveq1 7417 . . . . 5 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s (𝑦𝑂 +s 𝐶)) = (𝑋 ·s (𝑦𝑂 +s 𝐶)))
23 oveq1 7417 . . . . . 6 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝑦𝑂) = (𝑋 ·s 𝑦𝑂))
2423, 3oveq12d 7428 . . . . 5 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s 𝑦𝑂) +s (𝑥𝑂 ·s 𝐶)) = ((𝑋 ·s 𝑦𝑂) +s (𝑋 ·s 𝐶)))
2522, 24eqeq12d 2752 . . . 4 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s (𝑦𝑂 +s 𝐶)) = ((𝑥𝑂 ·s 𝑦𝑂) +s (𝑥𝑂 ·s 𝐶)) ↔ (𝑋 ·s (𝑦𝑂 +s 𝐶)) = ((𝑋 ·s 𝑦𝑂) +s (𝑋 ·s 𝐶))))
2611oveq2d 7426 . . . . 5 (𝑦𝑂 = 𝑌 → (𝑋 ·s (𝑦𝑂 +s 𝐶)) = (𝑋 ·s (𝑌 +s 𝐶)))
27 oveq2 7418 . . . . . 6 (𝑦𝑂 = 𝑌 → (𝑋 ·s 𝑦𝑂) = (𝑋 ·s 𝑌))
2827oveq1d 7425 . . . . 5 (𝑦𝑂 = 𝑌 → ((𝑋 ·s 𝑦𝑂) +s (𝑋 ·s 𝐶)) = ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶)))
2926, 28eqeq12d 2752 . . . 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 3621 . . 3 ((𝜑𝜓) → (𝑋 ·s (𝑌 +s 𝐶)) = ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶)))
3321, 32oveq12d 7428 . 2 ((𝜑𝜓) → (((𝑋 ·s (𝐵 +s 𝐶)) +s (𝐴 ·s (𝑌 +s 𝐶))) -s (𝑋 ·s (𝑌 +s 𝐶))) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶))))
34 leftssno 27849 . . . . . . . . . . 11 ( L ‘𝐴) ⊆ No
35 rightssno 27850 . . . . . . . . . . 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 28095 . . . . . . 7 ((𝜑𝜓) → (𝑋 ·s 𝐵) ∈ No )
42 addsdilem3.3 . . . . . . . . 9 (𝜑𝐶 No )
4342adantr 480 . . . . . . . 8 ((𝜑𝜓) → 𝐶 No )
4438, 43mulscld 28095 . . . . . . 7 ((𝜑𝜓) → (𝑋 ·s 𝐶) ∈ No )
45 pncans 28033 . . . . . . 7 (((𝑋 ·s 𝐵) ∈ No ∧ (𝑋 ·s 𝐶) ∈ No ) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) = (𝑋 ·s 𝐵))
4641, 44, 45syl2anc 584 . . . . . 6 ((𝜑𝜓) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) = (𝑋 ·s 𝐵))
4746oveq1d 7425 . . . . 5 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) = ((𝑋 ·s 𝐵) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
4841, 44addscld 27944 . . . . . 6 ((𝜑𝜓) → ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) ∈ No )
49 addsdilem3.1 . . . . . . . . 9 (𝜑𝐴 No )
5049adantr 480 . . . . . . . 8 ((𝜑𝜓) → 𝐴 No )
51 leftssno 27849 . . . . . . . . . . 11 ( L ‘𝐵) ⊆ No
52 rightssno 27850 . . . . . . . . . . 11 ( R ‘𝐵) ⊆ No
5351, 52unssi 4171 . . . . . . . . . 10 (( L ‘𝐵) ∪ ( R ‘𝐵)) ⊆ No
5453, 18sselid 3961 . . . . . . . . 9 (𝜓𝑌 No )
5554adantl 481 . . . . . . . 8 ((𝜑𝜓) → 𝑌 No )
5650, 55mulscld 28095 . . . . . . 7 ((𝜑𝜓) → (𝐴 ·s 𝑌) ∈ No )
5749, 42mulscld 28095 . . . . . . . 8 (𝜑 → (𝐴 ·s 𝐶) ∈ No )
5857adantr 480 . . . . . . 7 ((𝜑𝜓) → (𝐴 ·s 𝐶) ∈ No )
5956, 58addscld 27944 . . . . . 6 ((𝜑𝜓) → ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶)) ∈ No )
6048, 59, 44addsubsd 28043 . . . . 5 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s (𝑋 ·s 𝐶)) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
6141, 56, 58addsassd 27970 . . . . 5 ((𝜑𝜓) → (((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)) = ((𝑋 ·s 𝐵) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
6247, 60, 613eqtr4d 2781 . . . 4 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s (𝑋 ·s 𝐶)) = (((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)))
6362oveq1d 7425 . . 3 ((𝜑𝜓) → (((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝑌)) = ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)) -s (𝑋 ·s 𝑌)))
6448, 59addscld 27944 . . . . 5 ((𝜑𝜓) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) ∈ No )
6537, 54mulscld 28095 . . . . . 6 (𝜓 → (𝑋 ·s 𝑌) ∈ No )
6665adantl 481 . . . . 5 ((𝜑𝜓) → (𝑋 ·s 𝑌) ∈ No )
6764, 44, 66subsubs4d 28055 . . . 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 27931 . . . . 5 ((𝜑𝜓) → ((𝑋 ·s 𝐶) +s (𝑋 ·s 𝑌)) = ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶)))
6968oveq2d 7426 . . . 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 2771 . . 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 27944 . . . 4 ((𝜑𝜓) → ((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) ∈ No )
7271, 58, 66addsubsd 28043 . . 3 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)) -s (𝑋 ·s 𝑌)) = ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) -s (𝑋 ·s 𝑌)) +s (𝐴 ·s 𝐶)))
7363, 70, 723eqtr3d 2779 . 2 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶))) = ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) -s (𝑋 ·s 𝑌)) +s (𝐴 ·s 𝐶)))
7433, 73eqtrd 2771 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 1540  wcel 2109  wral 3052  cun 3929  cfv 6536  (class class class)co 7410   No csur 27608   L cleft 27810   R cright 27811   +s cadds 27923   -s csubs 27983   ·s cmuls 28066
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1967  ax-7 2008  ax-8 2111  ax-9 2119  ax-10 2142  ax-11 2158  ax-12 2178  ax-ext 2708  ax-rep 5254  ax-sep 5271  ax-nul 5281  ax-pow 5340  ax-pr 5407  ax-un 7734
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2540  df-eu 2569  df-clab 2715  df-cleq 2728  df-clel 2810  df-nfc 2886  df-ne 2934  df-ral 3053  df-rex 3062  df-rmo 3364  df-reu 3365  df-rab 3421  df-v 3466  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 4889  df-int 4928  df-iun 4974  df-br 5125  df-opab 5187  df-mpt 5207  df-tr 5235  df-id 5553  df-eprel 5558  df-po 5566  df-so 5567  df-fr 5611  df-se 5612  df-we 5613  df-xp 5665  df-rel 5666  df-cnv 5667  df-co 5668  df-dm 5669  df-rn 5670  df-res 5671  df-ima 5672  df-pred 6295  df-ord 6360  df-on 6361  df-suc 6363  df-iota 6489  df-fun 6538  df-fn 6539  df-f 6540  df-f1 6541  df-fo 6542  df-f1o 6543  df-fv 6544  df-riota 7367  df-ov 7413  df-oprab 7414  df-mpo 7415  df-1st 7993  df-2nd 7994  df-frecs 8285  df-wrecs 8316  df-recs 8390  df-1o 8485  df-2o 8486  df-nadd 8683  df-no 27611  df-slt 27612  df-bday 27613  df-sle 27714  df-sslt 27750  df-scut 27752  df-0s 27793  df-made 27812  df-old 27813  df-left 27815  df-right 27816  df-norec 27902  df-norec2 27913  df-adds 27924  df-negs 27984  df-subs 27985  df-muls 28067
This theorem is referenced by:  addsdi  28115
  Copyright terms: Public domain W3C validator