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

Theorem isirred 20654
Description: An irreducible element of a ring is a non-unit that is not the product of two non-units. (Contributed by Mario Carneiro, 4-Dec-2014.)
Hypotheses
Ref Expression
irred.1 𝐵 = (Base‘𝑅)
irred.2 𝑈 = (Unit‘𝑅)
irred.3 𝐼 = (Irred‘𝑅)
irred.4 𝑁 = (𝐵 ∖ 𝑈)
irred.5 · = (.r‘𝑅)
Assertion
Ref Expression
isirred (𝑋 ∈ 𝐼 ↔ (𝑋 ∈ 𝑁 ∧ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑋))
Distinct variable groups:   𝑥,𝑦,𝑁   𝑥,𝑅,𝑦   𝑥,𝑋,𝑦
Allowed substitution hints:   𝐵(𝑥, 𝑦)   · (𝑥, 𝑦)   𝑈(𝑥, 𝑦)   𝐼(𝑥, 𝑦)

Proof of Theorem isirred
Dummy variables 𝑟 𝑏 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elfvdm 6919 . . . 4 (𝑋 ∈ (Irred‘𝑅) → 𝑅 ∈ dom Irred)
2 irred.3 . . . 4 𝐼 = (Irred‘𝑅)
31, 2eleq2s 2878 . . 3 (𝑋 ∈ 𝐼 → 𝑅 ∈ dom Irred)
43elexd 3473 . 2 (𝑋 ∈ 𝐼 → 𝑅 ∈ V)
5 eldifi 4067 . . . . . 6 (𝑋 ∈ (𝐵 ∖ 𝑈) → 𝑋 ∈ 𝐵)
6 irred.4 . . . . . 6 𝑁 = (𝐵 ∖ 𝑈)
75, 6eleq2s 2878 . . . . 5 (𝑋 ∈ 𝑁 → 𝑋 ∈ 𝐵)
8 irred.1 . . . . 5 𝐵 = (Base‘𝑅)
97, 8eleqtrdi 2870 . . . 4 (𝑋 ∈ 𝑁 → 𝑋 ∈ (Base‘𝑅))
109elfvexd 6921 . . 3 (𝑋 ∈ 𝑁 → 𝑅 ∈ V)
1110adantr 486 . 2 ((𝑋 ∈ 𝑁 ∧ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑋) → 𝑅 ∈ V)
12 fvex 6898 . . . . . . . 8 (Base‘𝑟) ∈ V
13 difexg 5290 . . . . . . . 8 ((Base‘𝑟) ∈ V → ((Base‘𝑟) ∖ (Unit‘𝑟)) ∈ V)
1412, 13mp1i 14 . . . . . . 7 (𝑟 = 𝑅 → ((Base‘𝑟) ∖ (Unit‘𝑟)) ∈ V)
15 simpr 490 . . . . . . . . 9 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟)))
16 simpl 488 . . . . . . . . . . . . 13 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → 𝑟 = 𝑅)
1716fveq2d 6889 . . . . . . . . . . . 12 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (Base‘𝑟) = (Base‘𝑅))
1817, 8eqtr4di 2813 . . . . . . . . . . 11 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (Base‘𝑟) = 𝐵)
1916fveq2d 6889 . . . . . . . . . . . 12 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (Unit‘𝑟) = (Unit‘𝑅))
20 irred.2 . . . . . . . . . . . 12 𝑈 = (Unit‘𝑅)
2119, 20eqtr4di 2813 . . . . . . . . . . 11 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (Unit‘𝑟) = 𝑈)
2218, 21difeq12d 4064 . . . . . . . . . 10 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → ((Base‘𝑟) ∖ (Unit‘𝑟)) = (𝐵 ∖ 𝑈))
2322, 6eqtr4di 2813 . . . . . . . . 9 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → ((Base‘𝑟) ∖ (Unit‘𝑟)) = 𝑁)
2415, 23eqtrd 2795 . . . . . . . 8 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → 𝑏 = 𝑁)
2516fveq2d 6889 . . . . . . . . . . . . 13 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (.r‘𝑟) = (.r‘𝑅))
26 irred.5 . . . . . . . . . . . . 13 · = (.r‘𝑅)
2725, 26eqtr4di 2813 . . . . . . . . . . . 12 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (.r‘𝑟) = · )
2827oveqd 7437 . . . . . . . . . . 11 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (𝑥(.r‘𝑟)𝑦) = (𝑥 · 𝑦))
2928neeq1d 3014 . . . . . . . . . 10 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → ((𝑥(.r‘𝑟)𝑦) ≠ 𝑧 ↔ (𝑥 · 𝑦) ≠ 𝑧))
3024, 29raleqbidv 3334 . . . . . . . . 9 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (∀𝑦 ∈ 𝑏 (𝑥(.r‘𝑟)𝑦) ≠ 𝑧 ↔ ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧))
3124, 30raleqbidv 3334 . . . . . . . 8 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (∀𝑥 ∈ 𝑏 ∀𝑦 ∈ 𝑏 (𝑥(.r‘𝑟)𝑦) ≠ 𝑧 ↔ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧))
3224, 31rabeqbidv 3429 . . . . . . 7 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → {𝑧 ∈ 𝑏 ∣ ∀𝑥 ∈ 𝑏 ∀𝑦 ∈ 𝑏 (𝑥(.r‘𝑟)𝑦) ≠ 𝑧} = {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧})
3314, 32csbied 3882 . . . . . 6 (𝑟 = 𝑅 → ⦋((Base‘𝑟) ∖ (Unit‘𝑟)) / 𝑏⦌{𝑧 ∈ 𝑏 ∣ ∀𝑥 ∈ 𝑏 ∀𝑦 ∈ 𝑏 (𝑥(.r‘𝑟)𝑦) ≠ 𝑧} = {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧})
34 df-irred 20594 . . . . . 6 Irred = (𝑟 ∈ V ↦ ⦋((Base‘𝑟) ∖ (Unit‘𝑟)) / 𝑏⦌{𝑧 ∈ 𝑏 ∣ ∀𝑥 ∈ 𝑏 ∀𝑦 ∈ 𝑏 (𝑥(.r‘𝑟)𝑦) ≠ 𝑧})
35 fvex 6898 . . . . . . . . . 10 (Base‘𝑅) ∈ V
368, 35eqeltri 2856 . . . . . . . . 9 𝐵 ∈ V
3736difexi 5291 . . . . . . . 8 (𝐵 ∖ 𝑈) ∈ V
386, 37eqeltri 2856 . . . . . . 7 𝑁 ∈ V
3938rabex 5299 . . . . . 6 {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧} ∈ V
4033, 34, 39fvmpt 6993 . . . . 5 (𝑅 ∈ V → (Irred‘𝑅) = {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧})
412, 40eqtrid 2807 . . . 4 (𝑅 ∈ V → 𝐼 = {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧})
4241eleq2d 2846 . . 3 (𝑅 ∈ V → (𝑋 ∈ 𝐼 ↔ 𝑋 ∈ {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧}))
43 neeq2 3018 . . . . 5 (𝑧 = 𝑋 → ((𝑥 · 𝑦) ≠ 𝑧 ↔ (𝑥 · 𝑦) ≠ 𝑋))
44432ralbidv 3226 . . . 4 (𝑧 = 𝑋 → (∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧 ↔ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑋))
4544elrab 3644 . . 3 (𝑋 ∈ {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧} ↔ (𝑋 ∈ 𝑁 ∧ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑋))
4642, 45bitrdi 290 . 2 (𝑅 ∈ V → (𝑋 ∈ 𝐼 ↔ (𝑋 ∈ 𝑁 ∧ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑋)))
474, 11, 46pm5.21nii 381 1 (𝑋 ∈ 𝐼 ↔ (𝑋 ∈ 𝑁 ∧ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑋))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1569   ∈ wcel 2144   ≠ wne 2955  ∀wral 3076  {crab 3412  Vcvv 3450  ⦋csb 3846   ∖ cdif 4045  dom cdm 5650  ‘cfv 6538  (class class class)co 7420  Basecbs 17392  .rcmulr 17434  Unitcui 20590  Irredcir 20591
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-iota 6494  df-fun 6540  df-fv 6546  df-ov 7423  df-irred 20594
This theorem is used by:  isnirred  20655  isirred2  20656  opprirred  20657  mxidlirredi  34042  rprmirred  34109  ply1dg3rt0irred  34162
  Copyright terms: Public domain W3C validator