Documentation

Init.Data.Nat.Sqrt.Basic

def Nat.sqrt (n : Nat) :

Integer square root function. Implemented via Newton's method.

Equations
Instances For
    @[irreducible]
    def Nat.sqrt.iter (n guess : Nat) :

    Auxiliary for sqrt. If guess is greater than the integer square root of n, returns the integer square root of n.

    Equations
    Instances For