diff options
author | Matthieu Sozeau <matthieu.sozeau@inria.fr> | 2014-08-03 20:02:49 +0200 |
---|---|---|
committer | Matthieu Sozeau <matthieu.sozeau@inria.fr> | 2014-08-03 23:39:01 +0200 |
commit | 7002b3daca6da29eadf80019847630b8583c3daf (patch) | |
tree | 9dcc3b618d33dd416805f70e878d71d007ddf4ff /kernel/vars.mli | |
parent | 5de89439d459edd402328a1e437be4d8cd2e4f46 (diff) |
Move to a representation of universe polymorphic constants using indices for variables.
Simplifies instantiation of constants/inductives, requiring less allocation and Map.find's.
Abstraction by variables is handled mostly inside the kernel but could be moved outside.
Diffstat (limited to 'kernel/vars.mli')
-rw-r--r-- | kernel/vars.mli | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/vars.mli b/kernel/vars.mli index 0d5ab07db..cfa9fcb26 100644 --- a/kernel/vars.mli +++ b/kernel/vars.mli @@ -83,3 +83,7 @@ val subst_univs_constr : universe_subst -> constr -> constr val subst_univs_level_constr : universe_level_subst -> constr -> constr val subst_univs_level_context : Univ.universe_level_subst -> rel_context -> rel_context + +(** Instance substitution for polymorphism. *) +val subst_instance_constr : universe_instance -> constr -> constr +val subst_instance_context : universe_instance -> rel_context -> rel_context |