Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  sprsymrelf Structured version   Visualization version   GIF version

Theorem sprsymrelf 48988
Description: The mapping 𝐹 is a function from the subsets of the set of pairs over a fixed set 𝑉 into the symmetric relations 𝑅 on the fixed set 𝑉. (Contributed by AV, 19-Nov-2021.)
Hypotheses
Ref Expression
sprsymrelf.p 𝑃 = 𝒫 (Pairs‘𝑉)
sprsymrelf.r 𝑅 = {𝑟 ∈ 𝒫 (𝑉 × 𝑉) ∣ ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 (𝑥𝑟𝑦 ↔ 𝑦𝑟𝑥)}
sprsymrelf.f 𝐹 = (𝑝 ∈ 𝑃 ↦ {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}})
Assertion
Ref Expression
sprsymrelf 𝐹:𝑃⟶𝑅
Distinct variable groups:   𝑃,𝑝   𝑉,𝑐,𝑥,𝑦   𝑝,𝑐,𝑥,𝑦,𝑟   𝑅,𝑝   𝑉,𝑟,𝑐,𝑥,𝑦
Allowed substitution hints:   𝑃(𝑥, 𝑦, 𝑟, 𝑐)   𝑅(𝑥, 𝑦, 𝑟, 𝑐)   𝐹(𝑥, 𝑦, 𝑟, 𝑝, 𝑐)   𝑉(𝑝)

