feat(kernel/type_checker): add check function

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(kernel/constraint): missing inline directive

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(kernel/environment): compilation errors

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(kernel/level): initialization error

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(kernel/constraint): add dealloc method

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(kernel/kernel_exception): typo

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(kernel/constraint): printer

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(kernel/type_checker): bug in whnf method, and missing call to max_sharing in is_conv and is_def_eq methods

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
feat(kernel/definition): add mk_definition procedure that automatically computes the weight

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(kernel/environment): relax normalizer_extesion interface

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(kernel/expr): relax macro_definition interface

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
feat(kernel/type_checker): add backtracking trick to minimize the number of delta-reduction steps

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
test(kernel): add new environment tests

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(kernel/type_checker): style

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>