2014-08-01 01:35:57 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Leonardo de Moura
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "kernel/environment.h"
|
|
|
|
|
|
|
|
namespace lean {
|
|
|
|
/** \brief Return true iff the given environment has <tt>sorry.{l} : Pi {A : Type.{l}}, A</tt> */
|
|
|
|
bool has_sorry(environment const & env);
|
|
|
|
|
|
|
|
/** \brief Declare <tt>sorry.{l} : Pi {A : Type.{l}}, A</tt> in the given environment if it doesn't already contain it.
|
|
|
|
Throw an exception if the environment already contains a declaration named \c sorry. */
|
|
|
|
environment declare_sorry(environment const & env);
|
|
|
|
|
|
|
|
/** \brief Return the constant \c sorry */
|
2014-08-29 21:32:11 +00:00
|
|
|
expr mk_sorry();
|
2014-10-01 01:01:55 +00:00
|
|
|
/** \brief Return true iff \c e is a sorry expression */
|
|
|
|
bool is_sorry(expr const & e);
|
2014-09-23 17:45:14 +00:00
|
|
|
void initialize_sorry();
|
|
|
|
void finalize_sorry();
|
2014-08-01 01:35:57 +00:00
|
|
|
}
|