Users' Mathboxes Mathbox for Zhi Wang < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  tposideq Structured version   Visualization version   GIF version

Theorem tposideq 49699
Description: Two ways of expressing the swap function. (Contributed by Zhi Wang, 6-Oct-2025.)
Assertion
Ref Expression
tposideq (Rel 𝑅 → (tpos I ↾ 𝑅) = (𝑥𝑅 {𝑥}))
Distinct variable group:   𝑥,𝑅

Proof of Theorem tposideq
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 tposres 49693 . 2 (Rel 𝑅 → (tpos I ↾ 𝑅) = tpos ( I ↾ 𝑅))
2 relcnv 6108 . . . . 5 Rel 𝑅
3 fnresi 6668 . . . . 5 ( I ↾ 𝑅) Fn 𝑅
4 tposfn2 8246 . . . . 5 (Rel 𝑅 → (( I ↾ 𝑅) Fn 𝑅 → tpos ( I ↾ 𝑅) Fn 𝑅))
52, 3, 4mp2 9 . . . 4 tpos ( I ↾ 𝑅) Fn 𝑅
6 dfrel2 6189 . . . . . 6 (Rel 𝑅𝑅 = 𝑅)
76biimpi 219 . . . . 5 (Rel 𝑅𝑅 = 𝑅)
87fneq2d 6633 . . . 4 (Rel 𝑅 → (tpos ( I ↾ 𝑅) Fn 𝑅 ↔ tpos ( I ↾ 𝑅) Fn 𝑅))
95, 8mpbii 236 . . 3 (Rel 𝑅 → tpos ( I ↾ 𝑅) Fn 𝑅)
10 vsnex 5408 . . . . . . 7 {𝑥} ∈ V
1110cnvex 7924 . . . . . 6 {𝑥} ∈ V
1211uniex 7745 . . . . 5 {𝑥} ∈ V
13 eqid 2765 . . . . 5 (𝑥𝑅 {𝑥}) = (𝑥𝑅 {𝑥})
1412, 13fnmpti 6682 . . . 4 (𝑥𝑅 {𝑥}) Fn 𝑅
1514a1i 11 . . 3 (Rel 𝑅 → (𝑥𝑅 {𝑥}) Fn 𝑅)
16 1st2nd 8038 . . . . 5 ((Rel 𝑅𝑦𝑅) → 𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩)
17 1st2ndb 8028 . . . . . 6 (𝑦 ∈ (V × V) ↔ 𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩)
1817biimpri 231 . . . . 5 (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ → 𝑦 ∈ (V × V))
19 2nd1st 8037 . . . . 5 (𝑦 ∈ (V × V) → {𝑦} = ⟨(2nd𝑦), (1st𝑦)⟩)
2016, 18, 193syl 19 . . . 4 ((Rel 𝑅𝑦𝑅) → {𝑦} = ⟨(2nd𝑦), (1st𝑦)⟩)
21 sneq 4601 . . . . . . . 8 (𝑥 = 𝑦 → {𝑥} = {𝑦})
2221cnveqd 5863 . . . . . . 7 (𝑥 = 𝑦{𝑥} = {𝑦})
2322unieqd 4887 . . . . . 6 (𝑥 = 𝑦 {𝑥} = {𝑦})
2423, 13, 12fvmpt3i 6999 . . . . 5 (𝑦𝑅 → ((𝑥𝑅 {𝑥})‘𝑦) = {𝑦})
2524adantl 487 . . . 4 ((Rel 𝑅𝑦𝑅) → ((𝑥𝑅 {𝑥})‘𝑦) = {𝑦})
2616fveq2d 6889 . . . . 5 ((Rel 𝑅𝑦𝑅) → (tpos ( I ↾ 𝑅)‘𝑦) = (tpos ( I ↾ 𝑅)‘⟨(1st𝑦), (2nd𝑦)⟩))
27 ovtpos 8239 . . . . . . 7 ((1st𝑦)tpos ( I ↾ 𝑅)(2nd𝑦)) = ((2nd𝑦)( I ↾ 𝑅)(1st𝑦))
28 df-ov 7419 . . . . . . 7 ((1st𝑦)tpos ( I ↾ 𝑅)(2nd𝑦)) = (tpos ( I ↾ 𝑅)‘⟨(1st𝑦), (2nd𝑦)⟩)
29 df-ov 7419 . . . . . . 7 ((2nd𝑦)( I ↾ 𝑅)(1st𝑦)) = (( I ↾ 𝑅)‘⟨(2nd𝑦), (1st𝑦)⟩)
3027, 28, 293eqtr3i 2796 . . . . . 6 (tpos ( I ↾ 𝑅)‘⟨(1st𝑦), (2nd𝑦)⟩) = (( I ↾ 𝑅)‘⟨(2nd𝑦), (1st𝑦)⟩)
3130a1i 11 . . . . 5 ((Rel 𝑅𝑦𝑅) → (tpos ( I ↾ 𝑅)‘⟨(1st𝑦), (2nd𝑦)⟩) = (( I ↾ 𝑅)‘⟨(2nd𝑦), (1st𝑦)⟩))
32 simpr 490 . . . . . . 7 ((Rel 𝑅𝑦𝑅) → 𝑦𝑅)
3316, 32eqeltrrd 2866 . . . . . 6 ((Rel 𝑅𝑦𝑅) → ⟨(1st𝑦), (2nd𝑦)⟩ ∈ 𝑅)
34 fvex 6898 . . . . . . . 8 (2nd𝑦) ∈ V
35 fvex 6898 . . . . . . . 8 (1st𝑦) ∈ V
3634, 35opelcnv 5869 . . . . . . 7 (⟨(2nd𝑦), (1st𝑦)⟩ ∈ 𝑅 ↔ ⟨(1st𝑦), (2nd𝑦)⟩ ∈ 𝑅)
3736biimpri 231 . . . . . 6 (⟨(1st𝑦), (2nd𝑦)⟩ ∈ 𝑅 → ⟨(2nd𝑦), (1st𝑦)⟩ ∈ 𝑅)
38 fvresi 7175 . . . . . 6 (⟨(2nd𝑦), (1st𝑦)⟩ ∈ 𝑅 → (( I ↾ 𝑅)‘⟨(2nd𝑦), (1st𝑦)⟩) = ⟨(2nd𝑦), (1st𝑦)⟩)
3933, 37, 383syl 19 . . . . 5 ((Rel 𝑅𝑦𝑅) → (( I ↾ 𝑅)‘⟨(2nd𝑦), (1st𝑦)⟩) = ⟨(2nd𝑦), (1st𝑦)⟩)
4026, 31, 393eqtrd 2804 . . . 4 ((Rel 𝑅𝑦𝑅) → (tpos ( I ↾ 𝑅)‘𝑦) = ⟨(2nd𝑦), (1st𝑦)⟩)
4120, 25, 403eqtr4rd 2811 . . 3 ((Rel 𝑅𝑦𝑅) → (tpos ( I ↾ 𝑅)‘𝑦) = ((𝑥𝑅 {𝑥})‘𝑦))
429, 15, 41eqfnfvd 7032 . 2 (Rel 𝑅 → tpos ( I ↾ 𝑅) = (𝑥𝑅 {𝑥}))
431, 42eqtrd 2800 1 (Rel 𝑅 → (tpos I ↾ 𝑅) = (𝑥𝑅 {𝑥}))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wi 4  wa 401   = wceq 1570  wcel 2146  Vcvv 3457  {csn 4591  cop 4597   cuni 4874  cmpt 5194   I cid 5557   × cxp 5661  ccnv 5662  cres 5665  Rel wrel 5668   Fn wfn 6535  cfv 6540  (class class class)co 7416  1st c1st 7986  2nd c2nd 7987  tpos ctpos 8223
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 2148  ax-9 2156  ax-10 2179  ax-11 2195  ax-12 2216  ax-ext 2737  ax-sep 5259  ax-nul 5271  ax-pow 5338  ax-pr 5406  ax-un 7738
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 2569  df-eu 2599  df-clab 2744  df-cleq 2757  df-clel 2840  df-nfc 2914  df-ne 2961  df-ral 3082  df-rex 3092  df-reu 3372  df-rab 3419  df-v 3459  df-sbc 3747  df-csb 3855  df-dif 3909  df-un 3911  df-in 3913  df-ss 3923  df-nul 4287  df-if 4490  df-pw 4566  df-sn 4592  df-pr 4594  df-op 4598  df-uni 4875  df-br 5112  df-opab 5176  df-mpt 5195  df-id 5558  df-xp 5669  df-rel 5670  df-cnv 5671  df-co 5672  df-dm 5673  df-rn 5674  df-res 5675  df-ima 5676  df-iota 6496  df-fun 6542  df-fn 6543  df-f 6544  df-f1 6545  df-fo 6546  df-f1o 6547  df-fv 6548  df-ov 7419  df-1st 7988  df-2nd 7989  df-tpos 8224
This theorem is used by:  tposideq2  49700
  Copyright terms: Public domain W3C validator