Metamath Proof Explorer


Theorem mumullem2

Description: Lemma for mumul . The product of two coprime squarefree numbers is squarefree. (Contributed by Mario Carneiro, 3-Oct-2014)

Ref Expression
Assertion mumullem2 ABAgcdB=1μA0μB0μAB0

Proof

Step Hyp Ref Expression
1 r19.26 pppCntA1ppCntB1pppCntA1pppCntB1
2 simpr ABAgcdB=1pp
3 simpl1 ABAgcdB=1pA
4 2 3 pccld ABAgcdB=1pppCntA0
5 4 nn0red ABAgcdB=1pppCntA
6 simpl2 ABAgcdB=1pB
7 2 6 pccld ABAgcdB=1pppCntB0
8 7 nn0red ABAgcdB=1pppCntB
9 1red ABAgcdB=1p1
10 le2add ppCntAppCntB11ppCntA1ppCntB1ppCntA+ppCntB1+1
11 5 8 9 9 10 syl22anc ABAgcdB=1pppCntA1ppCntB1ppCntA+ppCntB1+1
12 ax-1ne0 10
13 simpl3 ABAgcdB=1pAgcdB=1
14 13 oveq2d ABAgcdB=1pppCntAgcdB=ppCnt1
15 3 nnzd ABAgcdB=1pA
16 6 nnzd ABAgcdB=1pB
17 pcgcd pABppCntAgcdB=ifppCntAppCntBppCntAppCntB
18 2 15 16 17 syl3anc ABAgcdB=1pppCntAgcdB=ifppCntAppCntBppCntAppCntB
19 pc1 pppCnt1=0
20 19 adantl ABAgcdB=1pppCnt1=0
21 14 18 20 3eqtr3d ABAgcdB=1pifppCntAppCntBppCntAppCntB=0
22 ifid ifppCntAppCntB11=1
23 ifeq12 1=ppCntA1=ppCntBifppCntAppCntB11=ifppCntAppCntBppCntAppCntB
24 22 23 eqtr3id 1=ppCntA1=ppCntB1=ifppCntAppCntBppCntAppCntB
25 24 eqeq1d 1=ppCntA1=ppCntB1=0ifppCntAppCntBppCntAppCntB=0
26 21 25 syl5ibrcom ABAgcdB=1p1=ppCntA1=ppCntB1=0
27 26 necon3ad ABAgcdB=1p10¬1=ppCntA1=ppCntB
28 12 27 mpi ABAgcdB=1p¬1=ppCntA1=ppCntB
29 ax-1cn 1
30 5 recnd ABAgcdB=1pppCntA
31 subeq0 1ppCntA1ppCntA=01=ppCntA
32 29 30 31 sylancr ABAgcdB=1p1ppCntA=01=ppCntA
33 8 recnd ABAgcdB=1pppCntB
34 subeq0 1ppCntB1ppCntB=01=ppCntB
35 29 33 34 sylancr ABAgcdB=1p1ppCntB=01=ppCntB
36 32 35 anbi12d ABAgcdB=1p1ppCntA=01ppCntB=01=ppCntA1=ppCntB
37 28 36 mtbird ABAgcdB=1p¬1ppCntA=01ppCntB=0
38 37 adantr ABAgcdB=1pppCntA1ppCntB1¬1ppCntA=01ppCntB=0
39 eqcom 1+1=ppCntA+ppCntBppCntA+ppCntB=1+1
40 1re 1
41 40 40 readdcli 1+1
42 41 recni 1+1
43 4 7 nn0addcld ABAgcdB=1pppCntA+ppCntB0
44 43 nn0red ABAgcdB=1pppCntA+ppCntB
45 44 recnd ABAgcdB=1pppCntA+ppCntB
46 subeq0 1+1ppCntA+ppCntB1+1-ppCntA+ppCntB=01+1=ppCntA+ppCntB
47 42 45 46 sylancr ABAgcdB=1p1+1-ppCntA+ppCntB=01+1=ppCntA+ppCntB
48 47 39 bitrdi ABAgcdB=1p1+1-ppCntA+ppCntB=0ppCntA+ppCntB=1+1
49 9 recnd ABAgcdB=1p1
50 49 49 30 33 addsub4d ABAgcdB=1p1+1-ppCntA+ppCntB=1ppCntA+1-ppCntB
51 50 eqeq1d ABAgcdB=1p1+1-ppCntA+ppCntB=01ppCntA+1-ppCntB=0
52 48 51 bitr3d ABAgcdB=1pppCntA+ppCntB=1+11ppCntA+1-ppCntB=0
53 52 adantr ABAgcdB=1pppCntA1ppCntB1ppCntA+ppCntB=1+11ppCntA+1-ppCntB=0
54 subge0 1ppCntA01ppCntAppCntA1
55 40 5 54 sylancr ABAgcdB=1p01ppCntAppCntA1
56 subge0 1ppCntB01ppCntBppCntB1
57 40 8 56 sylancr ABAgcdB=1p01ppCntBppCntB1
58 55 57 anbi12d ABAgcdB=1p01ppCntA01ppCntBppCntA1ppCntB1
59 resubcl 1ppCntA1ppCntA
60 40 5 59 sylancr ABAgcdB=1p1ppCntA
61 resubcl 1ppCntB1ppCntB
62 40 8 61 sylancr ABAgcdB=1p1ppCntB
63 add20 1ppCntA01ppCntA1ppCntB01ppCntB1ppCntA+1-ppCntB=01ppCntA=01ppCntB=0
64 63 an4s 1ppCntA1ppCntB01ppCntA01ppCntB1ppCntA+1-ppCntB=01ppCntA=01ppCntB=0
65 64 ex 1ppCntA1ppCntB01ppCntA01ppCntB1ppCntA+1-ppCntB=01ppCntA=01ppCntB=0
66 60 62 65 syl2anc ABAgcdB=1p01ppCntA01ppCntB1ppCntA+1-ppCntB=01ppCntA=01ppCntB=0
67 58 66 sylbird ABAgcdB=1pppCntA1ppCntB11ppCntA+1-ppCntB=01ppCntA=01ppCntB=0
68 67 imp ABAgcdB=1pppCntA1ppCntB11ppCntA+1-ppCntB=01ppCntA=01ppCntB=0
69 53 68 bitrd ABAgcdB=1pppCntA1ppCntB1ppCntA+ppCntB=1+11ppCntA=01ppCntB=0
70 39 69 bitrid ABAgcdB=1pppCntA1ppCntB11+1=ppCntA+ppCntB1ppCntA=01ppCntB=0
71 70 necon3abid ABAgcdB=1pppCntA1ppCntB11+1ppCntA+ppCntB¬1ppCntA=01ppCntB=0
72 38 71 mpbird ABAgcdB=1pppCntA1ppCntB11+1ppCntA+ppCntB
73 72 ex ABAgcdB=1pppCntA1ppCntB11+1ppCntA+ppCntB
74 11 73 jcad ABAgcdB=1pppCntA1ppCntB1ppCntA+ppCntB1+11+1ppCntA+ppCntB
75 nnz AA
76 nnne0 AA0
77 75 76 jca AAA0
78 3 77 syl ABAgcdB=1pAA0
79 nnz BB
80 nnne0 BB0
81 79 80 jca BBB0
82 6 81 syl ABAgcdB=1pBB0
83 pcmul pAA0BB0ppCntAB=ppCntA+ppCntB
84 2 78 82 83 syl3anc ABAgcdB=1pppCntAB=ppCntA+ppCntB
85 84 breq1d ABAgcdB=1pppCntAB1ppCntA+ppCntB1
86 1nn0 10
87 nn0leltp1 ppCntA+ppCntB010ppCntA+ppCntB1ppCntA+ppCntB<1+1
88 43 86 87 sylancl ABAgcdB=1pppCntA+ppCntB1ppCntA+ppCntB<1+1
89 ltlen ppCntA+ppCntB1+1ppCntA+ppCntB<1+1ppCntA+ppCntB1+11+1ppCntA+ppCntB
90 44 41 89 sylancl ABAgcdB=1pppCntA+ppCntB<1+1ppCntA+ppCntB1+11+1ppCntA+ppCntB
91 85 88 90 3bitrd ABAgcdB=1pppCntAB1ppCntA+ppCntB1+11+1ppCntA+ppCntB
92 74 91 sylibrd ABAgcdB=1pppCntA1ppCntB1ppCntAB1
93 92 ralimdva ABAgcdB=1pppCntA1ppCntB1pppCntAB1
94 1 93 biimtrrid ABAgcdB=1pppCntA1pppCntB1pppCntAB1
95 issqf AμA0pppCntA1
96 issqf BμB0pppCntB1
97 95 96 bi2anan9 ABμA0μB0pppCntA1pppCntB1
98 97 3adant3 ABAgcdB=1μA0μB0pppCntA1pppCntB1
99 nnmulcl ABAB
100 99 3adant3 ABAgcdB=1AB
101 issqf ABμAB0pppCntAB1
102 100 101 syl ABAgcdB=1μAB0pppCntAB1
103 94 98 102 3imtr4d ABAgcdB=1μA0μB0μAB0
104 103 imp ABAgcdB=1μA0μB0μAB0