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

Theorem 2nd2val 4086
Description: Value of an alternate definition of the 2nd function.
Assertion
Ref Expression
2nd2val ({⟨⟨x, y⟩, z⟩∣z = y} ‘A) = (2ndA)
Distinct variable group:   x,y,z,A

Proof of Theorem 2nd2val
StepHypRef Expression
1 visset 1809 . . . . . 6 wV
2 visset 1809 . . . . . 6 vV
31, 2op2nd 4076 . . . . 5 (2nd ‘⟨w, v⟩) = v
4 equid 1124 . . . . . . . 8 y = y
54a1i 8 . . . . . . 7 (x = wy = y)
6 id 59 . . . . . . 7 (y = vy = v)
7 eqid 1473 . . . . . . 7 {⟨⟨x, y⟩, z⟩∣z = y} = {⟨⟨x, y⟩, z⟩∣z = y}
82, 5, 6, 7oprabval5 4020 . . . . . 6 ((wVvV) → (w{⟨⟨x, y⟩, z⟩∣z = y}v) = v)
91, 2, 8mp2an 696 . . . . 5 (w{⟨⟨x, y⟩, z⟩∣z = y}v) = v
10 df-opr 3956 . . . . 5 (w{⟨⟨x, y⟩, z⟩∣z = y}v) = ({⟨⟨x, y⟩, z⟩∣z = y} ‘⟨w, v⟩)
113, 9, 103eqtr2r 1499 . . . 4 ({⟨⟨x, y⟩, z⟩∣z = y} ‘⟨w, v⟩) = (2nd ‘⟨w, v⟩)
12 fveq2 3715 . . . . 5 (⟨w, v⟩ = A → ({⟨⟨x, y⟩, z⟩∣z = y} ‘⟨w, v⟩) = ({⟨⟨x, y⟩, z⟩∣z = y} ‘A))
13 fveq2 3715 . . . . 5 (⟨w, v⟩ = A → (2nd ‘⟨w, v⟩) = (2ndA))
1412, 13eqeq12d 1486 . . . 4 (⟨w, v⟩ = A → (({⟨⟨x, y⟩, z⟩∣z = y} ‘⟨w, v⟩) = (2nd ‘⟨w, v⟩) ↔ ({⟨⟨x, y⟩, z⟩∣z = y} ‘A) = (2ndA)))
1511, 14mpbii 193 . . 3 (⟨w, v⟩ = A → ({⟨⟨x, y⟩, z⟩∣z = y} ‘A) = (2ndA))
161519.23aivv 1294 . 2 (∃wvw, v⟩ = A → ({⟨⟨x, y⟩, z⟩∣z = y} ‘A) = (2ndA))
17 visset 1809 . . . . . . . . . . 11 xV
18 visset 1809 . . . . . . . . . . 11 yV
1917, 18pm3.2i 285 . . . . . . . . . 10 (xVyV)
20 a9e 1123 . . . . . . . . . 10 z z = y
2119, 202th 717 . . . . . . . . 9 ((xVyV) ↔ ∃z z = y)
2221opabbii 2666 . . . . . . . 8 {⟨x, y⟩∣(xVyV)} = {⟨x, y⟩∣∃z z = y}
23 df-xp 3179 . . . . . . . 8 (V × V) = {⟨x, y⟩∣(xVyV)}
24 dmoprab 3993 . . . . . . . 8 dom {⟨⟨x, y⟩, z⟩∣z = y} = {⟨x, y⟩∣∃z z = y}
2522, 23, 243eqtr4r 1503 . . . . . . 7 dom {⟨⟨x, y⟩, z⟩∣z = y} = (V × V)
2625eleq2i 1535 . . . . . 6 (A ∈ dom {⟨⟨x, y⟩, z⟩∣z = y} ↔ A ∈ (V × V))
27 elvv 3223 . . . . . 6 (A ∈ (V × V) ↔ ∃wv A = ⟨w, v⟩)
28 eqcom 1474 . . . . . . 7 (A = ⟨w, v⟩ ↔ ⟨w, v⟩ = A)
29282exbii 1050 . . . . . 6 (∃wv A = ⟨w, v⟩ ↔ ∃wvw, v⟩ = A)
3026, 27, 293bitr 177 . . . . 5 (A ∈ dom {⟨⟨x, y⟩, z⟩∣z = y} ↔ ∃wvw, v⟩ = A)
3130negbii 187 . . . 4 A ∈ dom {⟨⟨x, y⟩, z⟩∣z = y} ↔ ¬ ∃wvw, v⟩ = A)
32 ndmfv 3736 . . . 4 A ∈ dom {⟨⟨x, y⟩, z⟩∣z = y} → ({⟨⟨x, y⟩, z⟩∣z = y} ‘A) = ∅)
3331, 32sylbir 201 . . 3 (¬ ∃wvw, v⟩ = A → ({⟨⟨x, y⟩, z⟩∣z = y} ‘A) = ∅)
34 n0 2285 . . . . . . . . 9 (¬ ran { A} = ∅ ↔ ∃v v ∈ ran { A})
352elrn2 3343 . . . . . . . . . . 11 (v ∈ ran { A} ↔ ∃ww, v⟩ ∈ {A})
36 opex 2777 . . . . . . . . . . . . 13 w, v⟩ ∈ V
3736elsnc 2427 . . . . . . . . . . . 12 (⟨w, v⟩ ∈ {A} ↔ ⟨w, v⟩ = A)
3837exbii 1049 . . . . . . . . . . 11 (∃ww, v⟩ ∈ {A} ↔ ∃ww, v⟩ = A)
3935, 38bitr 173 . . . . . . . . . 10 (v ∈ ran { A} ↔ ∃ww, v⟩ = A)
4039exbii 1049 . . . . . . . . 9 (∃v v ∈ ran { A} ↔ ∃vww, v⟩ = A)
41 excom 1044 . . . . . . . . 9 (∃vww, v⟩ = A ↔ ∃wvw, v⟩ = A)
4234, 40, 413bitr 177 . . . . . . . 8 (¬ ran { A} = ∅ ↔ ∃wvw, v⟩ = A)
4342biimp 151 . . . . . . 7 (¬ ran { A} = ∅ → ∃wvw, v⟩ = A)
4443con1i 96 . . . . . 6 (¬ ∃wvw, v⟩ = A → ran { A} = ∅)
4544unieqd 2507 . . . . 5 (¬ ∃wvw, v⟩ = Aran { A} = ∅)
46 uni0 2520 . . . . 5 ∅ = ∅
4745, 46syl6eq 1520 . . . 4 (¬ ∃wvw, v⟩ = Aran { A} = ∅)
48 2ndval 4072 . . . 4 (2ndA) = ran { A}
4947, 48syl5eq 1516 . . 3 (¬ ∃wvw, v⟩ = A → (2ndA) = ∅)
5033, 49eqtr4d 1507 . 2 (¬ ∃wvw, v⟩ = A → ({⟨⟨x, y⟩, z⟩∣z = y} ‘A) = (2ndA))
5116, 50pm2.61i 126 1 ({⟨⟨x, y⟩, z⟩∣z = y} ‘A) = (2ndA)
Colors of variables: wff set class
Syntax hints:  ¬ wn 2   ⋀ wa 223   = wceq 954   ∈ wcel 956  ∃wex 978  Vcvv 1807  ∅c0 2276  {csn 2405  ⟨cop 2407  cuni 2498  {copab 2661   × cxp 3163  dom cdm 3165  ran crn 3166   ‘cfv 3177  (class class class)co 3954  {copab2 3955  2nd c2nd 4068
This theorem is referenced by:  df2nd2 4117
This theorem was proved from axioms:  ax-1 4  ax-2 5  ax-3 6  ax-mp 7  ax-7 960  ax-gen 961  ax-8 962  ax-9 963  ax-10 964  ax-11 965  ax-12 966  ax-13 967  ax-14 968  ax-17 969  ax-4 971  ax-5o 973  ax-6o 976  ax-9o 1121  ax-10o 1138  ax-16 1208  ax-11o 1216  ax-ext 1457  ax-sep 2698  ax-nul 2705  ax-pow 2737  ax-pr 2774  ax-un 2861
This theorem depends on definitions:  df-bi 147  df-or 224  df-an 225  df-3an 776  df-ex 979  df-sb 1170  df-eu 1380  df-mo 1381  df-clab 1462  df-cleq 1467  df-clel 1470  df-ne 1584  df-ral 1646  df-rex 1647  df-v 1808  df-sbc 1938  df-csb 1998  df-dif 2045  df-un 2046  df-in 2047  df-ss 2049  df-nul 2277  df-pw 2398  df-sn 2408  df-pr 2409  df-op 2412  df-uni 2499  df-br 2615  df-opab 2662  df-id 2830  df-xp 3179  df-rel 3180  df-cnv 3181  df-co 3182  df-dm 3183  df-rn 3184  df-res 3185  df-ima 3186  df-fun 3187  df-fv 3193  df-opr 3956  df-oprab 3957  df-2nd 4070
Copyright terms: Public domain