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

Theorem dvdsrval 18691
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 6229 . . . . . . . . 9 (𝑟 = 𝑅 → (Base‘𝑟) = (Base‘𝑅))
3 dvdsr.1 . . . . . . . . 9 𝐵 = (Base‘𝑅)
42, 3syl6eqr 2703 . . . . . . . 8 (𝑟 = 𝑅 → (Base‘𝑟) = 𝐵)
54eleq2d 2716 . . . . . . 7 (𝑟 = 𝑅 → (𝑥 ∈ (Base‘𝑟) ↔ 𝑥𝐵))
64rexeqdv 3175 . . . . . . 7 (𝑟 = 𝑅 → (∃𝑧 ∈ (Base‘𝑟)(𝑧(.r𝑟)𝑥) = 𝑦 ↔ ∃𝑧𝐵 (𝑧(.r𝑟)𝑥) = 𝑦))
75, 6anbi12d 747 . . . . . 6 (𝑟 = 𝑅 → ((𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r𝑟)𝑥) = 𝑦) ↔ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧(.r𝑟)𝑥) = 𝑦)))
8 fveq2 6229 . . . . . . . . . . 11 (𝑟 = 𝑅 → (.r𝑟) = (.r𝑅))
9 dvdsr.3 . . . . . . . . . . 11 · = (.r𝑅)
108, 9syl6eqr 2703 . . . . . . . . . 10 (𝑟 = 𝑅 → (.r𝑟) = · )
1110oveqd 6707 . . . . . . . . 9 (𝑟 = 𝑅 → (𝑧(.r𝑟)𝑥) = (𝑧 · 𝑥))
1211eqeq1d 2653 . . . . . . . 8 (𝑟 = 𝑅 → ((𝑧(.r𝑟)𝑥) = 𝑦 ↔ (𝑧 · 𝑥) = 𝑦))
1312rexbidv 3081 . . . . . . 7 (𝑟 = 𝑅 → (∃𝑧𝐵 (𝑧(.r𝑟)𝑥) = 𝑦 ↔ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦))
1413anbi2d 740 . . . . . 6 (𝑟 = 𝑅 → ((𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧(.r𝑟)𝑥) = 𝑦) ↔ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦)))
157, 14bitrd 268 . . . . 5 (𝑟 = 𝑅 → ((𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r𝑟)𝑥) = 𝑦) ↔ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦)))
1615opabbidv 4749 . . . 4 (𝑟 = 𝑅 → {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r𝑟)𝑥) = 𝑦)} = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦)})
17 df-dvdsr 18687 . . . 4 r = (𝑟 ∈ V ↦ {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (Base‘𝑟) ∧ ∃𝑧 ∈ (Base‘𝑟)(𝑧(.r𝑟)𝑥) = 𝑦)})
18 fvex 6239 . . . . . 6 (Base‘𝑅) ∈ V
193, 18eqeltri 2726 . . . . 5 𝐵 ∈ V
20 eqcom 2658 . . . . . . . . 9 ((𝑧 · 𝑥) = 𝑦𝑦 = (𝑧 · 𝑥))
2120rexbii 3070 . . . . . . . 8 (∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦 ↔ ∃𝑧𝐵 𝑦 = (𝑧 · 𝑥))
2221abbii 2768 . . . . . . 7 {𝑦 ∣ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦} = {𝑦 ∣ ∃𝑧𝐵 𝑦 = (𝑧 · 𝑥)}
2319abrexex 7183 . . . . . . 7 {𝑦 ∣ ∃𝑧𝐵 𝑦 = (𝑧 · 𝑥)} ∈ V
2422, 23eqeltri 2726 . . . . . 6 {𝑦 ∣ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦} ∈ V
2524a1i 11 . . . . 5 (𝑥𝐵 → {𝑦 ∣ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦} ∈ V)
2619, 25opabex3 7188 . . . 4 {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦)} ∈ V
2716, 17, 26fvmpt 6321 . . 3 (𝑅 ∈ V → (∥r𝑅) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦)})
281, 27syl5eq 2697 . 2 (𝑅 ∈ V → = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦)})
29 fvprc 6223 . . . 4 𝑅 ∈ V → (∥r𝑅) = ∅)
301, 29syl5eq 2697 . . 3 𝑅 ∈ V → = ∅)
31 opabn0 5035 . . . . 5 ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦)} ≠ ∅ ↔ ∃𝑥𝑦(𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦))
32 n0i 3953 . . . . . . . 8 (𝑥𝐵 → ¬ 𝐵 = ∅)
33 fvprc 6223 . . . . . . . . 9 𝑅 ∈ V → (Base‘𝑅) = ∅)
343, 33syl5eq 2697 . . . . . . . 8 𝑅 ∈ V → 𝐵 = ∅)
3532, 34nsyl2 142 . . . . . . 7 (𝑥𝐵𝑅 ∈ V)
3635adantr 480 . . . . . 6 ((𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦) → 𝑅 ∈ V)
3736exlimivv 1900 . . . . 5 (∃𝑥𝑦(𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦) → 𝑅 ∈ V)
3831, 37sylbi 207 . . . 4 ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦)} ≠ ∅ → 𝑅 ∈ V)
3938necon1bi 2851 . . 3 𝑅 ∈ V → {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦)} = ∅)
4030, 39eqtr4d 2688 . 2 𝑅 ∈ V → = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦)})
4128, 40pm2.61i 176 1 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵 ∧ ∃𝑧𝐵 (𝑧 · 𝑥) = 𝑦)}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 383   = wceq 1523  wex 1744  wcel 2030  {cab 2637  wne 2823  wrex 2942  Vcvv 3231  c0 3948  {copab 4745  cfv 5926  (class class class)co 6690  Basecbs 15904  .rcmulr 15989  rcdsr 18684
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-8 2032  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-rep 4804  ax-sep 4814  ax-nul 4822  ax-pow 4873  ax-pr 4936  ax-un 6991
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3an 1056  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ne 2824  df-ral 2946  df-rex 2947  df-reu 2948  df-rab 2950  df-v 3233  df-sbc 3469  df-csb 3567  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-nul 3949  df-if 4120  df-pw 4193  df-sn 4211  df-pr 4213  df-op 4217  df-uni 4469  df-iun 4554  df-br 4686  df-opab 4746  df-mpt 4763  df-id 5053  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-rn 5154  df-res 5155  df-ima 5156  df-iota 5889  df-fun 5928  df-fn 5929  df-f 5930  df-f1 5931  df-fo 5932  df-f1o 5933  df-fv 5934  df-ov 6693  df-dvdsr 18687
This theorem is referenced by:  dvdsr  18692  dvdsrpropd  18742  dvdsrzring  19879
  Copyright terms: Public domain W3C validator