Skip to content

feat: add Morse inequalities eval problem#300

Open
kim-em wants to merge 1 commit into
mainfrom
eval/morse-inequalities
Open

feat: add Morse inequalities eval problem#300
kim-em wants to merge 1 commit into
mainfrom
eval/morse-inequalities

Conversation

@kim-em
Copy link
Copy Markdown
Collaborator

@kim-em kim-em commented May 23, 2026

This PR adds the Morse inequalities as a new lean-eval challenge problem — §40 of Oliver Knill's Some Fundamental Theorems in Mathematics (Marston Morse, 1934).

For a Morse function f on a closed smooth finite-dimensional manifold M and every k ∈ ℕ:

∑_{j≤k} (−1)^{k−j} c_j(f) ≥ ∑_{j≤k} (−1)^{k−j} b_j(M)

where c_j(f) is the number of Morse-index-j critical points and b_j(M) is the j-th Betti number.

mathlib has the smooth-manifold framework, mfderiv, higher Fréchet derivatives, and singularHomologyFunctor — but no Morse functions, Morse index, critical-point counts, or Betti numbers as a named definition. The Challenge ships seven auxiliary definitions: IsCriticalPoint, localHessian, IsNondegenerateCritical, IsMorseFunction, morseIndex, morseCount, bettiNumber, alternatingPartialSum.

🤖 Prepared with Claude Code

§40 of Knill's "Some Fundamental Theorems in Mathematics" (Marston Morse,
1934). For a Morse function f on a closed smooth finite-dimensional
manifold M, the alternating partial sums of critical-point counts c_k(f)
dominate those of Betti numbers b_k(M). Mathlib has the smooth-manifold
framework, mfderiv, higher Fréchet derivatives, and singularHomologyFunctor
but no Morse functions, critical-point counts, Betti numbers, or the
Morse inequalities. The Challenge ships seven helper definitions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant