Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3.1, Figure 4, p. 157 — the printed schedule of the Figure 4 example is feasible in 4 periods

Proved
Timetabling85.CourseColoring.figure4_feasible

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

course-schedulingexamplep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1timetabling

Consider the instance of Figure 4: courses K1,K2,K3K_1, K_2, K_3K1​,K2​,K3​ with 1,2,21, 2, 21,2,2 lectures; student 1 takes K1,K2K_1, K_2K1​,K2​; student 2 takes K2,K3K_2, K_3K2​,K3​. The schedule printed on the page,

period 1:K1,K3;period 2:K2;period 3:K2;period 4:K3,\text{period }1: K_1, K_3;\quad \text{period }2: K_2;\quad \text{period }3: K_2;\quad \text{period }4: K_3,period 1:K1​,K3​;period 2:K2​;period 3:K2​;period 4:K3​,

is a feasible course schedule in p=4p = 4p=4 periods: no two lectures of one course share a period, and no student has two lectures at one period.

This checks the example the paper uses to illustrate the graph model of §3.1.

Formalization Note The instance and the schedule are the definitions figure4 and figure4Schedule, with all indices starting at 000.

Preamble
import Mathlib
import Definitions.Def_Timetabling85_CourseColoring_Figure4
Formal statement
namespace Timetabling85.CourseColoring

theorem figure4_feasible : figure4.IsFeasibleSchedule 4 figure4Schedule := by sorry

end Timetabling85.CourseColoring
Source
de Werra, An introduction to timetabling, Eur. J. Oper. Res. 19 (1985), p. 157, §3.1, Figure 4 and "The schedule corresponding to the coloring in Figure 4 is: …"
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me