PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
January 23, 20260 citationsOpen Access

Verified Program Extraction in Number Theory: The Fundamental Theorem of Arithmetic and Relatives

View Full Paper
FWFranziskus Wiesnet

Key Points

  • This research aims to explore important theorems in number theory through a formal and algorithmic lens.
  • Revisiting theorems in number theory, such as Bézout's identity and the fundamental theorem of arithmetic.
  • Formalizing definitions and theorems using the proof assistant Minlog.
  • Extracting executable programs as Haskell code from the formal proofs.
  • Comparing binary and unary encodings of natural numbers for performance efficiency.
  • Demonstrated the efficiency impact of different number representations on theorem formulation.
  • Provided several core proofs in detail, highlighting formal vs. informal reasoning challenges.
  • Enabled the generation of executable terms that can be traced back to natural-language proofs through tactic scripts.

Abstract

This article revisits standard theorems from elementary number theory through a constructive, algorithmic, and proof-theoretic perspective, within the theory of computable functionals. Key examples include Bézout's identity, the fundamental theorem of arithmetic, and Fermat's factorization method. All definitions and theorems are fully formalized in the proof assistant Minlog, laying the foundation for a comprehensive formal framework for number theory within Minlog. While formalization guarantees correctness, the primary emphasis is on the computational content of proofs. Leveraging Minlog's built-in program extraction, we obtain executable terms that are exported as Haskell code. The efficiency of the extracted programs plays a central role. We show how performance considerations influence even the initial formulation of theorems and proofs. In particular, we compare formalizations based on binary encodings of natural numbers with those using the traditional unary (successor-based) representation. We present several core proofs in detail and reflect on the challenges that arise from formalization in contrast to informal reasoning. The complete formalization is available online and linked for reference. Minlog's tactic scripts are designed to follow the structure of natural-language proofs, allowing each derivation step to be traced precisely and thus bridging the gap between formal and classical mathematical reasoning.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Franziskus Wiesnet (2025) studied this question.

synapsesocial.com/papers/69731022c8125b09b0d1fdf5https://doi.org/10.34726/11759
Ask AI
Helpful
Bookmark
Share
View Full Paper