Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  1stpreimas Structured version   Visualization version   GIF version

Theorem 1stpreimas 28866
Description: The preimage of a singleton. (Contributed by Thierry Arnoux, 27-Apr-2020.)
Assertion
Ref Expression
1stpreimas ((Rel 𝐴𝑋𝑉) → ((1st𝐴) “ {𝑋}) = ({𝑋} × (𝐴 “ {𝑋})))

Proof of Theorem 1stpreimas
Dummy variables 𝑥 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 1st2ndb 7097 . . . . . . . . 9 (𝑧 ∈ (V × V) ↔ 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
21biimpi 205 . . . . . . . 8 (𝑧 ∈ (V × V) → 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
32ad2antrl 760 . . . . . . 7 (((Rel 𝐴𝑋𝑉) ∧ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))) → 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
4 fvex 6113 . . . . . . . . . . . 12 (1st𝑧) ∈ V
54elsn 4140 . . . . . . . . . . 11 ((1st𝑧) ∈ {𝑋} ↔ (1st𝑧) = 𝑋)
65biimpi 205 . . . . . . . . . 10 ((1st𝑧) ∈ {𝑋} → (1st𝑧) = 𝑋)
76ad2antrl 760 . . . . . . . . 9 ((𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋}))) → (1st𝑧) = 𝑋)
87adantl 481 . . . . . . . 8 (((Rel 𝐴𝑋𝑉) ∧ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))) → (1st𝑧) = 𝑋)
98opeq1d 4346 . . . . . . 7 (((Rel 𝐴𝑋𝑉) ∧ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))) → ⟨(1st𝑧), (2nd𝑧)⟩ = ⟨𝑋, (2nd𝑧)⟩)
103, 9eqtrd 2644 . . . . . 6 (((Rel 𝐴𝑋𝑉) ∧ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))) → 𝑧 = ⟨𝑋, (2nd𝑧)⟩)
11 simplr 788 . . . . . . 7 (((Rel 𝐴𝑋𝑉) ∧ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))) → 𝑋𝑉)
12 simprrr 801 . . . . . . 7 (((Rel 𝐴𝑋𝑉) ∧ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))) → (2nd𝑧) ∈ (𝐴 “ {𝑋}))
13 elimasng 5410 . . . . . . . 8 ((𝑋𝑉 ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})) → ((2nd𝑧) ∈ (𝐴 “ {𝑋}) ↔ ⟨𝑋, (2nd𝑧)⟩ ∈ 𝐴))
1413biimpa 500 . . . . . . 7 (((𝑋𝑉 ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})) ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})) → ⟨𝑋, (2nd𝑧)⟩ ∈ 𝐴)
1511, 12, 12, 14syl21anc 1317 . . . . . 6 (((Rel 𝐴𝑋𝑉) ∧ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))) → ⟨𝑋, (2nd𝑧)⟩ ∈ 𝐴)
1610, 15eqeltrd 2688 . . . . 5 (((Rel 𝐴𝑋𝑉) ∧ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))) → 𝑧𝐴)
17 fvres 6117 . . . . . . 7 (𝑧𝐴 → ((1st𝐴)‘𝑧) = (1st𝑧))
1816, 17syl 17 . . . . . 6 (((Rel 𝐴𝑋𝑉) ∧ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))) → ((1st𝐴)‘𝑧) = (1st𝑧))
1918, 8eqtrd 2644 . . . . 5 (((Rel 𝐴𝑋𝑉) ∧ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))) → ((1st𝐴)‘𝑧) = 𝑋)
2016, 19jca 553 . . . 4 (((Rel 𝐴𝑋𝑉) ∧ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))) → (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋))
21 df-rel 5045 . . . . . . . . 9 (Rel 𝐴𝐴 ⊆ (V × V))
2221biimpi 205 . . . . . . . 8 (Rel 𝐴𝐴 ⊆ (V × V))
2322adantr 480 . . . . . . 7 ((Rel 𝐴𝑋𝑉) → 𝐴 ⊆ (V × V))
2423sselda 3568 . . . . . 6 (((Rel 𝐴𝑋𝑉) ∧ 𝑧𝐴) → 𝑧 ∈ (V × V))
2524adantrr 749 . . . . 5 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → 𝑧 ∈ (V × V))
2617ad2antrl 760 . . . . . . . 8 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → ((1st𝐴)‘𝑧) = (1st𝑧))
27 simprr 792 . . . . . . . 8 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → ((1st𝐴)‘𝑧) = 𝑋)
2826, 27eqtr3d 2646 . . . . . . 7 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → (1st𝑧) = 𝑋)
2928, 5sylibr 223 . . . . . 6 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → (1st𝑧) ∈ {𝑋})
3028, 29eqeltrrd 2689 . . . . . . . . 9 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → 𝑋 ∈ {𝑋})
31 simpr 476 . . . . . . . . . . 11 ((((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) ∧ 𝑥 = 𝑋) → 𝑥 = 𝑋)
3231opeq1d 4346 . . . . . . . . . 10 ((((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) ∧ 𝑥 = 𝑋) → ⟨𝑥, (2nd𝑧)⟩ = ⟨𝑋, (2nd𝑧)⟩)
3332eleq1d 2672 . . . . . . . . 9 ((((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) ∧ 𝑥 = 𝑋) → (⟨𝑥, (2nd𝑧)⟩ ∈ 𝐴 ↔ ⟨𝑋, (2nd𝑧)⟩ ∈ 𝐴))
34 1st2nd 7105 . . . . . . . . . . . 12 ((Rel 𝐴𝑧𝐴) → 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
3534ad2ant2r 779 . . . . . . . . . . 11 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
3628opeq1d 4346 . . . . . . . . . . 11 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → ⟨(1st𝑧), (2nd𝑧)⟩ = ⟨𝑋, (2nd𝑧)⟩)
3735, 36eqtrd 2644 . . . . . . . . . 10 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → 𝑧 = ⟨𝑋, (2nd𝑧)⟩)
38 simprl 790 . . . . . . . . . 10 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → 𝑧𝐴)
3937, 38eqeltrrd 2689 . . . . . . . . 9 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → ⟨𝑋, (2nd𝑧)⟩ ∈ 𝐴)
4030, 33, 39rspcedvd 3289 . . . . . . . 8 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → ∃𝑥 ∈ {𝑋}⟨𝑥, (2nd𝑧)⟩ ∈ 𝐴)
41 df-rex 2902 . . . . . . . 8 (∃𝑥 ∈ {𝑋}⟨𝑥, (2nd𝑧)⟩ ∈ 𝐴 ↔ ∃𝑥(𝑥 ∈ {𝑋} ∧ ⟨𝑥, (2nd𝑧)⟩ ∈ 𝐴))
4240, 41sylib 207 . . . . . . 7 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → ∃𝑥(𝑥 ∈ {𝑋} ∧ ⟨𝑥, (2nd𝑧)⟩ ∈ 𝐴))
43 fvex 6113 . . . . . . . 8 (2nd𝑧) ∈ V
4443elima3 5392 . . . . . . 7 ((2nd𝑧) ∈ (𝐴 “ {𝑋}) ↔ ∃𝑥(𝑥 ∈ {𝑋} ∧ ⟨𝑥, (2nd𝑧)⟩ ∈ 𝐴))
4542, 44sylibr 223 . . . . . 6 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → (2nd𝑧) ∈ (𝐴 “ {𝑋}))
4629, 45jca 553 . . . . 5 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))
4725, 46jca 553 . . . 4 (((Rel 𝐴𝑋𝑉) ∧ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)) → (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋}))))
4820, 47impbida 873 . . 3 ((Rel 𝐴𝑋𝑉) → ((𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋}))) ↔ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)))
49 elxp7 7092 . . . 4 (𝑧 ∈ ({𝑋} × (𝐴 “ {𝑋})) ↔ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋}))))
5049a1i 11 . . 3 ((Rel 𝐴𝑋𝑉) → (𝑧 ∈ ({𝑋} × (𝐴 “ {𝑋})) ↔ (𝑧 ∈ (V × V) ∧ ((1st𝑧) ∈ {𝑋} ∧ (2nd𝑧) ∈ (𝐴 “ {𝑋})))))
51 fo1st 7079 . . . . . . 7 1st :V–onto→V
52 fofn 6030 . . . . . . 7 (1st :V–onto→V → 1st Fn V)
5351, 52ax-mp 5 . . . . . 6 1st Fn V
54 ssv 3588 . . . . . 6 𝐴 ⊆ V
55 fnssres 5918 . . . . . 6 ((1st Fn V ∧ 𝐴 ⊆ V) → (1st𝐴) Fn 𝐴)
5653, 54, 55mp2an 704 . . . . 5 (1st𝐴) Fn 𝐴
57 fniniseg 6246 . . . . 5 ((1st𝐴) Fn 𝐴 → (𝑧 ∈ ((1st𝐴) “ {𝑋}) ↔ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)))
5856, 57ax-mp 5 . . . 4 (𝑧 ∈ ((1st𝐴) “ {𝑋}) ↔ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋))
5958a1i 11 . . 3 ((Rel 𝐴𝑋𝑉) → (𝑧 ∈ ((1st𝐴) “ {𝑋}) ↔ (𝑧𝐴 ∧ ((1st𝐴)‘𝑧) = 𝑋)))
6048, 50, 593bitr4rd 300 . 2 ((Rel 𝐴𝑋𝑉) → (𝑧 ∈ ((1st𝐴) “ {𝑋}) ↔ 𝑧 ∈ ({𝑋} × (𝐴 “ {𝑋}))))
6160eqrdv 2608 1 ((Rel 𝐴𝑋𝑉) → ((1st𝐴) “ {𝑋}) = ({𝑋} × (𝐴 “ {𝑋})))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 195  wa 383   = wceq 1475  wex 1695  wcel 1977  wrex 2897  Vcvv 3173  wss 3540  {csn 4125  cop 4131   × cxp 5036  ccnv 5037  cres 5040  cima 5041  Rel wrel 5043   Fn wfn 5799  ontowfo 5802  cfv 5804  1st c1st 7057  2nd c2nd 7058
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-rab 2905  df-v 3175  df-sbc 3403  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-uni 4373  df-br 4584  df-opab 4644  df-mpt 4645  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-fo 5810  df-fv 5812  df-1st 7059  df-2nd 7060
This theorem is referenced by:  gsummpt2d  29112
  Copyright terms: Public domain W3C validator