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 49814
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 49808 . 2 (Rel 𝑅 → (tpos I ↾ 𝑅) = tpos ( I ↾ 𝑅))
2 relcnv 6100 . . . . 5 Rel 𝑅
3 fnresi 6661 . . . . 5 ( I ↾ 𝑅) Fn 𝑅
4 tposfn2 8246 . . . . 5 (Rel 𝑅 → (( I ↾ 𝑅) Fn 𝑅 → tpos ( I ↾ 𝑅) Fn 𝑅))
52, 3, 4mp2 9 . . . 4 tpos ( I ↾ 𝑅) Fn 𝑅
6 dfrel2 6182 . . . . . 6 (Rel 𝑅𝑅 = 𝑅)
76biimpi 219 . . . . 5 (Rel 𝑅𝑅 = 𝑅)
87fneq2d 6626 . . . 4 (Rel 𝑅 → (tpos ( I ↾ 𝑅) Fn 𝑅 ↔ tpos ( I ↾ 𝑅) Fn 𝑅))
95, 8mpbii 236 . . 3 (Rel 𝑅 → tpos ( I ↾ 𝑅) Fn 𝑅)
10 vsnex 5400 . . . . . . 7 {𝑥} ∈ V
1110cnvex 7922 . . . . . 6 {𝑥} ∈ V
1211uniex 7743 . . . . 5 {𝑥} ∈ V
13 eqid 2760 . . . . 5 (𝑥𝑅 {𝑥}) = (𝑥𝑅 {𝑥})
1412, 13fnmpti 6675 . . . 4 (𝑥𝑅 {𝑥}) Fn 𝑅
1514a1i 11 . . 3 (Rel 𝑅 → (𝑥𝑅 {𝑥}) Fn 𝑅)
16 1st2nd 8036 . . . . 5 ((Rel 𝑅𝑦𝑅) → 𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩)
17 1st2ndb 8026 . . . . . 6 (𝑦 ∈ (V × V) ↔ 𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩)
1817biimpri 231 . . . . 5 (𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩ → 𝑦 ∈ (V × V))
19 2nd1st 8035 . . . . 5 (𝑦 ∈ (V × V) → {𝑦} = ⟨(2nd𝑦), (1st𝑦)⟩)
2016, 18, 193syl 19 . . . 4 ((Rel 𝑅𝑦𝑅) → {𝑦} = ⟨(2nd𝑦), (1st𝑦)⟩)
21 sneq 4594 . . . . . . . 8 (𝑥 = 𝑦 → {𝑥} = {𝑦})
2221cnveqd 5855 . . . . . . 7 (𝑥 = 𝑦{𝑥} = {𝑦})
2322unieqd 4880 . . . . . 6 (𝑥 = 𝑦 {𝑥} = {𝑦})
2423, 13, 12fvmpt3i 6992 . . . . 5 (𝑦𝑅 → ((𝑥𝑅 {𝑥})‘𝑦) = {𝑦})
2524adantl 487 . . . 4 ((Rel 𝑅𝑦𝑅) → ((𝑥𝑅 {𝑥})‘𝑦) = {𝑦})
2616fveq2d 6882 . . . . 5 ((Rel 𝑅𝑦𝑅) → (tpos ( I ↾ 𝑅)‘𝑦) = (tpos ( I ↾ 𝑅)‘⟨(1st𝑦), (2nd𝑦)⟩))
27 ovtpos 8239 . . . . . . 7 ((1st𝑦)tpos ( I ↾ 𝑅)(2nd𝑦)) = ((2nd𝑦)( I ↾ 𝑅)(1st𝑦))
28 df-ov 7416 . . . . . . 7 ((1st𝑦)tpos ( I ↾ 𝑅)(2nd𝑦)) = (tpos ( I ↾ 𝑅)‘⟨(1st𝑦), (2nd𝑦)⟩)
29 df-ov 7416 . . . . . . 7 ((2nd𝑦)( I ↾ 𝑅)(1st𝑦)) = (( I ↾ 𝑅)‘⟨(2nd𝑦), (1st𝑦)⟩)
3027, 28, 293eqtr3i 2791 . . . . . 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 2861 . . . . . 6 ((Rel 𝑅𝑦𝑅) → ⟨(1st𝑦), (2nd𝑦)⟩ ∈ 𝑅)
34 fvex 6891 . . . . . . . 8 (2nd𝑦) ∈ V
35 fvex 6891 . . . . . . . 8 (1st𝑦) ∈ V
3634, 35opelcnv 5861 . . . . . . 7 (⟨(2nd𝑦), (1st𝑦)⟩ ∈ 𝑅 ↔ ⟨(1st𝑦), (2nd𝑦)⟩ ∈ 𝑅)
3736biimpri 231 . . . . . 6 (⟨(1st𝑦), (2nd𝑦)⟩ ∈ 𝑅 → ⟨(2nd𝑦), (1st𝑦)⟩ ∈ 𝑅)
38 fvresi 7171 . . . . . 6 (⟨(2nd𝑦), (1st𝑦)⟩ ∈ 𝑅 → (( I ↾ 𝑅)‘⟨(2nd𝑦), (1st𝑦)⟩) = ⟨(2nd𝑦), (1st𝑦)⟩)
3933, 37, 383syl 19 . . . . 5 ((Rel 𝑅𝑦𝑅) → (( I ↾ 𝑅)‘⟨(2nd𝑦), (1st𝑦)⟩) = ⟨(2nd𝑦), (1st𝑦)⟩)
4026, 31, 393eqtrd 2799 . . . 4 ((Rel 𝑅𝑦𝑅) → (tpos ( I ↾ 𝑅)‘𝑦) = ⟨(2nd𝑦), (1st𝑦)⟩)
4120, 25, 403eqtr4rd 2806 . . 3 ((Rel 𝑅𝑦𝑅) → (tpos ( I ↾ 𝑅)‘𝑦) = ((𝑥𝑅 {𝑥})‘𝑦))
429, 15, 41eqfnfvd 7025 . 2 (Rel 𝑅 → tpos ( I ↾ 𝑅) = (𝑥𝑅 {𝑥}))
431, 42eqtrd 2795 1 (Rel 𝑅 → (tpos I ↾ 𝑅) = (𝑥𝑅 {𝑥}))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wi 4  wa 401   = wceq 1570  wcel 2145  Vcvv 3450  {csn 4584  cop 4590   cuni 4867  cmpt 5186   I cid 5549   × cxp 5653  ccnv 5654  cres 5657  Rel wrel 5660   Fn wfn 6528  cfv 6533  (class class class)co 7413  1st c1st 7984  2nd c2nd 7985  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 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2732  ax-sep 5251  ax-nul 5263  ax-pow 5330  ax-pr 5398  ax-un 7736
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 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3740  df-csb 3848  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-br 5104  df-opab 5168  df-mpt 5187  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-iota 6489  df-fun 6535  df-fn 6536  df-f 6537  df-f1 6538  df-fo 6539  df-f1o 6540  df-fv 6541  df-ov 7416  df-1st 7986  df-2nd 7987  df-tpos 8224
This theorem is used by:  tposideq2  49815
  Copyright terms: Public domain W3C validator