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

Theorem reu3op 6310
Description: There is a unique ordered pair fulfilling a wff iff there are uniquely two sets fulfilling a corresponding wff. (Contributed by AV, 1-Jul-2023.)
Hypothesis
Ref Expression
reu3op.a (𝑝 = ⟨𝑎, 𝑏⟩ → (𝜓 ↔ 𝜒))
Assertion
Ref Expression
reu3op (∃!𝑝 ∈ (𝑋 × 𝑌)𝜓 ↔ (∃𝑎 ∈ 𝑋 ∃𝑏 ∈ 𝑌 𝜒 ∧ ∃𝑥 ∈ 𝑋 ∃𝑦 ∈ 𝑌 ∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
Distinct variable groups:   𝑋,𝑎,𝑏,𝑝,𝑥,𝑦   𝑌,𝑎,𝑏,𝑝,𝑥,𝑦   𝜓,𝑎,𝑏,𝑥,𝑦   𝜒,𝑝
Allowed substitution hints:   𝜓(𝑝)   𝜒(𝑥, 𝑦, 𝑎, 𝑏)

Proof of Theorem reu3op
Dummy variable 𝑞 is distinct from all other variables.
StepHypRef Expression
1 reu3 3688 . 2 (∃!𝑝 ∈ (𝑋 × 𝑌)𝜓 ↔ (∃𝑝 ∈ (𝑋 × 𝑌)𝜓 ∧ ∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓 → 𝑝 = 𝑞)))
2 reu3op.a . . . 4 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝜓 ↔ 𝜒))
32rexxp 5824 . . 3 (∃𝑝 ∈ (𝑋 × 𝑌)𝜓 ↔ ∃𝑎 ∈ 𝑋 ∃𝑏 ∈ 𝑌 𝜒)
4 eqeq2 2775 . . . . . . 7 (𝑞 = ⟨𝑥, 𝑦⟩ → (𝑝 = 𝑞 ↔ 𝑝 = ⟨𝑥, 𝑦⟩))
54imbi2d 343 . . . . . 6 (𝑞 = ⟨𝑥, 𝑦⟩ → ((𝜓 → 𝑝 = 𝑞) ↔ (𝜓 → 𝑝 = ⟨𝑥, 𝑦⟩)))
65ralbidv 3189 . . . . 5 (𝑞 = ⟨𝑥, 𝑦⟩ → (∀𝑝 ∈ (𝑋 × 𝑌)(𝜓 → 𝑝 = 𝑞) ↔ ∀𝑝 ∈ (𝑋 × 𝑌)(𝜓 → 𝑝 = ⟨𝑥, 𝑦⟩)))
76rexxp 5824 . . . 4 (∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓 → 𝑝 = 𝑞) ↔ ∃𝑥 ∈ 𝑋 ∃𝑦 ∈ 𝑌 ∀𝑝 ∈ (𝑋 × 𝑌)(𝜓 → 𝑝 = ⟨𝑥, 𝑦⟩))
8 eqeq1 2767 . . . . . . . 8 (𝑝 = ⟨𝑎, 𝑏⟩ → (𝑝 = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩))
92, 8imbi12d 347 . . . . . . 7 (𝑝 = ⟨𝑎, 𝑏⟩ → ((𝜓 → 𝑝 = ⟨𝑥, 𝑦⟩) ↔ (𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩)))
109ralxp 5823 . . . . . 6 (∀𝑝 ∈ (𝑋 × 𝑌)(𝜓 → 𝑝 = ⟨𝑥, 𝑦⟩) ↔ ∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑌 (𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩))
11 eqcom 2770 . . . . . . . . 9 (⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)
1211a1i 11 . . . . . . . 8 (((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) ∧ (𝑎 ∈ 𝑋 ∧ 𝑏 ∈ 𝑌)) → (⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩))
1312imbi2d 343 . . . . . . 7 (((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) ∧ (𝑎 ∈ 𝑋 ∧ 𝑏 ∈ 𝑌)) → ((𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩) ↔ (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
14132ralbidva 3228 . . . . . 6 ((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) → (∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑌 (𝜒 → ⟨𝑎, 𝑏⟩ = ⟨𝑥, 𝑦⟩) ↔ ∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
1510, 14bitrid 286 . . . . 5 ((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) → (∀𝑝 ∈ (𝑋 × 𝑌)(𝜓 → 𝑝 = ⟨𝑥, 𝑦⟩) ↔ ∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
16152rexbiia 3227 . . . 4 (∃𝑥 ∈ 𝑋 ∃𝑦 ∈ 𝑌 ∀𝑝 ∈ (𝑋 × 𝑌)(𝜓 → 𝑝 = ⟨𝑥, 𝑦⟩) ↔ ∃𝑥 ∈ 𝑋 ∃𝑦 ∈ 𝑌 ∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩))
177, 16bitri 278 . . 3 (∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓 → 𝑝 = 𝑞) ↔ ∃𝑥 ∈ 𝑋 ∃𝑦 ∈ 𝑌 ∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩))
183, 17anbi12i 640 . 2 ((∃𝑝 ∈ (𝑋 × 𝑌)𝜓 ∧ ∃𝑞 ∈ (𝑋 × 𝑌)∀𝑝 ∈ (𝑋 × 𝑌)(𝜓 → 𝑝 = 𝑞)) ↔ (∃𝑎 ∈ 𝑋 ∃𝑏 ∈ 𝑌 𝜒 ∧ ∃𝑥 ∈ 𝑋 ∃𝑦 ∈ 𝑌 ∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
191, 18bitri 278 1 (∃!𝑝 ∈ (𝑋 × 𝑌)𝜓 ↔ (∃𝑎 ∈ 𝑋 ∃𝑏 ∈ 𝑌 𝜒 ∧ ∃𝑥 ∈ 𝑋 ∃𝑦 ∈ 𝑌 ∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑌 (𝜒 → ⟨𝑥, 𝑦⟩ = ⟨𝑎, 𝑏⟩)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2147  ∀wral 3080  ∃wrex 3090  ∃!wreu 3367  ⟨cop 4838   × cxp 5653
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-sep 5252  ax-pr 5395
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-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-iun 4956  df-opab 5171  df-xp 5661  df-rel 5662
This theorem is used by:  opreu2reurex  6312
  Copyright terms: Public domain W3C validator