mathlib documentation

core.​init.​util

core.​init.​util

def timeit {α : Type u} :
stringthunk α → α

This function has a native implementation that tracks time.

Equations
def trace {α : Type u} :
stringthunk α → α

This function has a native implementation that displays the given string in the regular output stream.

Equations
meta def trace_val {α : Type u} [has_to_format α] :
α → α

def trace_call_stack {α : Type u} :
thunk α → α

This function has a native implementation that shows the VM call stack.

Equations
def scope_trace {α : Type u} :
Π {line col : }, thunk α → α

This function has a native implementation that displays in the given position all trace messages used in f. The arguments line and col are filled by the elaborator.

Equations
meta def try_for {α : Type u} :
thunk αoption α

This function has a native implementation where the thunk is interrupted if it takes more than 'max' "heartbeats" to compute it. The heartbeat is approx. the maximum number of memory allocations (in thousands) performed by 'f ()'. This is a deterministic way of interrupting long running tasks.

meta constant undefined_core {α : Sort u} :
string → α

Throws an exception when it is evaluated.

meta def undefined {α : Sort u} :
α

meta def unchecked_cast {α β : Sort u} :
α → β