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

Theorem dom2lem 8780
Description: A mapping (first hypothesis) that is one-to-one (second hypothesis) implies its domain is dominated by its codomain. (Contributed by NM, 24-Jul-2004.)
Hypotheses
Ref Expression
dom2d.1 (𝜑 → (𝑥𝐴𝐶𝐵))
dom2d.2 (𝜑 → ((𝑥𝐴𝑦𝐴) → (𝐶 = 𝐷𝑥 = 𝑦)))
Assertion
Ref Expression
dom2lem (𝜑 → (𝑥𝐴𝐶):𝐴1-1𝐵)
Distinct variable groups:   𝑥,𝑦,𝐴   𝑥,𝐵,𝑦   𝑦,𝐶   𝑥,𝐷   𝜑,𝑥,𝑦
Allowed substitution hints:   𝐶(𝑥)   𝐷(𝑦)

Proof of Theorem dom2lem
StepHypRef Expression
1 dom2d.1 . . . 4 (𝜑 → (𝑥𝐴𝐶𝐵))
21ralrimiv 3102 . . 3 (𝜑 → ∀𝑥𝐴 𝐶𝐵)
3 eqid 2738 . . . 4 (𝑥𝐴𝐶) = (𝑥𝐴𝐶)
43fmpt 6984 . . 3 (∀𝑥𝐴 𝐶𝐵 ↔ (𝑥𝐴𝐶):𝐴𝐵)
52, 4sylib 217 . 2 (𝜑 → (𝑥𝐴𝐶):𝐴𝐵)
61imp 407 . . . . . . 7 ((𝜑𝑥𝐴) → 𝐶𝐵)
73fvmpt2 6886 . . . . . . . 8 ((𝑥𝐴𝐶𝐵) → ((𝑥𝐴𝐶)‘𝑥) = 𝐶)
87adantll 711 . . . . . . 7 (((𝜑𝑥𝐴) ∧ 𝐶𝐵) → ((𝑥𝐴𝐶)‘𝑥) = 𝐶)
96, 8mpdan 684 . . . . . 6 ((𝜑𝑥𝐴) → ((𝑥𝐴𝐶)‘𝑥) = 𝐶)
109adantrr 714 . . . . 5 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐴𝐶)‘𝑥) = 𝐶)
11 nfv 1917 . . . . . . . 8 𝑥(𝜑𝑦𝐴)
12 nffvmpt1 6785 . . . . . . . . 9 𝑥((𝑥𝐴𝐶)‘𝑦)
1312nfeq1 2922 . . . . . . . 8 𝑥((𝑥𝐴𝐶)‘𝑦) = 𝐷
1411, 13nfim 1899 . . . . . . 7 𝑥((𝜑𝑦𝐴) → ((𝑥𝐴𝐶)‘𝑦) = 𝐷)
15 eleq1w 2821 . . . . . . . . . 10 (𝑥 = 𝑦 → (𝑥𝐴𝑦𝐴))
1615anbi2d 629 . . . . . . . . 9 (𝑥 = 𝑦 → ((𝜑𝑥𝐴) ↔ (𝜑𝑦𝐴)))
1716imbi1d 342 . . . . . . . 8 (𝑥 = 𝑦 → (((𝜑𝑥𝐴) → ((𝑥𝐴𝐶)‘𝑥) = 𝐶) ↔ ((𝜑𝑦𝐴) → ((𝑥𝐴𝐶)‘𝑥) = 𝐶)))
1815anbi1d 630 . . . . . . . . . . . 12 (𝑥 = 𝑦 → ((𝑥𝐴𝑦𝐴) ↔ (𝑦𝐴𝑦𝐴)))
19 anidm 565 . . . . . . . . . . . 12 ((𝑦𝐴𝑦𝐴) ↔ 𝑦𝐴)
2018, 19bitrdi 287 . . . . . . . . . . 11 (𝑥 = 𝑦 → ((𝑥𝐴𝑦𝐴) ↔ 𝑦𝐴))
2120anbi2d 629 . . . . . . . . . 10 (𝑥 = 𝑦 → ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ↔ (𝜑𝑦𝐴)))
22 fveq2 6774 . . . . . . . . . . . . 13 (𝑥 = 𝑦 → ((𝑥𝐴𝐶)‘𝑥) = ((𝑥𝐴𝐶)‘𝑦))
2322adantr 481 . . . . . . . . . . . 12 ((𝑥 = 𝑦 ∧ (𝜑 ∧ (𝑥𝐴𝑦𝐴))) → ((𝑥𝐴𝐶)‘𝑥) = ((𝑥𝐴𝐶)‘𝑦))
24 dom2d.2 . . . . . . . . . . . . . 14 (𝜑 → ((𝑥𝐴𝑦𝐴) → (𝐶 = 𝐷𝑥 = 𝑦)))
2524imp 407 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (𝐶 = 𝐷𝑥 = 𝑦))
2625biimparc 480 . . . . . . . . . . . 12 ((𝑥 = 𝑦 ∧ (𝜑 ∧ (𝑥𝐴𝑦𝐴))) → 𝐶 = 𝐷)
2723, 26eqeq12d 2754 . . . . . . . . . . 11 ((𝑥 = 𝑦 ∧ (𝜑 ∧ (𝑥𝐴𝑦𝐴))) → (((𝑥𝐴𝐶)‘𝑥) = 𝐶 ↔ ((𝑥𝐴𝐶)‘𝑦) = 𝐷))
2827ex 413 . . . . . . . . . 10 (𝑥 = 𝑦 → ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (((𝑥𝐴𝐶)‘𝑥) = 𝐶 ↔ ((𝑥𝐴𝐶)‘𝑦) = 𝐷)))
2921, 28sylbird 259 . . . . . . . . 9 (𝑥 = 𝑦 → ((𝜑𝑦𝐴) → (((𝑥𝐴𝐶)‘𝑥) = 𝐶 ↔ ((𝑥𝐴𝐶)‘𝑦) = 𝐷)))
3029pm5.74d 272 . . . . . . . 8 (𝑥 = 𝑦 → (((𝜑𝑦𝐴) → ((𝑥𝐴𝐶)‘𝑥) = 𝐶) ↔ ((𝜑𝑦𝐴) → ((𝑥𝐴𝐶)‘𝑦) = 𝐷)))
3117, 30bitrd 278 . . . . . . 7 (𝑥 = 𝑦 → (((𝜑𝑥𝐴) → ((𝑥𝐴𝐶)‘𝑥) = 𝐶) ↔ ((𝜑𝑦𝐴) → ((𝑥𝐴𝐶)‘𝑦) = 𝐷)))
3214, 31, 9chvarfv 2233 . . . . . 6 ((𝜑𝑦𝐴) → ((𝑥𝐴𝐶)‘𝑦) = 𝐷)
3332adantrl 713 . . . . 5 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐴𝐶)‘𝑦) = 𝐷)
3410, 33eqeq12d 2754 . . . 4 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (((𝑥𝐴𝐶)‘𝑥) = ((𝑥𝐴𝐶)‘𝑦) ↔ 𝐶 = 𝐷))
3525biimpd 228 . . . 4 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (𝐶 = 𝐷𝑥 = 𝑦))
3634, 35sylbid 239 . . 3 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (((𝑥𝐴𝐶)‘𝑥) = ((𝑥𝐴𝐶)‘𝑦) → 𝑥 = 𝑦))
3736ralrimivva 3123 . 2 (𝜑 → ∀𝑥𝐴𝑦𝐴 (((𝑥𝐴𝐶)‘𝑥) = ((𝑥𝐴𝐶)‘𝑦) → 𝑥 = 𝑦))
38 nfmpt1 5182 . . 3 𝑥(𝑥𝐴𝐶)
39 nfcv 2907 . . 3 𝑦(𝑥𝐴𝐶)
4038, 39dff13f 7129 . 2 ((𝑥𝐴𝐶):𝐴1-1𝐵 ↔ ((𝑥𝐴𝐶):𝐴𝐵 ∧ ∀𝑥𝐴𝑦𝐴 (((𝑥𝐴𝐶)‘𝑥) = ((𝑥𝐴𝐶)‘𝑦) → 𝑥 = 𝑦)))
415, 37, 40sylanbrc 583 1 (𝜑 → (𝑥𝐴𝐶):𝐴1-1𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wcel 2106  wral 3064  cmpt 5157  wf 6429  1-1wf1 6430  cfv 6433
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
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-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-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-fv 6441
This theorem is referenced by:  dom2d  8781  dom3d  8782  ixpfi2  9117  infxpenc2lem1  9775  dfac12lem2  9900  4sqlem11  16656  odf1o1  19177  odf1o2  19178  dis2ndc  22611  hauspwpwf1  23138  itg1addlem4  24863  itg1addlem4OLD  24864  basellem3  26232  fsumvma  26361  dchrisum0fno1  26659
  Copyright terms: Public domain W3C validator