diff options
| author | Maxime Dénès | 2019-05-29 18:09:04 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2019-05-29 18:09:04 +0200 |
| commit | 04398c5fa519b742ff5b97b61bbfa0c9f9d1549c (patch) | |
| tree | 02b1a143ac2ace1c332376c46b3069be48cb9068 /plugins | |
| parent | a294ff8f9e73abb05f4449157422f5005eae7497 (diff) | |
| parent | 0683ccc035853c776d522c2bd716b18b9f39bd2a (diff) | |
Merge PR #10252: Various dynamic assertions and cleanups in opaque typing
Reviewed-by: SkySkimmer
Reviewed-by: maximedenes
Ack-by: ppedrot
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/setoid_ring/newring.ml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/setoid_ring/newring.ml b/plugins/setoid_ring/newring.ml index aeceeb4e50..8e7b045b8e 100644 --- a/plugins/setoid_ring/newring.ml +++ b/plugins/setoid_ring/newring.ml @@ -153,9 +153,11 @@ let decl_constant na univs c = let open Constr in let vars = CVars.universes_of_constr c in let univs = UState.restrict_universe_context univs vars in - let univs = Monomorphic_entry univs in + let () = Declare.declare_universe_context false univs in + let types = (Typeops.infer (Global.env ()) c).uj_type in + let univs = Monomorphic_entry Univ.ContextSet.empty in mkConst(declare_constant (Id.of_string na) - (DefinitionEntry (definition_entry ~opaque:true ~univs c), + (DefinitionEntry (definition_entry ~opaque:true ~types ~univs c), IsProof Lemma)) (* Calling a global tactic *) |
