add_library(kernel level.cpp diff_cnstrs.cpp expr.cpp expr_eq_fn.cpp for_each_fn.cpp occurs.cpp replace_fn.cpp free_vars.cpp abstract.cpp instantiate.cpp context.cpp formatter.cpp max_sharing.cpp definition.cpp replace_visitor.cpp environment.cpp justification.cpp pos_info_provider.cpp metavar.cpp constraint.cpp type_checker.cpp error_msgs.cpp ) target_link_libraries(kernel ${LEAN_LIBS})