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

Theorem 1stconst 7940
Description: The mapping of a restriction of the 1st function to a constant function. (Contributed by NM, 14-Dec-2008.) (Proof shortened by Peter Mazsa, 2-Oct-2022.)
Assertion
Ref Expression
1stconst (𝐵𝑉 → (1st ↾ (𝐴 × {𝐵})):(𝐴 × {𝐵})–1-1-onto𝐴)

Proof of Theorem 1stconst
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 snnzg 4710 . . 3 (𝐵𝑉 → {𝐵} ≠ ∅)
2 fo1stres 7857 . . 3 ({𝐵} ≠ ∅ → (1st ↾ (𝐴 × {𝐵})):(𝐴 × {𝐵})–onto𝐴)
31, 2syl 17 . 2 (𝐵𝑉 → (1st ↾ (𝐴 × {𝐵})):(𝐴 × {𝐵})–onto𝐴)
4 moeq 3642 . . . . . 6 ∃*𝑥 𝑥 = ⟨𝑦, 𝐵
54moani 2553 . . . . 5 ∃*𝑥(𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)
6 vex 3436 . . . . . . . 8 𝑦 ∈ V
76brresi 5900 . . . . . . 7 (𝑥(1st ↾ (𝐴 × {𝐵}))𝑦 ↔ (𝑥 ∈ (𝐴 × {𝐵}) ∧ 𝑥1st 𝑦))
8 fo1st 7851 . . . . . . . . . . 11 1st :V–onto→V
9 fofn 6690 . . . . . . . . . . 11 (1st :V–onto→V → 1st Fn V)
108, 9ax-mp 5 . . . . . . . . . 10 1st Fn V
11 vex 3436 . . . . . . . . . 10 𝑥 ∈ V
12 fnbrfvb 6822 . . . . . . . . . 10 ((1st Fn V ∧ 𝑥 ∈ V) → ((1st𝑥) = 𝑦𝑥1st 𝑦))
1310, 11, 12mp2an 689 . . . . . . . . 9 ((1st𝑥) = 𝑦𝑥1st 𝑦)
1413anbi2i 623 . . . . . . . 8 ((𝑥 ∈ (𝐴 × {𝐵}) ∧ (1st𝑥) = 𝑦) ↔ (𝑥 ∈ (𝐴 × {𝐵}) ∧ 𝑥1st 𝑦))
15 elxp7 7866 . . . . . . . . . . 11 (𝑥 ∈ (𝐴 × {𝐵}) ↔ (𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ 𝐴 ∧ (2nd𝑥) ∈ {𝐵})))
16 eleq1 2826 . . . . . . . . . . . . . . 15 ((1st𝑥) = 𝑦 → ((1st𝑥) ∈ 𝐴𝑦𝐴))
1716biimpac 479 . . . . . . . . . . . . . 14 (((1st𝑥) ∈ 𝐴 ∧ (1st𝑥) = 𝑦) → 𝑦𝐴)
1817adantlr 712 . . . . . . . . . . . . 13 ((((1st𝑥) ∈ 𝐴 ∧ (2nd𝑥) ∈ {𝐵}) ∧ (1st𝑥) = 𝑦) → 𝑦𝐴)
1918adantll 711 . . . . . . . . . . . 12 (((𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ 𝐴 ∧ (2nd𝑥) ∈ {𝐵})) ∧ (1st𝑥) = 𝑦) → 𝑦𝐴)
20 elsni 4578 . . . . . . . . . . . . . 14 ((2nd𝑥) ∈ {𝐵} → (2nd𝑥) = 𝐵)
21 eqopi 7867 . . . . . . . . . . . . . . 15 ((𝑥 ∈ (V × V) ∧ ((1st𝑥) = 𝑦 ∧ (2nd𝑥) = 𝐵)) → 𝑥 = ⟨𝑦, 𝐵⟩)
2221anass1rs 652 . . . . . . . . . . . . . 14 (((𝑥 ∈ (V × V) ∧ (2nd𝑥) = 𝐵) ∧ (1st𝑥) = 𝑦) → 𝑥 = ⟨𝑦, 𝐵⟩)
2320, 22sylanl2 678 . . . . . . . . . . . . 13 (((𝑥 ∈ (V × V) ∧ (2nd𝑥) ∈ {𝐵}) ∧ (1st𝑥) = 𝑦) → 𝑥 = ⟨𝑦, 𝐵⟩)
2423adantlrl 717 . . . . . . . . . . . 12 (((𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ 𝐴 ∧ (2nd𝑥) ∈ {𝐵})) ∧ (1st𝑥) = 𝑦) → 𝑥 = ⟨𝑦, 𝐵⟩)
2519, 24jca 512 . . . . . . . . . . 11 (((𝑥 ∈ (V × V) ∧ ((1st𝑥) ∈ 𝐴 ∧ (2nd𝑥) ∈ {𝐵})) ∧ (1st𝑥) = 𝑦) → (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩))
2615, 25sylanb 581 . . . . . . . . . 10 ((𝑥 ∈ (𝐴 × {𝐵}) ∧ (1st𝑥) = 𝑦) → (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩))
2726adantl 482 . . . . . . . . 9 ((𝐵𝑉 ∧ (𝑥 ∈ (𝐴 × {𝐵}) ∧ (1st𝑥) = 𝑦)) → (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩))
28 simprr 770 . . . . . . . . . . 11 ((𝐵𝑉 ∧ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)) → 𝑥 = ⟨𝑦, 𝐵⟩)
29 simprl 768 . . . . . . . . . . . 12 ((𝐵𝑉 ∧ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)) → 𝑦𝐴)
30 snidg 4595 . . . . . . . . . . . . 13 (𝐵𝑉𝐵 ∈ {𝐵})
3130adantr 481 . . . . . . . . . . . 12 ((𝐵𝑉 ∧ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)) → 𝐵 ∈ {𝐵})
3229, 31opelxpd 5627 . . . . . . . . . . 11 ((𝐵𝑉 ∧ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)) → ⟨𝑦, 𝐵⟩ ∈ (𝐴 × {𝐵}))
3328, 32eqeltrd 2839 . . . . . . . . . 10 ((𝐵𝑉 ∧ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)) → 𝑥 ∈ (𝐴 × {𝐵}))
3428fveq2d 6778 . . . . . . . . . . 11 ((𝐵𝑉 ∧ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)) → (1st𝑥) = (1st ‘⟨𝑦, 𝐵⟩))
35 simpl 483 . . . . . . . . . . . 12 ((𝐵𝑉 ∧ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)) → 𝐵𝑉)
36 op1stg 7843 . . . . . . . . . . . 12 ((𝑦𝐴𝐵𝑉) → (1st ‘⟨𝑦, 𝐵⟩) = 𝑦)
3729, 35, 36syl2anc 584 . . . . . . . . . . 11 ((𝐵𝑉 ∧ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)) → (1st ‘⟨𝑦, 𝐵⟩) = 𝑦)
3834, 37eqtrd 2778 . . . . . . . . . 10 ((𝐵𝑉 ∧ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)) → (1st𝑥) = 𝑦)
3933, 38jca 512 . . . . . . . . 9 ((𝐵𝑉 ∧ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)) → (𝑥 ∈ (𝐴 × {𝐵}) ∧ (1st𝑥) = 𝑦))
4027, 39impbida 798 . . . . . . . 8 (𝐵𝑉 → ((𝑥 ∈ (𝐴 × {𝐵}) ∧ (1st𝑥) = 𝑦) ↔ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)))
4114, 40bitr3id 285 . . . . . . 7 (𝐵𝑉 → ((𝑥 ∈ (𝐴 × {𝐵}) ∧ 𝑥1st 𝑦) ↔ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)))
427, 41bitrid 282 . . . . . 6 (𝐵𝑉 → (𝑥(1st ↾ (𝐴 × {𝐵}))𝑦 ↔ (𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)))
4342mobidv 2549 . . . . 5 (𝐵𝑉 → (∃*𝑥 𝑥(1st ↾ (𝐴 × {𝐵}))𝑦 ↔ ∃*𝑥(𝑦𝐴𝑥 = ⟨𝑦, 𝐵⟩)))
445, 43mpbiri 257 . . . 4 (𝐵𝑉 → ∃*𝑥 𝑥(1st ↾ (𝐴 × {𝐵}))𝑦)
4544alrimiv 1930 . . 3 (𝐵𝑉 → ∀𝑦∃*𝑥 𝑥(1st ↾ (𝐴 × {𝐵}))𝑦)
46 funcnv2 6502 . . 3 (Fun (1st ↾ (𝐴 × {𝐵})) ↔ ∀𝑦∃*𝑥 𝑥(1st ↾ (𝐴 × {𝐵}))𝑦)
4745, 46sylibr 233 . 2 (𝐵𝑉 → Fun (1st ↾ (𝐴 × {𝐵})))
48 dff1o3 6722 . 2 ((1st ↾ (𝐴 × {𝐵})):(𝐴 × {𝐵})–1-1-onto𝐴 ↔ ((1st ↾ (𝐴 × {𝐵})):(𝐴 × {𝐵})–onto𝐴 ∧ Fun (1st ↾ (𝐴 × {𝐵}))))
493, 47, 48sylanbrc 583 1 (𝐵𝑉 → (1st ↾ (𝐴 × {𝐵})):(𝐴 × {𝐵})–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:  curry2  7947  domss2  8923  fv1stcnv  33751
  Copyright terms: Public domain W3C validator