HomeHome Metamath Proof Explorer < Previous   Next >
Related theorems
GIF version

Theorem 1st2val 3097
Description: Value of an alternate definition of the 1st function.
Assertion
Ref Expression
1st2val ({⟨⟨x, y⟩, z⟩∣z = x} ‘A) = (1stA)
Distinct variable group(s):   x,y,z,A

Proof of Theorem 1st2val
StepHypRef Expression
1 df-opr 3003 . . . . . 6 (w{⟨⟨x, y⟩, z⟩∣z = x}v) = ({⟨⟨x, y⟩, z⟩∣z = x} ‘⟨w, v⟩)
2 visset 1350 . . . . . . 7 wV
3 visset 1350 . . . . . . 7 vV
4 id 9 . . . . . . . 8 (x = wx = w)
5 cleqid 1102 . . . . . . . . 9 w = w
65a1i 7 . . . . . . . 8 (y = vw = w)
7 visset 1350 . . . . . . . . . . 11 xV
8 visset 1350 . . . . . . . . . . 11 yV
97, 8pm3.2i 234 . . . . . . . . . 10 (xVyV)
109biantrur 544 . . . . . . . . 9 (z = x ↔ ((xVyV) ∧ z = x))
1110bioprabi 3027 . . . . . . . 8 {⟨⟨x, y⟩, z⟩∣z = x} = {⟨⟨x, y⟩, z⟩∣((xVyV) ∧ z = x)}
122, 4, 6, 11oprabval2 3051 . . . . . . 7 ((wVvV) → (w{⟨⟨x, y⟩, z⟩∣z = x}v) = w)
132, 3, 12mp2an 520 . . . . . 6 (w{⟨⟨x, y⟩, z⟩∣z = x}v) = w
141, 13eqtr3 1121 . . . . 5 ({⟨⟨x, y⟩, z⟩∣z = x} ‘⟨w, v⟩) = w
152op1st 3091 . . . . 5 (1st ‘⟨w, v⟩) = w
1614, 15eqtr4 1122 . . . 4 ({⟨⟨x, y⟩, z⟩∣z = x} ‘⟨w, v⟩) = (1st ‘⟨w, v⟩)
17 fveq2 2832 . . . . 5 (⟨w, v⟩ = A → ({⟨⟨x, y⟩, z⟩∣z = x} ‘⟨w, v⟩) = ({⟨⟨x, y⟩, z⟩∣z = x} ‘A))
18 fveq2 2832 . . . . 5 (⟨w, v⟩ = A → (1st ‘⟨w, v⟩) = (1stA))
1917, 18cleq12d 1115 . . . 4 (⟨w, v⟩ = A → (({⟨⟨x, y⟩, z⟩∣z = x} ‘⟨w, v⟩) = (1st ‘⟨w, v⟩) ↔ ({⟨⟨x, y⟩, z⟩∣z = x} ‘A) = (1stA)))
2016, 19mpbii 168 . . 3 (⟨w, v⟩ = A → ({⟨⟨x, y⟩, z⟩∣z = x} ‘A) = (1stA))
212019.23aivv 953 . 2 (∃wvw, v⟩ = A → ({⟨⟨x, y⟩, z⟩∣z = x} ‘A) = (1stA))
22 a9e 809 . . . . . . . . . 10 z z = x
239, 222th 540 . . . . . . . . 9 ((xVyV) ↔ ∃z z = x)
2423biopabi 2103 . . . . . . . 8 {⟨x, y⟩∣(xVyV)} = {⟨x, y⟩∣∃z z = x}
25 df-xp 2424 . . . . . . . 8 (V × V) = {⟨x, y⟩∣(xVyV)}
26 dmoprab 3031 . . . . . . . 8 dom {⟨⟨x, y⟩, z⟩∣z = x} = {⟨x, y⟩∣∃z z = x}
2724, 25, 263eqtr4r 1127 . . . . . . 7 dom {⟨⟨x, y⟩, z⟩∣z = x} = (V × V)
2827eleq2i 1153 . . . . . 6 (A ∈ dom {⟨⟨x, y⟩, z⟩∣z = x} ↔ A ∈ (V × V))
29 elvv 2464 . . . . . 6 (A ∈ (V × V) ↔ ∃wv A = ⟨w, v⟩)
30 cleqcom 1103 . . . . . . 7 (A = ⟨w, v⟩ ↔ ⟨w, v⟩ = A)
3130bi2ex 734 . . . . . 6 (∃wv A = ⟨w, v⟩ ↔ ∃wvw, v⟩ = A)
3228, 29, 313bitr 155 . . . . 5 (A ∈ dom {⟨⟨x, y⟩, z⟩∣z = x} ↔ ∃wvw, v⟩ = A)
3332negbii 162 . . . 4 A ∈ dom {⟨⟨x, y⟩, z⟩∣z = x} ↔ ¬ ∃wvw, v⟩ = A)
34 ndmfv 2848 . . . 4 A ∈ dom {⟨⟨x, y⟩, z⟩∣z = x} → ({⟨⟨x, y⟩, z⟩∣z = x} ‘A) = ∅)
3533, 34sylbir 176 . . 3 (¬ ∃wvw, v⟩ = A → ({⟨⟨x, y⟩, z⟩∣z = x} ‘A) = ∅)
36 n0 1714 . . . . . . . . 9 (¬ dom {A} = ∅ ↔ ∃w w ∈ dom {A})
372eldm2 2528 . . . . . . . . . . 11 (w ∈ dom {A} ↔ ∃vw, v⟩ ∈ {A})
38 opex 1893 . . . . . . . . . . . . 13 w, v⟩ ∈ V
3938elsnc 1826 . . . . . . . . . . . 12 (⟨w, v⟩ ∈ {A} ↔ ⟨w, v⟩ = A)
4039biex 733 . . . . . . . . . . 11 (∃vw, v⟩ ∈ {A} ↔ ∃vw, v⟩ = A)
4137, 40bitr 151 . . . . . . . . . 10 (w ∈ dom {A} ↔ ∃vw, v⟩ = A)
4241biex 733 . . . . . . . . 9 (∃w w ∈ dom {A} ↔ ∃wvw, v⟩ = A)
4336, 42bitr 151 . . . . . . . 8 (¬ dom {A} = ∅ ↔ ∃wvw, v⟩ = A)
4443biimp 133 . . . . . . 7 (¬ dom {A} = ∅ → ∃wvw, v⟩ = A)
4544con1i 88 . . . . . 6 (¬ ∃wvw, v⟩ = A → dom {A} = ∅)
4645unieqd 1929 . . . . 5 (¬ ∃wvw, v⟩ = Adom {A} = ∅)
47 uni0 1938 . . . . 5 ∅ = ∅
4846, 47syl6eq 1140 . . . 4 (¬ ∃wvw, v⟩ = Adom {A} = ∅)
49 1stval 3089 . . . 4 (1stA) = dom {A}
5048, 49syl5eq 1136 . . 3 (¬ ∃wvw, v⟩ = A → (1stA) = ∅)
5135, 50eqtr4d 1131 . 2 (¬ ∃wvw, v⟩ = A → ({⟨⟨x, y⟩, z⟩∣z = x} ‘A) = (1stA))
5221, 51pm2.61i 110 1 ({⟨⟨x, y⟩, z⟩∣z = x} ‘A) = (1stA)
Colors of variables: wff set class
Syntax hints:  ¬ wn 1   ∧ wa 196  ∃wex 678   = weq 797   = wceq 1091   ∈ wcel 1092  Vcvv 1348  ∅c0 1707  {csn 1808  ⟨cop 1810  cuni 1919  {copab 2055   × cxp 2408  dom cdm 2410   ‘cfv 2422  (class class class)co 3001  {copab2 3002  1st c1st 3085
This theorem is referenced by:  df1st2 3098
This theorem was proved from axioms:  ax-1 3  ax-2 4  ax-3 5  ax-mp 6  ax-4 673  ax-5 674  ax-6 675  ax-7 676  ax-gen 677  ax-8 798  ax-9 799  ax-10 800  ax-11 801  ax-12 802  ax-13 804  ax-14 805  ax-16 922  ax-17 925  ax-ext 1074  ax-rep 1075  ax-un 1076  ax-pow 1077
This theorem depends on definitions:  df-bi 128  df-or 197  df-an 198  df-3an 583  df-ex 679  df-sb 853  df-eu 1009  df-mo 1010  df-clab 1093  df-cleq 1097  df-clel 1099  df-rex 1206  df-v 1349  df-dif 1489  df-un 1490  df-in 1491  df-ss 1492  df-nul 1708  df-pw 1799  df-sn 1811  df-pr 1812  df-op 1815  df-uni 1920  df-br 2063  df-opab 2098  df-id 2125  df-xp 2424  df-rel 2425  df-cnv 2426  df-co 2427  df-dm 2428  df-rn 2429  df-res 2430  df-ima 2431  df-fun 2432  df-fv 2438  df-opr 3003  df-oprab 3004  df-1st 3087
metamath.org