diff options
| author | Pierre-Marie Pédrot | 2018-01-29 17:01:20 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2018-02-16 13:27:23 +0100 |
| commit | 4d17489394dbf6008e5abd5b8d075f08280cd38c (patch) | |
| tree | cdc87208b35c927177e8b1f8978687414f191896 /checker/declarations.ml | |
| parent | 8dd6d091ffbfa237f7266eeca60187263a9b521f (diff) | |
Extrude monomorphic universe contexts from with Definition constraints.
We defer the computation of the universe quantification to the upper layer,
outside of the kernel.
Diffstat (limited to 'checker/declarations.ml')
| -rw-r--r-- | checker/declarations.ml | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/checker/declarations.ml b/checker/declarations.ml index 15b1f0a0c6..2fe930dca2 100644 --- a/checker/declarations.ml +++ b/checker/declarations.ml @@ -573,14 +573,10 @@ let implem_map fs fa = function | Algebraic a -> Algebraic (fa a) | impl -> impl -let subst_with_body sub = function - | WithMod(id,mp) -> WithMod(id,subst_mp sub mp) - | WithDef(id,(c,ctx)) -> WithDef(id,(subst_mps sub c,ctx)) - let rec subst_expr sub = function | MEident mp -> MEident (subst_mp sub mp) | MEapply (me1,mp2)-> MEapply (subst_expr sub me1, subst_mp sub mp2) - | MEwith (me,wd)-> MEwith (subst_expr sub me, subst_with_body sub wd) + | MEwith (me,wd)-> MEwith (subst_expr sub me, wd) let rec subst_expression sub me = functor_map (subst_module_type sub) (subst_expr sub) me |
