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 42618
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 482 . . . . 5 ((𝜑𝑥𝐶) → 𝜑)
4 disjf1o.d . . . . . . . 8 𝐶 = {𝑥𝐴𝐵 ≠ ∅}
5 ssrab2 4009 . . . . . . . 8 {𝑥𝐴𝐵 ≠ ∅} ⊆ 𝐴
64, 5eqsstri 3951 . . . . . . 7 𝐶𝐴
7 id 22 . . . . . . 7 (𝑥𝐶𝑥𝐶)
86, 7sselid 3915 . . . . . 6 (𝑥𝐶𝑥𝐴)
98adantl 481 . . . . 5 ((𝜑𝑥𝐶) → 𝑥𝐴)
10 disjf1o.b . . . . 5 ((𝜑𝑥𝐴) → 𝐵𝑉)
113, 9, 10syl2anc 583 . . . 4 ((𝜑𝑥𝐶) → 𝐵𝑉)
127, 4eleqtrdi 2849 . . . . . . 7 (𝑥𝐶𝑥 ∈ {𝑥𝐴𝐵 ≠ ∅})
13 rabid 3304 . . . . . . . 8 (𝑥 ∈ {𝑥𝐴𝐵 ≠ ∅} ↔ (𝑥𝐴𝐵 ≠ ∅))
1413a1i 11 . . . . . . 7 (𝑥𝐶 → (𝑥 ∈ {𝑥𝐴𝐵 ≠ ∅} ↔ (𝑥𝐴𝐵 ≠ ∅)))
1512, 14mpbid 231 . . . . . 6 (𝑥𝐶 → (𝑥𝐴𝐵 ≠ ∅))
1615simprd 495 . . . . 5 (𝑥𝐶𝐵 ≠ ∅)
1716adantl 481 . . . 4 ((𝜑𝑥𝐶) → 𝐵 ≠ ∅)
186a1i 11 . . . . 5 (𝜑𝐶𝐴)
19 disjf1o.dj . . . . 5 (𝜑Disj 𝑥𝐴 𝐵)
20 disjss1 5041 . . . . 5 (𝐶𝐴 → (Disj 𝑥𝐴 𝐵Disj 𝑥𝐶 𝐵))
2118, 19, 20sylc 65 . . . 4 (𝜑Disj 𝑥𝐶 𝐵)
221, 2, 11, 17, 21disjf1 42609 . . 3 (𝜑 → (𝑥𝐶𝐵):𝐶1-1𝑉)
23 f1f1orn 6711 . . 3 ((𝑥𝐶𝐵):𝐶1-1𝑉 → (𝑥𝐶𝐵):𝐶1-1-onto→ran (𝑥𝐶𝐵))
2422, 23syl 17 . 2 (𝜑 → (𝑥𝐶𝐵):𝐶1-1-onto→ran (𝑥𝐶𝐵))
25 disjf1o.f . . . . . 6 𝐹 = (𝑥𝐴𝐵)
2625a1i 11 . . . . 5 (𝜑𝐹 = (𝑥𝐴𝐵))
2726reseq1d 5879 . . . 4 (𝜑 → (𝐹𝐶) = ((𝑥𝐴𝐵) ↾ 𝐶))
2818resmptd 5937 . . . 4 (𝜑 → ((𝑥𝐴𝐵) ↾ 𝐶) = (𝑥𝐶𝐵))
2927, 28eqtrd 2778 . . 3 (𝜑 → (𝐹𝐶) = (𝑥𝐶𝐵))
30 eqidd 2739 . . 3 (𝜑𝐶 = 𝐶)
31 simpl 482 . . . . . . 7 ((𝜑𝑦𝐷) → 𝜑)
32 id 22 . . . . . . . . . 10 (𝑦𝐷𝑦𝐷)
33 disjf1o.e . . . . . . . . . 10 𝐷 = (ran 𝐹 ∖ {∅})
3432, 33eleqtrdi 2849 . . . . . . . . 9 (𝑦𝐷𝑦 ∈ (ran 𝐹 ∖ {∅}))
35 eldifsni 4720 . . . . . . . . 9 (𝑦 ∈ (ran 𝐹 ∖ {∅}) → 𝑦 ≠ ∅)
3634, 35syl 17 . . . . . . . 8 (𝑦𝐷𝑦 ≠ ∅)
3736adantl 481 . . . . . . 7 ((𝜑𝑦𝐷) → 𝑦 ≠ ∅)
38 eldifi 4057 . . . . . . . . . 10 (𝑦 ∈ (ran 𝐹 ∖ {∅}) → 𝑦 ∈ ran 𝐹)
3934, 38syl 17 . . . . . . . . 9 (𝑦𝐷𝑦 ∈ ran 𝐹)
4025elrnmpt 5854 . . . . . . . . . 10 (𝑦 ∈ ran 𝐹 → (𝑦 ∈ ran 𝐹 ↔ ∃𝑥𝐴 𝑦 = 𝐵))
4139, 40syl 17 . . . . . . . . 9 (𝑦𝐷 → (𝑦 ∈ ran 𝐹 ↔ ∃𝑥𝐴 𝑦 = 𝐵))
4239, 41mpbid 231 . . . . . . . 8 (𝑦𝐷 → ∃𝑥𝐴 𝑦 = 𝐵)
4342adantl 481 . . . . . . 7 ((𝜑𝑦𝐷) → ∃𝑥𝐴 𝑦 = 𝐵)
44 nfv 1918 . . . . . . . . . 10 𝑥 𝑦 ≠ ∅
451, 44nfan 1903 . . . . . . . . 9 𝑥(𝜑𝑦 ≠ ∅)
46 nfcv 2906 . . . . . . . . . 10 𝑥𝑦
47 nfmpt1 5178 . . . . . . . . . . 11 𝑥(𝑥𝐶𝐵)
4847nfrn 5850 . . . . . . . . . 10 𝑥ran (𝑥𝐶𝐵)
4946, 48nfel 2920 . . . . . . . . 9 𝑥 𝑦 ∈ ran (𝑥𝐶𝐵)
50 simp3 1136 . . . . . . . . . . . 12 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑦 = 𝐵)
51 simp2 1135 . . . . . . . . . . . . . . . 16 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑥𝐴)
52 id 22 . . . . . . . . . . . . . . . . . . . 20 (𝑦 = 𝐵𝑦 = 𝐵)
5352eqcomd 2744 . . . . . . . . . . . . . . . . . . 19 (𝑦 = 𝐵𝐵 = 𝑦)
5453adantl 481 . . . . . . . . . . . . . . . . . 18 ((𝑦 ≠ ∅ ∧ 𝑦 = 𝐵) → 𝐵 = 𝑦)
55 simpl 482 . . . . . . . . . . . . . . . . . 18 ((𝑦 ≠ ∅ ∧ 𝑦 = 𝐵) → 𝑦 ≠ ∅)
5654, 55eqnetrd 3010 . . . . . . . . . . . . . . . . 17 ((𝑦 ≠ ∅ ∧ 𝑦 = 𝐵) → 𝐵 ≠ ∅)
57563adant2 1129 . . . . . . . . . . . . . . . 16 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝐵 ≠ ∅)
5851, 57jca 511 . . . . . . . . . . . . . . 15 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → (𝑥𝐴𝐵 ≠ ∅))
5958, 13sylibr 233 . . . . . . . . . . . . . 14 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑥 ∈ {𝑥𝐴𝐵 ≠ ∅})
604eqcomi 2747 . . . . . . . . . . . . . . 15 {𝑥𝐴𝐵 ≠ ∅} = 𝐶
6160a1i 11 . . . . . . . . . . . . . 14 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → {𝑥𝐴𝐵 ≠ ∅} = 𝐶)
6259, 61eleqtrd 2841 . . . . . . . . . . . . 13 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑥𝐶)
63 eqvisset 3439 . . . . . . . . . . . . . 14 (𝑦 = 𝐵𝐵 ∈ V)
64633ad2ant3 1133 . . . . . . . . . . . . 13 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝐵 ∈ V)
652elrnmpt1 5856 . . . . . . . . . . . . 13 ((𝑥𝐶𝐵 ∈ V) → 𝐵 ∈ ran (𝑥𝐶𝐵))
6662, 64, 65syl2anc 583 . . . . . . . . . . . 12 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝐵 ∈ ran (𝑥𝐶𝐵))
6750, 66eqeltrd 2839 . . . . . . . . . . 11 ((𝑦 ≠ ∅ ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑦 ∈ ran (𝑥𝐶𝐵))
68673adant1l 1174 . . . . . . . . . 10 (((𝜑𝑦 ≠ ∅) ∧ 𝑥𝐴𝑦 = 𝐵) → 𝑦 ∈ ran (𝑥𝐶𝐵))
69683exp 1117 . . . . . . . . 9 ((𝜑𝑦 ≠ ∅) → (𝑥𝐴 → (𝑦 = 𝐵𝑦 ∈ ran (𝑥𝐶𝐵))))
7045, 49, 69rexlimd 3245 . . . . . . . 8 ((𝜑𝑦 ≠ ∅) → (∃𝑥𝐴 𝑦 = 𝐵𝑦 ∈ ran (𝑥𝐶𝐵)))
7170imp 406 . . . . . . 7 (((𝜑𝑦 ≠ ∅) ∧ ∃𝑥𝐴 𝑦 = 𝐵) → 𝑦 ∈ ran (𝑥𝐶𝐵))
7231, 37, 43, 71syl21anc 834 . . . . . 6 ((𝜑𝑦𝐷) → 𝑦 ∈ ran (𝑥𝐶𝐵))
7372ralrimiva 3107 . . . . 5 (𝜑 → ∀𝑦𝐷 𝑦 ∈ ran (𝑥𝐶𝐵))
74 dfss3 3905 . . . . 5 (𝐷 ⊆ ran (𝑥𝐶𝐵) ↔ ∀𝑦𝐷 𝑦 ∈ ran (𝑥𝐶𝐵))
7573, 74sylibr 233 . . . 4 (𝜑𝐷 ⊆ ran (𝑥𝐶𝐵))
76 simpl 482 . . . . 5 ((𝜑𝑦 ∈ ran (𝑥𝐶𝐵)) → 𝜑)
77 vex 3426 . . . . . . . 8 𝑦 ∈ V
782elrnmpt 5854 . . . . . . . 8 (𝑦 ∈ V → (𝑦 ∈ ran (𝑥𝐶𝐵) ↔ ∃𝑥𝐶 𝑦 = 𝐵))
7977, 78ax-mp 5 . . . . . . 7 (𝑦 ∈ ran (𝑥𝐶𝐵) ↔ ∃𝑥𝐶 𝑦 = 𝐵)
8079biimpi 215 . . . . . 6 (𝑦 ∈ ran (𝑥𝐶𝐵) → ∃𝑥𝐶 𝑦 = 𝐵)
8180adantl 481 . . . . 5 ((𝜑𝑦 ∈ ran (𝑥𝐶𝐵)) → ∃𝑥𝐶 𝑦 = 𝐵)
82 nfv 1918 . . . . . . 7 𝑥 𝑦𝐷
83 simpr 484 . . . . . . . . . . . 12 ((𝑥𝐶𝑦 = 𝐵) → 𝑦 = 𝐵)
848adantr 480 . . . . . . . . . . . . 13 ((𝑥𝐶𝑦 = 𝐵) → 𝑥𝐴)
8583, 63syl 17 . . . . . . . . . . . . 13 ((𝑥𝐶𝑦 = 𝐵) → 𝐵 ∈ V)
8625elrnmpt1 5856 . . . . . . . . . . . . 13 ((𝑥𝐴𝐵 ∈ V) → 𝐵 ∈ ran 𝐹)
8784, 85, 86syl2anc 583 . . . . . . . . . . . 12 ((𝑥𝐶𝑦 = 𝐵) → 𝐵 ∈ ran 𝐹)
8883, 87eqeltrd 2839 . . . . . . . . . . 11 ((𝑥𝐶𝑦 = 𝐵) → 𝑦 ∈ ran 𝐹)
89883adant1 1128 . . . . . . . . . 10 ((𝜑𝑥𝐶𝑦 = 𝐵) → 𝑦 ∈ ran 𝐹)
9016adantr 480 . . . . . . . . . . . . 13 ((𝑥𝐶𝑦 = 𝐵) → 𝐵 ≠ ∅)
9183, 90eqnetrd 3010 . . . . . . . . . . . 12 ((𝑥𝐶𝑦 = 𝐵) → 𝑦 ≠ ∅)
92 nelsn 4598 . . . . . . . . . . . 12 (𝑦 ≠ ∅ → ¬ 𝑦 ∈ {∅})
9391, 92syl 17 . . . . . . . . . . 11 ((𝑥𝐶𝑦 = 𝐵) → ¬ 𝑦 ∈ {∅})
94933adant1 1128 . . . . . . . . . 10 ((𝜑𝑥𝐶𝑦 = 𝐵) → ¬ 𝑦 ∈ {∅})
9589, 94eldifd 3894 . . . . . . . . 9 ((𝜑𝑥𝐶𝑦 = 𝐵) → 𝑦 ∈ (ran 𝐹 ∖ {∅}))
9695, 33eleqtrrdi 2850 . . . . . . . 8 ((𝜑𝑥𝐶𝑦 = 𝐵) → 𝑦𝐷)
97963exp 1117 . . . . . . 7 (𝜑 → (𝑥𝐶 → (𝑦 = 𝐵𝑦𝐷)))
981, 82, 97rexlimd 3245 . . . . . 6 (𝜑 → (∃𝑥𝐶 𝑦 = 𝐵𝑦𝐷))
9998imp 406 . . . . 5 ((𝜑 ∧ ∃𝑥𝐶 𝑦 = 𝐵) → 𝑦𝐷)
10076, 81, 99syl2anc 583 . . . 4 ((𝜑𝑦 ∈ ran (𝑥𝐶𝐵)) → 𝑦𝐷)
10175, 100eqelssd 3938 . . 3 (𝜑𝐷 = ran (𝑥𝐶𝐵))
10229, 30, 101f1oeq123d 6694 . 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 395  w3a 1085   = wceq 1539  wnf 1787  wcel 2108  wne 2942  wral 3063  wrex 3064  {crab 3067  Vcvv 3422  cdif 3880  wss 3883  c0 4253  {csn 4558  Disj wdisj 5035  cmpt 5153  ran crn 5581  cres 5582  1-1wf1 6415  1-1-ontowf1o 6417
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
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-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  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-disj 5036  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-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426
This theorem is referenced by:  sge0fodjrnlem  43844
  Copyright terms: Public domain W3C validator