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

Theorem isirred 20629
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 6911 . . . 4 (𝑋 ∈ (Irred‘𝑅) → 𝑅 ∈ dom Irred)
2 irred.3 . . . 4 𝐼 = (Irred‘𝑅)
31, 2eleq2s 2879 . . 3 (𝑋 ∈ 𝐼 → 𝑅 ∈ dom Irred)
43elexd 3474 . 2 (𝑋 ∈ 𝐼 → 𝑅 ∈ V)
5 eldifi 4078 . . . . . 6 (𝑋 ∈ (𝐵 ∖ 𝑈) → 𝑋 ∈ 𝐵)
6 irred.4 . . . . . 6 𝑁 = (𝐵 ∖ 𝑈)
75, 6eleq2s 2879 . . . . 5 (𝑋 ∈ 𝑁 → 𝑋 ∈ 𝐵)
8 irred.1 . . . . 5 𝐵 = (Base‘𝑅)
97, 8eleqtrdi 2871 . . . 4 (𝑋 ∈ 𝑁 → 𝑋 ∈ (Base‘𝑅))
109elfvexd 6913 . . 3 (𝑋 ∈ 𝑁 → 𝑅 ∈ V)
1110adantr 486 . 2 ((𝑋 ∈ 𝑁 ∧ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑋) → 𝑅 ∈ V)
12 fvex 6890 . . . . . . . 8 (Base‘𝑟) ∈ V
13 difexg 5291 . . . . . . . 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 6881 . . . . . . . . . . . 12 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (Base‘𝑟) = (Base‘𝑅))
1817, 8eqtr4di 2814 . . . . . . . . . . 11 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (Base‘𝑟) = 𝐵)
1916fveq2d 6881 . . . . . . . . . . . 12 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (Unit‘𝑟) = (Unit‘𝑅))
20 irred.2 . . . . . . . . . . . 12 𝑈 = (Unit‘𝑅)
2119, 20eqtr4di 2814 . . . . . . . . . . 11 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (Unit‘𝑟) = 𝑈)
2218, 21difeq12d 4075 . . . . . . . . . 10 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → ((Base‘𝑟) ∖ (Unit‘𝑟)) = (𝐵 ∖ 𝑈))
2322, 6eqtr4di 2814 . . . . . . . . 9 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → ((Base‘𝑟) ∖ (Unit‘𝑟)) = 𝑁)
2415, 23eqtrd 2796 . . . . . . . 8 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → 𝑏 = 𝑁)
2516fveq2d 6881 . . . . . . . . . . . . 13 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (.r‘𝑟) = (.r‘𝑅))
26 irred.5 . . . . . . . . . . . . 13 · = (.r‘𝑅)
2725, 26eqtr4di 2814 . . . . . . . . . . . 12 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (.r‘𝑟) = · )
2827oveqd 7429 . . . . . . . . . . 11 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (𝑥(.r‘𝑟)𝑦) = (𝑥 · 𝑦))
2928neeq1d 3015 . . . . . . . . . 10 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → ((𝑥(.r‘𝑟)𝑦) ≠ 𝑧 ↔ (𝑥 · 𝑦) ≠ 𝑧))
3024, 29raleqbidv 3335 . . . . . . . . 9 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (∀𝑦 ∈ 𝑏 (𝑥(.r‘𝑟)𝑦) ≠ 𝑧 ↔ ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧))
3124, 30raleqbidv 3335 . . . . . . . 8 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → (∀𝑥 ∈ 𝑏 ∀𝑦 ∈ 𝑏 (𝑥(.r‘𝑟)𝑦) ≠ 𝑧 ↔ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧))
3224, 31rabeqbidv 3430 . . . . . . 7 ((𝑟 = 𝑅 ∧ 𝑏 = ((Base‘𝑟) ∖ (Unit‘𝑟))) → {𝑧 ∈ 𝑏 ∣ ∀𝑥 ∈ 𝑏 ∀𝑦 ∈ 𝑏 (𝑥(.r‘𝑟)𝑦) ≠ 𝑧} = {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧})
3314, 32csbied 3883 . . . . . 6 (𝑟 = 𝑅 → ⦋((Base‘𝑟) ∖ (Unit‘𝑟)) / 𝑏⦌{𝑧 ∈ 𝑏 ∣ ∀𝑥 ∈ 𝑏 ∀𝑦 ∈ 𝑏 (𝑥(.r‘𝑟)𝑦) ≠ 𝑧} = {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧})
34 df-irred 20569 . . . . . 6 Irred = (𝑟 ∈ V ↦ ⦋((Base‘𝑟) ∖ (Unit‘𝑟)) / 𝑏⦌{𝑧 ∈ 𝑏 ∣ ∀𝑥 ∈ 𝑏 ∀𝑦 ∈ 𝑏 (𝑥(.r‘𝑟)𝑦) ≠ 𝑧})
35 fvex 6890 . . . . . . . . . 10 (Base‘𝑅) ∈ V
368, 35eqeltri 2857 . . . . . . . . 9 𝐵 ∈ V
3736difexi 5292 . . . . . . . 8 (𝐵 ∖ 𝑈) ∈ V
386, 37eqeltri 2857 . . . . . . 7 𝑁 ∈ V
3938rabex 5300 . . . . . 6 {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧} ∈ V
4033, 34, 39fvmpt 6985 . . . . 5 (𝑅 ∈ V → (Irred‘𝑅) = {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧})
412, 40eqtrid 2808 . . . 4 (𝑅 ∈ V → 𝐼 = {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧})
4241eleq2d 2847 . . 3 (𝑅 ∈ V → (𝑋 ∈ 𝐼 ↔ 𝑋 ∈ {𝑧 ∈ 𝑁 ∣ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧}))
43 neeq2 3019 . . . . 5 (𝑧 = 𝑋 → ((𝑥 · 𝑦) ≠ 𝑧 ↔ (𝑥 · 𝑦) ≠ 𝑋))
44432ralbidv 3227 . . . 4 (𝑧 = 𝑋 → (∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑧 ↔ ∀𝑥 ∈ 𝑁 ∀𝑦 ∈ 𝑁 (𝑥 · 𝑦) ≠ 𝑋))
4544elrab 3645 . . 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 1570   ∈ wcel 2145   ≠ wne 2956  ∀wral 3077  {crab 3413  Vcvv 3451  ⦋csb 3847   ∖ cdif 3896  dom cdm 5651  ‘cfv 6531  (class class class)co 7412  Basecbs 17367  .rcmulr 17409  Unitcui 20565  Irredcir 20566
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-iota 6487  df-fun 6533  df-fv 6539  df-ov 7415  df-irred 20569
This theorem is used by:  isnirred  20630  isirred2  20631  opprirred  20632  mxidlirredi  33978  rprmirred  34045  ply1dg3rt0irred  34098
  Copyright terms: Public domain W3C validator