Metamath Proof Explorer


Theorem lcmf

Description: Characterization of the least common multiple of a set of integers (without 0): A positiven integer is the least common multiple of a set of integers iff it divides each of the elements of the set and every integer which divides each of the elements of the set is greater than or equal to this integer. (Contributed by AV, 22-Aug-2020)

Ref Expression
Assertion lcmf K Z Z Fin 0 Z K = lcm _ Z m Z m K k m Z m k K k

Proof

Step Hyp Ref Expression
1 dvdslcmf Z Z Fin m Z m lcm _ Z
2 1 3adant3 Z Z Fin 0 Z m Z m lcm _ Z
3 lcmfledvds Z Z Fin 0 Z k m Z m k lcm _ Z k
4 3 expdimp Z Z Fin 0 Z k m Z m k lcm _ Z k
5 4 ralrimiva Z Z Fin 0 Z k m Z m k lcm _ Z k
6 2 5 jca Z Z Fin 0 Z m Z m lcm _ Z k m Z m k lcm _ Z k
7 6 adantl K Z Z Fin 0 Z m Z m lcm _ Z k m Z m k lcm _ Z k
8 breq2 K = lcm _ Z m K m lcm _ Z
9 8 ralbidv K = lcm _ Z m Z m K m Z m lcm _ Z
10 breq1 K = lcm _ Z K k lcm _ Z k
11 10 imbi2d K = lcm _ Z m Z m k K k m Z m k lcm _ Z k
12 11 ralbidv K = lcm _ Z k m Z m k K k k m Z m k lcm _ Z k
13 9 12 anbi12d K = lcm _ Z m Z m K k m Z m k K k m Z m lcm _ Z k m Z m k lcm _ Z k
14 7 13 syl5ibrcom K Z Z Fin 0 Z K = lcm _ Z m Z m K k m Z m k K k
15 lcmfn0cl Z Z Fin 0 Z lcm _ Z
16 15 adantl K Z Z Fin 0 Z lcm _ Z
17 breq2 k = lcm _ Z m k m lcm _ Z
18 17 ralbidv k = lcm _ Z m Z m k m Z m lcm _ Z
19 breq2 k = lcm _ Z K k K lcm _ Z
20 18 19 imbi12d k = lcm _ Z m Z m k K k m Z m lcm _ Z K lcm _ Z
21 20 rspcv lcm _ Z k m Z m k K k m Z m lcm _ Z K lcm _ Z
22 16 21 syl K Z Z Fin 0 Z k m Z m k K k m Z m lcm _ Z K lcm _ Z
23 22 adantld K Z Z Fin 0 Z m Z m K k m Z m k K k m Z m lcm _ Z K lcm _ Z
24 2 adantl K Z Z Fin 0 Z m Z m lcm _ Z
25 nnre K K
26 15 nnred Z Z Fin 0 Z lcm _ Z
27 leloe K lcm _ Z K lcm _ Z K < lcm _ Z K = lcm _ Z
28 25 26 27 syl2an K Z Z Fin 0 Z K lcm _ Z K < lcm _ Z K = lcm _ Z
29 lcmfledvds Z Z Fin 0 Z K m Z m K lcm _ Z K
30 29 expd Z Z Fin 0 Z K m Z m K lcm _ Z K
31 30 impcom K Z Z Fin 0 Z m Z m K lcm _ Z K
32 lenlt lcm _ Z K lcm _ Z K ¬ K < lcm _ Z
33 26 25 32 syl2anr K Z Z Fin 0 Z lcm _ Z K ¬ K < lcm _ Z
34 pm2.21 ¬ K < lcm _ Z K < lcm _ Z K = lcm _ Z
35 33 34 syl6bi K Z Z Fin 0 Z lcm _ Z K K < lcm _ Z K = lcm _ Z
36 31 35 syldc m Z m K K Z Z Fin 0 Z K < lcm _ Z K = lcm _ Z
37 36 adantr m Z m K k m Z m k K k K Z Z Fin 0 Z K < lcm _ Z K = lcm _ Z
38 37 com13 K < lcm _ Z K Z Z Fin 0 Z m Z m K k m Z m k K k K = lcm _ Z
39 2a1 K = lcm _ Z K Z Z Fin 0 Z m Z m K k m Z m k K k K = lcm _ Z
40 38 39 jaoi K < lcm _ Z K = lcm _ Z K Z Z Fin 0 Z m Z m K k m Z m k K k K = lcm _ Z
41 40 com12 K Z Z Fin 0 Z K < lcm _ Z K = lcm _ Z m Z m K k m Z m k K k K = lcm _ Z
42 28 41 sylbid K Z Z Fin 0 Z K lcm _ Z m Z m K k m Z m k K k K = lcm _ Z
43 24 42 embantd K Z Z Fin 0 Z m Z m lcm _ Z K lcm _ Z m Z m K k m Z m k K k K = lcm _ Z
44 43 com23 K Z Z Fin 0 Z m Z m K k m Z m k K k m Z m lcm _ Z K lcm _ Z K = lcm _ Z
45 23 44 mpdd K Z Z Fin 0 Z m Z m K k m Z m k K k K = lcm _ Z
46 14 45 impbid K Z Z Fin 0 Z K = lcm _ Z m Z m K k m Z m k K k