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

Theorem funelss 7861
Description: If the first component of an element of a function is in the domain of a subset of the function, the element is a member of this subset. (Contributed by AV, 27-Oct-2023.)
Assertion
Ref Expression
funelss ((Fun 𝐴𝐵𝐴𝑋𝐴) → ((1st𝑋) ∈ dom 𝐵𝑋𝐵))

Proof of Theorem funelss
StepHypRef Expression
1 funrel 6435 . . . . . 6 (Fun 𝐴 → Rel 𝐴)
2 1st2nd 7853 . . . . . 6 ((Rel 𝐴𝑋𝐴) → 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩)
31, 2sylan 579 . . . . 5 ((Fun 𝐴𝑋𝐴) → 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩)
4 simpl1l 1222 . . . . . . . . . 10 ((((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) ∧ (1st𝑋) ∈ dom 𝐵) → Fun 𝐴)
5 simpl3 1191 . . . . . . . . . 10 ((((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) ∧ (1st𝑋) ∈ dom 𝐵) → 𝐵𝐴)
6 simpr 484 . . . . . . . . . 10 ((((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) ∧ (1st𝑋) ∈ dom 𝐵) → (1st𝑋) ∈ dom 𝐵)
7 funssfv 6777 . . . . . . . . . 10 ((Fun 𝐴𝐵𝐴 ∧ (1st𝑋) ∈ dom 𝐵) → (𝐴‘(1st𝑋)) = (𝐵‘(1st𝑋)))
84, 5, 6, 7syl3anc 1369 . . . . . . . . 9 ((((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) ∧ (1st𝑋) ∈ dom 𝐵) → (𝐴‘(1st𝑋)) = (𝐵‘(1st𝑋)))
9 eleq1 2826 . . . . . . . . . . . . . . 15 (𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ → (𝑋𝐴 ↔ ⟨(1st𝑋), (2nd𝑋)⟩ ∈ 𝐴))
109adantl 481 . . . . . . . . . . . . . 14 ((Fun 𝐴𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩) → (𝑋𝐴 ↔ ⟨(1st𝑋), (2nd𝑋)⟩ ∈ 𝐴))
11 funopfv 6803 . . . . . . . . . . . . . . 15 (Fun 𝐴 → (⟨(1st𝑋), (2nd𝑋)⟩ ∈ 𝐴 → (𝐴‘(1st𝑋)) = (2nd𝑋)))
1211adantr 480 . . . . . . . . . . . . . 14 ((Fun 𝐴𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩) → (⟨(1st𝑋), (2nd𝑋)⟩ ∈ 𝐴 → (𝐴‘(1st𝑋)) = (2nd𝑋)))
1310, 12sylbid 239 . . . . . . . . . . . . 13 ((Fun 𝐴𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩) → (𝑋𝐴 → (𝐴‘(1st𝑋)) = (2nd𝑋)))
1413impancom 451 . . . . . . . . . . . 12 ((Fun 𝐴𝑋𝐴) → (𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ → (𝐴‘(1st𝑋)) = (2nd𝑋)))
1514imp 406 . . . . . . . . . . 11 (((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩) → (𝐴‘(1st𝑋)) = (2nd𝑋))
16153adant3 1130 . . . . . . . . . 10 (((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) → (𝐴‘(1st𝑋)) = (2nd𝑋))
1716adantr 480 . . . . . . . . 9 ((((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) ∧ (1st𝑋) ∈ dom 𝐵) → (𝐴‘(1st𝑋)) = (2nd𝑋))
188, 17eqtr3d 2780 . . . . . . . 8 ((((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) ∧ (1st𝑋) ∈ dom 𝐵) → (𝐵‘(1st𝑋)) = (2nd𝑋))
19 funss 6437 . . . . . . . . . . . . . 14 (𝐵𝐴 → (Fun 𝐴 → Fun 𝐵))
2019com12 32 . . . . . . . . . . . . 13 (Fun 𝐴 → (𝐵𝐴 → Fun 𝐵))
2120adantr 480 . . . . . . . . . . . 12 ((Fun 𝐴𝑋𝐴) → (𝐵𝐴 → Fun 𝐵))
2221imp 406 . . . . . . . . . . 11 (((Fun 𝐴𝑋𝐴) ∧ 𝐵𝐴) → Fun 𝐵)
2322funfnd 6449 . . . . . . . . . 10 (((Fun 𝐴𝑋𝐴) ∧ 𝐵𝐴) → 𝐵 Fn dom 𝐵)
24233adant2 1129 . . . . . . . . 9 (((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) → 𝐵 Fn dom 𝐵)
25 fnopfvb 6805 . . . . . . . . 9 ((𝐵 Fn dom 𝐵 ∧ (1st𝑋) ∈ dom 𝐵) → ((𝐵‘(1st𝑋)) = (2nd𝑋) ↔ ⟨(1st𝑋), (2nd𝑋)⟩ ∈ 𝐵))
2624, 25sylan 579 . . . . . . . 8 ((((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) ∧ (1st𝑋) ∈ dom 𝐵) → ((𝐵‘(1st𝑋)) = (2nd𝑋) ↔ ⟨(1st𝑋), (2nd𝑋)⟩ ∈ 𝐵))
2718, 26mpbid 231 . . . . . . 7 ((((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) ∧ (1st𝑋) ∈ dom 𝐵) → ⟨(1st𝑋), (2nd𝑋)⟩ ∈ 𝐵)
28 eleq1 2826 . . . . . . . . 9 (𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ → (𝑋𝐵 ↔ ⟨(1st𝑋), (2nd𝑋)⟩ ∈ 𝐵))
29283ad2ant2 1132 . . . . . . . 8 (((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) → (𝑋𝐵 ↔ ⟨(1st𝑋), (2nd𝑋)⟩ ∈ 𝐵))
3029adantr 480 . . . . . . 7 ((((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) ∧ (1st𝑋) ∈ dom 𝐵) → (𝑋𝐵 ↔ ⟨(1st𝑋), (2nd𝑋)⟩ ∈ 𝐵))
3127, 30mpbird 256 . . . . . 6 ((((Fun 𝐴𝑋𝐴) ∧ 𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ ∧ 𝐵𝐴) ∧ (1st𝑋) ∈ dom 𝐵) → 𝑋𝐵)
32313exp1 1350 . . . . 5 ((Fun 𝐴𝑋𝐴) → (𝑋 = ⟨(1st𝑋), (2nd𝑋)⟩ → (𝐵𝐴 → ((1st𝑋) ∈ dom 𝐵𝑋𝐵))))
333, 32mpd 15 . . . 4 ((Fun 𝐴𝑋𝐴) → (𝐵𝐴 → ((1st𝑋) ∈ dom 𝐵𝑋𝐵)))
3433ex 412 . . 3 (Fun 𝐴 → (𝑋𝐴 → (𝐵𝐴 → ((1st𝑋) ∈ dom 𝐵𝑋𝐵))))
3534com23 86 . 2 (Fun 𝐴 → (𝐵𝐴 → (𝑋𝐴 → ((1st𝑋) ∈ dom 𝐵𝑋𝐵))))
36353imp 1109 1 ((Fun 𝐴𝐵𝐴𝑋𝐴) → ((1st𝑋) ∈ dom 𝐵𝑋𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  wss 3883  cop 4564  dom cdm 5580  Rel wrel 5585  Fun wfun 6412   Fn wfn 6413  cfv 6418  1st c1st 7802  2nd c2nd 7803
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-iota 6376  df-fun 6420  df-fn 6421  df-fv 6426  df-1st 7804  df-2nd 7805
This theorem is referenced by:  funeldmdif  7862
  Copyright terms: Public domain W3C validator