diff options
| author | sacerdot | 2004-10-18 15:15:16 +0000 |
|---|---|---|
| committer | sacerdot | 2004-10-18 15:15:16 +0000 |
| commit | e002892071b1fba40a89098d53b9319bd793a106 (patch) | |
| tree | 4a60366e3901c68da9609317f99a563f246fe1f3 /tactics/setoid_replace.ml | |
| parent | 50fa3c5983fd630e56f34b55729d194181feef18 (diff) | |
Code simplification and clean-up.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6237 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics/setoid_replace.ml')
| -rw-r--r-- | tactics/setoid_replace.ml | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/tactics/setoid_replace.ml b/tactics/setoid_replace.ml index 19ab45105b..7e1f232c87 100644 --- a/tactics/setoid_replace.ml +++ b/tactics/setoid_replace.ml @@ -200,30 +200,8 @@ let coq_directed_relation_of_relation_class = let coq_interp = lazy(eval_reference ["Setoid"] "interp") let coq_Morphism_Context_rect2 = lazy(eval_reference ["Setoid"] "Morphism_Context_rect2") -let coq_iff = lazy(eval_init_reference ["Logic"] "iff") - +let coq_iff = lazy(gen_constant ["Init";"Logic"] "iff") let coq_impl = lazy(constant ["Setoid"] "impl") -let coq_iff_relation = - lazy ( - Relation { - rel_a = mkProp ; - rel_aeq = gen_constant ["Init"; "Logic"] "iff"; - rel_refl = Some (gen_constant ["Init"; "Logic"] "iff_refl"); - rel_sym = Some (gen_constant ["Init"; "Logic"] "iff_sym"); - rel_trans = Some (gen_constant ["Init"; "Logic"] "iff_trans"); - rel_quantifiers_no = 0 - }) - -let coq_impl_relation = - lazy ( - Relation { - rel_a = mkProp; - rel_aeq = Lazy.force coq_impl; - rel_refl = Some (constant ["Setoid"] "impl_refl"); - rel_sym = None; - rel_trans = Some (constant ["Setoid"] "impl_trans"); - rel_quantifiers_no = 0 - }) (************************* Table of declared relations **********************) @@ -295,6 +273,9 @@ let find_relation_class rel = | _ when eq_constr rel (Lazy.force coq_eq) -> Leibniz None | _ -> raise Not_found +let coq_iff_relation = lazy (find_relation_class (Lazy.force coq_iff)) +let coq_impl_relation = lazy (find_relation_class (Lazy.force coq_impl)) + let relation_morphism_of_constr_morphism = let relation_relation_class_of_constr_relation_class = function |
