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

Theorem ttukeylem3 9933
Description: Lemma for ttukey 9940. (Contributed by Mario Carneiro, 11-May-2015.)
Hypotheses
Ref Expression
ttukeylem.1 (𝜑𝐹:(card‘( 𝐴𝐵))–1-1-onto→( 𝐴𝐵))
ttukeylem.2 (𝜑𝐵𝐴)
ttukeylem.3 (𝜑 → ∀𝑥(𝑥𝐴 ↔ (𝒫 𝑥 ∩ Fin) ⊆ 𝐴))
ttukeylem.4 𝐺 = recs((𝑧 ∈ V ↦ if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅)))))
Assertion
Ref Expression
ttukeylem3 ((𝜑𝐶 ∈ On) → (𝐺𝐶) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
Distinct variable groups:   𝑥,𝑧,𝐶   𝑥,𝐺,𝑧   𝜑,𝑧   𝑥,𝐴,𝑧   𝑥,𝐵,𝑧   𝑥,𝐹,𝑧
Allowed substitution hint:   𝜑(𝑥)

Proof of Theorem ttukeylem3
StepHypRef Expression
1 ttukeylem.4 . . . 4 𝐺 = recs((𝑧 ∈ V ↦ if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅)))))
21tfr2 8034 . . 3 (𝐶 ∈ On → (𝐺𝐶) = ((𝑧 ∈ V ↦ if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))))‘(𝐺𝐶)))
32adantl 484 . 2 ((𝜑𝐶 ∈ On) → (𝐺𝐶) = ((𝑧 ∈ V ↦ if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))))‘(𝐺𝐶)))
4 eqidd 2822 . . 3 ((𝜑𝐶 ∈ On) → (𝑧 ∈ V ↦ if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅)))) = (𝑧 ∈ V ↦ if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅)))))
5 simpr 487 . . . . . . . 8 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → 𝑧 = (𝐺𝐶))
65dmeqd 5774 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom 𝑧 = dom (𝐺𝐶))
71tfr1 8033 . . . . . . . . 9 𝐺 Fn On
8 onss 7505 . . . . . . . . . 10 (𝐶 ∈ On → 𝐶 ⊆ On)
98ad2antlr 725 . . . . . . . . 9 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → 𝐶 ⊆ On)
10 fnssres 6470 . . . . . . . . 9 ((𝐺 Fn On ∧ 𝐶 ⊆ On) → (𝐺𝐶) Fn 𝐶)
117, 9, 10sylancr 589 . . . . . . . 8 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝐺𝐶) Fn 𝐶)
12 fndm 6455 . . . . . . . 8 ((𝐺𝐶) Fn 𝐶 → dom (𝐺𝐶) = 𝐶)
1311, 12syl 17 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom (𝐺𝐶) = 𝐶)
146, 13eqtrd 2856 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom 𝑧 = 𝐶)
1514unieqd 4852 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom 𝑧 = 𝐶)
1614, 15eqeq12d 2837 . . . . 5 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (dom 𝑧 = dom 𝑧𝐶 = 𝐶))
1714eqeq1d 2823 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (dom 𝑧 = ∅ ↔ 𝐶 = ∅))
185rneqd 5808 . . . . . . . 8 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ran 𝑧 = ran (𝐺𝐶))
19 df-ima 5568 . . . . . . . 8 (𝐺𝐶) = ran (𝐺𝐶)
2018, 19syl6eqr 2874 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ran 𝑧 = (𝐺𝐶))
2120unieqd 4852 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ran 𝑧 = (𝐺𝐶))
2217, 21ifbieq2d 4492 . . . . 5 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(dom 𝑧 = ∅, 𝐵, ran 𝑧) = if(𝐶 = ∅, 𝐵, (𝐺𝐶)))
235, 15fveq12d 6677 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝑧 dom 𝑧) = ((𝐺𝐶)‘ 𝐶))
2415fveq2d 6674 . . . . . . . . . 10 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝐹 dom 𝑧) = (𝐹 𝐶))
2524sneqd 4579 . . . . . . . . 9 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → {(𝐹 dom 𝑧)} = {(𝐹 𝐶)})
2623, 25uneq12d 4140 . . . . . . . 8 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) = (((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}))
2726eleq1d 2897 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴 ↔ (((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴))
28 eqidd 2822 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ∅ = ∅)
2927, 25, 28ifbieq12d 4494 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅) = if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))
3023, 29uneq12d 4140 . . . . 5 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅)) = (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)))
3116, 22, 30ifbieq12d 4494 . . . 4 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
32 onuni 7508 . . . . . . . . . 10 (𝐶 ∈ On → 𝐶 ∈ On)
3332ad3antlr 729 . . . . . . . . 9 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶 ∈ On)
34 sucidg 6269 . . . . . . . . 9 ( 𝐶 ∈ On → 𝐶 ∈ suc 𝐶)
3533, 34syl 17 . . . . . . . 8 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶 ∈ suc 𝐶)
36 eloni 6201 . . . . . . . . . . 11 (𝐶 ∈ On → Ord 𝐶)
3736ad2antlr 725 . . . . . . . . . 10 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → Ord 𝐶)
38 orduniorsuc 7545 . . . . . . . . . 10 (Ord 𝐶 → (𝐶 = 𝐶𝐶 = suc 𝐶))
3937, 38syl 17 . . . . . . . . 9 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝐶 = 𝐶𝐶 = suc 𝐶))
4039orcanai 999 . . . . . . . 8 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶 = suc 𝐶)
4135, 40eleqtrrd 2916 . . . . . . 7 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶𝐶)
4241fvresd 6690 . . . . . 6 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → ((𝐺𝐶)‘ 𝐶) = (𝐺 𝐶))
4342uneq1d 4138 . . . . . . . 8 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → (((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) = ((𝐺 𝐶) ∪ {(𝐹 𝐶)}))
4443eleq1d 2897 . . . . . . 7 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → ((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴 ↔ ((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴))
4544ifbid 4489 . . . . . 6 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅) = if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))
4642, 45uneq12d 4140 . . . . 5 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)) = ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)))
4746ifeq2da 4498 . . . 4 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
4831, 47eqtrd 2856 . . 3 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
49 fnfun 6453 . . . . 5 (𝐺 Fn On → Fun 𝐺)
507, 49ax-mp 5 . . . 4 Fun 𝐺
51 simpr 487 . . . 4 ((𝜑𝐶 ∈ On) → 𝐶 ∈ On)
52 resfunexg 6978 . . . 4 ((Fun 𝐺𝐶 ∈ On) → (𝐺𝐶) ∈ V)
5350, 51, 52sylancr 589 . . 3 ((𝜑𝐶 ∈ On) → (𝐺𝐶) ∈ V)
54 ttukeylem.2 . . . . . 6 (𝜑𝐵𝐴)
5554elexd 3514 . . . . 5 (𝜑𝐵 ∈ V)
56 funimaexg 6440 . . . . . . 7 ((Fun 𝐺𝐶 ∈ On) → (𝐺𝐶) ∈ V)
5750, 56mpan 688 . . . . . 6 (𝐶 ∈ On → (𝐺𝐶) ∈ V)
5857uniexd 7468 . . . . 5 (𝐶 ∈ On → (𝐺𝐶) ∈ V)
59 ifcl 4511 . . . . 5 ((𝐵 ∈ V ∧ (𝐺𝐶) ∈ V) → if(𝐶 = ∅, 𝐵, (𝐺𝐶)) ∈ V)
6055, 58, 59syl2an 597 . . . 4 ((𝜑𝐶 ∈ On) → if(𝐶 = ∅, 𝐵, (𝐺𝐶)) ∈ V)
61 fvex 6683 . . . . 5 (𝐺 𝐶) ∈ V
62 snex 5332 . . . . . 6 {(𝐹 𝐶)} ∈ V
63 0ex 5211 . . . . . 6 ∅ ∈ V
6462, 63ifex 4515 . . . . 5 if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅) ∈ V
6561, 64unex 7469 . . . 4 ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)) ∈ V
66 ifcl 4511 . . . 4 ((if(𝐶 = ∅, 𝐵, (𝐺𝐶)) ∈ V ∧ ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)) ∈ V) → if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))) ∈ V)
6760, 65, 66sylancl 588 . . 3 ((𝜑𝐶 ∈ On) → if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))) ∈ V)
684, 48, 53, 67fvmptd 6775 . 2 ((𝜑𝐶 ∈ On) → ((𝑧 ∈ V ↦ if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))))‘(𝐺𝐶)) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
693, 68eqtrd 2856 1 ((𝜑𝐶 ∈ On) → (𝐺𝐶) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wo 843  wal 1535   = wceq 1537  wcel 2114  Vcvv 3494  cdif 3933  cun 3934  cin 3935  wss 3936  c0 4291  ifcif 4467  𝒫 cpw 4539  {csn 4567   cuni 4838  cmpt 5146  dom cdm 5555  ran crn 5556  cres 5557  cima 5558  Ord word 6190  Oncon0 6191  suc csuc 6193  Fun wfun 6349   Fn wfn 6350  1-1-ontowf1o 6354  cfv 6355  recscrecs 8007  Fincfn 8509  cardccrd 9364
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-rep 5190  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-reu 3145  df-rab 3147  df-v 3496  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-pss 3954  df-nul 4292  df-if 4468  df-sn 4568  df-pr 4570  df-tp 4572  df-op 4574  df-uni 4839  df-iun 4921  df-br 5067  df-opab 5129  df-mpt 5147  df-tr 5173  df-id 5460  df-eprel 5465  df-po 5474  df-so 5475  df-fr 5514  df-we 5516  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-pred 6148  df-ord 6194  df-on 6195  df-suc 6197  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-f1 6360  df-fo 6361  df-f1o 6362  df-fv 6363  df-wrecs 7947  df-recs 8008
This theorem is referenced by:  ttukeylem4  9934  ttukeylem5  9935  ttukeylem6  9936  ttukeylem7  9937
  Copyright terms: Public domain W3C validator