TorchLean API

FloatLib.Numerics.Enclosure.Elementary.Irrational

Irrationality of exponentials at nonzero rational arguments #

Adaptive rounding needs more than convergent intervals: an interval can straddle an exact rounding boundary forever. For the exponential at a nonzero rational argument, irrationality rules out that case.

The transcendence theorem in Elementary.Transcendental supplies the non-boundary fact. Inverting the exponential gives the corresponding logarithm result, with log 1 = 0 handled separately.

The exponential of a nonzero integer is irrational.

A nonzero rational input has an irrational exponential. The zero case is exactly 1.

theorem FloatLib.Numerics.Enclosure.irrational_log_ratCast (q : ) (hq : 0 < q) (hqone : q 1) :

A positive rational input other than 1 has an irrational natural logarithm.