HyperNat

Hypernatural Numbers in Lean 4

This repository contains a minimal Lean 4 formalization of hypernatural numbers constructed from scratch. The development is deliberately compact, self-contained, and avoids Mathlib4 dependencies as much as possible. Apart from List and Set from Mathlib4, all concepts are implemented directly.

The entire project is approximately 300 lines of code and consists of five files. It was developed by me and Prof. David Gross (University of Cologne).

Overview

The goal of the project is to formalize the construction of hypernatural numbers as a quotient of sequences of natural numbers modulo an ideal. The development includes: