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

Theorem dvdsrval 20597
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 6886 . . . . . . . . 9 (𝑟 = 𝑅 → (Base‘𝑟) = (Base‘𝑅))
3 dvdsr.1 . . . . . . . . 9 𝐵 = (Base‘𝑅)
42, 3eqtr4di 2813 . . . . . . . 8 (𝑟 = 𝑅 → (Base‘𝑟) = 𝐵)
54eleq2d 2846 . . . . . . 7 (𝑟 = 𝑅 → (𝑥 ∈ (Base‘𝑟) ↔ 𝑥 ∈ 𝐵))
64rexeqdv 3320 . . . . . . 7 (𝑟 = 𝑅 → (∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦 ↔ ∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦))
75, 6anbi12d 644 . . . . . 6 (𝑟 = 𝑅 → ((𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦) ↔ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦)))
8 fveq2 6886 . . . . . . . . . . 11 (𝑟 = 𝑅 → (.r‘𝑟) = (.r‘𝑅))
9 dvdsr.3 . . . . . . . . . . 11 · = (.r‘𝑅)
108, 9eqtr4di 2813 . . . . . . . . . 10 (𝑟 = 𝑅 → (.r‘𝑟) = · )
1110oveqd 7438 . . . . . . . . 9 (𝑟 = 𝑅 → (𝑧(.r‘𝑟)𝑥) = (𝑧 · 𝑥))
1211eqeq1d 2762 . . . . . . . 8 (𝑟 = 𝑅 → ((𝑧(.r‘𝑟)𝑥) = 𝑦 ↔ (𝑧 · 𝑥) = 𝑦))
1312rexbidv 3186 . . . . . . 7 (𝑟 = 𝑅 → (∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦 ↔ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦))
1413anbi2d 642 . . . . . 6 (𝑟 = 𝑅 → ((𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦) ↔ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)))
157, 14bitrd 282 . . . . 5 (𝑟 = 𝑅 → ((𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦) ↔ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)))
1615opabbidv 5170 . . . 4 (𝑟 = 𝑅 → {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦)} = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)})
17 df-dvdsr 20593 . . . 4 ∥r = (𝑟 ∈ V ↦ {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦)})
183fvexi 6900 . . . . 5 𝐵 ∈ V
19 eqcom 2767 . . . . . . . . 9 ((𝑧 · 𝑥) = 𝑦 ↔ 𝑦 = (𝑧 · 𝑥))
2019rexbii 3109 . . . . . . . 8 (∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦 ↔ ∃𝑧 ∈ 𝐵 𝑦 = (𝑧 · 𝑥))
2120abbii 2827 . . . . . . 7 {𝑦 ∣ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦} = {𝑦 ∣ ∃𝑧 ∈ 𝐵 𝑦 = (𝑧 · 𝑥)}
2218abrexex 7975 . . . . . . 7 {𝑦 ∣ ∃𝑧 ∈ 𝐵 𝑦 = (𝑧 · 𝑥)} ∈ V
2321, 22eqeltri 2856 . . . . . 6 {𝑦 ∣ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦} ∈ V
2423a1i 11 . . . . 5 (𝑥 ∈ 𝐵 → {𝑦 ∣ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦} ∈ V)
2518, 24opabex3 7980 . . . 4 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} ∈ V
2616, 17, 25fvmpt 6994 . . 3 (𝑅 ∈ V → (∥r‘𝑅) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)})
271, 26eqtrid 2807 . 2 (𝑅 ∈ V → ∥ = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)})
28 fvprc 6878 . . . 4 (¬ 𝑅 ∈ V → (∥r‘𝑅) = ∅)
291, 28eqtrid 2807 . . 3 (¬ 𝑅 ∈ V → ∥ = ∅)
30 opabn0 5527 . . . . 5 ({⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} ≠ ∅ ↔ ∃𝑥∃𝑦(𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦))
31 n0i 4285 . . . . . . . 8 (𝑥 ∈ 𝐵 → ¬ 𝐵 = ∅)
32 fvprc 6878 . . . . . . . . 9 (¬ 𝑅 ∈ V → (Base‘𝑅) = ∅)
333, 32eqtrid 2807 . . . . . . . 8 (¬ 𝑅 ∈ V → 𝐵 = ∅)
3431, 33nsyl2 142 . . . . . . 7 (𝑥 ∈ 𝐵 → 𝑅 ∈ V)
3534adantr 486 . . . . . 6 ((𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦) → 𝑅 ∈ V)
3635exlimivv 1964 . . . . 5 (∃𝑥∃𝑦(𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦) → 𝑅 ∈ V)
3730, 36sylbi 220 . . . 4 ({⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} ≠ ∅ → 𝑅 ∈ V)
3837necon1bi 2983 . . 3 (¬ 𝑅 ∈ V → {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} = ∅)
3929, 38eqtr4d 2798 . 2 (¬ 𝑅 ∈ V → ∥ = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)})
4027, 39pm2.61i 184 1 ∥ = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)}
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ∧ wa 401   = wceq 1569  ∃wex 1811   ∈ wcel 2144  {cab 2738   ≠ wne 2955  ∃wrex 3086  Vcvv 3450  ∅c0 4278  {copab 5166  ‘cfv 6539  (class class class)co 7421  Basecbs 17393  .rcmulr 17435  ∥rcdsr 20590
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-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7752
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-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-iun 4952  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 6541  df-fv 6547  df-ov 7424  df-dvdsr 20593
This theorem is used by:  dvdsr  20598  dvdsrpropd  20652  dvdsrzring  21773
  Copyright terms: Public domain W3C validator