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

Theorem ssfirab 6899
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 2718 . . 3 (𝑤 = ∅ → {𝑥𝑤𝜓} = {𝑥 ∈ ∅ ∣ 𝜓})
21eleq1d 2235 . 2 (𝑤 = ∅ → ({𝑥𝑤𝜓} ∈ Fin ↔ {𝑥 ∈ ∅ ∣ 𝜓} ∈ Fin))
3 rabeq 2718 . . 3 (𝑤 = 𝑦 → {𝑥𝑤𝜓} = {𝑥𝑦𝜓})
43eleq1d 2235 . 2 (𝑤 = 𝑦 → ({𝑥𝑤𝜓} ∈ Fin ↔ {𝑥𝑦𝜓} ∈ Fin))
5 rabeq 2718 . . 3 (𝑤 = (𝑦 ∪ {𝑧}) → {𝑥𝑤𝜓} = {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓})
65eleq1d 2235 . 2 (𝑤 = (𝑦 ∪ {𝑧}) → ({𝑥𝑤𝜓} ∈ Fin ↔ {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} ∈ Fin))
7 rabeq 2718 . . 3 (𝑤 = 𝐴 → {𝑥𝑤𝜓} = {𝑥𝐴𝜓})
87eleq1d 2235 . 2 (𝑤 = 𝐴 → ({𝑥𝑤𝜓} ∈ Fin ↔ {𝑥𝐴𝜓} ∈ Fin))
9 rab0 3437 . . . 4 {𝑥 ∈ ∅ ∣ 𝜓} = ∅
10 0fin 6850 . . . 4 ∅ ∈ Fin
119, 10eqeltri 2239 . . 3 {𝑥 ∈ ∅ ∣ 𝜓} ∈ Fin
1211a1i 9 . 2 (𝜑 → {𝑥 ∈ ∅ ∣ 𝜓} ∈ Fin)
13 rabun2 3401 . . . . 5 {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} = ({𝑥𝑦𝜓} ∪ {𝑥 ∈ {𝑧} ∣ 𝜓})
14 sbsbc 2955 . . . . . . . . . 10 ([𝑧 / 𝑥]𝜓[𝑧 / 𝑥]𝜓)
15 vex 2729 . . . . . . . . . . 11 𝑧 ∈ V
16 ralsns 3614 . . . . . . . . . . 11 (𝑧 ∈ V → (∀𝑥 ∈ {𝑧}𝜓[𝑧 / 𝑥]𝜓))
1715, 16ax-mp 5 . . . . . . . . . 10 (∀𝑥 ∈ {𝑧}𝜓[𝑧 / 𝑥]𝜓)
1814, 17bitr4i 186 . . . . . . . . 9 ([𝑧 / 𝑥]𝜓 ↔ ∀𝑥 ∈ {𝑧}𝜓)
19 rabid2 2642 . . . . . . . . 9 ({𝑧} = {𝑥 ∈ {𝑧} ∣ 𝜓} ↔ ∀𝑥 ∈ {𝑧}𝜓)
2018, 19sylbb2 137 . . . . . . . 8 ([𝑧 / 𝑥]𝜓 → {𝑧} = {𝑥 ∈ {𝑧} ∣ 𝜓})
2120adantl 275 . . . . . . 7 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → {𝑧} = {𝑥 ∈ {𝑧} ∣ 𝜓})
2221uneq2d 3276 . . . . . 6 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → ({𝑥𝑦𝜓} ∪ {𝑧}) = ({𝑥𝑦𝜓} ∪ {𝑥 ∈ {𝑧} ∣ 𝜓}))
23 simplr 520 . . . . . . 7 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → {𝑥𝑦𝜓} ∈ Fin)
2415a1i 9 . . . . . . 7 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → 𝑧 ∈ V)
25 simprr 522 . . . . . . . . . 10 (((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) → 𝑧 ∈ (𝐴𝑦))
2625ad2antrr 480 . . . . . . . . 9 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → 𝑧 ∈ (𝐴𝑦))
2726eldifbd 3128 . . . . . . . 8 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → ¬ 𝑧𝑦)
28 elrabi 2879 . . . . . . . 8 (𝑧 ∈ {𝑥𝑦𝜓} → 𝑧𝑦)
2927, 28nsyl 618 . . . . . . 7 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → ¬ 𝑧 ∈ {𝑥𝑦𝜓})
30 unsnfi 6884 . . . . . . 7 (({𝑥𝑦𝜓} ∈ Fin ∧ 𝑧 ∈ V ∧ ¬ 𝑧 ∈ {𝑥𝑦𝜓}) → ({𝑥𝑦𝜓} ∪ {𝑧}) ∈ Fin)
3123, 24, 29, 30syl3anc 1228 . . . . . 6 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → ({𝑥𝑦𝜓} ∪ {𝑧}) ∈ Fin)
3222, 31eqeltrrd 2244 . . . . 5 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → ({𝑥𝑦𝜓} ∪ {𝑥 ∈ {𝑧} ∣ 𝜓}) ∈ Fin)
3313, 32eqeltrid 2253 . . . 4 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ [𝑧 / 𝑥]𝜓) → {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} ∈ Fin)
34 ralsns 3614 . . . . . . . . . . . 12 (𝑧 ∈ V → (∀𝑥 ∈ {𝑧} ¬ 𝜓[𝑧 / 𝑥] ¬ 𝜓))
3515, 34ax-mp 5 . . . . . . . . . . 11 (∀𝑥 ∈ {𝑧} ¬ 𝜓[𝑧 / 𝑥] ¬ 𝜓)
36 sbsbc 2955 . . . . . . . . . . 11 ([𝑧 / 𝑥] ¬ 𝜓[𝑧 / 𝑥] ¬ 𝜓)
37 sbn 1940 . . . . . . . . . . 11 ([𝑧 / 𝑥] ¬ 𝜓 ↔ ¬ [𝑧 / 𝑥]𝜓)
3835, 36, 373bitr2ri 208 . . . . . . . . . 10 (¬ [𝑧 / 𝑥]𝜓 ↔ ∀𝑥 ∈ {𝑧} ¬ 𝜓)
39 rabeq0 3438 . . . . . . . . . 10 ({𝑥 ∈ {𝑧} ∣ 𝜓} = ∅ ↔ ∀𝑥 ∈ {𝑧} ¬ 𝜓)
4038, 39sylbb2 137 . . . . . . . . 9 (¬ [𝑧 / 𝑥]𝜓 → {𝑥 ∈ {𝑧} ∣ 𝜓} = ∅)
4140adantl 275 . . . . . . . 8 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → {𝑥 ∈ {𝑧} ∣ 𝜓} = ∅)
4241uneq2d 3276 . . . . . . 7 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → ({𝑥𝑦𝜓} ∪ {𝑥 ∈ {𝑧} ∣ 𝜓}) = ({𝑥𝑦𝜓} ∪ ∅))
43 un0 3442 . . . . . . 7 ({𝑥𝑦𝜓} ∪ ∅) = {𝑥𝑦𝜓}
4442, 43eqtrdi 2215 . . . . . 6 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → ({𝑥𝑦𝜓} ∪ {𝑥 ∈ {𝑧} ∣ 𝜓}) = {𝑥𝑦𝜓})
4513, 44syl5eq 2211 . . . . 5 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} = {𝑥𝑦𝜓})
46 simplr 520 . . . . 5 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → {𝑥𝑦𝜓} ∈ Fin)
4745, 46eqeltrd 2243 . . . 4 (((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) ∧ ¬ [𝑧 / 𝑥]𝜓) → {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} ∈ Fin)
48 simplrr 526 . . . . . . 7 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → 𝑧 ∈ (𝐴𝑦))
4948eldifad 3127 . . . . . 6 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → 𝑧𝐴)
50 ssfirab.dc . . . . . . 7 (𝜑 → ∀𝑥𝐴 DECID 𝜓)
5150ad3antrrr 484 . . . . . 6 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → ∀𝑥𝐴 DECID 𝜓)
52 nfs1v 1927 . . . . . . . 8 𝑥[𝑧 / 𝑥]𝜓
5352nfdc 1647 . . . . . . 7 𝑥DECID [𝑧 / 𝑥]𝜓
54 sbequ12 1759 . . . . . . . 8 (𝑥 = 𝑧 → (𝜓 ↔ [𝑧 / 𝑥]𝜓))
5554dcbid 828 . . . . . . 7 (𝑥 = 𝑧 → (DECID 𝜓DECID [𝑧 / 𝑥]𝜓))
5653, 55rspc 2824 . . . . . 6 (𝑧𝐴 → (∀𝑥𝐴 DECID 𝜓DECID [𝑧 / 𝑥]𝜓))
5749, 51, 56sylc 62 . . . . 5 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → DECID [𝑧 / 𝑥]𝜓)
58 exmiddc 826 . . . . 5 (DECID [𝑧 / 𝑥]𝜓 → ([𝑧 / 𝑥]𝜓 ∨ ¬ [𝑧 / 𝑥]𝜓))
5957, 58syl 14 . . . 4 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → ([𝑧 / 𝑥]𝜓 ∨ ¬ [𝑧 / 𝑥]𝜓))
6033, 47, 59mpjaodan 788 . . 3 ((((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) ∧ {𝑥𝑦𝜓} ∈ Fin) → {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} ∈ Fin)
6160ex 114 . 2 (((𝜑𝑦 ∈ Fin) ∧ (𝑦𝐴𝑧 ∈ (𝐴𝑦))) → ({𝑥𝑦𝜓} ∈ Fin → {𝑥 ∈ (𝑦 ∪ {𝑧}) ∣ 𝜓} ∈ Fin))
62 ssfirab.a . 2 (𝜑𝐴 ∈ Fin)
632, 4, 6, 8, 12, 61, 62findcard2sd 6858 1 (𝜑 → {𝑥𝐴𝜓} ∈ Fin)
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  wo 698  DECID wdc 824   = wceq 1343  [wsb 1750  wcel 2136  wral 2444  {crab 2448  Vcvv 2726  [wsbc 2951  cdif 3113  cun 3114  wss 3116  c0 3409  {csn 3576  Fincfn 6706
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 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-coll 4097  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-iinf 4565
This theorem depends on definitions:  df-bi 116  df-dc 825  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-ral 2449  df-rex 2450  df-reu 2451  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-if 3521  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-iun 3868  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-suc 4349  df-iom 4568  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-1o 6384  df-er 6501  df-en 6707  df-fin 6709
This theorem is referenced by:  ssfidc  6900  phivalfi  12144  hashdvds  12153  phiprmpw  12154  phimullem  12157  hashgcdeq  12171
  Copyright terms: Public domain W3C validator