lean4-htt/src/library/check.h
2017-01-23 16:34:07 -08:00

20 lines
514 B
C++

/*
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include "library/type_context.h"
namespace lean {
/* Type check 'e' using the given type context.
It throws an exception in case of failure.
This procedure is use to check the proof-term produced by tactics such as
rewrite.
*/
void check(type_context & ctx, expr const & e);
void initialize_check();
void finalize_check();
}