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

Theorem 2ndconst 7779
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 4670 . . 3 (𝐴𝑉 → {𝐴} ≠ ∅)
2 fo2ndres 7698 . . 3 ({𝐴} ≠ ∅ → (2nd ↾ ({𝐴} × 𝐵)):({𝐴} × 𝐵)–onto𝐵)
31, 2syl 17 . 2 (𝐴𝑉 → (2nd ↾ ({𝐴} × 𝐵)):({𝐴} × 𝐵)–onto𝐵)
4 moeq 3646 . . . . . 6 ∃*𝑥 𝑥 = ⟨𝐴, 𝑦
54moani 2612 . . . . 5 ∃*𝑥(𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)
6 vex 3444 . . . . . . . 8 𝑦 ∈ V
76brresi 5827 . . . . . . 7 (𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦 ↔ (𝑥 ∈ ({𝐴} × 𝐵) ∧ 𝑥2nd 𝑦))
8 fo2nd 7692 . . . . . . . . . . 11 2nd :V–onto→V
9 fofn 6567 . . . . . . . . . . 11 (2nd :V–onto→V → 2nd Fn V)
108, 9ax-mp 5 . . . . . . . . . 10 2nd Fn V
11 vex 3444 . . . . . . . . . 10 𝑥 ∈ V
12 fnbrfvb 6693 . . . . . . . . . 10 ((2nd Fn V ∧ 𝑥 ∈ V) → ((2nd𝑥) = 𝑦𝑥2nd 𝑦))
1310, 11, 12mp2an 691 . . . . . . . . 9 ((2nd𝑥) = 𝑦𝑥2nd 𝑦)
1413anbi2i 625 . . . . . . . 8 ((𝑥 ∈ ({𝐴} × 𝐵) ∧ (2nd𝑥) = 𝑦) ↔ (𝑥 ∈ ({𝐴} × 𝐵) ∧ 𝑥2nd 𝑦))
15 elxp7 7706 . . . . . . . . . . 11 (𝑥 ∈ ({𝐴} × 𝐵) ↔ (𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ {𝐴} ∧ (2nd𝑥) ∈ 𝐵)))
16 eleq1 2877 . . . . . . . . . . . . . . 15 ((2nd𝑥) = 𝑦 → ((2nd𝑥) ∈ 𝐵𝑦𝐵))
1716biimpac 482 . . . . . . . . . . . . . 14 (((2nd𝑥) ∈ 𝐵 ∧ (2nd𝑥) = 𝑦) → 𝑦𝐵)
1817adantll 713 . . . . . . . . . . . . 13 ((((1st𝑥) ∈ {𝐴} ∧ (2nd𝑥) ∈ 𝐵) ∧ (2nd𝑥) = 𝑦) → 𝑦𝐵)
1918adantll 713 . . . . . . . . . . . 12 (((𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ {𝐴} ∧ (2nd𝑥) ∈ 𝐵)) ∧ (2nd𝑥) = 𝑦) → 𝑦𝐵)
20 elsni 4542 . . . . . . . . . . . . . 14 ((1st𝑥) ∈ {𝐴} → (1st𝑥) = 𝐴)
21 eqopi 7707 . . . . . . . . . . . . . . 15 ((𝑥 ∈ (V × V) ∧ ((1st𝑥) = 𝐴 ∧ (2nd𝑥) = 𝑦)) → 𝑥 = ⟨𝐴, 𝑦⟩)
2221anassrs 471 . . . . . . . . . . . . . 14 (((𝑥 ∈ (V × V) ∧ (1st𝑥) = 𝐴) ∧ (2nd𝑥) = 𝑦) → 𝑥 = ⟨𝐴, 𝑦⟩)
2320, 22sylanl2 680 . . . . . . . . . . . . 13 (((𝑥 ∈ (V × V) ∧ (1st𝑥) ∈ {𝐴}) ∧ (2nd𝑥) = 𝑦) → 𝑥 = ⟨𝐴, 𝑦⟩)
2423adantlrr 720 . . . . . . . . . . . 12 (((𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ {𝐴} ∧ (2nd𝑥) ∈ 𝐵)) ∧ (2nd𝑥) = 𝑦) → 𝑥 = ⟨𝐴, 𝑦⟩)
2519, 24jca 515 . . . . . . . . . . 11 (((𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ {𝐴} ∧ (2nd𝑥) ∈ 𝐵)) ∧ (2nd𝑥) = 𝑦) → (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩))
2615, 25sylanb 584 . . . . . . . . . 10 ((𝑥 ∈ ({𝐴} × 𝐵) ∧ (2nd𝑥) = 𝑦) → (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩))
2726adantl 485 . . . . . . . . 9 ((𝐴𝑉 ∧ (𝑥 ∈ ({𝐴} × 𝐵) ∧ (2nd𝑥) = 𝑦)) → (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩))
28 simprr 772 . . . . . . . . . . 11 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → 𝑥 = ⟨𝐴, 𝑦⟩)
29 snidg 4559 . . . . . . . . . . . . 13 (𝐴𝑉𝐴 ∈ {𝐴})
3029adantr 484 . . . . . . . . . . . 12 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → 𝐴 ∈ {𝐴})
31 simprl 770 . . . . . . . . . . . 12 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → 𝑦𝐵)
3230, 31opelxpd 5557 . . . . . . . . . . 11 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → ⟨𝐴, 𝑦⟩ ∈ ({𝐴} × 𝐵))
3328, 32eqeltrd 2890 . . . . . . . . . 10 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → 𝑥 ∈ ({𝐴} × 𝐵))
34 fveq2 6645 . . . . . . . . . . . 12 (𝑥 = ⟨𝐴, 𝑦⟩ → (2nd𝑥) = (2nd ‘⟨𝐴, 𝑦⟩))
35 op2ndg 7684 . . . . . . . . . . . . 13 ((𝐴𝑉𝑦 ∈ V) → (2nd ‘⟨𝐴, 𝑦⟩) = 𝑦)
3635elvd 3447 . . . . . . . . . . . 12 (𝐴𝑉 → (2nd ‘⟨𝐴, 𝑦⟩) = 𝑦)
3734, 36sylan9eqr 2855 . . . . . . . . . . 11 ((𝐴𝑉𝑥 = ⟨𝐴, 𝑦⟩) → (2nd𝑥) = 𝑦)
3837adantrl 715 . . . . . . . . . 10 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → (2nd𝑥) = 𝑦)
3933, 38jca 515 . . . . . . . . 9 ((𝐴𝑉 ∧ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)) → (𝑥 ∈ ({𝐴} × 𝐵) ∧ (2nd𝑥) = 𝑦))
4027, 39impbida 800 . . . . . . . 8 (𝐴𝑉 → ((𝑥 ∈ ({𝐴} × 𝐵) ∧ (2nd𝑥) = 𝑦) ↔ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)))
4114, 40bitr3id 288 . . . . . . 7 (𝐴𝑉 → ((𝑥 ∈ ({𝐴} × 𝐵) ∧ 𝑥2nd 𝑦) ↔ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)))
427, 41syl5bb 286 . . . . . 6 (𝐴𝑉 → (𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦 ↔ (𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)))
4342mobidv 2608 . . . . 5 (𝐴𝑉 → (∃*𝑥 𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦 ↔ ∃*𝑥(𝑦𝐵𝑥 = ⟨𝐴, 𝑦⟩)))
445, 43mpbiri 261 . . . 4 (𝐴𝑉 → ∃*𝑥 𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦)
4544alrimiv 1928 . . 3 (𝐴𝑉 → ∀𝑦∃*𝑥 𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦)
46 funcnv2 6392 . . 3 (Fun (2nd ↾ ({𝐴} × 𝐵)) ↔ ∀𝑦∃*𝑥 𝑥(2nd ↾ ({𝐴} × 𝐵))𝑦)
4745, 46sylibr 237 . 2 (𝐴𝑉 → Fun (2nd ↾ ({𝐴} × 𝐵)))
48 dff1o3 6596 . 2 ((2nd ↾ ({𝐴} × 𝐵)):({𝐴} × 𝐵)–1-1-onto𝐵 ↔ ((2nd ↾ ({𝐴} × 𝐵)):({𝐴} × 𝐵)–onto𝐵 ∧ Fun (2nd ↾ ({𝐴} × 𝐵))))
493, 47, 48sylanbrc 586 1 (𝐴𝑉 → (2nd ↾ ({𝐴} × 𝐵)):({𝐴} × 𝐵)–1-1-onto𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  wal 1536   = wceq 1538  wcel 2111  ∃*wmo 2596  wne 2987  Vcvv 3441  c0 4243  {csn 4525  cop 4531   class class class wbr 5030   × cxp 5517  ccnv 5518  cres 5521  Fun wfun 6318   Fn wfn 6319  ontowfo 6322  1-1-ontowf1o 6323  cfv 6324  1st c1st 7669  2nd c2nd 7670
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-id 5425  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-1st 7671  df-2nd 7672
This theorem is referenced by:  curry1  7782  xpfi  8773  fsum2dlem  15117  fprod2dlem  15326  gsum2dlem2  19084  ovoliunlem1  24106  gsummpt2d  30734  fv2ndcnv  33134
  Copyright terms: Public domain W3C validator