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

Theorem addsdilem3 28179
Description: Lemma for addsdi 28181. 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 7438 . . . . . 6 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s (𝐵 +s 𝐶)) = (𝑋 ·s (𝐵 +s 𝐶)))
2 oveq1 7438 . . . . . . 7 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝐵) = (𝑋 ·s 𝐵))
3 oveq1 7438 . . . . . . 7 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝐶) = (𝑋 ·s 𝐶))
42, 3oveq12d 7449 . . . . . 6 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s 𝐵) +s (𝑥𝑂 ·s 𝐶)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)))
51, 4eqeq12d 2753 . . . . 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 3623 . . . 4 ((𝜑𝜓) → (𝑋 ·s (𝐵 +s 𝐶)) = ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)))
11 oveq1 7438 . . . . . . 7 (𝑦𝑂 = 𝑌 → (𝑦𝑂 +s 𝐶) = (𝑌 +s 𝐶))
1211oveq2d 7447 . . . . . 6 (𝑦𝑂 = 𝑌 → (𝐴 ·s (𝑦𝑂 +s 𝐶)) = (𝐴 ·s (𝑌 +s 𝐶)))
13 oveq2 7439 . . . . . . 7 (𝑦𝑂 = 𝑌 → (𝐴 ·s 𝑦𝑂) = (𝐴 ·s 𝑌))
1413oveq1d 7446 . . . . . 6 (𝑦𝑂 = 𝑌 → ((𝐴 ·s 𝑦𝑂) +s (𝐴 ·s 𝐶)) = ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶)))
1512, 14eqeq12d 2753 . . . . 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 3623 . . . 4 ((𝜑𝜓) → (𝐴 ·s (𝑌 +s 𝐶)) = ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶)))
2110, 20oveq12d 7449 . . 3 ((𝜑𝜓) → ((𝑋 ·s (𝐵 +s 𝐶)) +s (𝐴 ·s (𝑌 +s 𝐶))) = (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
22 oveq1 7438 . . . . 5 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s (𝑦𝑂 +s 𝐶)) = (𝑋 ·s (𝑦𝑂 +s 𝐶)))
23 oveq1 7438 . . . . . 6 (𝑥𝑂 = 𝑋 → (𝑥𝑂 ·s 𝑦𝑂) = (𝑋 ·s 𝑦𝑂))
2423, 3oveq12d 7449 . . . . 5 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s 𝑦𝑂) +s (𝑥𝑂 ·s 𝐶)) = ((𝑋 ·s 𝑦𝑂) +s (𝑋 ·s 𝐶)))
2522, 24eqeq12d 2753 . . . 4 (𝑥𝑂 = 𝑋 → ((𝑥𝑂 ·s (𝑦𝑂 +s 𝐶)) = ((𝑥𝑂 ·s 𝑦𝑂) +s (𝑥𝑂 ·s 𝐶)) ↔ (𝑋 ·s (𝑦𝑂 +s 𝐶)) = ((𝑋 ·s 𝑦𝑂) +s (𝑋 ·s 𝐶))))
2611oveq2d 7447 . . . . 5 (𝑦𝑂 = 𝑌 → (𝑋 ·s (𝑦𝑂 +s 𝐶)) = (𝑋 ·s (𝑌 +s 𝐶)))
27 oveq2 7439 . . . . . 6 (𝑦𝑂 = 𝑌 → (𝑋 ·s 𝑦𝑂) = (𝑋 ·s 𝑌))
2827oveq1d 7446 . . . . 5 (𝑦𝑂 = 𝑌 → ((𝑋 ·s 𝑦𝑂) +s (𝑋 ·s 𝐶)) = ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶)))
2926, 28eqeq12d 2753 . . . 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 3637 . . 3 ((𝜑𝜓) → (𝑋 ·s (𝑌 +s 𝐶)) = ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶)))
3321, 32oveq12d 7449 . 2 ((𝜑𝜓) → (((𝑋 ·s (𝐵 +s 𝐶)) +s (𝐴 ·s (𝑌 +s 𝐶))) -s (𝑋 ·s (𝑌 +s 𝐶))) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶))))
34 leftssno 27919 . . . . . . . . . . 11 ( L ‘𝐴) ⊆ No
35 rightssno 27920 . . . . . . . . . . 11 ( R ‘𝐴) ⊆ No
3634, 35unssi 4191 . . . . . . . . . 10 (( L ‘𝐴) ∪ ( R ‘𝐴)) ⊆ No
3736, 8sselid 3981 . . . . . . . . 9 (𝜓𝑋 No )
3837adantl 481 . . . . . . . 8 ((𝜑𝜓) → 𝑋 No )
39 addsdilem3.2 . . . . . . . . 9 (𝜑𝐵 No )
4039adantr 480 . . . . . . . 8 ((𝜑𝜓) → 𝐵 No )
4138, 40mulscld 28161 . . . . . . 7 ((𝜑𝜓) → (𝑋 ·s 𝐵) ∈ No )
42 addsdilem3.3 . . . . . . . . 9 (𝜑𝐶 No )
4342adantr 480 . . . . . . . 8 ((𝜑𝜓) → 𝐶 No )
4438, 43mulscld 28161 . . . . . . 7 ((𝜑𝜓) → (𝑋 ·s 𝐶) ∈ No )
45 pncans 28102 . . . . . . 7 (((𝑋 ·s 𝐵) ∈ No ∧ (𝑋 ·s 𝐶) ∈ No ) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) = (𝑋 ·s 𝐵))
4641, 44, 45syl2anc 584 . . . . . 6 ((𝜑𝜓) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) = (𝑋 ·s 𝐵))
4746oveq1d 7446 . . . . 5 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) = ((𝑋 ·s 𝐵) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
4841, 44addscld 28013 . . . . . 6 ((𝜑𝜓) → ((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) ∈ No )
49 addsdilem3.1 . . . . . . . . 9 (𝜑𝐴 No )
5049adantr 480 . . . . . . . 8 ((𝜑𝜓) → 𝐴 No )
51 leftssno 27919 . . . . . . . . . . 11 ( L ‘𝐵) ⊆ No
52 rightssno 27920 . . . . . . . . . . 11 ( R ‘𝐵) ⊆ No
5351, 52unssi 4191 . . . . . . . . . 10 (( L ‘𝐵) ∪ ( R ‘𝐵)) ⊆ No
5453, 18sselid 3981 . . . . . . . . 9 (𝜓𝑌 No )
5554adantl 481 . . . . . . . 8 ((𝜑𝜓) → 𝑌 No )
5650, 55mulscld 28161 . . . . . . 7 ((𝜑𝜓) → (𝐴 ·s 𝑌) ∈ No )
5749, 42mulscld 28161 . . . . . . . 8 (𝜑 → (𝐴 ·s 𝐶) ∈ No )
5857adantr 480 . . . . . . 7 ((𝜑𝜓) → (𝐴 ·s 𝐶) ∈ No )
5956, 58addscld 28013 . . . . . 6 ((𝜑𝜓) → ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶)) ∈ No )
6048, 59, 44addsubsd 28112 . . . . 5 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s (𝑋 ·s 𝐶)) = ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
6141, 56, 58addsassd 28039 . . . . 5 ((𝜑𝜓) → (((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)) = ((𝑋 ·s 𝐵) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))))
6247, 60, 613eqtr4d 2787 . . . 4 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s (𝑋 ·s 𝐶)) = (((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)))
6362oveq1d 7446 . . 3 ((𝜑𝜓) → (((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s (𝑋 ·s 𝐶)) -s (𝑋 ·s 𝑌)) = ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)) -s (𝑋 ·s 𝑌)))
6448, 59addscld 28013 . . . . 5 ((𝜑𝜓) → (((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) ∈ No )
6537, 54mulscld 28161 . . . . . 6 (𝜓 → (𝑋 ·s 𝑌) ∈ No )
6665adantl 481 . . . . 5 ((𝜑𝜓) → (𝑋 ·s 𝑌) ∈ No )
6764, 44, 66subsubs4d 28124 . . . 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 28000 . . . . 5 ((𝜑𝜓) → ((𝑋 ·s 𝐶) +s (𝑋 ·s 𝑌)) = ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶)))
6968oveq2d 7447 . . . 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 2777 . . 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 28013 . . . 4 ((𝜑𝜓) → ((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) ∈ No )
7271, 58, 66addsubsd 28112 . . 3 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) +s (𝐴 ·s 𝐶)) -s (𝑋 ·s 𝑌)) = ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) -s (𝑋 ·s 𝑌)) +s (𝐴 ·s 𝐶)))
7363, 70, 723eqtr3d 2785 . 2 ((𝜑𝜓) → ((((𝑋 ·s 𝐵) +s (𝑋 ·s 𝐶)) +s ((𝐴 ·s 𝑌) +s (𝐴 ·s 𝐶))) -s ((𝑋 ·s 𝑌) +s (𝑋 ·s 𝐶))) = ((((𝑋 ·s 𝐵) +s (𝐴 ·s 𝑌)) -s (𝑋 ·s 𝑌)) +s (𝐴 ·s 𝐶)))
7433, 73eqtrd 2777 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 2108  wral 3061  cun 3949  cfv 6561  (class class class)co 7431   No csur 27684   L cleft 27884   R cright 27885   +s cadds 27992   -s csubs 28052   ·s cmuls 28132
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 2007  ax-8 2110  ax-9 2118  ax-10 2141  ax-11 2157  ax-12 2177  ax-ext 2708  ax-rep 5279  ax-sep 5296  ax-nul 5306  ax-pow 5365  ax-pr 5432  ax-un 7755
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 849  df-3or 1088  df-3an 1089  df-tru 1543  df-fal 1553  df-ex 1780  df-nf 1784  df-sb 2065  df-mo 2540  df-eu 2569  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2892  df-ne 2941  df-ral 3062  df-rex 3071  df-rmo 3380  df-reu 3381  df-rab 3437  df-v 3482  df-sbc 3789  df-csb 3900  df-dif 3954  df-un 3956  df-in 3958  df-ss 3968  df-pss 3971  df-nul 4334  df-if 4526  df-pw 4602  df-sn 4627  df-pr 4629  df-tp 4631  df-op 4633  df-ot 4635  df-uni 4908  df-int 4947  df-iun 4993  df-br 5144  df-opab 5206  df-mpt 5226  df-tr 5260  df-id 5578  df-eprel 5584  df-po 5592  df-so 5593  df-fr 5637  df-se 5638  df-we 5639  df-xp 5691  df-rel 5692  df-cnv 5693  df-co 5694  df-dm 5695  df-rn 5696  df-res 5697  df-ima 5698  df-pred 6321  df-ord 6387  df-on 6388  df-suc 6390  df-iota 6514  df-fun 6563  df-fn 6564  df-f 6565  df-f1 6566  df-fo 6567  df-f1o 6568  df-fv 6569  df-riota 7388  df-ov 7434  df-oprab 7435  df-mpo 7436  df-1st 8014  df-2nd 8015  df-frecs 8306  df-wrecs 8337  df-recs 8411  df-1o 8506  df-2o 8507  df-nadd 8704  df-no 27687  df-slt 27688  df-bday 27689  df-sle 27790  df-sslt 27826  df-scut 27828  df-0s 27869  df-made 27886  df-old 27887  df-left 27889  df-right 27890  df-norec 27971  df-norec2 27982  df-adds 27993  df-negs 28053  df-subs 28054  df-muls 28133
This theorem is referenced by:  addsdi  28181
  Copyright terms: Public domain W3C validator