diff options
author | Matthieu Sozeau <matthieu.sozeau@inria.fr> | 2014-08-28 19:49:16 +0200 |
---|---|---|
committer | Matthieu Sozeau <matthieu.sozeau@inria.fr> | 2014-08-28 19:55:01 +0200 |
commit | 32c83676c96ae4a218de0bec75d2f3353381dfb3 (patch) | |
tree | 0fef7e62e0e7271406da9733fd14c33cb711eb70 /pretyping/tacred.mli | |
parent | 469c5bfc849e06d5a32d7aaabdf9b2fa3f451f4a (diff) |
Change the way primitive projections are declared to the kernel.
Now kernel/indtypes builds the corresponding terms (has to be trusted)
while translate_constant just binds a constant name to the
already entered projection body, avoiding the dubious "check"
of user given terms. "case" Pattern-matching on primitive records is
now disallowed, and the default scheme is implemented using
projections and eta (all elimination tactics now use projections
as well). Elaborate "let (x, y) := p in t" using let bindings
for the projections of p too.
Diffstat (limited to 'pretyping/tacred.mli')
-rw-r--r-- | pretyping/tacred.mli | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pretyping/tacred.mli b/pretyping/tacred.mli index 91364c4ae..6d12d5d44 100644 --- a/pretyping/tacred.mli +++ b/pretyping/tacred.mli @@ -103,3 +103,7 @@ val e_contextually : bool -> occurrences * constr_pattern -> (** Returns the same inductive if it is allowed for pattern-matching raises an error otherwise. **) val check_privacy : env -> inductive puniverses -> inductive puniverses + +(** Returns the same inductive if it is not a primitive record + raises an error otherwise. **) +val check_not_primitive_record : env -> inductive puniverses -> inductive puniverses |