diff options
author | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2016-06-29 11:28:55 +0200 |
---|---|---|
committer | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2016-06-29 12:46:54 +0200 |
commit | 4965fa03bd9cbc37dd6888c7d13c3fba83b2652c (patch) | |
tree | c45fa4c7a4563b4a2531cfa9832369d3f365858d /library/lib.ml | |
parent | 5c91ebc9b995355a5a1f9713be8b9fc74d3ba242 (diff) |
Exporting section_segment_of_reference.
Diffstat (limited to 'library/lib.ml')
-rw-r--r-- | library/lib.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/lib.ml b/library/lib.ml index f580050db..23a2d4846 100644 --- a/library/lib.ml +++ b/library/lib.ml @@ -483,6 +483,12 @@ let section_segment_of_constant con = let section_segment_of_mutual_inductive kn = Names.Mindmap.find kn (snd (pi3 (List.hd !sectab))) +let variable_section_segment_of_reference = function + | ConstRef con -> pi1 (section_segment_of_constant con) + | IndRef (kn,_) | ConstructRef ((kn,_),_) -> + pi1 (section_segment_of_mutual_inductive kn) + | _ -> [] + let section_instance = function | VarRef id -> let eq = function |