diff options
| author | Matej Kosik | 2016-02-15 23:33:01 +0100 |
|---|---|---|
| committer | Matej Kosik | 2016-02-15 23:33:01 +0100 |
| commit | 13e847b7092d53ffec63e4cba54c67d39560e67a (patch) | |
| tree | 9303e5293a739b6bf77b6557da523ab4c3b171d7 /checker/declarations.ml | |
| parent | 97d6583a0b9a65080639fb02deba4200f6276ce6 (diff) | |
CLEANUP: Simplifying the changes done in "checker/*"
Diffstat (limited to 'checker/declarations.ml')
| -rw-r--r-- | checker/declarations.ml | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/checker/declarations.ml b/checker/declarations.ml index 2f6eeba1d9..3ce3125337 100644 --- a/checker/declarations.ml +++ b/checker/declarations.ml @@ -517,14 +517,8 @@ let map_decl_arity f g = function | RegularArity a -> RegularArity (f a) | TemplateArity a -> TemplateArity (g a) -let subst_rel_declaration sub = function - | LocalAssum (id,t) as x -> - let t' = subst_mps sub t in - if t == t' then x else LocalAssum (id,t') - | LocalDef (id,c,t) as x -> - let c' = subst_mps sub c in - let t' = subst_mps sub t in - if c == c' && t == t' then x else LocalDef (id,c',t') +let subst_rel_declaration sub = + Term.map_rel_decl (subst_mps sub) let subst_rel_context sub = List.smartmap (subst_rel_declaration sub) |