Proof of Theorem sprsymrelf
Dummy variables 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 sprsymrelf.f . 2 𝐹 = (𝑝 ∈ 𝑃 ↦ {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}})
2 sprsymrelfvlem 48983 . . . . 5 (𝑝 ⊆ (Pairs‘𝑉) → {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} ∈ 𝒫 (𝑉 × 𝑉))
3 prcom 4703 . . . . . . . . . 10 {𝑥, 𝑦} = {𝑦, 𝑥}
43a1i 11 . . . . . . . . 9 (((𝑝 ⊆ (Pairs‘𝑉) ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) ∧ 𝑐 ∈ 𝑝) → {𝑥, 𝑦} = {𝑦, 𝑥})
54eqeq2d 2785 . . . . . . . 8 (((𝑝 ⊆ (Pairs‘𝑉) ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) ∧ 𝑐 ∈ 𝑝) → (𝑐 = {𝑥, 𝑦} ↔ 𝑐 = {𝑦, 𝑥}))
65rexbidva 3199 . . . . . . 7 ((𝑝 ⊆ (Pairs‘𝑉) ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → (∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦} ↔ ∃𝑐 ∈ 𝑝 𝑐 = {𝑦, 𝑥}))
7 df-br 5117 . . . . . . . 8 (𝑥{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑦 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}})
8 opabidw 5513 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} ↔ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦})
97, 8bitri 278 . . . . . . 7 (𝑥{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑦 ↔ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦})
10 vex 3465 . . . . . . . 8 𝑦 ∈ V
11 vex 3465 . . . . . . . 8 𝑥 ∈ V
12 preq12 4706 . . . . . . . . . 10 ((𝑎 = 𝑦 ∧ 𝑏 = 𝑥) → {𝑎, 𝑏} = {𝑦, 𝑥})
1312eqeq2d 2785 . . . . . . . . 9 ((𝑎 = 𝑦 ∧ 𝑏 = 𝑥) → (𝑐 = {𝑎, 𝑏} ↔ 𝑐 = {𝑦, 𝑥}))
1413rexbidv 3201 . . . . . . . 8 ((𝑎 = 𝑦 ∧ 𝑏 = 𝑥) → (∃𝑐 ∈ 𝑝 𝑐 = {𝑎, 𝑏} ↔ ∃𝑐 ∈ 𝑝 𝑐 = {𝑦, 𝑥}))
15 preq12 4706 . . . . . . . . . . 11 ((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) → {𝑥, 𝑦} = {𝑎, 𝑏})
1615eqeq2d 2785 . . . . . . . . . 10 ((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) → (𝑐 = {𝑥, 𝑦} ↔ 𝑐 = {𝑎, 𝑏}))
1716rexbidv 3201 . . . . . . . . 9 ((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) → (∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦} ↔ ∃𝑐 ∈ 𝑝 𝑐 = {𝑎, 𝑏}))
1817cbvopabv 5192 . . . . . . . 8 {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} = {⟨𝑎, 𝑏⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑎, 𝑏}}
1910, 11, 14, 18braba 5526 . . . . . . 7 (𝑦{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑥 ↔ ∃𝑐 ∈ 𝑝 𝑐 = {𝑦, 𝑥})
206, 9, 193bitr4g 317 . . . . . 6 ((𝑝 ⊆ (Pairs‘𝑉) ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → (𝑥{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑦 ↔ 𝑦{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑥))
2120ralrimivva 3220 . . . . 5 (𝑝 ⊆ (Pairs‘𝑉) → ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 (𝑥{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑦 ↔ 𝑦{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑥))
222, 21jca 521 . . . 4 (𝑝 ⊆ (Pairs‘𝑉) → ({⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} ∈ 𝒫 (𝑉 × 𝑉) ∧ ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 (𝑥{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑦 ↔ 𝑦{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑥)))
23 sprsymrelf.p . . . . . 6 𝑃 = 𝒫 (Pairs‘𝑉)
2423eleq2i 2867 . . . . 5 (𝑝 ∈ 𝑃 ↔ 𝑝 ∈ 𝒫 (Pairs‘𝑉))
25 vex 3465 . . . . . 6 𝑝 ∈ V
2625elpw 4571 . . . . 5 (𝑝 ∈ 𝒫 (Pairs‘𝑉) ↔ 𝑝 ⊆ (Pairs‘𝑉))
2724, 26bitri 278 . . . 4 (𝑝 ∈ 𝑃 ↔ 𝑝 ⊆ (Pairs‘𝑉))
28 nfopab1 5189 . . . . . . 7 Ⅎ𝑥{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}
2928nfeq2 2954 . . . . . 6 Ⅎ𝑥 𝑟 = {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}
30 nfopab2 5190 . . . . . . . 8 Ⅎ𝑦{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}
3130nfeq2 2954 . . . . . . 7 Ⅎ𝑦 𝑟 = {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}
32 breq 5118 . . . . . . . 8 (𝑟 = {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} → (𝑥𝑟𝑦 ↔ 𝑥{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑦))
33 breq 5118 . . . . . . . 8 (𝑟 = {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} → (𝑦𝑟𝑥 ↔ 𝑦{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑥))
3432, 33bibi12d 348 . . . . . . 7 (𝑟 = {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} → ((𝑥𝑟𝑦 ↔ 𝑦𝑟𝑥) ↔ (𝑥{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑦 ↔ 𝑦{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑥)))
3531, 34ralbid 3287 . . . . . 6 (𝑟 = {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} → (∀𝑦 ∈ 𝑉 (𝑥𝑟𝑦 ↔ 𝑦𝑟𝑥) ↔ ∀𝑦 ∈ 𝑉 (𝑥{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑦 ↔ 𝑦{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑥)))
3629, 35ralbid 3287 . . . . 5 (𝑟 = {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} → (∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 (𝑥𝑟𝑦 ↔ 𝑦𝑟𝑥) ↔ ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 (𝑥{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑦 ↔ 𝑦{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑥)))
3736elrab 3655 . . . 4 ({⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} ∈ {𝑟 ∈ 𝒫 (𝑉 × 𝑉) ∣ ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 (𝑥𝑟𝑦 ↔ 𝑦𝑟𝑥)} ↔ ({⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} ∈ 𝒫 (𝑉 × 𝑉) ∧ ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 (𝑥{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑦 ↔ 𝑦{⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}}𝑥)))
3822, 27, 373imtr4i 295 . . 3 (𝑝 ∈ 𝑃 → {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} ∈ {𝑟 ∈ 𝒫 (𝑉 × 𝑉) ∣ ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 (𝑥𝑟𝑦 ↔ 𝑦𝑟𝑥)})
39 sprsymrelf.r . . 3 𝑅 = {𝑟 ∈ 𝒫 (𝑉 × 𝑉) ∣ ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 (𝑥𝑟𝑦 ↔ 𝑦𝑟𝑥)}
4038, 39eleqtrrdi 2886 . 2 (𝑝 ∈ 𝑃 → {⟨𝑥, 𝑦⟩ ∣ ∃𝑐 ∈ 𝑝 𝑐 = {𝑥, 𝑦}} ∈ 𝑅)
411, 40fmpti 7159 1 𝐹:𝑃⟶𝑅
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1572   ∈ wcel 2156  ∀wral 3091  ∃wrex 3101  {crab 3423   ⊆ wss 3907  𝒫 cpw 4567  {cpr 4597  ⟨cop 4848   class class class wbr 5116  {copab 5181   ↦ cmpt 5200   × cxp 5664  ⟶wf 6574  ‘cfv 6578  Pairscspr 48970
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-rep 5246  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7799
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-id 5561  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-iota 6532  df-fun 6580  df-fn 6581  df-f 6582  df-fv 6586  df-spr 48971
This theorem is used by:  sprsymrelf1  48989  sprsymrelfo  48990
  Copyright terms: Public domain W3C validator