MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  2ndconst Structured version   Visualization version   GIF version

Theorem 2ndconst 7941
Description: The mapping of a restriction of the 2nd function to a converse constant function. (Contributed by NM, 27-Mar-2008.) (Proof shortened by Peter Mazsa, 2-Oct-2022.)
Assertion
Ref Expression
2ndconst (𝐴𝑉 → (2nd ↾ ({𝐴} × 𝐵)):({𝐴} × 𝐵)–1-1-onto𝐵)

Proof of Theorem 2ndconst
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 snnzg 4710 . . 3 (𝐴𝑉 → {𝐴} ≠ ∅)
2 fo2ndres 7858 . . 3 ({𝐴} ≠ ∅ → (2nd ↾ ({𝐴} × 𝐵)):({𝐴} × 𝐵)–onto𝐵)
31, 2syl 17 . 2 (𝐴𝑉 → (2nd ↾ ({𝐴} × 𝐵)):({𝐴} × 𝐵)–onto𝐵)
4 moeq 3642 . . . . . 6 ∃*𝑥 𝑥 = ⟨𝐴, 𝑦
54moani 2553 . . . . 5 ∃*𝑥(𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)
6 vex 3436 . . . . . . . 8 𝑦 ∈ V
76brresi 5900 . . . . . . 7 (𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦 ↔ (𝑥 ∈ ({𝐴} × 𝐵) ∧ 𝑥2nd 𝑦))
8 fo2nd 7852 . . . . . . . . . . 11 2nd :V–onto→V
9 fofn 6690 . . . . . . . . . . 11 (2nd :V–onto→V → 2nd Fn V)
108, 9ax-mp 5 . . . . . . . . . 10 2nd Fn V
11 vex 3436 . . . . . . . . . 10 𝑥 ∈ V
12 fnbrfvb 6822 . . . . . . . . . 10 ((2nd Fn V ∧ 𝑥 ∈ V) → ((2nd𝑥) = 𝑦𝑥2nd 𝑦))
1310, 11, 12mp2an 689 . . . . . . . . 9 ((2nd𝑥) = 𝑦𝑥2nd 𝑦)
1413anbi2i 623 . . . . . . . 8 ((𝑥 ∈ ({𝐴} × 𝐵) ∧ (2nd𝑥) = 𝑦) ↔ (𝑥 ∈ ({𝐴} × 𝐵) ∧ 𝑥2nd 𝑦))
15 elxp7 7866 . . . . . . . . . . 11 (𝑥 ∈ ({𝐴} × 𝐵) ↔ (𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ {𝐴} ∧ (2nd𝑥) ∈ 𝐵)))
16 eleq1 2826 . . . . . . . . . . . . . . 15 ((2nd𝑥) = 𝑦 → ((2nd𝑥) ∈ 𝐵𝑦𝐵))
1716biimpac 479 . . . . . . . . . . . . . 14 (((2nd𝑥) ∈ 𝐵 ∧ (2nd𝑥) = 𝑦) → 𝑦𝐵)
1817adantll 711 . . . . . . . . . . . . 13 ((((1st𝑥) ∈ {𝐴} ∧ (2nd𝑥) ∈ 𝐵) ∧ (2nd𝑥) = 𝑦) → 𝑦𝐵)
1918adantll 711 . . . . . . . . . . . 12 (((𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ {𝐴} ∧ (2nd𝑥) ∈ 𝐵)) ∧ (2nd𝑥) = 𝑦) → 𝑦𝐵)
20 elsni 4578 . . . . . . . . . . . . . 14 ((1st𝑥) ∈ {𝐴} → (1st𝑥) = 𝐴)
21 eqopi 7867 . . . . . . . . . . . . . . 15 ((𝑥 ∈ (V × V) ∧ ((1st𝑥) = 𝐴 ∧ (2nd𝑥) = 𝑦)) → 𝑥 = ⟨𝐴, 𝑦⟩)
2221anassrs 468 . . . . . . . . . . . . . 14 (((𝑥 ∈ (V × V) ∧ (1st𝑥) = 𝐴) ∧ (2nd𝑥) = 𝑦) → 𝑥 = ⟨𝐴, 𝑦⟩)
2320, 22sylanl2 678 . . . . . . . . . . . . 13 (((𝑥 ∈ (V × V) ∧ (1st𝑥) ∈ {𝐴}) ∧ (2nd𝑥) = 𝑦) → 𝑥 = ⟨𝐴, 𝑦⟩)
2423adantlrr 718 . . . . . . . . . . . 12 (((𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ {𝐴} ∧ (2nd𝑥) ∈ 𝐵)) ∧ (2nd𝑥) = 𝑦) → 𝑥 = ⟨𝐴, 𝑦⟩)
2519, 24jca 512 . . . . . . . . . . 11 (((𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ {𝐴} ∧ (2nd𝑥) ∈ 𝐵)) ∧ (2nd𝑥) = 𝑦) → (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩))
2615, 25sylanb 581 . . . . . . . . . 10 ((𝑥 ∈ ({𝐴} × 𝐵) ∧ (2nd𝑥) = 𝑦) → (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩))
2726adantl 482 . . . . . . . . 9 ((𝐴𝑉 ∧ (𝑥 ∈ ({𝐴} × 𝐵) ∧ (2nd𝑥) = 𝑦)) → (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩))
28 simprr 770 . . . . . . . . . . 11 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → 𝑥 = ⟨𝐴, 𝑦⟩)
29 snidg 4595 . . . . . . . . . . . . 13 (𝐴𝑉𝐴 ∈ {𝐴})
3029adantr 481 . . . . . . . . . . . 12 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → 𝐴 ∈ {𝐴})
31 simprl 768 . . . . . . . . . . . 12 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → 𝑦𝐵)
3230, 31opelxpd 5627 . . . . . . . . . . 11 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → ⟨𝐴, 𝑦⟩ ∈ ({𝐴} × 𝐵))
3328, 32eqeltrd 2839 . . . . . . . . . 10 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → 𝑥 ∈ ({𝐴} × 𝐵))
34 fveq2 6774 . . . . . . . . . . . 12 (𝑥 = ⟨𝐴, 𝑦⟩ → (2nd𝑥) = (2nd ‘⟨𝐴, 𝑦⟩))
35 op2ndg 7844 . . . . . . . . . . . . 13 ((𝐴𝑉𝑦 ∈ V) → (2nd ‘⟨𝐴, 𝑦⟩) = 𝑦)
3635elvd 3439 . . . . . . . . . . . 12 (𝐴𝑉 → (2nd ‘⟨𝐴, 𝑦⟩) = 𝑦)
3734, 36sylan9eqr 2800 . . . . . . . . . . 11 ((𝐴𝑉𝑥 = ⟨𝐴, 𝑦⟩) → (2nd𝑥) = 𝑦)
3837adantrl 713 . . . . . . . . . 10 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → (2nd𝑥) = 𝑦)
3933, 38jca 512 . . . . . . . . 9 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → (𝑥 ∈ ({𝐴} × 𝐵) ∧ (2nd𝑥) = 𝑦))
4027, 39impbida 798 . . . . . . . 8 (𝐴𝑉 → ((𝑥 ∈ ({𝐴} × 𝐵) ∧ (2nd𝑥) = 𝑦) ↔ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)))
4114, 40bitr3id 285 . . . . . . 7 (𝐴𝑉 → ((𝑥 ∈ ({𝐴} × 𝐵) ∧ 𝑥2nd 𝑦) ↔ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)))
427, 41bitrid 282 . . . . . 6 (𝐴𝑉 → (𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦 ↔ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)))
4342mobidv 2549 . . . . 5 (𝐴𝑉 → (∃*𝑥 𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦 ↔ ∃*𝑥(𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)))
445, 43mpbiri 257 . . . 4 (𝐴𝑉 → ∃*𝑥 𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦)
4544alrimiv 1930 . . 3 (𝐴𝑉 → ∀𝑦∃*𝑥 𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦)
46 funcnv2 6502 . . 3 (Fun (2nd ↾ ({𝐴} × 𝐵)) ↔ ∀𝑦∃*𝑥 𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦)
4745, 46sylibr 233 . 2 (𝐴𝑉 → Fun (2nd ↾ ({𝐴} × 𝐵)))
48 dff1o3 6722 . 2 ((2nd ↾ ({𝐴} × 𝐵)):({𝐴} × 𝐵)–1-1-onto𝐵 ↔ ((2nd ↾ ({𝐴} × 𝐵)):({𝐴} × 𝐵)–onto𝐵 ∧ Fun (2nd ↾ ({𝐴} × 𝐵))))
493, 47, 48sylanbrc 583 1 (𝐴𝑉 → (2nd ↾ ({𝐴} × 𝐵)):({𝐴} × 𝐵)–1-1-onto𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  wal 1537   = wceq 1539  wcel 2106  ∃*wmo 2538  wne 2943  Vcvv 3432  c0 4256  {csn 4561  cop 4567   class class class wbr 5074   × cxp 5587  ccnv 5588  cres 5591  Fun wfun 6427   Fn wfn 6428  ontowfo 6431  1-1-ontowf1o 6432  cfv 6433  1st c1st 7829  2nd c2nd 7830
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-1st 7831  df-2nd 7832
This theorem is referenced by:  curry1  7944  xpfi  9085  fsum2dlem  15482  fprod2dlem  15690  gsum2dlem2  19572  ovoliunlem1  24666  gsummpt2d  31309  fv2ndcnv  33752
  Copyright terms: Public domain W3C validator