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

Theorem lcmfun 16278
Description: The lcm function for a union of sets of integers. (Contributed by AV, 27-Aug-2020.)
Assertion
Ref Expression
lcmfun (((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin)) → (lcm‘(𝑌𝑍)) = ((lcm𝑌) lcm (lcm𝑍)))

Proof of Theorem lcmfun
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 cleq1lem 14621 . . . . . 6 (𝑥 = ∅ → ((𝑥 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) ↔ (∅ ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))))
2 uneq2 4087 . . . . . . . . 9 (𝑥 = ∅ → (𝑌𝑥) = (𝑌 ∪ ∅))
3 un0 4321 . . . . . . . . 9 (𝑌 ∪ ∅) = 𝑌
42, 3eqtrdi 2795 . . . . . . . 8 (𝑥 = ∅ → (𝑌𝑥) = 𝑌)
54fveq2d 6760 . . . . . . 7 (𝑥 = ∅ → (lcm‘(𝑌𝑥)) = (lcm𝑌))
6 fveq2 6756 . . . . . . . . 9 (𝑥 = ∅ → (lcm𝑥) = (lcm‘∅))
7 lcmf0 16267 . . . . . . . . 9 (lcm‘∅) = 1
86, 7eqtrdi 2795 . . . . . . . 8 (𝑥 = ∅ → (lcm𝑥) = 1)
98oveq2d 7271 . . . . . . 7 (𝑥 = ∅ → ((lcm𝑌) lcm (lcm𝑥)) = ((lcm𝑌) lcm 1))
105, 9eqeq12d 2754 . . . . . 6 (𝑥 = ∅ → ((lcm‘(𝑌𝑥)) = ((lcm𝑌) lcm (lcm𝑥)) ↔ (lcm𝑌) = ((lcm𝑌) lcm 1)))
111, 10imbi12d 344 . . . . 5 (𝑥 = ∅ → (((𝑥 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑥)) = ((lcm𝑌) lcm (lcm𝑥))) ↔ ((∅ ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm𝑌) = ((lcm𝑌) lcm 1))))
12 cleq1lem 14621 . . . . . 6 (𝑥 = 𝑦 → ((𝑥 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) ↔ (𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))))
13 uneq2 4087 . . . . . . . 8 (𝑥 = 𝑦 → (𝑌𝑥) = (𝑌𝑦))
1413fveq2d 6760 . . . . . . 7 (𝑥 = 𝑦 → (lcm‘(𝑌𝑥)) = (lcm‘(𝑌𝑦)))
15 fveq2 6756 . . . . . . . 8 (𝑥 = 𝑦 → (lcm𝑥) = (lcm𝑦))
1615oveq2d 7271 . . . . . . 7 (𝑥 = 𝑦 → ((lcm𝑌) lcm (lcm𝑥)) = ((lcm𝑌) lcm (lcm𝑦)))
1714, 16eqeq12d 2754 . . . . . 6 (𝑥 = 𝑦 → ((lcm‘(𝑌𝑥)) = ((lcm𝑌) lcm (lcm𝑥)) ↔ (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦))))
1812, 17imbi12d 344 . . . . 5 (𝑥 = 𝑦 → (((𝑥 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑥)) = ((lcm𝑌) lcm (lcm𝑥))) ↔ ((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦)))))
19 cleq1lem 14621 . . . . . 6 (𝑥 = (𝑦 ∪ {𝑧}) → ((𝑥 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) ↔ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))))
20 uneq2 4087 . . . . . . . 8 (𝑥 = (𝑦 ∪ {𝑧}) → (𝑌𝑥) = (𝑌 ∪ (𝑦 ∪ {𝑧})))
2120fveq2d 6760 . . . . . . 7 (𝑥 = (𝑦 ∪ {𝑧}) → (lcm‘(𝑌𝑥)) = (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))))
22 fveq2 6756 . . . . . . . 8 (𝑥 = (𝑦 ∪ {𝑧}) → (lcm𝑥) = (lcm‘(𝑦 ∪ {𝑧})))
2322oveq2d 7271 . . . . . . 7 (𝑥 = (𝑦 ∪ {𝑧}) → ((lcm𝑌) lcm (lcm𝑥)) = ((lcm𝑌) lcm (lcm‘(𝑦 ∪ {𝑧}))))
2421, 23eqeq12d 2754 . . . . . 6 (𝑥 = (𝑦 ∪ {𝑧}) → ((lcm‘(𝑌𝑥)) = ((lcm𝑌) lcm (lcm𝑥)) ↔ (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm𝑌) lcm (lcm‘(𝑦 ∪ {𝑧})))))
2519, 24imbi12d 344 . . . . 5 (𝑥 = (𝑦 ∪ {𝑧}) → (((𝑥 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑥)) = ((lcm𝑌) lcm (lcm𝑥))) ↔ (((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm𝑌) lcm (lcm‘(𝑦 ∪ {𝑧}))))))
26 cleq1lem 14621 . . . . . 6 (𝑥 = 𝑍 → ((𝑥 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) ↔ (𝑍 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))))
27 uneq2 4087 . . . . . . . 8 (𝑥 = 𝑍 → (𝑌𝑥) = (𝑌𝑍))
2827fveq2d 6760 . . . . . . 7 (𝑥 = 𝑍 → (lcm‘(𝑌𝑥)) = (lcm‘(𝑌𝑍)))
29 fveq2 6756 . . . . . . . 8 (𝑥 = 𝑍 → (lcm𝑥) = (lcm𝑍))
3029oveq2d 7271 . . . . . . 7 (𝑥 = 𝑍 → ((lcm𝑌) lcm (lcm𝑥)) = ((lcm𝑌) lcm (lcm𝑍)))
3128, 30eqeq12d 2754 . . . . . 6 (𝑥 = 𝑍 → ((lcm‘(𝑌𝑥)) = ((lcm𝑌) lcm (lcm𝑥)) ↔ (lcm‘(𝑌𝑍)) = ((lcm𝑌) lcm (lcm𝑍))))
3226, 31imbi12d 344 . . . . 5 (𝑥 = 𝑍 → (((𝑥 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑥)) = ((lcm𝑌) lcm (lcm𝑥))) ↔ ((𝑍 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑍)) = ((lcm𝑌) lcm (lcm𝑍)))))
33 lcmfcl 16261 . . . . . . . . . 10 ((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) → (lcm𝑌) ∈ ℕ0)
3433nn0zd 12353 . . . . . . . . 9 ((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) → (lcm𝑌) ∈ ℤ)
35 lcm1 16243 . . . . . . . . 9 ((lcm𝑌) ∈ ℤ → ((lcm𝑌) lcm 1) = (abs‘(lcm𝑌)))
3634, 35syl 17 . . . . . . . 8 ((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) → ((lcm𝑌) lcm 1) = (abs‘(lcm𝑌)))
37 nn0re 12172 . . . . . . . . . . 11 ((lcm𝑌) ∈ ℕ0 → (lcm𝑌) ∈ ℝ)
38 nn0ge0 12188 . . . . . . . . . . 11 ((lcm𝑌) ∈ ℕ0 → 0 ≤ (lcm𝑌))
3937, 38jca 511 . . . . . . . . . 10 ((lcm𝑌) ∈ ℕ0 → ((lcm𝑌) ∈ ℝ ∧ 0 ≤ (lcm𝑌)))
4033, 39syl 17 . . . . . . . . 9 ((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) → ((lcm𝑌) ∈ ℝ ∧ 0 ≤ (lcm𝑌)))
41 absid 14936 . . . . . . . . 9 (((lcm𝑌) ∈ ℝ ∧ 0 ≤ (lcm𝑌)) → (abs‘(lcm𝑌)) = (lcm𝑌))
4240, 41syl 17 . . . . . . . 8 ((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) → (abs‘(lcm𝑌)) = (lcm𝑌))
4336, 42eqtrd 2778 . . . . . . 7 ((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) → ((lcm𝑌) lcm 1) = (lcm𝑌))
4443adantl 481 . . . . . 6 ((∅ ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → ((lcm𝑌) lcm 1) = (lcm𝑌))
4544eqcomd 2744 . . . . 5 ((∅ ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm𝑌) = ((lcm𝑌) lcm 1))
46 unass 4096 . . . . . . . . . . . . . 14 ((𝑌𝑦) ∪ {𝑧}) = (𝑌 ∪ (𝑦 ∪ {𝑧}))
4746eqcomi 2747 . . . . . . . . . . . . 13 (𝑌 ∪ (𝑦 ∪ {𝑧})) = ((𝑌𝑦) ∪ {𝑧})
4847a1i 11 . . . . . . . . . . . 12 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (𝑌 ∪ (𝑦 ∪ {𝑧})) = ((𝑌𝑦) ∪ {𝑧}))
4948fveq2d 6760 . . . . . . . . . . 11 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = (lcm‘((𝑌𝑦) ∪ {𝑧})))
50 simpl 482 . . . . . . . . . . . . . . 15 ((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) → 𝑌 ⊆ ℤ)
5150adantl 481 . . . . . . . . . . . . . 14 (((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → 𝑌 ⊆ ℤ)
52 unss 4114 . . . . . . . . . . . . . . . 16 ((𝑦 ⊆ ℤ ∧ {𝑧} ⊆ ℤ) ↔ (𝑦 ∪ {𝑧}) ⊆ ℤ)
53 simpl 482 . . . . . . . . . . . . . . . 16 ((𝑦 ⊆ ℤ ∧ {𝑧} ⊆ ℤ) → 𝑦 ⊆ ℤ)
5452, 53sylbir 234 . . . . . . . . . . . . . . 15 ((𝑦 ∪ {𝑧}) ⊆ ℤ → 𝑦 ⊆ ℤ)
5554adantr 480 . . . . . . . . . . . . . 14 (((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → 𝑦 ⊆ ℤ)
5651, 55unssd 4116 . . . . . . . . . . . . 13 (((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (𝑌𝑦) ⊆ ℤ)
5756adantl 481 . . . . . . . . . . . 12 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (𝑌𝑦) ⊆ ℤ)
58 unfi 8917 . . . . . . . . . . . . . . . 16 ((𝑌 ∈ Fin ∧ 𝑦 ∈ Fin) → (𝑌𝑦) ∈ Fin)
5958ex 412 . . . . . . . . . . . . . . 15 (𝑌 ∈ Fin → (𝑦 ∈ Fin → (𝑌𝑦) ∈ Fin))
6059adantl 481 . . . . . . . . . . . . . 14 ((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) → (𝑦 ∈ Fin → (𝑌𝑦) ∈ Fin))
6160adantl 481 . . . . . . . . . . . . 13 (((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (𝑦 ∈ Fin → (𝑌𝑦) ∈ Fin))
6261impcom 407 . . . . . . . . . . . 12 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (𝑌𝑦) ∈ Fin)
63 vex 3426 . . . . . . . . . . . . . . . . . 18 𝑧 ∈ V
6463snss 4716 . . . . . . . . . . . . . . . . 17 (𝑧 ∈ ℤ ↔ {𝑧} ⊆ ℤ)
6564biimpri 227 . . . . . . . . . . . . . . . 16 ({𝑧} ⊆ ℤ → 𝑧 ∈ ℤ)
6665adantl 481 . . . . . . . . . . . . . . 15 ((𝑦 ⊆ ℤ ∧ {𝑧} ⊆ ℤ) → 𝑧 ∈ ℤ)
6752, 66sylbir 234 . . . . . . . . . . . . . 14 ((𝑦 ∪ {𝑧}) ⊆ ℤ → 𝑧 ∈ ℤ)
6867adantr 480 . . . . . . . . . . . . 13 (((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → 𝑧 ∈ ℤ)
6968adantl 481 . . . . . . . . . . . 12 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → 𝑧 ∈ ℤ)
70 lcmfunsn 16277 . . . . . . . . . . . 12 (((𝑌𝑦) ⊆ ℤ ∧ (𝑌𝑦) ∈ Fin ∧ 𝑧 ∈ ℤ) → (lcm‘((𝑌𝑦) ∪ {𝑧})) = ((lcm‘(𝑌𝑦)) lcm 𝑧))
7157, 62, 69, 70syl3anc 1369 . . . . . . . . . . 11 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (lcm‘((𝑌𝑦) ∪ {𝑧})) = ((lcm‘(𝑌𝑦)) lcm 𝑧))
7249, 71eqtrd 2778 . . . . . . . . . 10 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm‘(𝑌𝑦)) lcm 𝑧))
7372adantr 480 . . . . . . . . 9 (((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) ∧ ((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦)))) → (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm‘(𝑌𝑦)) lcm 𝑧))
7454anim1i 614 . . . . . . . . . . . . 13 (((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)))
7574adantl 481 . . . . . . . . . . . 12 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)))
76 id 22 . . . . . . . . . . . 12 (((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦))) → ((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦))))
7775, 76mpan9 506 . . . . . . . . . . 11 (((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) ∧ ((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦)))) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦)))
7877oveq1d 7270 . . . . . . . . . 10 (((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) ∧ ((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦)))) → ((lcm‘(𝑌𝑦)) lcm 𝑧) = (((lcm𝑌) lcm (lcm𝑦)) lcm 𝑧))
7934adantl 481 . . . . . . . . . . . . 13 (((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm𝑌) ∈ ℤ)
8079adantl 481 . . . . . . . . . . . 12 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (lcm𝑌) ∈ ℤ)
8155anim2i 616 . . . . . . . . . . . . . . 15 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (𝑦 ∈ Fin ∧ 𝑦 ⊆ ℤ))
8281ancomd 461 . . . . . . . . . . . . . 14 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (𝑦 ⊆ ℤ ∧ 𝑦 ∈ Fin))
83 lcmfcl 16261 . . . . . . . . . . . . . 14 ((𝑦 ⊆ ℤ ∧ 𝑦 ∈ Fin) → (lcm𝑦) ∈ ℕ0)
8482, 83syl 17 . . . . . . . . . . . . 13 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (lcm𝑦) ∈ ℕ0)
8584nn0zd 12353 . . . . . . . . . . . 12 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (lcm𝑦) ∈ ℤ)
86 lcmass 16247 . . . . . . . . . . . 12 (((lcm𝑌) ∈ ℤ ∧ (lcm𝑦) ∈ ℤ ∧ 𝑧 ∈ ℤ) → (((lcm𝑌) lcm (lcm𝑦)) lcm 𝑧) = ((lcm𝑌) lcm ((lcm𝑦) lcm 𝑧)))
8780, 85, 69, 86syl3anc 1369 . . . . . . . . . . 11 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (((lcm𝑌) lcm (lcm𝑦)) lcm 𝑧) = ((lcm𝑌) lcm ((lcm𝑦) lcm 𝑧)))
8887adantr 480 . . . . . . . . . 10 (((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) ∧ ((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦)))) → (((lcm𝑌) lcm (lcm𝑦)) lcm 𝑧) = ((lcm𝑌) lcm ((lcm𝑦) lcm 𝑧)))
8978, 88eqtrd 2778 . . . . . . . . 9 (((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) ∧ ((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦)))) → ((lcm‘(𝑌𝑦)) lcm 𝑧) = ((lcm𝑌) lcm ((lcm𝑦) lcm 𝑧)))
9073, 89eqtrd 2778 . . . . . . . 8 (((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) ∧ ((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦)))) → (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm𝑌) lcm ((lcm𝑦) lcm 𝑧)))
9153adantr 480 . . . . . . . . . . . . . . . . 17 (((𝑦 ⊆ ℤ ∧ {𝑧} ⊆ ℤ) ∧ 𝑦 ∈ Fin) → 𝑦 ⊆ ℤ)
92 simpr 484 . . . . . . . . . . . . . . . . 17 (((𝑦 ⊆ ℤ ∧ {𝑧} ⊆ ℤ) ∧ 𝑦 ∈ Fin) → 𝑦 ∈ Fin)
9366adantr 480 . . . . . . . . . . . . . . . . 17 (((𝑦 ⊆ ℤ ∧ {𝑧} ⊆ ℤ) ∧ 𝑦 ∈ Fin) → 𝑧 ∈ ℤ)
9491, 92, 933jca 1126 . . . . . . . . . . . . . . . 16 (((𝑦 ⊆ ℤ ∧ {𝑧} ⊆ ℤ) ∧ 𝑦 ∈ Fin) → (𝑦 ⊆ ℤ ∧ 𝑦 ∈ Fin ∧ 𝑧 ∈ ℤ))
9594ex 412 . . . . . . . . . . . . . . 15 ((𝑦 ⊆ ℤ ∧ {𝑧} ⊆ ℤ) → (𝑦 ∈ Fin → (𝑦 ⊆ ℤ ∧ 𝑦 ∈ Fin ∧ 𝑧 ∈ ℤ)))
9652, 95sylbir 234 . . . . . . . . . . . . . 14 ((𝑦 ∪ {𝑧}) ⊆ ℤ → (𝑦 ∈ Fin → (𝑦 ⊆ ℤ ∧ 𝑦 ∈ Fin ∧ 𝑧 ∈ ℤ)))
9796adantr 480 . . . . . . . . . . . . 13 (((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (𝑦 ∈ Fin → (𝑦 ⊆ ℤ ∧ 𝑦 ∈ Fin ∧ 𝑧 ∈ ℤ)))
9897impcom 407 . . . . . . . . . . . 12 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (𝑦 ⊆ ℤ ∧ 𝑦 ∈ Fin ∧ 𝑧 ∈ ℤ))
99 lcmfunsn 16277 . . . . . . . . . . . 12 ((𝑦 ⊆ ℤ ∧ 𝑦 ∈ Fin ∧ 𝑧 ∈ ℤ) → (lcm‘(𝑦 ∪ {𝑧})) = ((lcm𝑦) lcm 𝑧))
10098, 99syl 17 . . . . . . . . . . 11 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → (lcm‘(𝑦 ∪ {𝑧})) = ((lcm𝑦) lcm 𝑧))
101100oveq2d 7271 . . . . . . . . . 10 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → ((lcm𝑌) lcm (lcm‘(𝑦 ∪ {𝑧}))) = ((lcm𝑌) lcm ((lcm𝑦) lcm 𝑧)))
102101eqeq2d 2749 . . . . . . . . 9 ((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) → ((lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm𝑌) lcm (lcm‘(𝑦 ∪ {𝑧}))) ↔ (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm𝑌) lcm ((lcm𝑦) lcm 𝑧))))
103102adantr 480 . . . . . . . 8 (((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) ∧ ((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦)))) → ((lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm𝑌) lcm (lcm‘(𝑦 ∪ {𝑧}))) ↔ (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm𝑌) lcm ((lcm𝑦) lcm 𝑧))))
10490, 103mpbird 256 . . . . . . 7 (((𝑦 ∈ Fin ∧ ((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin))) ∧ ((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦)))) → (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm𝑌) lcm (lcm‘(𝑦 ∪ {𝑧}))))
105104exp31 419 . . . . . 6 (𝑦 ∈ Fin → (((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦))) → (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm𝑌) lcm (lcm‘(𝑦 ∪ {𝑧}))))))
106105com23 86 . . . . 5 (𝑦 ∈ Fin → (((𝑦 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑦)) = ((lcm𝑌) lcm (lcm𝑦))) → (((𝑦 ∪ {𝑧}) ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌 ∪ (𝑦 ∪ {𝑧}))) = ((lcm𝑌) lcm (lcm‘(𝑦 ∪ {𝑧}))))))
10711, 18, 25, 32, 45, 106findcard2 8909 . . . 4 (𝑍 ∈ Fin → ((𝑍 ⊆ ℤ ∧ (𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin)) → (lcm‘(𝑌𝑍)) = ((lcm𝑌) lcm (lcm𝑍))))
108107expd 415 . . 3 (𝑍 ∈ Fin → (𝑍 ⊆ ℤ → ((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) → (lcm‘(𝑌𝑍)) = ((lcm𝑌) lcm (lcm𝑍)))))
109108impcom 407 . 2 ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin) → ((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) → (lcm‘(𝑌𝑍)) = ((lcm𝑌) lcm (lcm𝑍))))
110109impcom 407 1 (((𝑌 ⊆ ℤ ∧ 𝑌 ∈ Fin) ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin)) → (lcm‘(𝑌𝑍)) = ((lcm𝑌) lcm (lcm𝑍)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  cun 3881  wss 3883  c0 4253  {csn 4558   class class class wbr 5070  cfv 6418  (class class class)co 7255  Fincfn 8691  cr 10801  0cc0 10802  1c1 10803  cle 10941  0cn0 12163  cz 12249  abscabs 14873   lcm clcm 16221  lcmclcmf 16222
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-inf2 9329  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879  ax-pre-sup 10880
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-se 5536  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-isom 6427  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-sup 9131  df-inf 9132  df-oi 9199  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-div 11563  df-nn 11904  df-2 11966  df-3 11967  df-n0 12164  df-z 12250  df-uz 12512  df-rp 12660  df-fz 13169  df-fzo 13312  df-fl 13440  df-mod 13518  df-seq 13650  df-exp 13711  df-hash 13973  df-cj 14738  df-re 14739  df-im 14740  df-sqrt 14874  df-abs 14875  df-clim 15125  df-prod 15544  df-dvds 15892  df-gcd 16130  df-lcm 16223  df-lcmf 16224
This theorem is referenced by:  lcmfass  16279
  Copyright terms: Public domain W3C validator