(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* cache_discharged_hyps_map); export_function = (fun x -> Some x) } let set_discharged_hyps sp hyps = add_anonymous_leaf (in_discharged_hyps_map (sp,hyps)) let get_discharged_hyps sp = try Spmap.find sp !discharged_hyps_map with Not_found -> anomaly ("No discharged hypothesis for object " ^ string_of_path sp) (*s Registration as global tables and rollback. *) let init () = discharged_hyps_map := Spmap.empty let freeze () = !discharged_hyps_map let unfreeze dhm = discharged_hyps_map := dhm let _ = Summary.declare_summary "discharged_hypothesis" { Summary.freeze_function = freeze; Summary.unfreeze_function = unfreeze; Summary.init_function = init; Summary.survive_module = false; Summary.survive_section = true }