2014-10-25 18:32:26 +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 Given an inductive datatype \c n in \c env, add
|
|
|
|
<tt>n.rec_on</tt> to the environment.
|
|
|
|
|
|
|
|
\remark <tt>rec_on</tt> is based on <tt>n.rec</tt>
|
2014-10-25 20:36:38 +00:00
|
|
|
|
|
|
|
\remark Throws an exception if \c n is not an inductive datatype.
|
2014-10-25 18:32:26 +00:00
|
|
|
*/
|
|
|
|
environment mk_rec_on(environment const & env, name const & n);
|
|
|
|
}
|