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

Theorem dvdsrval 20624
Description: Value of the divides relation. (Contributed by Mario Carneiro, 1-Dec-2014.) (Revised by Mario Carneiro, 6-Jan-2015.)
Hypotheses
Ref Expression
dvdsr.1 𝐵 = (Base‘𝑅)
dvdsr.2 ∥ = (∥r‘𝑅)
dvdsr.3 · = (.r‘𝑅)
Assertion
Ref Expression
dvdsrval ∥ = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)}
Distinct variable groups:   𝑥,𝑦, ∥   𝑥,𝑧,𝐵,𝑦   𝑥,𝑅,𝑦,𝑧   𝑥, · ,𝑦,𝑧
Allowed substitution hint:   ∥ (𝑧)

Proof of Theorem dvdsrval
Dummy variable 𝑟 is distinct from all other variables.
StepHypRef Expression
1 dvdsr.2 . . 3 ∥ = (∥r‘𝑅)
2 fveq2 6911 . . . . . . . . 9 (𝑟 = 𝑅 → (Base‘𝑟) = (Base‘𝑅))
3 dvdsr.1 . . . . . . . . 9 𝐵 = (Base‘𝑅)
42, 3eqtr4di 2816 . . . . . . . 8 (𝑟 = 𝑅 → (Base‘𝑟) = 𝐵)
54eleq2d 2850 . . . . . . 7 (𝑟 = 𝑅 → (𝑥 ∈ (Base‘𝑟) ↔ 𝑥 ∈ 𝐵))
64rexeqdv 3324 . . . . . . 7 (𝑟 = 𝑅 → (∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦 ↔ ∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦))
75, 6anbi12d 644 . . . . . 6 (𝑟 = 𝑅 → ((𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦) ↔ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦)))
8 fveq2 6911 . . . . . . . . . . 11 (𝑟 = 𝑅 → (.r‘𝑟) = (.r‘𝑅))
9 dvdsr.3 . . . . . . . . . . 11 · = (.r‘𝑅)
108, 9eqtr4di 2816 . . . . . . . . . 10 (𝑟 = 𝑅 → (.r‘𝑟) = · )
1110oveqd 7463 . . . . . . . . 9 (𝑟 = 𝑅 → (𝑧(.r‘𝑟)𝑥) = (𝑧 · 𝑥))
1211eqeq1d 2765 . . . . . . . 8 (𝑟 = 𝑅 → ((𝑧(.r‘𝑟)𝑥) = 𝑦 ↔ (𝑧 · 𝑥) = 𝑦))
1312rexbidv 3190 . . . . . . 7 (𝑟 = 𝑅 → (∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦 ↔ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦))
1413anbi2d 642 . . . . . 6 (𝑟 = 𝑅 → ((𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦) ↔ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)))
157, 14bitrd 282 . . . . 5 (𝑟 = 𝑅 → ((𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦) ↔ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)))
1615opabbidv 5175 . . . 4 (𝑟 = 𝑅 → {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦)} = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)})
17 df-dvdsr 20620 . . . 4 ∥r = (𝑟 ∈ V ↦ {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦)})
183fvexi 6925 . . . . 5 𝐵 ∈ V
19 eqcom 2770 . . . . . . . . 9 ((𝑧 · 𝑥) = 𝑦 ↔ 𝑦 = (𝑧 · 𝑥))
2019rexbii 3113 . . . . . . . 8 (∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦 ↔ ∃𝑧 ∈ 𝐵 𝑦 = (𝑧 · 𝑥))
2120abbii 2830 . . . . . . 7 {𝑦 ∣ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦} = {𝑦 ∣ ∃𝑧 ∈ 𝐵 𝑦 = (𝑧 · 𝑥)}
2218abrexex 8001 . . . . . . 7 {𝑦 ∣ ∃𝑧 ∈ 𝐵 𝑦 = (𝑧 · 𝑥)} ∈ V
2321, 22eqeltri 2860 . . . . . 6 {𝑦 ∣ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦} ∈ V
2423a1i 11 . . . . 5 (𝑥 ∈ 𝐵 → {𝑦 ∣ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦} ∈ V)
2518, 24opabex3 8006 . . . 4 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} ∈ V
2616, 17, 25fvmpt 7019 . . 3 (𝑅 ∈ V → (∥r‘𝑅) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)})
271, 26eqtrid 2810 . 2 (𝑅 ∈ V → ∥ = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)})
28 fvprc 6903 . . . 4 (¬ 𝑅 ∈ V → (∥r‘𝑅) = ∅)
291, 28eqtrid 2810 . . 3 (¬ 𝑅 ∈ V → ∥ = ∅)
30 opabn0 5533 . . . . 5 ({⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} ≠ ∅ ↔ ∃𝑥∃𝑦(𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦))
31 n0i 4289 . . . . . . . 8 (𝑥 ∈ 𝐵 → ¬ 𝐵 = ∅)
32 fvprc 6903 . . . . . . . . 9 (¬ 𝑅 ∈ V → (Base‘𝑅) = ∅)
333, 32eqtrid 2810 . . . . . . . 8 (¬ 𝑅 ∈ V → 𝐵 = ∅)
3431, 33nsyl2 142 . . . . . . 7 (𝑥 ∈ 𝐵 → 𝑅 ∈ V)
3534adantr 486 . . . . . 6 ((𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦) → 𝑅 ∈ V)
3635exlimivv 1967 . . . . 5 (∃𝑥∃𝑦(𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦) → 𝑅 ∈ V)
3730, 36sylbi 220 . . . 4 ({⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} ≠ ∅ → 𝑅 ∈ V)
3837necon1bi 2987 . . 3 (¬ 𝑅 ∈ V → {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} = ∅)
3929, 38eqtr4d 2801 . 2 (¬ 𝑅 ∈ V → ∥ = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)})
4027, 39pm2.61i 184 1 ∥ = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)}
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2147  {cab 2741   ≠ wne 2959  ∃wrex 3090  Vcvv 3454  ∅c0 4281  {copab 5171  ‘cfv 6561  (class class class)co 7446  Basecbs 17419  .rcmulr 17461  ∥rcdsr 20617
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5236  ax-sep 5253  ax-nul 5264  ax-pow 5332  ax-pr 5396  ax-un 7778
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5172  df-mpt 5191  df-id 5551  df-xp 5662  df-rel 5663  df-cnv 5664  df-co 5665  df-dm 5666  df-iota 6515  df-fun 6563  df-fv 6569  df-ov 7449  df-dvdsr 20620
This theorem is used by:  dvdsr  20625  dvdsrpropd  20679  dvdsrzring  21800
  Copyright terms: Public domain W3C validator