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

Theorem dvdsrval 20571
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 6877 . . . . . . . . 9 (𝑟 = 𝑅 → (Base‘𝑟) = (Base‘𝑅))
3 dvdsr.1 . . . . . . . . 9 𝐵 = (Base‘𝑅)
42, 3eqtr4di 2814 . . . . . . . 8 (𝑟 = 𝑅 → (Base‘𝑟) = 𝐵)
54eleq2d 2847 . . . . . . 7 (𝑟 = 𝑅 → (𝑥 ∈ (Base‘𝑟) ↔ 𝑥 ∈ 𝐵))
64rexeqdv 3321 . . . . . . 7 (𝑟 = 𝑅 → (∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦 ↔ ∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦))
75, 6anbi12d 644 . . . . . 6 (𝑟 = 𝑅 → ((𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦) ↔ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦)))
8 fveq2 6877 . . . . . . . . . . 11 (𝑟 = 𝑅 → (.r‘𝑟) = (.r‘𝑅))
9 dvdsr.3 . . . . . . . . . . 11 · = (.r‘𝑅)
108, 9eqtr4di 2814 . . . . . . . . . 10 (𝑟 = 𝑅 → (.r‘𝑟) = · )
1110oveqd 7429 . . . . . . . . 9 (𝑟 = 𝑅 → (𝑧(.r‘𝑟)𝑥) = (𝑧 · 𝑥))
1211eqeq1d 2763 . . . . . . . 8 (𝑟 = 𝑅 → ((𝑧(.r‘𝑟)𝑥) = 𝑦 ↔ (𝑧 · 𝑥) = 𝑦))
1312rexbidv 3187 . . . . . . 7 (𝑟 = 𝑅 → (∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦 ↔ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦))
1413anbi2d 642 . . . . . 6 (𝑟 = 𝑅 → ((𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧(.r‘𝑟)𝑥) = 𝑦) ↔ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)))
157, 14bitrd 282 . . . . 5 (𝑟 = 𝑅 → ((𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦) ↔ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)))
1615opabbidv 5171 . . . 4 (𝑟 = 𝑅 → {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦)} = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)})
17 df-dvdsr 20567 . . . 4 ∥r = (𝑟 ∈ V ↦ {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r‘𝑟)𝑥) = 𝑦)})
183fvexi 6891 . . . . 5 𝐵 ∈ V
19 eqcom 2768 . . . . . . . . 9 ((𝑧 · 𝑥) = 𝑦 ↔ 𝑦 = (𝑧 · 𝑥))
2019rexbii 3110 . . . . . . . 8 (∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦 ↔ ∃𝑧 ∈ 𝐵 𝑦 = (𝑧 · 𝑥))
2120abbii 2828 . . . . . . 7 {𝑦 ∣ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦} = {𝑦 ∣ ∃𝑧 ∈ 𝐵 𝑦 = (𝑧 · 𝑥)}
2218abrexex 7963 . . . . . . 7 {𝑦 ∣ ∃𝑧 ∈ 𝐵 𝑦 = (𝑧 · 𝑥)} ∈ V
2321, 22eqeltri 2857 . . . . . 6 {𝑦 ∣ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦} ∈ V
2423a1i 11 . . . . 5 (𝑥 ∈ 𝐵 → {𝑦 ∣ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦} ∈ V)
2518, 24opabex3 7968 . . . 4 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} ∈ V
2616, 17, 25fvmpt 6985 . . 3 (𝑅 ∈ V → (∥r‘𝑅) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)})
271, 26eqtrid 2808 . 2 (𝑅 ∈ V → ∥ = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)})
28 fvprc 6869 . . . 4 (¬ 𝑅 ∈ V → (∥r‘𝑅) = ∅)
291, 28eqtrid 2808 . . 3 (¬ 𝑅 ∈ V → ∥ = ∅)
30 opabn0 5528 . . . . 5 ({⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} ≠ ∅ ↔ ∃𝑥∃𝑦(𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦))
31 n0i 4286 . . . . . . . 8 (𝑥 ∈ 𝐵 → ¬ 𝐵 = ∅)
32 fvprc 6869 . . . . . . . . 9 (¬ 𝑅 ∈ V → (Base‘𝑅) = ∅)
333, 32eqtrid 2808 . . . . . . . 8 (¬ 𝑅 ∈ V → 𝐵 = ∅)
3431, 33nsyl2 142 . . . . . . 7 (𝑥 ∈ 𝐵 → 𝑅 ∈ V)
3534adantr 486 . . . . . 6 ((𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦) → 𝑅 ∈ V)
3635exlimivv 1965 . . . . 5 (∃𝑥∃𝑦(𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦) → 𝑅 ∈ V)
3730, 36sylbi 220 . . . 4 ({⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} ≠ ∅ → 𝑅 ∈ V)
3837necon1bi 2984 . . 3 (¬ 𝑅 ∈ V → {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐵 ∧ ∃𝑧 ∈ 𝐵 (𝑧 · 𝑥) = 𝑦)} = ∅)
3929, 38eqtr4d 2799 . 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 2145  {cab 2739   ≠ wne 2956  ∃wrex 3087  Vcvv 3451  ∅c0 4279  {copab 5167  ‘cfv 6531  (class class class)co 7412  Basecbs 17367  .rcmulr 17409  ∥rcdsr 20564
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-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7740
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-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-iun 4953  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-dvdsr 20567
This theorem is used by:  dvdsr  20572  dvdsrpropd  20626  dvdsrzring  21747
  Copyright terms: Public domain W3C validator