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

Theorem prmirredlem 20055
Description: A positive integer is irreducible over iff it is a prime number. (Contributed by Mario Carneiro, 5-Dec-2014.) (Revised by AV, 10-Jun-2019.)
Hypothesis
Ref Expression
prmirred.i 𝐼 = (Irred‘ℤring)
Assertion
Ref Expression
prmirredlem (𝐴 ∈ ℕ → (𝐴𝐼𝐴 ∈ ℙ))

Proof of Theorem prmirredlem
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 zringring 20035 . . . . . 6 ring ∈ Ring
2 prmirred.i . . . . . . 7 𝐼 = (Irred‘ℤring)
3 zring1 20043 . . . . . . 7 1 = (1r‘ℤring)
42, 3irredn1 18913 . . . . . 6 ((ℤring ∈ Ring ∧ 𝐴𝐼) → 𝐴 ≠ 1)
51, 4mpan 662 . . . . 5 (𝐴𝐼𝐴 ≠ 1)
65anim2i 595 . . . 4 ((𝐴 ∈ ℕ ∧ 𝐴𝐼) → (𝐴 ∈ ℕ ∧ 𝐴 ≠ 1))
7 eluz2b3 11964 . . . 4 (𝐴 ∈ (ℤ‘2) ↔ (𝐴 ∈ ℕ ∧ 𝐴 ≠ 1))
86, 7sylibr 224 . . 3 ((𝐴 ∈ ℕ ∧ 𝐴𝐼) → 𝐴 ∈ (ℤ‘2))
9 nnz 11600 . . . . . . . 8 (𝑦 ∈ ℕ → 𝑦 ∈ ℤ)
109ad2antrl 699 . . . . . . 7 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 𝑦 ∈ ℤ)
11 simprr 748 . . . . . . . 8 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 𝑦𝐴)
12 nnne0 11254 . . . . . . . . . 10 (𝑦 ∈ ℕ → 𝑦 ≠ 0)
1312ad2antrl 699 . . . . . . . . 9 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 𝑦 ≠ 0)
14 nnz 11600 . . . . . . . . . 10 (𝐴 ∈ ℕ → 𝐴 ∈ ℤ)
1514ad2antrr 697 . . . . . . . . 9 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 𝐴 ∈ ℤ)
16 dvdsval2 15191 . . . . . . . . 9 ((𝑦 ∈ ℤ ∧ 𝑦 ≠ 0 ∧ 𝐴 ∈ ℤ) → (𝑦𝐴 ↔ (𝐴 / 𝑦) ∈ ℤ))
1710, 13, 15, 16syl3anc 1475 . . . . . . . 8 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (𝑦𝐴 ↔ (𝐴 / 𝑦) ∈ ℤ))
1811, 17mpbid 222 . . . . . . 7 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (𝐴 / 𝑦) ∈ ℤ)
1915zcnd 11684 . . . . . . . . 9 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 𝐴 ∈ ℂ)
20 nncn 11229 . . . . . . . . . 10 (𝑦 ∈ ℕ → 𝑦 ∈ ℂ)
2120ad2antrl 699 . . . . . . . . 9 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 𝑦 ∈ ℂ)
2219, 21, 13divcan2d 11004 . . . . . . . 8 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (𝑦 · (𝐴 / 𝑦)) = 𝐴)
23 simplr 744 . . . . . . . 8 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 𝐴𝐼)
2422, 23eqeltrd 2849 . . . . . . 7 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (𝑦 · (𝐴 / 𝑦)) ∈ 𝐼)
25 zringbas 20038 . . . . . . . 8 ℤ = (Base‘ℤring)
26 eqid 2770 . . . . . . . 8 (Unit‘ℤring) = (Unit‘ℤring)
27 zringmulr 20041 . . . . . . . 8 · = (.r‘ℤring)
282, 25, 26, 27irredmul 18916 . . . . . . 7 ((𝑦 ∈ ℤ ∧ (𝐴 / 𝑦) ∈ ℤ ∧ (𝑦 · (𝐴 / 𝑦)) ∈ 𝐼) → (𝑦 ∈ (Unit‘ℤring) ∨ (𝐴 / 𝑦) ∈ (Unit‘ℤring)))
2910, 18, 24, 28syl3anc 1475 . . . . . 6 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (𝑦 ∈ (Unit‘ℤring) ∨ (𝐴 / 𝑦) ∈ (Unit‘ℤring)))
30 zringunit 20050 . . . . . . . . . 10 (𝑦 ∈ (Unit‘ℤring) ↔ (𝑦 ∈ ℤ ∧ (abs‘𝑦) = 1))
3130baib 517 . . . . . . . . 9 (𝑦 ∈ ℤ → (𝑦 ∈ (Unit‘ℤring) ↔ (abs‘𝑦) = 1))
3210, 31syl 17 . . . . . . . 8 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (𝑦 ∈ (Unit‘ℤring) ↔ (abs‘𝑦) = 1))
33 nnnn0 11500 . . . . . . . . . . 11 (𝑦 ∈ ℕ → 𝑦 ∈ ℕ0)
34 nn0re 11502 . . . . . . . . . . . 12 (𝑦 ∈ ℕ0𝑦 ∈ ℝ)
35 nn0ge0 11519 . . . . . . . . . . . 12 (𝑦 ∈ ℕ0 → 0 ≤ 𝑦)
3634, 35absidd 14368 . . . . . . . . . . 11 (𝑦 ∈ ℕ0 → (abs‘𝑦) = 𝑦)
3733, 36syl 17 . . . . . . . . . 10 (𝑦 ∈ ℕ → (abs‘𝑦) = 𝑦)
3837ad2antrl 699 . . . . . . . . 9 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (abs‘𝑦) = 𝑦)
3938eqeq1d 2772 . . . . . . . 8 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → ((abs‘𝑦) = 1 ↔ 𝑦 = 1))
4032, 39bitrd 268 . . . . . . 7 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (𝑦 ∈ (Unit‘ℤring) ↔ 𝑦 = 1))
41 zringunit 20050 . . . . . . . . . 10 ((𝐴 / 𝑦) ∈ (Unit‘ℤring) ↔ ((𝐴 / 𝑦) ∈ ℤ ∧ (abs‘(𝐴 / 𝑦)) = 1))
4241baib 517 . . . . . . . . 9 ((𝐴 / 𝑦) ∈ ℤ → ((𝐴 / 𝑦) ∈ (Unit‘ℤring) ↔ (abs‘(𝐴 / 𝑦)) = 1))
4318, 42syl 17 . . . . . . . 8 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → ((𝐴 / 𝑦) ∈ (Unit‘ℤring) ↔ (abs‘(𝐴 / 𝑦)) = 1))
44 nnre 11228 . . . . . . . . . . . . 13 (𝐴 ∈ ℕ → 𝐴 ∈ ℝ)
4544ad2antrr 697 . . . . . . . . . . . 12 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 𝐴 ∈ ℝ)
46 simprl 746 . . . . . . . . . . . 12 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 𝑦 ∈ ℕ)
4745, 46nndivred 11270 . . . . . . . . . . 11 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (𝐴 / 𝑦) ∈ ℝ)
48 nnnn0 11500 . . . . . . . . . . . . . 14 (𝐴 ∈ ℕ → 𝐴 ∈ ℕ0)
49 nn0ge0 11519 . . . . . . . . . . . . . 14 (𝐴 ∈ ℕ0 → 0 ≤ 𝐴)
5048, 49syl 17 . . . . . . . . . . . . 13 (𝐴 ∈ ℕ → 0 ≤ 𝐴)
5150ad2antrr 697 . . . . . . . . . . . 12 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 0 ≤ 𝐴)
5246nnred 11236 . . . . . . . . . . . 12 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 𝑦 ∈ ℝ)
53 nngt0 11250 . . . . . . . . . . . . 13 (𝑦 ∈ ℕ → 0 < 𝑦)
5453ad2antrl 699 . . . . . . . . . . . 12 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 0 < 𝑦)
55 divge0 11093 . . . . . . . . . . . 12 (((𝐴 ∈ ℝ ∧ 0 ≤ 𝐴) ∧ (𝑦 ∈ ℝ ∧ 0 < 𝑦)) → 0 ≤ (𝐴 / 𝑦))
5645, 51, 52, 54, 55syl22anc 1476 . . . . . . . . . . 11 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 0 ≤ (𝐴 / 𝑦))
5747, 56absidd 14368 . . . . . . . . . 10 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (abs‘(𝐴 / 𝑦)) = (𝐴 / 𝑦))
5857eqeq1d 2772 . . . . . . . . 9 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → ((abs‘(𝐴 / 𝑦)) = 1 ↔ (𝐴 / 𝑦) = 1))
59 1cnd 10257 . . . . . . . . . 10 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → 1 ∈ ℂ)
6019, 21, 59, 13divmuld 11024 . . . . . . . . 9 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → ((𝐴 / 𝑦) = 1 ↔ (𝑦 · 1) = 𝐴))
6121mulid1d 10258 . . . . . . . . . 10 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (𝑦 · 1) = 𝑦)
6261eqeq1d 2772 . . . . . . . . 9 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → ((𝑦 · 1) = 𝐴𝑦 = 𝐴))
6358, 60, 623bitrd 294 . . . . . . . 8 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → ((abs‘(𝐴 / 𝑦)) = 1 ↔ 𝑦 = 𝐴))
6443, 63bitrd 268 . . . . . . 7 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → ((𝐴 / 𝑦) ∈ (Unit‘ℤring) ↔ 𝑦 = 𝐴))
6540, 64orbi12d 883 . . . . . 6 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → ((𝑦 ∈ (Unit‘ℤring) ∨ (𝐴 / 𝑦) ∈ (Unit‘ℤring)) ↔ (𝑦 = 1 ∨ 𝑦 = 𝐴)))
6629, 65mpbid 222 . . . . 5 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ (𝑦 ∈ ℕ ∧ 𝑦𝐴)) → (𝑦 = 1 ∨ 𝑦 = 𝐴))
6766expr 444 . . . 4 (((𝐴 ∈ ℕ ∧ 𝐴𝐼) ∧ 𝑦 ∈ ℕ) → (𝑦𝐴 → (𝑦 = 1 ∨ 𝑦 = 𝐴)))
6867ralrimiva 3114 . . 3 ((𝐴 ∈ ℕ ∧ 𝐴𝐼) → ∀𝑦 ∈ ℕ (𝑦𝐴 → (𝑦 = 1 ∨ 𝑦 = 𝐴)))
69 isprm2 15601 . . 3 (𝐴 ∈ ℙ ↔ (𝐴 ∈ (ℤ‘2) ∧ ∀𝑦 ∈ ℕ (𝑦𝐴 → (𝑦 = 1 ∨ 𝑦 = 𝐴))))
708, 68, 69sylanbrc 564 . 2 ((𝐴 ∈ ℕ ∧ 𝐴𝐼) → 𝐴 ∈ ℙ)
71 prmz 15595 . . . 4 (𝐴 ∈ ℙ → 𝐴 ∈ ℤ)
72 1nprm 15598 . . . . 5 ¬ 1 ∈ ℙ
73 zringunit 20050 . . . . . 6 (𝐴 ∈ (Unit‘ℤring) ↔ (𝐴 ∈ ℤ ∧ (abs‘𝐴) = 1))
74 prmnn 15594 . . . . . . . . . 10 (𝐴 ∈ ℙ → 𝐴 ∈ ℕ)
75 nn0re 11502 . . . . . . . . . . 11 (𝐴 ∈ ℕ0𝐴 ∈ ℝ)
7675, 49absidd 14368 . . . . . . . . . 10 (𝐴 ∈ ℕ0 → (abs‘𝐴) = 𝐴)
7774, 48, 763syl 18 . . . . . . . . 9 (𝐴 ∈ ℙ → (abs‘𝐴) = 𝐴)
78 id 22 . . . . . . . . 9 (𝐴 ∈ ℙ → 𝐴 ∈ ℙ)
7977, 78eqeltrd 2849 . . . . . . . 8 (𝐴 ∈ ℙ → (abs‘𝐴) ∈ ℙ)
80 eleq1 2837 . . . . . . . 8 ((abs‘𝐴) = 1 → ((abs‘𝐴) ∈ ℙ ↔ 1 ∈ ℙ))
8179, 80syl5ibcom 235 . . . . . . 7 (𝐴 ∈ ℙ → ((abs‘𝐴) = 1 → 1 ∈ ℙ))
8281adantld 474 . . . . . 6 (𝐴 ∈ ℙ → ((𝐴 ∈ ℤ ∧ (abs‘𝐴) = 1) → 1 ∈ ℙ))
8373, 82syl5bi 232 . . . . 5 (𝐴 ∈ ℙ → (𝐴 ∈ (Unit‘ℤring) → 1 ∈ ℙ))
8472, 83mtoi 190 . . . 4 (𝐴 ∈ ℙ → ¬ 𝐴 ∈ (Unit‘ℤring))
85 dvdsmul1 15211 . . . . . . . . . . 11 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → 𝑥 ∥ (𝑥 · 𝑦))
8685ad2antlr 698 . . . . . . . . . 10 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → 𝑥 ∥ (𝑥 · 𝑦))
87 simpr 471 . . . . . . . . . 10 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (𝑥 · 𝑦) = 𝐴)
8886, 87breqtrd 4810 . . . . . . . . 9 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → 𝑥𝐴)
89 simplrl 754 . . . . . . . . . 10 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → 𝑥 ∈ ℤ)
9071ad2antrr 697 . . . . . . . . . 10 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → 𝐴 ∈ ℤ)
91 absdvdsb 15208 . . . . . . . . . 10 ((𝑥 ∈ ℤ ∧ 𝐴 ∈ ℤ) → (𝑥𝐴 ↔ (abs‘𝑥) ∥ 𝐴))
9289, 90, 91syl2anc 565 . . . . . . . . 9 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (𝑥𝐴 ↔ (abs‘𝑥) ∥ 𝐴))
9388, 92mpbid 222 . . . . . . . 8 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (abs‘𝑥) ∥ 𝐴)
94 breq1 4787 . . . . . . . . . 10 (𝑦 = (abs‘𝑥) → (𝑦𝐴 ↔ (abs‘𝑥) ∥ 𝐴))
95 eqeq1 2774 . . . . . . . . . . 11 (𝑦 = (abs‘𝑥) → (𝑦 = 1 ↔ (abs‘𝑥) = 1))
96 eqeq1 2774 . . . . . . . . . . 11 (𝑦 = (abs‘𝑥) → (𝑦 = 𝐴 ↔ (abs‘𝑥) = 𝐴))
9795, 96orbi12d 883 . . . . . . . . . 10 (𝑦 = (abs‘𝑥) → ((𝑦 = 1 ∨ 𝑦 = 𝐴) ↔ ((abs‘𝑥) = 1 ∨ (abs‘𝑥) = 𝐴)))
9894, 97imbi12d 333 . . . . . . . . 9 (𝑦 = (abs‘𝑥) → ((𝑦𝐴 → (𝑦 = 1 ∨ 𝑦 = 𝐴)) ↔ ((abs‘𝑥) ∥ 𝐴 → ((abs‘𝑥) = 1 ∨ (abs‘𝑥) = 𝐴))))
9969simprbi 478 . . . . . . . . . 10 (𝐴 ∈ ℙ → ∀𝑦 ∈ ℕ (𝑦𝐴 → (𝑦 = 1 ∨ 𝑦 = 𝐴)))
10099ad2antrr 697 . . . . . . . . 9 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → ∀𝑦 ∈ ℕ (𝑦𝐴 → (𝑦 = 1 ∨ 𝑦 = 𝐴)))
10189zcnd 11684 . . . . . . . . . . . 12 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → 𝑥 ∈ ℂ)
10274ad2antrr 697 . . . . . . . . . . . . . . 15 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → 𝐴 ∈ ℕ)
103102nnne0d 11266 . . . . . . . . . . . . . 14 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → 𝐴 ≠ 0)
104 simplrr 755 . . . . . . . . . . . . . . . 16 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → 𝑦 ∈ ℤ)
105104zcnd 11684 . . . . . . . . . . . . . . 15 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → 𝑦 ∈ ℂ)
106105mul02d 10435 . . . . . . . . . . . . . 14 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (0 · 𝑦) = 0)
107103, 87, 1063netr4d 3019 . . . . . . . . . . . . 13 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (𝑥 · 𝑦) ≠ (0 · 𝑦))
108 oveq1 6799 . . . . . . . . . . . . . 14 (𝑥 = 0 → (𝑥 · 𝑦) = (0 · 𝑦))
109108necon3i 2974 . . . . . . . . . . . . 13 ((𝑥 · 𝑦) ≠ (0 · 𝑦) → 𝑥 ≠ 0)
110107, 109syl 17 . . . . . . . . . . . 12 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → 𝑥 ≠ 0)
111101, 110absne0d 14393 . . . . . . . . . . 11 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (abs‘𝑥) ≠ 0)
112111neneqd 2947 . . . . . . . . . 10 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → ¬ (abs‘𝑥) = 0)
113 nn0abscl 14259 . . . . . . . . . . . . 13 (𝑥 ∈ ℤ → (abs‘𝑥) ∈ ℕ0)
11489, 113syl 17 . . . . . . . . . . . 12 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (abs‘𝑥) ∈ ℕ0)
115 elnn0 11495 . . . . . . . . . . . 12 ((abs‘𝑥) ∈ ℕ0 ↔ ((abs‘𝑥) ∈ ℕ ∨ (abs‘𝑥) = 0))
116114, 115sylib 208 . . . . . . . . . . 11 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → ((abs‘𝑥) ∈ ℕ ∨ (abs‘𝑥) = 0))
117116ord 844 . . . . . . . . . 10 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (¬ (abs‘𝑥) ∈ ℕ → (abs‘𝑥) = 0))
118112, 117mt3d 142 . . . . . . . . 9 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (abs‘𝑥) ∈ ℕ)
11998, 100, 118rspcdva 3464 . . . . . . . 8 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → ((abs‘𝑥) ∥ 𝐴 → ((abs‘𝑥) = 1 ∨ (abs‘𝑥) = 𝐴)))
12093, 119mpd 15 . . . . . . 7 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → ((abs‘𝑥) = 1 ∨ (abs‘𝑥) = 𝐴))
121 zringunit 20050 . . . . . . . . . 10 (𝑥 ∈ (Unit‘ℤring) ↔ (𝑥 ∈ ℤ ∧ (abs‘𝑥) = 1))
122121baib 517 . . . . . . . . 9 (𝑥 ∈ ℤ → (𝑥 ∈ (Unit‘ℤring) ↔ (abs‘𝑥) = 1))
12389, 122syl 17 . . . . . . . 8 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (𝑥 ∈ (Unit‘ℤring) ↔ (abs‘𝑥) = 1))
124104, 31syl 17 . . . . . . . . 9 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (𝑦 ∈ (Unit‘ℤring) ↔ (abs‘𝑦) = 1))
125105abscld 14382 . . . . . . . . . . 11 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (abs‘𝑦) ∈ ℝ)
126125recnd 10269 . . . . . . . . . 10 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (abs‘𝑦) ∈ ℂ)
127 1cnd 10257 . . . . . . . . . 10 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → 1 ∈ ℂ)
128101abscld 14382 . . . . . . . . . . 11 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (abs‘𝑥) ∈ ℝ)
129128recnd 10269 . . . . . . . . . 10 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (abs‘𝑥) ∈ ℂ)
130126, 127, 129, 111mulcand 10861 . . . . . . . . 9 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (((abs‘𝑥) · (abs‘𝑦)) = ((abs‘𝑥) · 1) ↔ (abs‘𝑦) = 1))
13187fveq2d 6336 . . . . . . . . . . . 12 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (abs‘(𝑥 · 𝑦)) = (abs‘𝐴))
132101, 105absmuld 14400 . . . . . . . . . . . 12 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (abs‘(𝑥 · 𝑦)) = ((abs‘𝑥) · (abs‘𝑦)))
13377ad2antrr 697 . . . . . . . . . . . 12 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (abs‘𝐴) = 𝐴)
134131, 132, 1333eqtr3d 2812 . . . . . . . . . . 11 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → ((abs‘𝑥) · (abs‘𝑦)) = 𝐴)
135129mulid1d 10258 . . . . . . . . . . 11 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → ((abs‘𝑥) · 1) = (abs‘𝑥))
136134, 135eqeq12d 2785 . . . . . . . . . 10 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (((abs‘𝑥) · (abs‘𝑦)) = ((abs‘𝑥) · 1) ↔ 𝐴 = (abs‘𝑥)))
137 eqcom 2777 . . . . . . . . . 10 (𝐴 = (abs‘𝑥) ↔ (abs‘𝑥) = 𝐴)
138136, 137syl6bb 276 . . . . . . . . 9 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (((abs‘𝑥) · (abs‘𝑦)) = ((abs‘𝑥) · 1) ↔ (abs‘𝑥) = 𝐴))
139124, 130, 1383bitr2d 296 . . . . . . . 8 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (𝑦 ∈ (Unit‘ℤring) ↔ (abs‘𝑥) = 𝐴))
140123, 139orbi12d 883 . . . . . . 7 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → ((𝑥 ∈ (Unit‘ℤring) ∨ 𝑦 ∈ (Unit‘ℤring)) ↔ ((abs‘𝑥) = 1 ∨ (abs‘𝑥) = 𝐴)))
141120, 140mpbird 247 . . . . . 6 (((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) ∧ (𝑥 · 𝑦) = 𝐴) → (𝑥 ∈ (Unit‘ℤring) ∨ 𝑦 ∈ (Unit‘ℤring)))
142141ex 397 . . . . 5 ((𝐴 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ)) → ((𝑥 · 𝑦) = 𝐴 → (𝑥 ∈ (Unit‘ℤring) ∨ 𝑦 ∈ (Unit‘ℤring))))
143142ralrimivva 3119 . . . 4 (𝐴 ∈ ℙ → ∀𝑥 ∈ ℤ ∀𝑦 ∈ ℤ ((𝑥 · 𝑦) = 𝐴 → (𝑥 ∈ (Unit‘ℤring) ∨ 𝑦 ∈ (Unit‘ℤring))))
14425, 26, 2, 27isirred2 18908 . . . 4 (𝐴𝐼 ↔ (𝐴 ∈ ℤ ∧ ¬ 𝐴 ∈ (Unit‘ℤring) ∧ ∀𝑥 ∈ ℤ ∀𝑦 ∈ ℤ ((𝑥 · 𝑦) = 𝐴 → (𝑥 ∈ (Unit‘ℤring) ∨ 𝑦 ∈ (Unit‘ℤring)))))
14571, 84, 143, 144syl3anbrc 1427 . . 3 (𝐴 ∈ ℙ → 𝐴𝐼)
146145adantl 467 . 2 ((𝐴 ∈ ℕ ∧ 𝐴 ∈ ℙ) → 𝐴𝐼)
14770, 146impbida 794 1 (𝐴 ∈ ℕ → (𝐴𝐼𝐴 ∈ ℙ))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wa 382  wo 826   = wceq 1630  wcel 2144  wne 2942  wral 3060   class class class wbr 4784  cfv 6031  (class class class)co 6792  cc 10135  cr 10136  0cc0 10137  1c1 10138   · cmul 10142   < clt 10275  cle 10276   / cdiv 10885  cn 11221  2c2 11271  0cn0 11493  cz 11578  cuz 11887  abscabs 14181  cdvds 15188  cprime 15591  Ringcrg 18754  Unitcui 18846  Irredcir 18847  ringzring 20032
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1869  ax-4 1884  ax-5 1990  ax-6 2056  ax-7 2092  ax-8 2146  ax-9 2153  ax-10 2173  ax-11 2189  ax-12 2202  ax-13 2407  ax-ext 2750  ax-rep 4902  ax-sep 4912  ax-nul 4920  ax-pow 4971  ax-pr 5034  ax-un 7095  ax-cnex 10193  ax-resscn 10194  ax-1cn 10195  ax-icn 10196  ax-addcl 10197  ax-addrcl 10198  ax-mulcl 10199  ax-mulrcl 10200  ax-mulcom 10201  ax-addass 10202  ax-mulass 10203  ax-distr 10204  ax-i2m1 10205  ax-1ne0 10206  ax-1rid 10207  ax-rnegex 10208  ax-rrecex 10209  ax-cnre 10210  ax-pre-lttri 10211  ax-pre-lttrn 10212  ax-pre-ltadd 10213  ax-pre-mulgt0 10214  ax-pre-sup 10215  ax-addf 10216  ax-mulf 10217
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 827  df-3or 1071  df-3an 1072  df-tru 1633  df-ex 1852  df-nf 1857  df-sb 2049  df-eu 2621  df-mo 2622  df-clab 2757  df-cleq 2763  df-clel 2766  df-nfc 2901  df-ne 2943  df-nel 3046  df-ral 3065  df-rex 3066  df-reu 3067  df-rmo 3068  df-rab 3069  df-v 3351  df-sbc 3586  df-csb 3681  df-dif 3724  df-un 3726  df-in 3728  df-ss 3735  df-pss 3737  df-nul 4062  df-if 4224  df-pw 4297  df-sn 4315  df-pr 4317  df-tp 4319  df-op 4321  df-uni 4573  df-int 4610  df-iun 4654  df-br 4785  df-opab 4845  df-mpt 4862  df-tr 4885  df-id 5157  df-eprel 5162  df-po 5170  df-so 5171  df-fr 5208  df-we 5210  df-xp 5255  df-rel 5256  df-cnv 5257  df-co 5258  df-dm 5259  df-rn 5260  df-res 5261  df-ima 5262  df-pred 5823  df-ord 5869  df-on 5870  df-lim 5871  df-suc 5872  df-iota 5994  df-fun 6033  df-fn 6034  df-f 6035  df-f1 6036  df-fo 6037  df-f1o 6038  df-fv 6039  df-riota 6753  df-ov 6795  df-oprab 6796  df-mpt2 6797  df-om 7212  df-1st 7314  df-2nd 7315  df-tpos 7503  df-wrecs 7558  df-recs 7620  df-rdg 7658  df-1o 7712  df-2o 7713  df-oadd 7716  df-er 7895  df-en 8109  df-dom 8110  df-sdom 8111  df-fin 8112  df-sup 8503  df-pnf 10277  df-mnf 10278  df-xr 10279  df-ltxr 10280  df-le 10281  df-sub 10469  df-neg 10470  df-div 10886  df-nn 11222  df-2 11280  df-3 11281  df-4 11282  df-5 11283  df-6 11284  df-7 11285  df-8 11286  df-9 11287  df-n0 11494  df-z 11579  df-dec 11695  df-uz 11888  df-rp 12035  df-fz 12533  df-seq 13008  df-exp 13067  df-cj 14046  df-re 14047  df-im 14048  df-sqrt 14182  df-abs 14183  df-dvds 15189  df-prm 15592  df-gz 15840  df-struct 16065  df-ndx 16066  df-slot 16067  df-base 16069  df-sets 16070  df-ress 16071  df-plusg 16161  df-mulr 16162  df-starv 16163  df-tset 16167  df-ple 16168  df-ds 16171  df-unif 16172  df-0g 16309  df-mgm 17449  df-sgrp 17491  df-mnd 17502  df-grp 17632  df-minusg 17633  df-subg 17798  df-cmn 18401  df-mgp 18697  df-ur 18709  df-ring 18756  df-cring 18757  df-oppr 18830  df-dvdsr 18848  df-unit 18849  df-irred 18850  df-invr 18879  df-dvr 18890  df-drng 18958  df-subrg 18987  df-cnfld 19961  df-zring 20033
This theorem is referenced by:  dfprm2  20056  prmirred  20057
  Copyright terms: Public domain W3C validator