SkillAgentSearch skills...

Flean

Floating point numbers in lean. A replacement of Mathlib.Data.FP

Install / Use

/learn @josephmckinsey/Flean
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Flean

Flean is an attempt at formalizing floating point numbers in Lean 4.

Look what they need to match a fraction

Goals and Non-Goals

Personally: Learn Lean in a serious but not hard way. I've already learned a lot.

In general, the idea is to (1) model the floating point numbers, (2) characterize their properties via a convenient set of rules, and (3) apply that logic to prove things about Lean's Float by declaring an interface axiomatically.

Goals

  • Be capable of matching operations of normal floating points as exactly as possible IEEE 754
  • Extensible to different precisions
  • Theoretically capable of supporting lots of bounds on Lean's Float

Non-Goals

  • Performance
  • Fixed-point arithmetic
  • Interval arithmetic
  • Using SMT solvers to bitblast our way to happiness--which is almost certainly the most practical approach.
View on GitHub
GitHub Stars8
CategoryDevelopment
Updated2mo ago
Forks0

Languages

Lean

Security Score

85/100

Audited on Jan 30, 2026

No findings