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

Theorem setrec2fun 10021
Description: This is the second of two fundamental theorems about set recursion from which all other facts will be derived. It states that the class setrecs(𝐹) is a subclass of all classes 𝐶 that are closed under 𝐹. Taken together, Theorems setrec1 10020 and setrec2v 10026 say that setrecs(𝐹) is the minimal class closed under 𝐹.

We express this by saying that if 𝐹 respects the ⊆ relation and 𝐶 is closed under 𝐹, then 𝐵 ⊆ 𝐶. By substituting strategically constructed classes for 𝐶, we can easily prove many useful properties. Although this theorem cannot show equality between 𝐵 and 𝐶, if we intend to prove equality between 𝐵 and some particular class (such as On), we first apply this theorem, then the relevant induction theorem (such as tfi 7909) to the other class. (Contributed by Emmett Weisz, 15-Feb-2021.) (New usage is discouraged.)

Hypotheses
Ref Expression
setrec2fun.1 Ⅎ𝑎𝐹
setrec2fun.2 𝐵 = setrecs(𝐹)
setrec2fun.3 Fun 𝐹
setrec2fun.4 (𝜑 → ∀𝑎(𝑎 ⊆ 𝐶 → (𝐹‘𝑎) ⊆ 𝐶))
Assertion
Ref Expression
setrec2fun (𝜑 → 𝐵 ⊆ 𝐶)
Distinct variable group:   𝐶,𝑎
Allowed substitution hints:   𝜑(𝑎)   𝐵(𝑎)   𝐹(𝑎)

