Nerodia Reference Manual

8.2. PyBool🔗

🔗def

A Python boolean object. That is, an instance of bool.

🔗def

Returns the Python boolean corresponding to the Lean boolean b.

🔗def

Returns the boolean value of self as a Lean Bool.

8.2.1. Boolean Constants🔗

Each boolean constant has its own singleton type which inherits the dot notation of PyBool and is promotable to it.

true#eval PyIO.toIO do return (← getPyTrue).toBool
true
🔗def

A Python False constant.

🔗def

The Python boolean literal, False.

🔗def

Returns the False constant of the Python environment.

🔗def

A Python True constant.

🔗def

The Python boolean literal, True.

🔗def

Returns the True constant of the Python environment.