Users' Mathboxes Mathbox for Glauco Siliprandi < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  disjf1o Structured version   Visualization version   GIF version

Theorem disjf1o 42729
Description: A bijection built from disjoint sets. (Contributed by Glauco Siliprandi, 17-Aug-2020.)
Hypotheses
Ref Expression
disjf1o.xph 𝑥𝜑
disjf1o.f 𝐹 = (𝑥𝐴𝐵)
disjf1o.b ((𝜑𝑥𝐴) → 𝐵𝑉)
disjf1o.dj (𝜑Disj 𝑥𝐴 𝐵)
disjf1o.d 𝐶 = {𝑥𝐴𝐵 ≠ ∅}
disjf1o.e 𝐷 = (ran 𝐹 ∖ {∅})
Assertion
Ref Expression
disjf1o (𝜑 → (𝐹𝐶):𝐶1-1-onto𝐷)
Distinct variable groups:   𝑥,𝐴   𝑥,𝐶   𝑥,𝐷   𝑥,𝑉
Allowed substitution hints:   𝜑(𝑥)   𝐵(𝑥)   𝐹(𝑥)

Proof of Theorem disjf1o
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 disjf1o.xph . . . 4 𝑥𝜑
2 eqid 2738 . . . 4 (𝑥𝐶𝐵) = (𝑥𝐶𝐵)
3 simpl 483 . . . . 5 ((𝜑𝑥𝐶) → 𝜑)
4 disjf1o.d . . . . . . . 8 𝐶 = {𝑥𝐴𝐵 ≠ ∅}
5 ssrab2 4013 . . . . . . . 8 {𝑥𝐴𝐵 ≠ ∅} ⊆ 𝐴
64, 5eqsstri 3955 . . . . . . 7 𝐶𝐴
7 id 22 . . . . . . 7 (𝑥𝐶𝑥𝐶)
86, 7sselid 3919 . . . . . 6 (𝑥𝐶𝑥𝐴)
98adantl 482 . . . . 5 ((𝜑𝑥𝐶) → 𝑥𝐴)
10 disjf1o.b . . . . 5 ((𝜑𝑥𝐴) → 𝐵𝑉)
113, 9, 10syl2anc 584 . . . 4 ((𝜑𝑥𝐶) → 𝐵𝑉)
127, 4eleqtrdi 2849 . . . . . . 7 (𝑥𝐶𝑥 ∈ {𝑥𝐴𝐵 ≠ ∅})
13 rabid 3310 . . . . . . . 8 (𝑥 ∈ {𝑥𝐴𝐵 ≠ ∅} ↔ (𝑥𝐴𝐵 ≠ ∅))
1413a1i 11 . . . . . . 7 (𝑥𝐶 → (𝑥 ∈ {𝑥𝐴𝐵 ≠ ∅} ↔ (𝑥𝐴𝐵 ≠ ∅)))
1512, 14mpbid 231 . . . . . 6 (𝑥𝐶 → (𝑥𝐴𝐵 ≠ ∅))
1615simprd 496 . . . . 5 (𝑥𝐶𝐵 ≠ ∅)
1716adantl 482 . . . 4 ((𝜑𝑥𝐶) → 𝐵 ≠ ∅)
186a1i 11 . . . . 5 (𝜑𝐶𝐴)
19 disjf1o.dj . . . . 5 (𝜑Disj 𝑥𝐴 𝐵)
20 disjss1 5045 . . . . 5 (𝐶𝐴 → (Disj 𝑥𝐴 𝐵Disj 𝑥𝐶 𝐵))
2118, 19, 20sylc 65 . . . 4 (𝜑Disj 𝑥𝐶 𝐵)
221, 2, 11, 17, 21disjf1 42720 . . 3 (𝜑 → (𝑥𝐶𝐵):𝐶1-1𝑉)
23 f1f1orn 6727 . . 3 ((𝑥𝐶𝐵):𝐶1-1𝑉 → (𝑥𝐶𝐵):𝐶1-1-onto→ran (𝑥𝐶𝐵))
2422, 23syl 17 . 2 (𝜑 → (𝑥𝐶𝐵):𝐶1-1-onto→ran (𝑥𝐶𝐵))
25 disjf1o.f . . . . . 6 𝐹 = (𝑥𝐴𝐵)
2625a1i 11 . . . . 5 (𝜑𝐹 = (𝑥𝐴𝐵))
2726reseq1d 5890 . . . 4 (𝜑 → (𝐹𝐶) = ((𝑥𝐴𝐵) ↾ 𝐶))
2818resmptd 5948 . . . 4 (𝜑 → ((𝑥𝐴𝐵) ↾ 𝐶) = (𝑥𝐶𝐵))
2927, 28eqtrd 2778 . . 3 (𝜑 → (𝐹𝐶) = (𝑥𝐶𝐵))
30 eqidd 2739 . . 3 (𝜑𝐶 = 𝐶)
31 simpl 483 . . . . . . 7 ((𝜑𝑦𝐷) → 𝜑)
32 id 22 . . . . . . . . . 10 (𝑦𝐷𝑦𝐷)
33 disjf1o.e . . . . . . . . . 10 𝐷 = (ran 𝐹 ∖ {∅})
3432, 33eleqtrdi 2849 . . . . . . . . 9 (𝑦𝐷𝑦 ∈ (ran 𝐹 ∖ {∅}))
35 eldifsni 4723 . . . . . . . . 9 (𝑦 ∈ (ran 𝐹 ∖ {∅}) → 𝑦 ≠ ∅)
3634, 35syl 17 . . . . . . . 8 (𝑦𝐷𝑦 ≠ ∅)
3736adantl 482 . . . . . . 7 ((𝜑𝑦𝐷) → 𝑦 ≠ ∅)
38 eldifi 4061 . . . . . . . . . 10 (𝑦 ∈ (ran 𝐹 ∖ {∅}) → 𝑦 ∈ ran 𝐹)
3934, 38syl 17 . . . . . . . . 9 (𝑦𝐷𝑦 ∈ ran 𝐹)
4025elrnmpt 5865 . . . . . . . . . 10 (𝑦 ∈ ran 𝐹 → (𝑦 ∈ ran 𝐹 ↔ ∃𝑥𝐴 𝑦 = 𝐵))
4139, 40syl 17 . . . . . . . . 9 (𝑦𝐷 → (𝑦 ∈ ran 𝐹 ↔ ∃𝑥𝐴 𝑦 = 𝐵))
4239, 41mpbid 231 . . . . . . . 8 (𝑦𝐷 → ∃𝑥𝐴 𝑦 = 𝐵)
4342adantl 482 . . . . . . 7 ((𝜑𝑦𝐷) → ∃𝑥𝐴 𝑦 = 𝐵)
44 nfv 1917 . . . . . . . . . 10 𝑥 𝑦 ≠ ∅
451, 44nfan 1902 . . . . . . . . 9 𝑥(𝜑𝑦 ≠ ∅)
46 nfcv 2907 . . . . . . . . . 10 𝑥𝑦
47 nfmpt1 5182 . . . . . . . . . . 11 𝑥(𝑥𝐶𝐵)
4847nfrn 5861 . . . . . . . . . 10 𝑥ran (𝑥𝐶𝐵)
4946, 48nfel 2921 . . . . . . . . 9 𝑥 𝑦 ∈ ran (𝑥𝐶𝐵)
50 simp3 1137 . . . . . . . . . . . 12 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑦 = 𝐵)
51 simp2 1136 . . . . . . . . . . . . . . . 16 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑥𝐴)
52 id 22 . . . . . . . . . . . . . . . . . . . 20 (𝑦 = 𝐵𝑦 = 𝐵)
5352eqcomd 2744 . . . . . . . . . . . . . . . . . . 19 (𝑦 = 𝐵𝐵 = 𝑦)
5453adantl 482 . . . . . . . . . . . . . . . . . 18 ((𝑦 ≠ ∅ ∧ 𝑦 = 𝐵) → 𝐵 = 𝑦)
55 simpl 483 . . . . . . . . . . . . . . . . . 18 ((𝑦 ≠ ∅ ∧ 𝑦 = 𝐵) → 𝑦 ≠ ∅)
5654, 55eqnetrd 3011 . . . . . . . . . . . . . . . . 17 ((𝑦 ≠ ∅ ∧ 𝑦 = 𝐵) → 𝐵 ≠ ∅)
57563adant2 1130 . . . . . . . . . . . . . . . 16 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝐵 ≠ ∅)
5851, 57jca 512 . . . . . . . . . . . . . . 15 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → (𝑥𝐴𝐵 ≠ ∅))
5958, 13sylibr 233 . . . . . . . . . . . . . 14 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑥 ∈ {𝑥𝐴𝐵 ≠ ∅})
604eqcomi 2747 . . . . . . . . . . . . . . 15 {𝑥𝐴𝐵 ≠ ∅} = 𝐶
6160a1i 11 . . . . . . . . . . . . . 14 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → {𝑥𝐴𝐵 ≠ ∅} = 𝐶)
6259, 61eleqtrd 2841 . . . . . . . . . . . . 13 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑥𝐶)
63 eqvisset 3449 . . . . . . . . . . . . . 14 (𝑦 = 𝐵𝐵 ∈ V)
64633ad2ant3 1134 . . . . . . . . . . . . 13 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝐵 ∈ V)
652elrnmpt1 5867 . . . . . . . . . . . . 13 ((𝑥𝐶𝐵 ∈ V) → 𝐵 ∈ ran (𝑥𝐶𝐵))
6662, 64, 65syl2anc 584 . . . . . . . . . . . 12 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝐵 ∈ ran (𝑥𝐶𝐵))
6750, 66eqeltrd 2839 . . . . . . . . . . 11 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑦 ∈ ran (𝑥𝐶𝐵))
68673adant1l 1175 . . . . . . . . . 10 (((𝜑𝑦 ≠ ∅) ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑦 ∈ ran (𝑥𝐶𝐵))
69683exp 1118 . . . . . . . . 9 ((𝜑𝑦 ≠ ∅) → (𝑥𝐴 → (𝑦 = 𝐵𝑦 ∈ ran (𝑥𝐶𝐵))))
7045, 49, 69rexlimd 3250 . . . . . . . 8 ((𝜑𝑦 ≠ ∅) → (∃𝑥𝐴 𝑦 = 𝐵𝑦 ∈ ran (𝑥𝐶𝐵)))
7170imp 407 . . . . . . 7 (((𝜑𝑦 ≠ ∅) ∧ ∃𝑥𝐴 𝑦 = 𝐵) → 𝑦 ∈ ran (𝑥𝐶𝐵))
7231, 37, 43, 71syl21anc 835 . . . . . 6 ((𝜑𝑦𝐷) → 𝑦 ∈ ran (𝑥𝐶𝐵))
7372ralrimiva 3103 . . . . 5 (𝜑 → ∀𝑦𝐷 𝑦 ∈ ran (𝑥𝐶𝐵))
74 dfss3 3909 . . . . 5 (𝐷 ⊆ ran (𝑥𝐶𝐵) ↔ ∀𝑦𝐷 𝑦 ∈ ran (𝑥𝐶𝐵))
7573, 74sylibr 233 . . . 4 (𝜑𝐷 ⊆ ran (𝑥𝐶𝐵))
76 simpl 483 . . . . 5 ((𝜑𝑦 ∈ ran (𝑥𝐶𝐵)) → 𝜑)
77 vex 3436 . . . . . . . 8 𝑦 ∈ V
782elrnmpt 5865 . . . . . . . 8 (𝑦 ∈ V → (𝑦 ∈ ran (𝑥𝐶𝐵) ↔ ∃𝑥𝐶 𝑦 = 𝐵))
7977, 78ax-mp 5 . . . . . . 7 (𝑦 ∈ ran (𝑥𝐶𝐵) ↔ ∃𝑥𝐶 𝑦 = 𝐵)
8079biimpi 215 . . . . . 6 (𝑦 ∈ ran (𝑥𝐶𝐵) → ∃𝑥𝐶 𝑦 = 𝐵)
8180adantl 482 . . . . 5 ((𝜑𝑦 ∈ ran (𝑥𝐶𝐵)) → ∃𝑥𝐶 𝑦 = 𝐵)
82 nfv 1917 . . . . . . 7 𝑥 𝑦𝐷
83 simpr 485 . . . . . . . . . . . 12 ((𝑥𝐶𝑦 = 𝐵) → 𝑦 = 𝐵)
848adantr 481 . . . . . . . . . . . . 13 ((𝑥𝐶𝑦 = 𝐵) → 𝑥𝐴)
8583, 63syl 17 . . . . . . . . . . . . 13 ((𝑥𝐶𝑦 = 𝐵) → 𝐵 ∈ V)
8625elrnmpt1 5867 . . . . . . . . . . . . 13 ((𝑥𝐴𝐵 ∈ V) → 𝐵 ∈ ran 𝐹)
8784, 85, 86syl2anc 584 . . . . . . . . . . . 12 ((𝑥𝐶𝑦 = 𝐵) → 𝐵 ∈ ran 𝐹)
8883, 87eqeltrd 2839 . . . . . . . . . . 11 ((𝑥𝐶𝑦 = 𝐵) → 𝑦 ∈ ran 𝐹)
89883adant1 1129 . . . . . . . . . 10 ((𝜑𝑥𝐶𝑦 = 𝐵) → 𝑦 ∈ ran 𝐹)
9016adantr 481 . . . . . . . . . . . . 13 ((𝑥𝐶𝑦 = 𝐵) → 𝐵 ≠ ∅)
9183, 90eqnetrd 3011 . . . . . . . . . . . 12 ((𝑥𝐶𝑦 = 𝐵) → 𝑦 ≠ ∅)
92 nelsn 4601 . . . . . . . . . . . 12 (𝑦 ≠ ∅ → ¬ 𝑦 ∈ {∅})
9391, 92syl 17 . . . . . . . . . . 11 ((𝑥𝐶𝑦 = 𝐵) → ¬ 𝑦 ∈ {∅})
94933adant1 1129 . . . . . . . . . 10 ((𝜑𝑥𝐶𝑦 = 𝐵) → ¬ 𝑦 ∈ {∅})
9589, 94eldifd 3898 . . . . . . . . 9 ((𝜑𝑥𝐶𝑦 = 𝐵) → 𝑦 ∈ (ran 𝐹 ∖ {∅}))
9695, 33eleqtrrdi 2850 . . . . . . . 8 ((𝜑𝑥𝐶𝑦 = 𝐵) → 𝑦𝐷)
97963exp 1118 . . . . . . 7 (𝜑 → (𝑥𝐶 → (𝑦 = 𝐵𝑦𝐷)))
981, 82, 97rexlimd 3250 . . . . . 6 (𝜑 → (∃𝑥𝐶 𝑦 = 𝐵𝑦𝐷))
9998imp 407 . . . . 5 ((𝜑 ∧ ∃𝑥𝐶 𝑦 = 𝐵) → 𝑦𝐷)
10076, 81, 99syl2anc 584 . . . 4 ((𝜑𝑦 ∈ ran (𝑥𝐶𝐵)) → 𝑦𝐷)
10175, 100eqelssd 3942 . . 3 (𝜑𝐷 = ran (𝑥𝐶𝐵))
10229, 30, 101f1oeq123d 6710 . 2 (𝜑 → ((𝐹𝐶):𝐶1-1-onto𝐷 ↔ (𝑥𝐶𝐵):𝐶1-1-onto→ran (𝑥𝐶𝐵)))
10324, 102mpbird 256 1 (𝜑 → (𝐹𝐶):𝐶1-1-onto𝐷)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wnf 1786  wcel 2106  wne 2943  wral 3064  wrex 3065  {crab 3068  Vcvv 3432  cdif 3884  wss 3887  c0 4256  {csn 4561  Disj wdisj 5039  cmpt 5157  ran crn 5590  cres 5591  1-1wf1 6430  1-1-ontowf1o 6432
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-ne 2944  df-ral 3069  df-rex 3070  df-rmo 3071  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-disj 5040  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-fo 6439  df-f1o 6440  df-fv 6441
This theorem is referenced by:  sge0fodjrnlem  43954
  Copyright terms: Public domain W3C validator