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

Theorem ttukeylem3 10513
Description: Lemma for ttukey 10520. (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 8394 . . 3 (𝐶 ∈ On → (𝐺𝐶) = ((𝑧 ∈ V ↦ if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))))‘(𝐺𝐶)))
32adantl 487 . 2 ((𝜑𝐶 ∈ On) → (𝐺𝐶) = ((𝑧 ∈ V ↦ if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))))‘(𝐺𝐶)))
4 eqidd 2767 . . 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 490 . . . . . . . 8 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → 𝑧 = (𝐺𝐶))
65dmeqd 5900 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom 𝑧 = dom (𝐺𝐶))
71tfr1 8393 . . . . . . . . 9 𝐺 Fn On
8 onss 7793 . . . . . . . . . 10 (𝐶 ∈ On → 𝐶 ⊆ On)
98ad2antlr 740 . . . . . . . . 9 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → 𝐶 ⊆ On)
10 fnssres 6665 . . . . . . . . 9 ((𝐺 Fn On ∧ 𝐶 ⊆ On) → (𝐺𝐶) Fn 𝐶)
117, 9, 10sylancr 599 . . . . . . . 8 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝐺𝐶) Fn 𝐶)
1211fndmd 6647 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom (𝐺𝐶) = 𝐶)
136, 12eqtrd 2801 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom 𝑧 = 𝐶)
1413unieqd 4890 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom 𝑧 = 𝐶)
1513, 14eqeq12d 2782 . . . . 5 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (dom 𝑧 = dom 𝑧𝐶 = 𝐶))
1613eqeq1d 2768 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (dom 𝑧 = ∅ ↔ 𝐶 = ∅))
175rneqd 5933 . . . . . . . 8 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ran 𝑧 = ran (𝐺𝐶))
18 df-ima 5679 . . . . . . . 8 (𝐺𝐶) = ran (𝐺𝐶)
1917, 18eqtr4di 2819 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ran 𝑧 = (𝐺𝐶))
2019unieqd 4890 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ran 𝑧 = (𝐺𝐶))
2116, 20ifbieq2d 4519 . . . . 5 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(dom 𝑧 = ∅, 𝐵, ran 𝑧) = if(𝐶 = ∅, 𝐵, (𝐺𝐶)))
225, 14fveq12d 6895 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝑧 dom 𝑧) = ((𝐺𝐶)‘ 𝐶))
2314fveq2d 6892 . . . . . . . . . 10 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝐹 dom 𝑧) = (𝐹 𝐶))
2423sneqd 4606 . . . . . . . . 9 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → {(𝐹 dom 𝑧)} = {(𝐹 𝐶)})
2522, 24uneq12d 4126 . . . . . . . 8 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) = (((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}))
2625eleq1d 2851 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴 ↔ (((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴))
27 eqidd 2767 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ∅ = ∅)
2826, 24, 27ifbieq12d 4521 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅) = if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))
2922, 28uneq12d 4126 . . . . 5 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅)) = (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)))
3015, 21, 29ifbieq12d 4521 . . . 4 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
31 onuni 7796 . . . . . . . . . 10 (𝐶 ∈ On → 𝐶 ∈ On)
3231ad3antlr 744 . . . . . . . . 9 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶 ∈ On)
33 sucidg 6451 . . . . . . . . 9 ( 𝐶 ∈ On → 𝐶 ∈ suc 𝐶)
3432, 33syl 18 . . . . . . . 8 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶 ∈ suc 𝐶)
35 eloni 6377 . . . . . . . . . . 11 (𝐶 ∈ On → Ord 𝐶)
3635ad2antlr 740 . . . . . . . . . 10 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → Ord 𝐶)
37 orduniorsuc 7835 . . . . . . . . . 10 (Ord 𝐶 → (𝐶 = 𝐶𝐶 = suc 𝐶))
3836, 37syl 18 . . . . . . . . 9 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝐶 = 𝐶𝐶 = suc 𝐶))
3938orcanai 1018 . . . . . . . 8 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶 = suc 𝐶)
4034, 39eleqtrrd 2869 . . . . . . 7 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶𝐶)
4140fvresd 6908 . . . . . 6 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → ((𝐺𝐶)‘ 𝐶) = (𝐺 𝐶))
4241uneq1d 4124 . . . . . . . 8 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → (((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) = ((𝐺 𝐶) ∪ {(𝐹 𝐶)}))
4342eleq1d 2851 . . . . . . 7 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → ((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴 ↔ ((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴))
4443ifbid 4516 . . . . . 6 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅) = if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))
4541, 44uneq12d 4126 . . . . 5 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)) = ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)))
4645ifeq2da 4525 . . . 4 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
4730, 46eqtrd 2801 . . 3 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
48 fnfun 6642 . . . . 5 (𝐺 Fn On → Fun 𝐺)
497, 48ax-mp 5 . . . 4 Fun 𝐺
50 simpr 490 . . . 4 ((𝜑𝐶 ∈ On) → 𝐶 ∈ On)
51 resfunexg 7220 . . . 4 ((Fun 𝐺𝐶 ∈ On) → (𝐺𝐶) ∈ V)
5249, 50, 51sylancr 599 . . 3 ((𝜑𝐶 ∈ On) → (𝐺𝐶) ∈ V)
53 ttukeylem.2 . . . . . 6 (𝜑𝐵𝐴)
5453elexd 3481 . . . . 5 (𝜑𝐵 ∈ V)
55 funimaexg 6629 . . . . . . 7 ((Fun 𝐺𝐶 ∈ On) → (𝐺𝐶) ∈ V)
5649, 55mpan 703 . . . . . 6 (𝐶 ∈ On → (𝐺𝐶) ∈ V)
5756uniexd 7753 . . . . 5 (𝐶 ∈ On → (𝐺𝐶) ∈ V)
58 ifcl 4538 . . . . 5 ((𝐵 ∈ V ∧ (𝐺𝐶) ∈ V) → if(𝐶 = ∅, 𝐵, (𝐺𝐶)) ∈ V)
5954, 57, 58syl2an 608 . . . 4 ((𝜑𝐶 ∈ On) → if(𝐶 = ∅, 𝐵, (𝐺𝐶)) ∈ V)
60 fvex 6901 . . . . 5 (𝐺 𝐶) ∈ V
61 snex 5415 . . . . . 6 {(𝐹 𝐶)} ∈ V
62 0ex 5275 . . . . . 6 ∅ ∈ V
6361, 62ifex 4543 . . . . 5 if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅) ∈ V
6460, 63unex 7755 . . . 4 ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)) ∈ V
65 ifcl 4538 . . . 4 ((if(𝐶 = ∅, 𝐵, (𝐺𝐶)) ∈ V ∧ ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)) ∈ V) → if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))) ∈ V)
6659, 64, 65sylancl 598 . . 3 ((𝜑𝐶 ∈ On) → if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))) ∈ V)
674, 47, 52, 66fvmptd 7004 . 2 ((𝜑𝐶 ∈ On) → ((𝑧 ∈ V ↦ if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))))‘(𝐺𝐶)) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
683, 67eqtrd 2801 1 ((𝜑𝐶 ∈ On) → (𝐺𝐶) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3  wi 4  wb 209  wa 401  wo 861  wal 1568   = wceq 1570  wcel 2146  Vcvv 3458  cdif 3905  cun 3906  cin 3907  wss 3908  c0 4289  ifcif 4492  𝒫 cpw 4567  {csn 4594   cuni 4877  cmpt 5197  dom cdm 5666  ran crn 5667  cres 5668  cima 5669  Ord word 6366  Oncon0 6367  suc csuc 6369  Fun wfun 6537   Fn wfn 6538  1-1-ontowf1o 6542  cfv 6543  recscrecs 8366  Fincfn 8952  cardccrd 9940
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2195  ax-12 2216  ax-ext 2738  ax-rep 5243  ax-sep 5262  ax-nul 5274  ax-pr 5409  ax-un 7745
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2841  df-nfc 2915  df-ne 2962  df-ral 3083  df-rex 3093  df-reu 3373  df-rab 3420  df-v 3460  df-sbc 3748  df-csb 3857  df-dif 3911  df-un 3913  df-in 3915  df-ss 3925  df-pss 3928  df-nul 4290  df-if 4493  df-pw 4569  df-sn 4595  df-pr 4597  df-op 4601  df-uni 4878  df-iun 4963  df-br 5115  df-opab 5179  df-mpt 5198  df-tr 5224  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6309  df-ord 6370  df-on 6371  df-suc 6373  df-iota 6499  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-ov 7426  df-2nd 7996  df-frecs 8287  df-wrecs 8318  df-recs 8367
This theorem is used by:  ttukeylem4  10514  ttukeylem5  10515  ttukeylem6  10516  ttukeylem7  10517
  Copyright terms: Public domain W3C validator