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

Theorem ttukeylem3 10517
Description: Lemma for ttukey 10524. (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 8391 . . 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 2763 . . 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 5893 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom 𝑧 = dom (𝐺𝐶))
71tfr1 8390 . . . . . . . . 9 𝐺 Fn On
8 onss 7788 . . . . . . . . . 10 (𝐶 ∈ On → 𝐶 ⊆ On)
98ad2antlr 740 . . . . . . . . 9 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → 𝐶 ⊆ On)
10 fnssres 6659 . . . . . . . . 9 ((𝐺 Fn On ∧ 𝐶 ⊆ On) → (𝐺𝐶) Fn 𝐶)
117, 9, 10sylancr 599 . . . . . . . 8 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝐺𝐶) Fn 𝐶)
1211fndmd 6641 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom (𝐺𝐶) = 𝐶)
136, 12eqtrd 2797 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom 𝑧 = 𝐶)
1413unieqd 4883 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → dom 𝑧 = 𝐶)
1513, 14eqeq12d 2778 . . . . 5 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (dom 𝑧 = dom 𝑧𝐶 = 𝐶))
1613eqeq1d 2764 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (dom 𝑧 = ∅ ↔ 𝐶 = ∅))
175rneqd 5926 . . . . . . . 8 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ran 𝑧 = ran (𝐺𝐶))
18 df-ima 5672 . . . . . . . 8 (𝐺𝐶) = ran (𝐺𝐶)
1917, 18eqtr4di 2815 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ran 𝑧 = (𝐺𝐶))
2019unieqd 4883 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ran 𝑧 = (𝐺𝐶))
2116, 20ifbieq2d 4512 . . . . 5 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(dom 𝑧 = ∅, 𝐵, ran 𝑧) = if(𝐶 = ∅, 𝐵, (𝐺𝐶)))
225, 14fveq12d 6889 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝑧 dom 𝑧) = ((𝐺𝐶)‘ 𝐶))
2314fveq2d 6886 . . . . . . . . . 10 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝐹 dom 𝑧) = (𝐹 𝐶))
2423sneqd 4599 . . . . . . . . 9 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → {(𝐹 dom 𝑧)} = {(𝐹 𝐶)})
2522, 24uneq12d 4119 . . . . . . . 8 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) = (((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}))
2625eleq1d 2847 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴 ↔ (((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴))
27 eqidd 2763 . . . . . . 7 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ∅ = ∅)
2826, 24, 27ifbieq12d 4514 . . . . . 6 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅) = if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))
2922, 28uneq12d 4119 . . . . 5 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅)) = (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)))
3015, 21, 29ifbieq12d 4514 . . . 4 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
31 onuni 7791 . . . . . . . . . 10 (𝐶 ∈ On → 𝐶 ∈ On)
3231ad3antlr 744 . . . . . . . . 9 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶 ∈ On)
33 sucidg 6445 . . . . . . . . 9 ( 𝐶 ∈ On → 𝐶 ∈ suc 𝐶)
3432, 33syl 18 . . . . . . . 8 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶 ∈ suc 𝐶)
35 eloni 6371 . . . . . . . . . . 11 (𝐶 ∈ On → Ord 𝐶)
3635ad2antlr 740 . . . . . . . . . 10 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → Ord 𝐶)
37 orduniorsuc 7830 . . . . . . . . . 10 (Ord 𝐶 → (𝐶 = 𝐶𝐶 = suc 𝐶))
3836, 37syl 18 . . . . . . . . 9 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → (𝐶 = 𝐶𝐶 = suc 𝐶))
3938orcanai 1018 . . . . . . . 8 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶 = suc 𝐶)
4034, 39eleqtrrd 2865 . . . . . . 7 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → 𝐶𝐶)
4140fvresd 6902 . . . . . 6 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → ((𝐺𝐶)‘ 𝐶) = (𝐺 𝐶))
4241uneq1d 4117 . . . . . . . 8 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → (((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) = ((𝐺 𝐶) ∪ {(𝐹 𝐶)}))
4342eleq1d 2847 . . . . . . 7 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → ((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴 ↔ ((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴))
4443ifbid 4509 . . . . . 6 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅) = if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))
4541, 44uneq12d 4119 . . . . 5 ((((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) ∧ ¬ 𝐶 = 𝐶) → (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)) = ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)))
4645ifeq2da 4518 . . . 4 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), (((𝐺𝐶)‘ 𝐶) ∪ if((((𝐺𝐶)‘ 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
4730, 46eqtrd 2797 . . 3 (((𝜑𝐶 ∈ On) ∧ 𝑧 = (𝐺𝐶)) → if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
48 fnfun 6636 . . . . 5 (𝐺 Fn On → Fun 𝐺)
497, 48ax-mp 5 . . . 4 Fun 𝐺
50 simpr 490 . . . 4 ((𝜑𝐶 ∈ On) → 𝐶 ∈ On)
51 resfunexg 7218 . . . 4 ((Fun 𝐺𝐶 ∈ On) → (𝐺𝐶) ∈ V)
5249, 50, 51sylancr 599 . . 3 ((𝜑𝐶 ∈ On) → (𝐺𝐶) ∈ V)
53 ttukeylem.2 . . . . . 6 (𝜑𝐵𝐴)
5453elexd 3476 . . . . 5 (𝜑𝐵 ∈ V)
55 funimaexg 6623 . . . . . . 7 ((Fun 𝐺𝐶 ∈ On) → (𝐺𝐶) ∈ V)
5649, 55mpan 703 . . . . . 6 (𝐶 ∈ On → (𝐺𝐶) ∈ V)
5756uniexd 7748 . . . . 5 (𝐶 ∈ On → (𝐺𝐶) ∈ V)
58 ifcl 4531 . . . . 5 ((𝐵 ∈ V ∧ (𝐺𝐶) ∈ V) → if(𝐶 = ∅, 𝐵, (𝐺𝐶)) ∈ V)
5954, 57, 58syl2an 608 . . . 4 ((𝜑𝐶 ∈ On) → if(𝐶 = ∅, 𝐵, (𝐺𝐶)) ∈ V)
60 fvex 6895 . . . . 5 (𝐺 𝐶) ∈ V
61 snex 5408 . . . . . 6 {(𝐹 𝐶)} ∈ V
62 0ex 5268 . . . . . 6 ∅ ∈ V
6361, 62ifex 4536 . . . . 5 if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅) ∈ V
6460, 63unex 7750 . . . 4 ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)) ∈ V
65 ifcl 4531 . . . 4 ((if(𝐶 = ∅, 𝐵, (𝐺𝐶)) ∈ V ∧ ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅)) ∈ V) → if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))) ∈ V)
6659, 64, 65sylancl 598 . . 3 ((𝜑𝐶 ∈ On) → if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))) ∈ V)
674, 47, 52, 66fvmptd 6998 . 2 ((𝜑𝐶 ∈ On) → ((𝑧 ∈ V ↦ if(dom 𝑧 = dom 𝑧, if(dom 𝑧 = ∅, 𝐵, ran 𝑧), ((𝑧 dom 𝑧) ∪ if(((𝑧 dom 𝑧) ∪ {(𝐹 dom 𝑧)}) ∈ 𝐴, {(𝐹 dom 𝑧)}, ∅))))‘(𝐺𝐶)) = if(𝐶 = 𝐶, if(𝐶 = ∅, 𝐵, (𝐺𝐶)), ((𝐺 𝐶) ∪ if(((𝐺 𝐶) ∪ {(𝐹 𝐶)}) ∈ 𝐴, {(𝐹 𝐶)}, ∅))))
683, 67eqtrd 2797 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 2145  Vcvv 3453  cdif 3899  cun 3900  cin 3901  wss 3902  c0 4282  ifcif 4485  𝒫 cpw 4560  {csn 4587   cuni 4870  cmpt 5190  dom cdm 5659  ran crn 5660  cres 5661  cima 5662  Ord word 6360  Oncon0 6361  suc csuc 6363  Fun wfun 6531   Fn wfn 6532  1-1-ontowf1o 6536  cfv 6537  recscrecs 8363  Fincfn 8956  cardccrd 9944
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 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2215  ax-ext 2734  ax-rep 5236  ax-sep 5255  ax-nul 5267  ax-pr 5402  ax-un 7740
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 2566  df-eu 2596  df-clab 2741  df-cleq 2754  df-clel 2837  df-nfc 2911  df-ne 2958  df-ral 3079  df-rex 3089  df-reu 3368  df-rab 3415  df-v 3455  df-sbc 3743  df-csb 3851  df-dif 3905  df-un 3907  df-in 3909  df-ss 3919  df-pss 3922  df-nul 4283  df-if 4486  df-pw 4562  df-sn 4588  df-pr 4590  df-op 4594  df-uni 4871  df-iun 4956  df-br 5108  df-opab 5172  df-mpt 5191  df-tr 5217  df-id 5554  df-eprel 5559  df-po 5567  df-so 5568  df-fr 5612  df-we 5614  df-xp 5665  df-rel 5666  df-cnv 5667  df-co 5668  df-dm 5669  df-rn 5670  df-res 5671  df-ima 5672  df-pred 6303  df-ord 6364  df-on 6365  df-suc 6367  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fo 6543  df-f1o 6544  df-fv 6545  df-ov 7420  df-2nd 7991  df-frecs 8284  df-wrecs 8315  df-recs 8364
This theorem is used by:  ttukeylem4  10518  ttukeylem5  10519  ttukeylem6  10520  ttukeylem7  10521
  Copyright terms: Public domain W3C validator