Formalising Federer’s Geometric Measure Theory in Rocq — project announcement

Hello,

I’m working on formalising the 1969 book of Federer “Geometric measure theory” in Rocq using Mathematical Components, ssreflect and Hierarchy Builder. The code is now public:

Actually, the whole formalisation process is done by codex using (mostly) GPT-6.1-Sol model. I’m only supervising the process. I know that Lean has a lot bigger math library but I was learning a bit of Coq during my master’s program (20 years ago) and know a little bit of it while I do not know Lean at all so I decided to use Rocq which feels more familiar to me. Anyway, I am not an expert in formalising and I am learning along the way but GPT is rather fast and now there is substantial coverage of Chapters 1 (multilinear algebra), 2 (basic measure theory), and 3 (calculus, rectifiable sets, area/coarea). I plan to check at least the statements/definitions but I’m of course very slow with that.

The aim is to follow Federer’s definitions, hypotheses and proofs as closely as possible, taking account of his erratum. One design principle is to specify mathematical objects through their laws or universal properties, prove existence separately, and hide constructions behind sealed interfaces. Subsequent proofs use the abstract laws.

The development uses MathComp’s classical foundations; it contains no admitted proofs or additional project axioms. The repository includes kernel-check and assumptions-audit records with their validation scope. I also made GPT produce documentation (docs/ dir) which gives, e.g., maps from the book to the Rocq files.

I would welcome feedback, particularly on whether the formal statements faithfully capture Federer’s mathematics, on the abstract interfaces, and on connections with existing MathComp developments. If you are interested in formalising geometric measure theory, I would be glad to discuss the project.

Thank you for sharing your work. Your library seems to have in common with MathComp-Analysis. Is there any plan to participate in the development of MathComp-Analysis?

I’d be happy to contribute to MathComp-Analysis but I’m still learning how to use the Rocq system. I chose Federer’s book because I like its style and also because it is very much self-contained depending only on some general topology and set theory. It develops measure theory and calculus from scratch. I also use it as a main reference for the courses I give at the university and I want to know where all the errors are.

I guess there is already a some overlap of my formalisation with MathComp-Analysis. How could I contribute given my little experience with Rocq?

If you are to contribute to the development of MathComp-Analysis, you may need to learn Rocq from the beginning, since the quality of AI-generated code does not reach the required level of MathComp-Analysis. It will take a considerable time and effort, so it is all up to you.