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

Theorem funeldmdif 7889
Description: Two ways of expressing membership in the difference of domains of two nested functions. (Contributed by AV, 27-Oct-2023.)
Assertion
Ref Expression
funeldmdif ((Fun 𝐴𝐵𝐴) → (𝐶 ∈ (dom 𝐴 ∖ dom 𝐵) ↔ ∃𝑥 ∈ (𝐴𝐵)(1st𝑥) = 𝐶))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐶

Proof of Theorem funeldmdif
StepHypRef Expression
1 funrel 6451 . . 3 (Fun 𝐴 → Rel 𝐴)
2 releldmdifi 7886 . . 3 ((Rel 𝐴𝐵𝐴) → (𝐶 ∈ (dom 𝐴 ∖ dom 𝐵) → ∃𝑥 ∈ (𝐴𝐵)(1st𝑥) = 𝐶))
31, 2sylan 580 . 2 ((Fun 𝐴𝐵𝐴) → (𝐶 ∈ (dom 𝐴 ∖ dom 𝐵) → ∃𝑥 ∈ (𝐴𝐵)(1st𝑥) = 𝐶))
4 eldif 3897 . . . 4 (𝑥 ∈ (𝐴𝐵) ↔ (𝑥𝐴 ∧ ¬ 𝑥𝐵))
5 1stdm 7881 . . . . . . . . . . . . . 14 ((Rel 𝐴𝑥𝐴) → (1st𝑥) ∈ dom 𝐴)
65ex 413 . . . . . . . . . . . . 13 (Rel 𝐴 → (𝑥𝐴 → (1st𝑥) ∈ dom 𝐴))
71, 6syl 17 . . . . . . . . . . . 12 (Fun 𝐴 → (𝑥𝐴 → (1st𝑥) ∈ dom 𝐴))
87adantr 481 . . . . . . . . . . 11 ((Fun 𝐴𝐵𝐴) → (𝑥𝐴 → (1st𝑥) ∈ dom 𝐴))
98com12 32 . . . . . . . . . 10 (𝑥𝐴 → ((Fun 𝐴𝐵𝐴) → (1st𝑥) ∈ dom 𝐴))
109adantr 481 . . . . . . . . 9 ((𝑥𝐴 ∧ ¬ 𝑥𝐵) → ((Fun 𝐴𝐵𝐴) → (1st𝑥) ∈ dom 𝐴))
1110impcom 408 . . . . . . . 8 (((Fun 𝐴𝐵𝐴) ∧ (𝑥𝐴 ∧ ¬ 𝑥𝐵)) → (1st𝑥) ∈ dom 𝐴)
12 funelss 7888 . . . . . . . . . . 11 ((Fun 𝐴𝐵𝐴𝑥𝐴) → ((1st𝑥) ∈ dom 𝐵𝑥𝐵))
13123expa 1117 . . . . . . . . . 10 (((Fun 𝐴𝐵𝐴) ∧ 𝑥𝐴) → ((1st𝑥) ∈ dom 𝐵𝑥𝐵))
1413con3d 152 . . . . . . . . 9 (((Fun 𝐴𝐵𝐴) ∧ 𝑥𝐴) → (¬ 𝑥𝐵 → ¬ (1st𝑥) ∈ dom 𝐵))
1514impr 455 . . . . . . . 8 (((Fun 𝐴𝐵𝐴) ∧ (𝑥𝐴 ∧ ¬ 𝑥𝐵)) → ¬ (1st𝑥) ∈ dom 𝐵)
1611, 15eldifd 3898 . . . . . . 7 (((Fun 𝐴𝐵𝐴) ∧ (𝑥𝐴 ∧ ¬ 𝑥𝐵)) → (1st𝑥) ∈ (dom 𝐴 ∖ dom 𝐵))
17163adant3 1131 . . . . . 6 (((Fun 𝐴𝐵𝐴) ∧ (𝑥𝐴 ∧ ¬ 𝑥𝐵) ∧ (1st𝑥) = 𝐶) → (1st𝑥) ∈ (dom 𝐴 ∖ dom 𝐵))
18 eleq1 2826 . . . . . . 7 ((1st𝑥) = 𝐶 → ((1st𝑥) ∈ (dom 𝐴 ∖ dom 𝐵) ↔ 𝐶 ∈ (dom 𝐴 ∖ dom 𝐵)))
19183ad2ant3 1134 . . . . . 6 (((Fun 𝐴𝐵𝐴) ∧ (𝑥𝐴 ∧ ¬ 𝑥𝐵) ∧ (1st𝑥) = 𝐶) → ((1st𝑥) ∈ (dom 𝐴 ∖ dom 𝐵) ↔ 𝐶 ∈ (dom 𝐴 ∖ dom 𝐵)))
2017, 19mpbid 231 . . . . 5 (((Fun 𝐴𝐵𝐴) ∧ (𝑥𝐴 ∧ ¬ 𝑥𝐵) ∧ (1st𝑥) = 𝐶) → 𝐶 ∈ (dom 𝐴 ∖ dom 𝐵))
21203exp 1118 . . . 4 ((Fun 𝐴𝐵𝐴) → ((𝑥𝐴 ∧ ¬ 𝑥𝐵) → ((1st𝑥) = 𝐶𝐶 ∈ (dom 𝐴 ∖ dom 𝐵))))
224, 21syl5bi 241 . . 3 ((Fun 𝐴𝐵𝐴) → (𝑥 ∈ (𝐴𝐵) → ((1st𝑥) = 𝐶𝐶 ∈ (dom 𝐴 ∖ dom 𝐵))))
2322rexlimdv 3212 . 2 ((Fun 𝐴𝐵𝐴) → (∃𝑥 ∈ (𝐴𝐵)(1st𝑥) = 𝐶𝐶 ∈ (dom 𝐴 ∖ dom 𝐵)))
243, 23impbid 211 1 ((Fun 𝐴𝐵𝐴) → (𝐶 ∈ (dom 𝐴 ∖ dom 𝐵) ↔ ∃𝑥 ∈ (𝐴𝐵)(1st𝑥) = 𝐶))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  wrex 3065  cdif 3884  wss 3887  dom cdm 5589  Rel wrel 5594  Fun wfun 6427  cfv 6433  1st c1st 7829
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-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  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-int 4880  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-iota 6391  df-fun 6435  df-fn 6436  df-fv 6441  df-1st 7831  df-2nd 7832
This theorem is referenced by:  satffunlem2lem2  33368
  Copyright terms: Public domain W3C validator