Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Lean4Physics: Reasoning Framework for College Physics in Lean4

The paper introduces Lean4Physics, a reasoning framework for college physics built in Lean4. It formalizes physical concepts and theorems to enable rigorous, proof-based reasoning about physics problems, aiming to bridge the gap between natural language physics questions and formal verification.

Background

Lean4 is a programming language and interactive theorem prover — a tool where a human writes a proof step by step and the computer checks each step for logical correctness. This paper presents Lean4Physics, a framework that encodes college-level physics problems (mechanics, electromagnetism, etc.) into Lean4. Instead of just computing an answer, the system formally verifies that every step (algebra, unit conversions, dimensional analysis, assumptions) is logically sound. This matters because typical solvers (including LLMs) often produce plausible but flawed solutions. Prior context: Lean is widely used in mathematics (mathlib4), and projects like MiniF2F use it to benchmark AI reasoning; this extends that approach to natural sciences.

Related stories