Skip to content

Thanhson89/LNS-Lean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Formal proofs of rigorous error bounds for Logarithmic Number Systems

This repository contains Lean4 proofs of error bounds for Logarithmic Number Systems (LNS) presented in the arXiv preprint Rigorous Error Analysis for Logarithmic Number Systems.

Proof files

All proof files are located in the LNS directory.

Main definitions and results

Definitions.lean All definitions which are used in the main results.
Audit.lean All main results in one file. See Theorem53.lean, Theorem68.lean and Theorem72.lean for other important results.

General results

Tactic.lean A tactic for computing derivatives.
Common.lean Some general lemmas.
BasicRounding.lean Basic properties of fixed-point rounding and approximations of functions.
BasicIxRx.lean Basic properties of index functions Iₓ, Rₓ, ind and rem.
BasicPhi.lean Basic properties of Φ⁺ and Φ⁻.

Formal proofs of error bounds of first-order Taylor approximations

BasicErrTaylor.lean Basic properties of first-order Taylor error functions Ep and Em.
Lemma51.lean An error bound of first-order Taylor approximation of Φ⁺ (Ep).
Lemma52.lean An error bound of first-order Taylor approximation of Φ⁻ (Em).
Theorem53.lean Total error bounds of rounded first-order Taylor approximations of Φ⁺ and Φ⁻.

Formal proofs of the error correction technique

BasicErrCorrection.lean Basic properties of error correction functions Qp and Qm and related functions.
Lemma61.lean Limits of Qp and Qm.
Lemma62.lean Monotonicity of Qp.
Lemma63.lean An upper bound of the range of Qp.
Lemma64.lean An error bound of the index error of Qp.
Lemma65.lean Monotonicity of Qm.
Lemma66.lean An upper bound of the range of Qm.
Lemma67.lean An error bound of the index error of Qm.
Theorem68.lean Total error bounds of rounded error correction approximations of Φ⁺ and Φ⁻.

Formal proofs of the co-transformation technique

Lemma71.lean An auxiliary bound of |Φ⁻(x) - Φ⁻(y)|.
Theorem72.lean Total error bounds of rounded co-transformation approximations of Φ⁻.

About

Lean proof for LNS error-bound

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages