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

Theorem 1stconst 8148
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-1onto𝐴)

Proof of Theorem 1stconst
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 snnzg 4736 . . 3 (𝐵 ∈ 𝑉 → {𝐵} ≠ ∅)
2 fo1stres 8061 . . 3 ({𝐵} ≠ ∅ → (1st ↾ (𝐴 × {𝐵})):(𝐴 × {𝐵})⟶onto𝐴)
31, 2syl 18 . 2 (𝐵 ∈ 𝑉 → (1st ↾ (𝐴 × {𝐵})):(𝐴 × {𝐵})⟶onto𝐴)
4 moeq 3667 . . . . . 6 ∃*𝑥 𝑥 = ⟨𝑦, 𝐵⟩
54moani 2584 . . . . 5 ∃*𝑥(𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)
6 vex 3457 . . . . . . . 8 𝑦 ∈ V
76brresi 5994 . . . . . . 7 (𝑥(1st ↾ (𝐴 × {𝐵}))𝑦 ↔ (𝑥 ∈ (𝐴 × {𝐵}) ∧ 𝑥1st 𝑦))
8 fo1st 8055 . . . . . . . . . . 11 1st :V⟶ontoV
9 fofn 6828 . . . . . . . . . . 11 (1st :V⟶ontoV → 1st Fn V)
108, 9ax-mp 5 . . . . . . . . . 10 1st Fn V
11 vex 3457 . . . . . . . . . 10 𝑥 ∈ V
12 fnbrfvb 6966 . . . . . . . . . 10 ((1st Fn V ∧ 𝑥 ∈ V) → ((1st ‘𝑥) = 𝑦 ↔ 𝑥1st 𝑦))
1310, 11, 12mp2an 705 . . . . . . . . 9 ((1st ‘𝑥) = 𝑦 ↔ 𝑥1st 𝑦)
1413anbi2i 635 . . . . . . . 8 ((𝑥 ∈ (𝐴 × {𝐵}) ∧ (1st ‘𝑥) = 𝑦) ↔ (𝑥 ∈ (𝐴 × {𝐵}) ∧ 𝑥1st 𝑦))
15 elxp7 8070 . . . . . . . . . . 11 (𝑥 ∈ (𝐴 × {𝐵}) ↔ (𝑥 ∈ (V × V) ∧ ((1st ‘𝑥) ∈ 𝐴 ∧ (2nd ‘𝑥) ∈ {𝐵})))
16 eleq1 2855 . . . . . . . . . . . . . . 15 ((1st ‘𝑥) = 𝑦 → ((1st ‘𝑥) ∈ 𝐴 ↔ 𝑦 ∈ 𝐴))
1716biimpac 484 . . . . . . . . . . . . . 14 (((1st ‘𝑥) ∈ 𝐴 ∧ (1st ‘𝑥) = 𝑦) → 𝑦 ∈ 𝐴)
1817adantlr 728 . . . . . . . . . . . . 13 ((((1st ‘𝑥) ∈ 𝐴 ∧ (2nd ‘𝑥) ∈ {𝐵}) ∧ (1st ‘𝑥) = 𝑦) → 𝑦 ∈ 𝐴)
1918adantll 727 . . . . . . . . . . . 12 (((𝑥 ∈ (V × V) ∧ ((1st ‘𝑥) ∈ 𝐴 ∧ (2nd ‘𝑥) ∈ {𝐵})) ∧ (1st ‘𝑥) = 𝑦) → 𝑦 ∈ 𝐴)
20 elsni 4600 . . . . . . . . . . . . . 14 ((2nd ‘𝑥) ∈ {𝐵} → (2nd ‘𝑥) = 𝐵)
21 eqopi 8071 . . . . . . . . . . . . . . 15 ((𝑥 ∈ (V × V) ∧ ((1st ‘𝑥) = 𝑦 ∧ (2nd ‘𝑥) = 𝐵)) → 𝑥 = ⟨𝑦, 𝐵⟩)
2221anass1rs 668 . . . . . . . . . . . . . 14 (((𝑥 ∈ (V × V) ∧ (2nd ‘𝑥) = 𝐵) ∧ (1st ‘𝑥) = 𝑦) → 𝑥 = ⟨𝑦, 𝐵⟩)
2320, 22sylanl2 694 . . . . . . . . . . . . 13 (((𝑥 ∈ (V × V) ∧ (2nd ‘𝑥) ∈ {𝐵}) ∧ (1st ‘𝑥) = 𝑦) → 𝑥 = ⟨𝑦, 𝐵⟩)
2423adantlrl 733 . . . . . . . . . . . 12 (((𝑥 ∈ (V × V) ∧ ((1st ‘𝑥) ∈ 𝐴 ∧ (2nd ‘𝑥) ∈ {𝐵})) ∧ (1st ‘𝑥) = 𝑦) → 𝑥 = ⟨𝑦, 𝐵⟩)
2519, 24jca 521 . . . . . . . . . . 11 (((𝑥 ∈ (V × V) ∧ ((1st ‘𝑥) ∈ 𝐴 ∧ (2nd ‘𝑥) ∈ {𝐵})) ∧ (1st ‘𝑥) = 𝑦) → (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩))
2615, 25sylanb 593 . . . . . . . . . 10 ((𝑥 ∈ (𝐴 × {𝐵}) ∧ (1st ‘𝑥) = 𝑦) → (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩))
2726adantl 487 . . . . . . . . 9 ((𝐵 ∈ 𝑉 ∧ (𝑥 ∈ (𝐴 × {𝐵}) ∧ (1st ‘𝑥) = 𝑦)) → (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩))
28 simprr 785 . . . . . . . . . . 11 ((𝐵 ∈ 𝑉 ∧ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)) → 𝑥 = ⟨𝑦, 𝐵⟩)
29 simprl 783 . . . . . . . . . . . 12 ((𝐵 ∈ 𝑉 ∧ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)) → 𝑦 ∈ 𝐴)
30 snidg 4621 . . . . . . . . . . . . 13 (𝐵 ∈ 𝑉 → 𝐵 ∈ {𝐵})
3130adantr 486 . . . . . . . . . . . 12 ((𝐵 ∈ 𝑉 ∧ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)) → 𝐵 ∈ {𝐵})
3229, 31opelxpd 5696 . . . . . . . . . . 11 ((𝐵 ∈ 𝑉 ∧ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)) → ⟨𝑦, 𝐵⟩ ∈ (𝐴 × {𝐵}))
3328, 32eqeltrd 2867 . . . . . . . . . 10 ((𝐵 ∈ 𝑉 ∧ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)) → 𝑥 ∈ (𝐴 × {𝐵}))
3428fveq2d 6920 . . . . . . . . . . 11 ((𝐵 ∈ 𝑉 ∧ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)) → (1st ‘𝑥) = (1st ‘⟨𝑦, 𝐵⟩))
35 simpl 488 . . . . . . . . . . . 12 ((𝐵 ∈ 𝑉 ∧ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)) → 𝐵 ∈ 𝑉)
36 op1stg 8047 . . . . . . . . . . . 12 ((𝑦 ∈ 𝐴 ∧ 𝐵 ∈ 𝑉) → (1st ‘⟨𝑦, 𝐵⟩) = 𝑦)
3729, 35, 36syl2anc 596 . . . . . . . . . . 11 ((𝐵 ∈ 𝑉 ∧ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)) → (1st ‘⟨𝑦, 𝐵⟩) = 𝑦)
3834, 37eqtrd 2801 . . . . . . . . . 10 ((𝐵 ∈ 𝑉 ∧ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)) → (1st ‘𝑥) = 𝑦)
3933, 38jca 521 . . . . . . . . 9 ((𝐵 ∈ 𝑉 ∧ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)) → (𝑥 ∈ (𝐴 × {𝐵}) ∧ (1st ‘𝑥) = 𝑦))
4027, 39impbida 813 . . . . . . . 8 (𝐵 ∈ 𝑉 → ((𝑥 ∈ (𝐴 × {𝐵}) ∧ (1st ‘𝑥) = 𝑦) ↔ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)))
4114, 40bitr3id 288 . . . . . . 7 (𝐵 ∈ 𝑉 → ((𝑥 ∈ (𝐴 × {𝐵}) ∧ 𝑥1st 𝑦) ↔ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)))
427, 41bitrid 286 . . . . . 6 (𝐵 ∈ 𝑉 → (𝑥(1st ↾ (𝐴 × {𝐵}))𝑦 ↔ (𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)))
4342mobidv 2580 . . . . 5 (𝐵 ∈ 𝑉 → (∃*𝑥 𝑥(1st ↾ (𝐴 × {𝐵}))𝑦 ↔ ∃*𝑥(𝑦 ∈ 𝐴 ∧ 𝑥 = ⟨𝑦, 𝐵⟩)))
445, 43mpbiri 261 . . . 4 (𝐵 ∈ 𝑉 → ∃*𝑥 𝑥(1st ↾ (𝐴 × {𝐵}))𝑦)
4544alrimiv 1964 . . 3 (𝐵 ∈ 𝑉 → ∀𝑦∃*𝑥 𝑥(1st ↾ (𝐴 × {𝐵}))𝑦)
46 funcnv2 6638 . . 3 (Fun ◡(1st ↾ (𝐴 × {𝐵})) ↔ ∀𝑦∃*𝑥 𝑥(1st ↾ (𝐴 × {𝐵}))𝑦)
4745, 46sylibr 237 . 2 (𝐵 ∈ 𝑉 → Fun ◡(1st ↾ (𝐴 × {𝐵})))
48 dff1o3 6861 . 2 ((1st ↾ (𝐴 × {𝐵})):(𝐴 × {𝐵})⟶1-1onto𝐴 ↔ ((1st ↾ (𝐴 × {𝐵})):(𝐴 × {𝐵})⟶onto𝐴 ∧ Fun ◡(1st ↾ (𝐴 × {𝐵}))))
493, 47, 48sylanbrc 595 1 (𝐵 ∈ 𝑉 → (1st ↾ (𝐴 × {𝐵})):(𝐴 × {𝐵})⟶1-1onto𝐴)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1570   = wceq 1572   ∈ wcel 2150  ∃*wmo 2568   ≠ wne 2962  Vcvv 3453  ∅c0 4280  {csn 4587  ⟨cop 4839   class class class wbr 5107   × cxp 5655  ◡ccnv 5656   ↾ cres 5659  Fun wfun 6560   Fn wfn 6561  ⟶ontowfo 6564  ⟶1-1ontowf1o 6565  ‘cfv 6566  1st c1st 8033  2nd c2nd 8034
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-sep 5254  ax-nul 5265  ax-pr 5397  ax-un 7783
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-ral 3084  df-rex 3094  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-id 5552  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-1st 8035  df-2nd 8036
This theorem is used by:  curry2  8155  domss2  9193  fv1stcnv  36757
  Copyright terms: Public domain W3C validator