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

Theorem ramval 16754
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 16747 . . 3 Ramsey = (𝑚 ∈ ℕ0, 𝑟 ∈ V ↦ inf({𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))}, ℝ*, < ))
21a1i 11 . 2 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → Ramsey = (𝑚 ∈ ℕ0, 𝑟 ∈ V ↦ inf({𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))}, ℝ*, < )))
3 simplrr 776 . . . . . . . . . . . 12 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → 𝑟 = 𝐹)
43dmeqd 5827 . . . . . . . . . . 11 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → dom 𝑟 = dom 𝐹)
5 simpll3 1214 . . . . . . . . . . . 12 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → 𝐹:𝑅⟶ℕ0)
65fdmd 6641 . . . . . . . . . . 11 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → dom 𝐹 = 𝑅)
74, 6eqtrd 2776 . . . . . . . . . 10 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → dom 𝑟 = 𝑅)
8 simplrl 775 . . . . . . . . . . . . 13 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → 𝑚 = 𝑀)
98eqeq2d 2747 . . . . . . . . . . . 12 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → ((♯‘𝑦) = 𝑚 ↔ (♯‘𝑦) = 𝑀))
109rabbidv 3421 . . . . . . . . . . 11 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚} = {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑀})
11 vex 3441 . . . . . . . . . . . 12 𝑠 ∈ V
12 simpll1 1212 . . . . . . . . . . . 12 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → 𝑀 ∈ ℕ0)
13 ramval.c . . . . . . . . . . . . 13 𝐶 = (𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})
1413hashbcval 16748 . . . . . . . . . . . 12 ((𝑠 ∈ V ∧ 𝑀 ∈ ℕ0) → (𝑠𝐶𝑀) = {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑀})
1511, 12, 14sylancr 588 . . . . . . . . . . 11 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (𝑠𝐶𝑀) = {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑀})
1610, 15eqtr4d 2779 . . . . . . . . . 10 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚} = (𝑠𝐶𝑀))
177, 16oveq12d 7325 . . . . . . . . 9 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚}) = (𝑅m (𝑠𝐶𝑀)))
1817raleqdv 3360 . . . . . . . 8 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐))))
19 simpr 486 . . . . . . . . . . . . 13 ((𝑚 = 𝑀𝑟 = 𝐹) → 𝑟 = 𝐹)
2019dmeqd 5827 . . . . . . . . . . . 12 ((𝑚 = 𝑀𝑟 = 𝐹) → dom 𝑟 = dom 𝐹)
21 fdm 6639 . . . . . . . . . . . . 13 (𝐹:𝑅⟶ℕ0 → dom 𝐹 = 𝑅)
22213ad2ant3 1135 . . . . . . . . . . . 12 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → dom 𝐹 = 𝑅)
2320, 22sylan9eqr 2798 . . . . . . . . . . 11 (((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) → dom 𝑟 = 𝑅)
2423ad2antrr 724 . . . . . . . . . 10 (((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) → dom 𝑟 = 𝑅)
253ad2antrr 724 . . . . . . . . . . . . . 14 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → 𝑟 = 𝐹)
2625fveq1d 6806 . . . . . . . . . . . . 13 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑟𝑐) = (𝐹𝑐))
2726breq1d 5091 . . . . . . . . . . . 12 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → ((𝑟𝑐) ≤ (♯‘𝑥) ↔ (𝐹𝑐) ≤ (♯‘𝑥)))
288ad2antrr 724 . . . . . . . . . . . . . . . 16 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → 𝑚 = 𝑀)
2928oveq2d 7323 . . . . . . . . . . . . . . 15 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑥𝐶𝑚) = (𝑥𝐶𝑀))
30 vex 3441 . . . . . . . . . . . . . . . 16 𝑥 ∈ V
3112ad2antrr 724 . . . . . . . . . . . . . . . . 17 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → 𝑀 ∈ ℕ0)
3228, 31eqeltrd 2837 . . . . . . . . . . . . . . . 16 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → 𝑚 ∈ ℕ0)
3313hashbcval 16748 . . . . . . . . . . . . . . . 16 ((𝑥 ∈ V ∧ 𝑚 ∈ ℕ0) → (𝑥𝐶𝑚) = {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚})
3430, 32, 33sylancr 588 . . . . . . . . . . . . . . 15 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑥𝐶𝑚) = {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚})
3529, 34eqtr3d 2778 . . . . . . . . . . . . . 14 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑥𝐶𝑀) = {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚})
3635sseq1d 3957 . . . . . . . . . . . . 13 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → ((𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}) ↔ {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚} ⊆ (𝑓 “ {𝑐})))
37 rabss 4011 . . . . . . . . . . . . . 14 ({𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚} ⊆ (𝑓 “ {𝑐}) ↔ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚𝑦 ∈ (𝑓 “ {𝑐})))
3835eleq2d 2822 . . . . . . . . . . . . . . . . . . . . 21 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑦 ∈ (𝑥𝐶𝑀) ↔ 𝑦 ∈ {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚}))
39 rabid 3322 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 ∈ {𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚} ↔ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚))
4038, 39bitrdi 287 . . . . . . . . . . . . . . . . . . . 20 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑦 ∈ (𝑥𝐶𝑀) ↔ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)))
4140biimpar 479 . . . . . . . . . . . . . . . . . . 19 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)) → 𝑦 ∈ (𝑥𝐶𝑀))
42 elpwi 4546 . . . . . . . . . . . . . . . . . . . . . 22 (𝑥 ∈ 𝒫 𝑠𝑥𝑠)
4342adantl 483 . . . . . . . . . . . . . . . . . . . . 21 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → 𝑥𝑠)
4413hashbcss 16750 . . . . . . . . . . . . . . . . . . . . 21 ((𝑠 ∈ V ∧ 𝑥𝑠𝑀 ∈ ℕ0) → (𝑥𝐶𝑀) ⊆ (𝑠𝐶𝑀))
4511, 43, 31, 44mp3an2i 1466 . . . . . . . . . . . . . . . . . . . 20 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (𝑥𝐶𝑀) ⊆ (𝑠𝐶𝑀))
4645sselda 3926 . . . . . . . . . . . . . . . . . . 19 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ 𝑦 ∈ (𝑥𝐶𝑀)) → 𝑦 ∈ (𝑠𝐶𝑀))
4741, 46syldan 592 . . . . . . . . . . . . . . . . . 18 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)) → 𝑦 ∈ (𝑠𝐶𝑀))
48 elmapi 8668 . . . . . . . . . . . . . . . . . . . 20 (𝑓 ∈ (𝑅m (𝑠𝐶𝑀)) → 𝑓:(𝑠𝐶𝑀)⟶𝑅)
4948ad3antlr 729 . . . . . . . . . . . . . . . . . . 19 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)) → 𝑓:(𝑠𝐶𝑀)⟶𝑅)
50 ffn 6630 . . . . . . . . . . . . . . . . . . 19 (𝑓:(𝑠𝐶𝑀)⟶𝑅𝑓 Fn (𝑠𝐶𝑀))
51 fniniseg 6969 . . . . . . . . . . . . . . . . . . 19 (𝑓 Fn (𝑠𝐶𝑀) → (𝑦 ∈ (𝑓 “ {𝑐}) ↔ (𝑦 ∈ (𝑠𝐶𝑀) ∧ (𝑓𝑦) = 𝑐)))
5249, 50, 513syl 18 . . . . . . . . . . . . . . . . . 18 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)) → (𝑦 ∈ (𝑓 “ {𝑐}) ↔ (𝑦 ∈ (𝑠𝐶𝑀) ∧ (𝑓𝑦) = 𝑐)))
5347, 52mpbirand 705 . . . . . . . . . . . . . . . . 17 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ (𝑦 ∈ 𝒫 𝑥 ∧ (♯‘𝑦) = 𝑚)) → (𝑦 ∈ (𝑓 “ {𝑐}) ↔ (𝑓𝑦) = 𝑐))
5453anassrs 469 . . . . . . . . . . . . . . . 16 ((((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ 𝑦 ∈ 𝒫 𝑥) ∧ (♯‘𝑦) = 𝑚) → (𝑦 ∈ (𝑓 “ {𝑐}) ↔ (𝑓𝑦) = 𝑐))
5554pm5.74da 802 . . . . . . . . . . . . . . 15 (((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) ∧ 𝑦 ∈ 𝒫 𝑥) → (((♯‘𝑦) = 𝑚𝑦 ∈ (𝑓 “ {𝑐})) ↔ ((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))
5655ralbidva 3169 . . . . . . . . . . . . . 14 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚𝑦 ∈ (𝑓 “ {𝑐})) ↔ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))
5737, 56bitrid 283 . . . . . . . . . . . . 13 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → ({𝑦 ∈ 𝒫 𝑥 ∣ (♯‘𝑦) = 𝑚} ⊆ (𝑓 “ {𝑐}) ↔ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))
5836, 57bitr2d 280 . . . . . . . . . . . 12 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐) ↔ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))
5927, 58anbi12d 632 . . . . . . . . . . 11 ((((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) ∧ 𝑥 ∈ 𝒫 𝑠) → (((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
6059rexbidva 3170 . . . . . . . . . 10 (((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) → (∃𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ∃𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
6124, 60rexeqbidv 3349 . . . . . . . . 9 (((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) ∧ 𝑓 ∈ (𝑅m (𝑠𝐶𝑀))) → (∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
6261ralbidva 3169 . . . . . . . 8 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
6318, 62bitrd 279 . . . . . . 7 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)) ↔ ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
6463imbi2d 341 . . . . . 6 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → ((𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐))) ↔ (𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))))
6564albidv 1921 . . . . 5 ((((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) ∧ 𝑛 ∈ ℕ0) → (∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐))) ↔ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))))
6665rabbidva 3420 . . . 4 (((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) → {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))} = {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))})
67 ramval.t . . . 4 𝑇 = {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅m (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))}
6866, 67eqtr4di 2794 . . 3 (((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) → {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))} = 𝑇)
6968infeq1d 9280 . 2 (((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) ∧ (𝑚 = 𝑀𝑟 = 𝐹)) → inf({𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (dom 𝑟m {𝑦 ∈ 𝒫 𝑠 ∣ (♯‘𝑦) = 𝑚})∃𝑐 ∈ dom 𝑟𝑥 ∈ 𝒫 𝑠((𝑟𝑐) ≤ (♯‘𝑥) ∧ ∀𝑦 ∈ 𝒫 𝑥((♯‘𝑦) = 𝑚 → (𝑓𝑦) = 𝑐)))}, ℝ*, < ) = inf(𝑇, ℝ*, < ))
70 simp1 1136 . 2 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → 𝑀 ∈ ℕ0)
71 simp3 1138 . . 3 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → 𝐹:𝑅⟶ℕ0)
72 simp2 1137 . . 3 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → 𝑅𝑉)
7371, 72fexd 7135 . 2 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → 𝐹 ∈ V)
74 xrltso 12921 . . . 4 < Or ℝ*
7574infex 9296 . . 3 inf(𝑇, ℝ*, < ) ∈ V
7675a1i 11 . 2 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → inf(𝑇, ℝ*, < ) ∈ V)
772, 69, 70, 73, 76ovmpod 7457 1 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → (𝑀 Ramsey 𝐹) = inf(𝑇, ℝ*, < ))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 397  w3a 1087  wal 1537   = wceq 1539  wcel 2104  wral 3062  wrex 3071  {crab 3284  Vcvv 3437  wss 3892  𝒫 cpw 4539  {csn 4565   class class class wbr 5081  ccnv 5599  dom cdm 5600  cima 5603   Fn wfn 6453  wf 6454  cfv 6458  (class class class)co 7307  cmpo 7309  m cmap 8646  infcinf 9244  *cxr 11054   < clt 11055  cle 11056  0cn0 12279  chash 14090   Ramsey cram 16745
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1911  ax-6 1969  ax-7 2009  ax-8 2106  ax-9 2114  ax-10 2135  ax-11 2152  ax-12 2169  ax-ext 2707  ax-rep 5218  ax-sep 5232  ax-nul 5239  ax-pow 5297  ax-pr 5361  ax-un 7620  ax-cnex 10973  ax-resscn 10974  ax-pre-lttri 10991  ax-pre-lttrn 10992
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-3or 1088  df-3an 1089  df-tru 1542  df-fal 1552  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2887  df-ne 2942  df-nel 3048  df-ral 3063  df-rex 3072  df-rmo 3285  df-reu 3286  df-rab 3287  df-v 3439  df-sbc 3722  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-nul 4263  df-if 4466  df-pw 4541  df-sn 4566  df-pr 4568  df-op 4572  df-uni 4845  df-iun 4933  df-br 5082  df-opab 5144  df-mpt 5165  df-id 5500  df-po 5514  df-so 5515  df-xp 5606  df-rel 5607  df-cnv 5608  df-co 5609  df-dm 5610  df-rn 5611  df-res 5612  df-ima 5613  df-iota 6410  df-fun 6460  df-fn 6461  df-f 6462  df-f1 6463  df-fo 6464  df-f1o 6465  df-fv 6466  df-ov 7310  df-oprab 7311  df-mpo 7312  df-1st 7863  df-2nd 7864  df-er 8529  df-map 8648  df-en 8765  df-dom 8766  df-sdom 8767  df-sup 9245  df-inf 9246  df-pnf 11057  df-mnf 11058  df-xr 11059  df-ltxr 11060  df-ram 16747
This theorem is referenced by:  ramcl2lem  16755
  Copyright terms: Public domain W3C validator