Proof of Theorem setrec2fun
Dummy variables 𝑥 𝑤 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 setrec2fun.2 . . 3 𝐵 = setrecs(𝐹)
2 df-setrecs 10013 . . 3 setrecs(𝐹) = ∪ {𝑦 ∣ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑦 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑦 ⊆ 𝑧)}
31, 2eqtri 2792 . 2 𝐵 = ∪ {𝑦 ∣ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑦 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑦 ⊆ 𝑧)}
4 eqid 2769 . . . . . 6 {𝑦 ∣ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑦 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑦 ⊆ 𝑧)} = {𝑦 ∣ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑦 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑦 ⊆ 𝑧)}
5 vex 3460 . . . . . . 7 𝑥 ∈ V
65a1i 11 . . . . . 6 (𝜑 → 𝑥 ∈ V)
74, 6setrec1lem1 10014 . . . . 5 (𝜑 → (𝑥 ∈ {𝑦 ∣ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑦 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑦 ⊆ 𝑧)} ↔ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑥 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑥 ⊆ 𝑧)))
8 id 23 . . . . . . . . . . . . . . 15 (𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → 𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)))
9 inss1 4138 . . . . . . . . . . . . . . 15 (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) ⊆ 𝐶
108, 9sstrdi 3927 . . . . . . . . . . . . . 14 (𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → 𝑤 ⊆ 𝐶)
11 setrec2fun.4 . . . . . . . . . . . . . . 15 (𝜑 → ∀𝑎(𝑎 ⊆ 𝐶 → (𝐹‘𝑎) ⊆ 𝐶))
12 nfv 1951 . . . . . . . . . . . . . . . . 17 Ⅎ𝑎 𝑤 ⊆ 𝐶
13 setrec2fun.1 . . . . . . . . . . . . . . . . . . 19 Ⅎ𝑎𝐹
14 nfcv 2932 . . . . . . . . . . . . . . . . . . 19 Ⅎ𝑎𝑤
1513, 14nffv 6936 . . . . . . . . . . . . . . . . . 18 Ⅎ𝑎(𝐹‘𝑤)
16 nfcv 2932 . . . . . . . . . . . . . . . . . 18 Ⅎ𝑎𝐶
1715, 16nfss 3908 . . . . . . . . . . . . . . . . 17 Ⅎ𝑎(𝐹‘𝑤) ⊆ 𝐶
1812, 17nfim 1933 . . . . . . . . . . . . . . . 16 Ⅎ𝑎(𝑤 ⊆ 𝐶 → (𝐹‘𝑤) ⊆ 𝐶)
19 sseq1 3940 . . . . . . . . . . . . . . . . . 18 (𝑎 = 𝑤 → (𝑎 ⊆ 𝐶 ↔ 𝑤 ⊆ 𝐶))
20 fveq2 6926 . . . . . . . . . . . . . . . . . . 19 (𝑎 = 𝑤 → (𝐹‘𝑎) = (𝐹‘𝑤))
2120sseq1d 3946 . . . . . . . . . . . . . . . . . 18 (𝑎 = 𝑤 → ((𝐹‘𝑎) ⊆ 𝐶 ↔ (𝐹‘𝑤) ⊆ 𝐶))
2219, 21imbi12d 347 . . . . . . . . . . . . . . . . 17 (𝑎 = 𝑤 → ((𝑎 ⊆ 𝐶 → (𝐹‘𝑎) ⊆ 𝐶) ↔ (𝑤 ⊆ 𝐶 → (𝐹‘𝑤) ⊆ 𝐶)))
2322biimpd 232 . . . . . . . . . . . . . . . 16 (𝑎 = 𝑤 → ((𝑎 ⊆ 𝐶 → (𝐹‘𝑎) ⊆ 𝐶) → (𝑤 ⊆ 𝐶 → (𝐹‘𝑤) ⊆ 𝐶)))
2418, 23spimfv 2283 . . . . . . . . . . . . . . 15 (∀𝑎(𝑎 ⊆ 𝐶 → (𝐹‘𝑎) ⊆ 𝐶) → (𝑤 ⊆ 𝐶 → (𝐹‘𝑤) ⊆ 𝐶))
2511, 24syl 18 . . . . . . . . . . . . . 14 (𝜑 → (𝑤 ⊆ 𝐶 → (𝐹‘𝑤) ⊆ 𝐶))
2610, 25syl5 35 . . . . . . . . . . . . 13 (𝜑 → (𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → (𝐹‘𝑤) ⊆ 𝐶))
2726imp 412 . . . . . . . . . . . 12 ((𝜑 ∧ 𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥))) → (𝐹‘𝑤) ⊆ 𝐶)
28273adant2 1150 . . . . . . . . . . 11 ((𝜑 ∧ 𝑤 ⊆ 𝑥 ∧ 𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥))) → (𝐹‘𝑤) ⊆ 𝐶)
29 velpw 4567 . . . . . . . . . . . . . . 15 (𝑤 ∈ 𝒫 𝑥 ↔ 𝑤 ⊆ 𝑥)
30 eliman0 6963 . . . . . . . . . . . . . . . 16 ((𝑤 ∈ 𝒫 𝑥 ∧ ¬ (𝐹‘𝑤) = ∅) → (𝐹‘𝑤) ∈ (𝐹 “ 𝒫 𝑥))
3130ex 418 . . . . . . . . . . . . . . 15 (𝑤 ∈ 𝒫 𝑥 → (¬ (𝐹‘𝑤) = ∅ → (𝐹‘𝑤) ∈ (𝐹 “ 𝒫 𝑥)))
3229, 31sylbir 238 . . . . . . . . . . . . . 14 (𝑤 ⊆ 𝑥 → (¬ (𝐹‘𝑤) = ∅ → (𝐹‘𝑤) ∈ (𝐹 “ 𝒫 𝑥)))
33 elssuni 4907 . . . . . . . . . . . . . 14 ((𝐹‘𝑤) ∈ (𝐹 “ 𝒫 𝑥) → (𝐹‘𝑤) ⊆ ∪ (𝐹 “ 𝒫 𝑥))
3432, 33syl6 36 . . . . . . . . . . . . 13 (𝑤 ⊆ 𝑥 → (¬ (𝐹‘𝑤) = ∅ → (𝐹‘𝑤) ⊆ ∪ (𝐹 “ 𝒫 𝑥)))
35 id 23 . . . . . . . . . . . . . 14 ((𝐹‘𝑤) = ∅ → (𝐹‘𝑤) = ∅)
36 0ss 4355 . . . . . . . . . . . . . 14 ∅ ⊆ ∪ (𝐹 “ 𝒫 𝑥)
3735, 36eqsstrdi 3959 . . . . . . . . . . . . 13 ((𝐹‘𝑤) = ∅ → (𝐹‘𝑤) ⊆ ∪ (𝐹 “ 𝒫 𝑥))
3834, 37pm2.61d2 183 . . . . . . . . . . . 12 (𝑤 ⊆ 𝑥 → (𝐹‘𝑤) ⊆ ∪ (𝐹 “ 𝒫 𝑥))
39383ad2ant2 1153 . . . . . . . . . . 11 ((𝜑 ∧ 𝑤 ⊆ 𝑥 ∧ 𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥))) → (𝐹‘𝑤) ⊆ ∪ (𝐹 “ 𝒫 𝑥))
4028, 39ssind 4142 . . . . . . . . . 10 ((𝜑 ∧ 𝑤 ⊆ 𝑥 ∧ 𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥))) → (𝐹‘𝑤) ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)))
41403exp 1138 . . . . . . . . 9 (𝜑 → (𝑤 ⊆ 𝑥 → (𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → (𝐹‘𝑤) ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)))))
4241alrimiv 1964 . . . . . . . 8 (𝜑 → ∀𝑤(𝑤 ⊆ 𝑥 → (𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → (𝐹‘𝑤) ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)))))
43 setrec2fun.3 . . . . . . . . . . . 12 Fun 𝐹
445pwex 5352 . . . . . . . . . . . . 13 𝒫 𝑥 ∈ V
4544funimaex 6667 . . . . . . . . . . . 12 (Fun 𝐹 → (𝐹 “ 𝒫 𝑥) ∈ V)
4643, 45ax-mp 5 . . . . . . . . . . 11 (𝐹 “ 𝒫 𝑥) ∈ V
4746uniex 7801 . . . . . . . . . 10 ∪ (𝐹 “ 𝒫 𝑥) ∈ V
4847inex2 5288 . . . . . . . . 9 (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) ∈ V
49 sseq2 3941 . . . . . . . . . . . . 13 (𝑧 = (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → (𝑤 ⊆ 𝑧 ↔ 𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥))))
50 sseq2 3941 . . . . . . . . . . . . 13 (𝑧 = (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → ((𝐹‘𝑤) ⊆ 𝑧 ↔ (𝐹‘𝑤) ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥))))
5149, 50imbi12d 347 . . . . . . . . . . . 12 (𝑧 = (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → ((𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧) ↔ (𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → (𝐹‘𝑤) ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)))))
5251imbi2d 343 . . . . . . . . . . 11 (𝑧 = (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → ((𝑤 ⊆ 𝑥 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) ↔ (𝑤 ⊆ 𝑥 → (𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → (𝐹‘𝑤) ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥))))))
5352albidv 1957 . . . . . . . . . 10 (𝑧 = (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → (∀𝑤(𝑤 ⊆ 𝑥 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) ↔ ∀𝑤(𝑤 ⊆ 𝑥 → (𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → (𝐹‘𝑤) ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥))))))
54 sseq2 3941 . . . . . . . . . 10 (𝑧 = (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → (𝑥 ⊆ 𝑧 ↔ 𝑥 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥))))
5553, 54imbi12d 347 . . . . . . . . 9 (𝑧 = (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → ((∀𝑤(𝑤 ⊆ 𝑥 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑥 ⊆ 𝑧) ↔ (∀𝑤(𝑤 ⊆ 𝑥 → (𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → (𝐹‘𝑤) ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)))) → 𝑥 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)))))
5648, 55spcv 3565 . . . . . . . 8 (∀𝑧(∀𝑤(𝑤 ⊆ 𝑥 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑥 ⊆ 𝑧) → (∀𝑤(𝑤 ⊆ 𝑥 → (𝑤 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)) → (𝐹‘𝑤) ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)))) → 𝑥 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥))))
5742, 56mpan9 516 . . . . . . 7 ((𝜑 ∧ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑥 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑥 ⊆ 𝑧)) → 𝑥 ⊆ (𝐶 ∩ ∪ (𝐹 “ 𝒫 𝑥)))
5857, 9sstrdi 3927 . . . . . 6 ((𝜑 ∧ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑥 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑥 ⊆ 𝑧)) → 𝑥 ⊆ 𝐶)
5958ex 418 . . . . 5 (𝜑 → (∀𝑧(∀𝑤(𝑤 ⊆ 𝑥 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑥 ⊆ 𝑧) → 𝑥 ⊆ 𝐶))
607, 59sylbid 243 . . . 4 (𝜑 → (𝑥 ∈ {𝑦 ∣ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑦 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑦 ⊆ 𝑧)} → 𝑥 ⊆ 𝐶))
6160ralrimiv 3163 . . 3 (𝜑 → ∀𝑥 ∈ {𝑦 ∣ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑦 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑦 ⊆ 𝑧)}𝑥 ⊆ 𝐶)
62 unissb 4909 . . 3 (∪ {𝑦 ∣ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑦 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑦 ⊆ 𝑧)} ⊆ 𝐶 ↔ ∀𝑥 ∈ {𝑦 ∣ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑦 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑦 ⊆ 𝑧)}𝑥 ⊆ 𝐶)
6361, 62sylibr 237 . 2 (𝜑 → ∪ {𝑦 ∣ ∀𝑧(∀𝑤(𝑤 ⊆ 𝑦 → (𝑤 ⊆ 𝑧 → (𝐹‘𝑤) ⊆ 𝑧)) → 𝑦 ⊆ 𝑧)} ⊆ 𝐶)
643, 63eqsstrid 3953 1 (𝜑 → 𝐵 ⊆ 𝐶)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   ∧ w3a 1104  ∀wal 1570   = wceq 1572   ∈ wcel 2151  {cab 2747  Ⅎwnfc 2917  ∀wral 3086  Vcvv 3456   ⊆ wss 3902   ∩ cin 4094  ∅c0 4283  𝒫 cpw 4562  ∪ cuni 4875   “ cima 5664  Fun wfun 6567  ‘cfv 6573  setrecscsetrecs 10012
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-rep 5241  ax-sep 5258  ax-nul 5269  ax-pow 5337  ax-pr 5401  ax-un 7794
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-ral 3087  df-rex 3097  df-rab 3419  df-v 3458  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-br 5112  df-opab 5177  df-id 5556  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-iota 6527  df-fun 6575  df-fv 6581  df-setrecs 10013
This theorem is used by:  setrec2  10025
  Copyright terms: Public domain W3C validator