Documentation

PfsProgs25.Unit05.PowerIrrationals

A Noncomputable function #

An interesting example of a non-constructive proof is the following:

Theorem: There exist irrational numbers $a$ and $b$ such that $a^b$ is rational. Proof: Let b = √2. If b^b is rational, then we can take a = b. Otherwise, we can take a = √2^{√2}, so a^b=2.

We can prove this in Lean. But a function that returns such a pair of numbers has to be defined as noncomputable in Lean.

@[reducible, inline]
noncomputable abbrev sqrt2 :

The square root of 2 (an abbreviation).

Equations
Instances For

    The equation (sqrt2^sqrt2)^sqrt2 = 2.

    There exists an irrational numbers a and b such that a^b is rational.

    structure IrrationalPair :

    A structure that contains irrational numbers a and b such that a^b is rational along with proofs.

    Instances For
      noncomputable def irrationalPair :

      Noncomputable function that returns an IrrationalPair, i.e., irrational numbers a and b such that a^b is rational.

      Equations
      Instances For
        noncomputable def irrationalPair' :
        { ab : × // Irrational ab.1 Irrational ab.2 ¬Irrational (ab.1 ^ ab.2) }

        A noncomputable function that returns an IrrationalPair, i.e., irrational numbers a and b such that a^b is rational, represented as a subtype.

        Equations
        Instances For