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

Theorem ramval 16690
Description: The value of the Ramsey number function. (Contributed by Mario Carneiro, 21-Apr-2015.) (Revised by AV, 14-Sep-2020.)
Hypotheses
Ref Expression
ramval.c 𝐶 = (𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})
ramval.t 𝑇 = {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))}
Assertion
Ref Expression
ramval ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → (𝑀 Ramsey 𝐹) = inf(𝑇, ℝ*, < ))
Distinct variable groups:   𝑓,𝑐,𝑥,𝐶   𝑛,𝑐,𝑠,𝐹,𝑓,𝑥   𝑎,𝑏,𝑐,𝑓,𝑖,𝑛,𝑠,𝑥,𝑀   𝑅,𝑐,𝑓,𝑛,𝑠,𝑥   𝑉,𝑐,𝑓,𝑛,𝑠,𝑥
Allowed substitution hints:   𝐶(𝑖,𝑛,𝑠,𝑎,𝑏)   𝑅(𝑖,𝑎,𝑏)   𝑇(𝑥,𝑓,𝑖,𝑛,𝑠,𝑎,𝑏,𝑐)   𝐹(𝑖,𝑎,𝑏)   𝑉(𝑖,𝑎,𝑏)

Proof of Theorem ramval
Dummy variables 𝑦 𝑚 𝑟 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-ram 16683 . . 3 Ramsey = (𝑚 ∈ ℕ0, 𝑟 ∈ V ↦ inf({𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))}, ℝ*, < ))
21a1i 11 . 2 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → Ramsey = (𝑚 ∈ ℕ0, 𝑟 ∈ V ↦ inf({𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))}, ℝ*, < )))
3 simplrr 774 . . . . . . . . . . . 12 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → 𝑟 = 𝐹)
43dmeqd 5811 . . . . . . . . . . 11 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → dom 𝑟 = dom 𝐹)
5 simpll3 1212 . . . . . . . . . . . 12 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → 𝐹:𝑅⟶ℕ0)
65fdmd 6607 . . . . . . . . . . 11 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → dom 𝐹 = 𝑅)
74, 6eqtrd 2779 . . . . . . . . . 10 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → dom 𝑟 = 𝑅)
8 simplrl 773 . . . . . . . . . . . . 13 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → 𝑚 = 𝑀)
98eqeq2d 2750 . . . . . . . . . . . 12 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → ((♯‘𝑦) = 𝑚 ↔ (♯‘𝑦) = 𝑀))
109rabbidv 3412 . . . . . . . . . . 11 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚} = {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑀})
11 vex 3434 . . . . . . . . . . . 12 𝑠 ∈ V
12 simpll1 1210 . . . . . . . . . . . 12 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → 𝑀 ∈ ℕ0)
13 ramval.c . . . . . . . . . . . . 13 𝐶 = (𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})
1413hashbcval 16684 . . . . . . . . . . . 12 ((𝑠 ∈ V ∧ 𝑀 ∈ ℕ0) → (𝑠𝐶𝑀) = {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑀})
1511, 12, 14sylancr 586 . . . . . . . . . . 11 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (𝑠𝐶𝑀) = {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑀})
1610, 15eqtr4d 2782 . . . . . . . . . 10 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚} = (𝑠𝐶𝑀))
177, 16oveq12d 7286 . . . . . . . . 9 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚}) = (𝑅m (𝑠𝐶𝑀)))
1817raleqdv 3346 . . . . . . . 8 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐))))
19 simpr 484 . . . . . . . . . . . . 13 ((𝑚 = 𝑀𝑟 = 𝐹) → 𝑟 = 𝐹)
2019dmeqd 5811 . . . . . . . . . . . 12 ((𝑚 = 𝑀𝑟 = 𝐹) → dom 𝑟 = dom 𝐹)
21 fdm 6605 . . . . . . . . . . . . 13 (𝐹:𝑅⟶ℕ0 → dom 𝐹 = 𝑅)
22213ad2ant3 1133 . . . . . . . . . . . 12 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → dom 𝐹 = 𝑅)
2320, 22sylan9eqr 2801 . . . . . . . . . . 11 (((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) → dom 𝑟 = 𝑅)
2423ad2antrr 722 . . . . . . . . . 10 (((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) → dom 𝑟 = 𝑅)
253ad2antrr 722 . . . . . . . . . . . . . 14 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → 𝑟 = 𝐹)
2625fveq1d 6770 . . . . . . . . . . . . 13 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑟𝑐) = (𝐹𝑐))
2726breq1d 5088 . . . . . . . . . . . 12 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → ((𝑟𝑐) ≤ (♯‘𝑥) ↔ (𝐹𝑐) ≤ (♯‘𝑥)))
288ad2antrr 722 . . . . . . . . . . . . . . . 16 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → 𝑚 = 𝑀)
2928oveq2d 7284 . . . . . . . . . . . . . . 15 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑥𝐶𝑚) = (𝑥𝐶𝑀))
30 vex 3434 . . . . . . . . . . . . . . . 16 𝑥 ∈ V
3112ad2antrr 722 . . . . . . . . . . . . . . . . 17 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → 𝑀 ∈ ℕ0)
3228, 31eqeltrd 2840 . . . . . . . . . . . . . . . 16 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → 𝑚 ∈ ℕ0)
3313hashbcval 16684 . . . . . . . . . . . . . . . 16 ((𝑥 ∈ V ∧ 𝑚 ∈ ℕ0) → (𝑥𝐶𝑚) = {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚})
3430, 32, 33sylancr 586 . . . . . . . . . . . . . . 15 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑥𝐶𝑚) = {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚})
3529, 34eqtr3d 2781 . . . . . . . . . . . . . 14 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑥𝐶𝑀) = {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚})
3635sseq1d 3956 . . . . . . . . . . . . 13 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → ((𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}) ↔ {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚} ⊆ (𝑓 “ {𝑐})))
37 rabss 4009 . . . . . . . . . . . . . 14 ({𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚} ⊆ (𝑓 “ {𝑐}) ↔ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚𝑦 ∈ (𝑓 “ {𝑐})))
3835eleq2d 2825 . . . . . . . . . . . . . . . . . . . . 21 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑦 ∈ (𝑥𝐶𝑀) ↔ 𝑦 ∈ {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚}))
39 rabid 3308 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 ∈ {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚} ↔ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚))
4038, 39bitrdi 286 . . . . . . . . . . . . . . . . . . . 20 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑦 ∈ (𝑥𝐶𝑀) ↔ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)))
4140biimpar 477 . . . . . . . . . . . . . . . . . . 19 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)) → 𝑦 ∈ (𝑥𝐶𝑀))
42 elpwi 4547 . . . . . . . . . . . . . . . . . . . . . 22 (𝑥 ∈ 𝒫 𝑠𝑥𝑠)
4342adantl 481 . . . . . . . . . . . . . . . . . . . . 21 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → 𝑥𝑠)
4413hashbcss 16686 . . . . . . . . . . . . . . . . . . . . 21 ((𝑠 ∈ V ∧ 𝑥𝑠𝑀 ∈ ℕ0) → (𝑥𝐶𝑀) ⊆ (𝑠𝐶𝑀))
4511, 43, 31, 44mp3an2i 1464 . . . . . . . . . . . . . . . . . . . 20 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑥𝐶𝑀) ⊆ (𝑠𝐶𝑀))
4645sselda 3925 . . . . . . . . . . . . . . . . . . 19 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ 𝑦 ∈ (𝑥𝐶𝑀)) → 𝑦 ∈ (𝑠𝐶𝑀))
4741, 46syldan 590 . . . . . . . . . . . . . . . . . 18 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)) → 𝑦 ∈ (𝑠𝐶𝑀))
48 elmapi 8611 . . . . . . . . . . . . . . . . . . . 20 (𝑓 ∈ (𝑅m (𝑠𝐶𝑀)) → 𝑓:(𝑠𝐶𝑀)⟶𝑅)
4948ad3antlr 727 . . . . . . . . . . . . . . . . . . 19 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)) → 𝑓:(𝑠𝐶𝑀)⟶𝑅)
50 ffn 6596 . . . . . . . . . . . . . . . . . . 19 (𝑓:(𝑠𝐶𝑀)⟶𝑅𝑓 Fn (𝑠𝐶𝑀))
51 fniniseg 6931 . . . . . . . . . . . . . . . . . . 19 (𝑓 Fn (𝑠𝐶𝑀) → (𝑦 ∈ (𝑓 “ {𝑐}) ↔ (𝑦 ∈ (𝑠𝐶𝑀) ∧ (𝑓𝑦) = 𝑐)))
5249, 50, 513syl 18 . . . . . . . . . . . . . . . . . 18 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)) → (𝑦 ∈ (𝑓 “ {𝑐}) ↔ (𝑦 ∈ (𝑠𝐶𝑀) ∧ (𝑓𝑦) = 𝑐)))
5347, 52mpbirand 703 . . . . . . . . . . . . . . . . 17 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)) → (𝑦 ∈ (𝑓 “ {𝑐}) ↔ (𝑓𝑦) = 𝑐))
5453anassrs 467 . . . . . . . . . . . . . . . 16 ((((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ 𝑦 ∈ 𝒫 𝑥) ∧ (♯‘𝑦) = 𝑚) → (𝑦 ∈ (𝑓 “ {𝑐}) ↔ (𝑓𝑦) = 𝑐))
5554pm5.74da 800 . . . . . . . . . . . . . . 15 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ 𝑦 ∈ 𝒫 𝑥) → (((♯‘𝑦) = 𝑚𝑦 ∈ (𝑓 “ {𝑐})) ↔ ((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))
5655ralbidva 3121 . . . . . . . . . . . . . 14 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚𝑦 ∈ (𝑓 “ {𝑐})) ↔ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))
5737, 56syl5bb 282 . . . . . . . . . . . . 13 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → ({𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚} ⊆ (𝑓 “ {𝑐}) ↔ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))
5836, 57bitr2d 279 . . . . . . . . . . . 12 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐) ↔ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))
5927, 58anbi12d 630 . . . . . . . . . . 11 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
6059rexbidva 3226 . . . . . . . . . 10 (((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) → (∃𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ∃𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
6124, 60rexeqbidv 3335 . . . . . . . . 9 (((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) → (∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
6261ralbidva 3121 . . . . . . . 8 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
6318, 62bitrd 278 . . . . . . 7 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
6463imbi2d 340 . . . . . 6 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → ((𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐))) ↔ (𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))))
6564albidv 1926 . . . . 5 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐))) ↔ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))))
6665rabbidva 3410 . . . 4 (((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) → {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))} = {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))})
67 ramval.t . . . 4 𝑇 = {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))}
6866, 67eqtr4di 2797 . . 3 (((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) → {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))} = 𝑇)
6968infeq1d 9197 . 2 (((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) → inf({𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))}, ℝ*, < ) = inf(𝑇, ℝ*, < ))
70 simp1 1134 . 2 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → 𝑀 ∈ ℕ0)
71 simp3 1136 . . 3 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → 𝐹:𝑅⟶ℕ0)
72 simp2 1135 . . 3 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → 𝑅𝑉)
7371, 72fexd 7097 . 2 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → 𝐹 ∈ V)
74 xrltso 12857 . . . 4 < Or ℝ*
7574infex 9213 . . 3 inf(𝑇, ℝ*, < ) ∈ V
7675a1i 11 . 2 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → inf(𝑇, ℝ*, < ) ∈ V)
772, 69, 70, 73, 76ovmpod 7416 1 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → (𝑀 Ramsey 𝐹) = inf(𝑇, ℝ*, < ))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085  wal 1539   = wceq 1541  wcel 2109  wral 3065  wrex 3066  {crab 3069  Vcvv 3430  wss 3891  𝒫 cpw 4538  {csn 4566   class class class wbr 5078  ccnv 5587  dom cdm 5588  cima 5591   Fn wfn 6425  wf 6426  cfv 6430  (class class class)co 7268  cmpo 7270  m cmap 8589  infcinf 9161  *cxr 10992   < clt 10993  cle 10994  0cn0 12216  chash 14025   Ramsey cram 16681
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-rep 5213  ax-sep 5226  ax-nul 5233  ax-pow 5291  ax-pr 5355  ax-un 7579  ax-cnex 10911  ax-resscn 10912  ax-pre-lttri 10929  ax-pre-lttrn 10930
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-nel 3051  df-ral 3070  df-rex 3071  df-reu 3072  df-rmo 3073  df-rab 3074  df-v 3432  df-sbc 3720  df-csb 3837  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-pw 4540  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4845  df-iun 4931  df-br 5079  df-opab 5141  df-mpt 5162  df-id 5488  df-po 5502  df-so 5503  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-res 5600  df-ima 5601  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-f1 6435  df-fo 6436  df-f1o 6437  df-fv 6438  df-ov 7271  df-oprab 7272  df-mpo 7273  df-1st 7817  df-2nd 7818  df-er 8472  df-map 8591  df-en 8708  df-dom 8709  df-sdom 8710  df-sup 9162  df-inf 9163  df-pnf 10995  df-mnf 10996  df-xr 10997  df-ltxr 10998  df-ram 16683
This theorem is referenced by:  ramcl2lem  16691
  Copyright terms: Public domain W3C validator