ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  ssfirab GIF version

Theorem ssfirab 6815
Description: A subset of a finite set is finite if it is defined by a decidable property. (Contributed by Jim Kingdon, 27-May-2022.)
Hypotheses
Ref Expression
ssfirab.a (𝜑𝐴 ∈ Fin)
ssfirab.dc (𝜑 → ∀𝑥𝐴 DECID 𝜓)
Assertion
Ref Expression
ssfirab (𝜑 → {𝑥𝐴𝜓} ∈ Fin)
Distinct variable group:   𝑥,𝐴
Allowed substitution hints:   𝜑(𝑥)   𝜓(𝑥)

Proof of Theorem ssfirab
Dummy variables 𝑤 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 rabeq 2673 . . 3 (𝑤 = ∅ → {𝑥𝑤𝜓} = {𝑥 ∈ ∅ ∣ 𝜓})
21eleq1d 2206 . 2 (𝑤 = ∅ → ({𝑥𝑤𝜓} ∈ Fin ↔ {𝑥 ∈ ∅ ∣ 𝜓} ∈ Fin))
3 rabeq 2673 . . 3 (𝑤 = 𝑦 → {𝑥𝑤𝜓} = {𝑥𝑦𝜓})
43eleq1d 2206 . 2 (𝑤 = 𝑦 → ({𝑥𝑤𝜓} ∈ Fin ↔ {𝑥𝑦𝜓} ∈ Fin))
5 rabeq 2673 . . 3 (𝑤 = (𝑦 ∪ {𝑧}) → {𝑥𝑤𝜓} = {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓})
65eleq1d 2206 . 2 (𝑤 = (𝑦 ∪ {𝑧}) → ({𝑥𝑤𝜓} ∈ Fin ↔ {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} ∈ Fin))
7 rabeq 2673 . . 3 (𝑤 = 𝐴 → {𝑥𝑤𝜓} = {𝑥𝐴𝜓})
87eleq1d 2206 . 2 (𝑤 = 𝐴 → ({𝑥𝑤𝜓} ∈ Fin ↔ {𝑥𝐴𝜓} ∈ Fin))
9 rab0 3386 . . . 4 {𝑥 ∈ ∅ ∣ 𝜓} = ∅
10 0fin 6771 . . . 4 ∅ ∈ Fin
119, 10eqeltri 2210 . . 3 {𝑥 ∈ ∅ ∣ 𝜓} ∈ Fin
1211a1i 9 . 2 (𝜑 → {𝑥 ∈ ∅ ∣ 𝜓} ∈ Fin)
13 rabun2 3350 . . . . 5 {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} = ({𝑥𝑦𝜓} ∪ {𝑥 ∈ {𝑧} ∣ 𝜓})
14 sbsbc 2908 . . . . . . . . . 10 ([𝑧 / 𝑥]𝜓[𝑧 / 𝑥]𝜓)
15 vex 2684 . . . . . . . . . . 11 𝑧 ∈ V
16 ralsns 3557 . . . . . . . . . . 11 (𝑧 ∈ V → (∀𝑥 ∈ {𝑧}𝜓[𝑧 / 𝑥]𝜓))
1715, 16ax-mp 5 . . . . . . . . . 10 (∀𝑥 ∈ {𝑧}𝜓[𝑧 / 𝑥]𝜓)
1814, 17bitr4i 186 . . . . . . . . 9 ([𝑧 / 𝑥]𝜓 ↔ ∀𝑥 ∈ {𝑧}𝜓)
19 rabid2 2605 . . . . . . . . 9 ({𝑧} = {𝑥 ∈ {𝑧} ∣ 𝜓} ↔ ∀𝑥 ∈ {𝑧}𝜓)
2018, 19sylbb2 137 . . . . . . . 8 ([𝑧 / 𝑥]𝜓 → {𝑧} = {𝑥 ∈ {𝑧} ∣ 𝜓})
2120adantl 275 . . . . . . 7 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → {𝑧} = {𝑥 ∈ {𝑧} ∣ 𝜓})
2221uneq2d 3225 . . . . . 6 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → ({𝑥𝑦𝜓} ∪ {𝑧}) = ({𝑥𝑦𝜓} ∪ {𝑥 ∈ {𝑧} ∣ 𝜓}))
23 simplr 519 . . . . . . 7 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → {𝑥𝑦𝜓} ∈ Fin)
2415a1i 9 . . . . . . 7 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → 𝑧 ∈ V)
25 simprr 521 . . . . . . . . . 10 (((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) → 𝑧 ∈ (𝐴𝑦))
2625ad2antrr 479 . . . . . . . . 9 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → 𝑧 ∈ (𝐴𝑦))
2726eldifbd 3078 . . . . . . . 8 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → ¬ 𝑧𝑦)
28 elrabi 2832 . . . . . . . 8 (𝑧 ∈ {𝑥𝑦𝜓} → 𝑧𝑦)
2927, 28nsyl 617 . . . . . . 7 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → ¬ 𝑧 ∈ {𝑥𝑦𝜓})
30 unsnfi 6800 . . . . . . 7 (({𝑥𝑦𝜓} ∈ Fin ∧ 𝑧 ∈ V ∧ ¬ 𝑧 ∈ {𝑥𝑦𝜓}) → ({𝑥𝑦𝜓} ∪ {𝑧}) ∈ Fin)
3123, 24, 29, 30syl3anc 1216 . . . . . 6 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → ({𝑥𝑦𝜓} ∪ {𝑧}) ∈ Fin)
3222, 31eqeltrrd 2215 . . . . 5 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → ({𝑥𝑦𝜓} ∪ {𝑥 ∈ {𝑧} ∣ 𝜓}) ∈ Fin)
3313, 32eqeltrid 2224 . . . 4 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} ∈ Fin)
34 ralsns 3557 . . . . . . . . . . . 12 (𝑧 ∈ V → (∀𝑥 ∈ {𝑧} ¬ 𝜓[𝑧 / 𝑥] ¬ 𝜓))
3515, 34ax-mp 5 . . . . . . . . . . 11 (∀𝑥 ∈ {𝑧} ¬ 𝜓[𝑧 / 𝑥] ¬ 𝜓)
36 sbsbc 2908 . . . . . . . . . . 11 ([𝑧 / 𝑥] ¬ 𝜓[𝑧 / 𝑥] ¬ 𝜓)
37 sbn 1923 . . . . . . . . . . 11 ([𝑧 / 𝑥] ¬ 𝜓 ↔ ¬ [𝑧 / 𝑥]𝜓)
3835, 36, 373bitr2ri 208 . . . . . . . . . 10 (¬ [𝑧 / 𝑥]𝜓 ↔ ∀𝑥 ∈ {𝑧} ¬ 𝜓)
39 rabeq0 3387 . . . . . . . . . 10 ({𝑥 ∈ {𝑧} ∣ 𝜓} = ∅ ↔ ∀𝑥 ∈ {𝑧} ¬ 𝜓)
4038, 39sylbb2 137 . . . . . . . . 9 (¬ [𝑧 / 𝑥]𝜓 → {𝑥 ∈ {𝑧} ∣ 𝜓} = ∅)
4140adantl 275 . . . . . . . 8 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → {𝑥 ∈ {𝑧} ∣ 𝜓} = ∅)
4241uneq2d 3225 . . . . . . 7 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → ({𝑥𝑦𝜓} ∪ {𝑥 ∈ {𝑧} ∣ 𝜓}) = ({𝑥𝑦𝜓} ∪ ∅))
43 un0 3391 . . . . . . 7 ({𝑥𝑦𝜓} ∪ ∅) = {𝑥𝑦𝜓}
4442, 43syl6eq 2186 . . . . . 6 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → ({𝑥𝑦𝜓} ∪ {𝑥 ∈ {𝑧} ∣ 𝜓}) = {𝑥𝑦𝜓})
4513, 44syl5eq 2182 . . . . 5 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} = {𝑥𝑦𝜓})
46 simplr 519 . . . . 5 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → {𝑥𝑦𝜓} ∈ Fin)
4745, 46eqeltrd 2214 . . . 4 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} ∈ Fin)
48 simplrr 525 . . . . . . 7 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → 𝑧 ∈ (𝐴𝑦))
4948eldifad 3077 . . . . . 6 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → 𝑧𝐴)
50 ssfirab.dc . . . . . . 7 (𝜑 → ∀𝑥𝐴 DECID 𝜓)
5150ad3antrrr 483 . . . . . 6 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → ∀𝑥𝐴 DECID 𝜓)
52 nfs1v 1910 . . . . . . . 8 𝑥[𝑧 / 𝑥]𝜓
5352nfdc 1637 . . . . . . 7 𝑥DECID [𝑧 / 𝑥]𝜓
54 sbequ12 1744 . . . . . . . 8 (𝑥 = 𝑧 → (𝜓 ↔ [𝑧 / 𝑥]𝜓))
5554dcbid 823 . . . . . . 7 (𝑥 = 𝑧 → (DECID 𝜓DECID [𝑧 / 𝑥]𝜓))
5653, 55rspc 2778 . . . . . 6 (𝑧𝐴 → (∀𝑥𝐴 DECID 𝜓DECID [𝑧 / 𝑥]𝜓))
5749, 51, 56sylc 62 . . . . 5 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → DECID [𝑧 / 𝑥]𝜓)
58 exmiddc 821 . . . . 5 (DECID [𝑧 / 𝑥]𝜓 → ([𝑧 / 𝑥]𝜓 ∨ ¬ [𝑧 / 𝑥]𝜓))
5957, 58syl 14 . . . 4 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → ([𝑧 / 𝑥]𝜓 ∨ ¬ [𝑧 / 𝑥]𝜓))
6033, 47, 59mpjaodan 787 . . 3 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} ∈ Fin)
6160ex 114 . 2 (((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) → ({𝑥𝑦𝜓} ∈ Fin → {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} ∈ Fin))
62 ssfirab.a . 2 (𝜑𝐴 ∈ Fin)
632, 4, 6, 8, 12, 61, 62findcard2sd 6779 1 (𝜑 → {𝑥𝐴𝜓} ∈ Fin)
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  wo 697  DECID wdc 819   = wceq 1331  wcel 1480  [wsb 1735  wral 2414  {crab 2418  Vcvv 2681  [wsbc 2904  cdif 3063  cun 3064  wss 3066  c0 3358  {csn 3522  Fincfn 6627
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-13 1491  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2119  ax-coll 4038  ax-sep 4041  ax-nul 4049  ax-pow 4093  ax-pr 4126  ax-un 4350  ax-setind 4447  ax-iinf 4497
This theorem depends on definitions:  df-bi 116  df-dc 820  df-3or 963  df-3an 964  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-eu 2000  df-mo 2001  df-clab 2124  df-cleq 2130  df-clel 2133  df-nfc 2268  df-ne 2307  df-ral 2419  df-rex 2420  df-reu 2421  df-rab 2423  df-v 2683  df-sbc 2905  df-csb 2999  df-dif 3068  df-un 3070  df-in 3072  df-ss 3079  df-nul 3359  df-if 3470  df-pw 3507  df-sn 3528  df-pr 3529  df-op 3531  df-uni 3732  df-int 3767  df-iun 3810  df-br 3925  df-opab 3985  df-mpt 3986  df-tr 4022  df-id 4210  df-iord 4283  df-on 4285  df-suc 4288  df-iom 4500  df-xp 4540  df-rel 4541  df-cnv 4542  df-co 4543  df-dm 4544  df-rn 4545  df-res 4546  df-ima 4547  df-iota 5083  df-fun 5120  df-fn 5121  df-f 5122  df-f1 5123  df-fo 5124  df-f1o 5125  df-fv 5126  df-1o 6306  df-er 6422  df-en 6628  df-fin 6630
This theorem is referenced by:  ssfidc  6816  phivalfi  11877  hashdvds  11886  phiprmpw  11887  phimullem  11890  hashgcdeq  11893
  Copyright terms: Public domain W3C validator