X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_disambiguation%2Flogic_notation.ml;h=073e2cdf34d1dad8b99eabd82adfc2f577945102;hb=c6d966bbc276fb0d3bb36ef2945c7bfa31a5ff1b;hp=885cc214058e43be72c58595497b6f35e8780022;hpb=b3bfd6b249600b15552c890306a635aee30c2a74;p=helm.git diff --git a/helm/ocaml/cic_disambiguation/logic_notation.ml b/helm/ocaml/cic_disambiguation/logic_notation.ml index 885cc2140..073e2cdf3 100644 --- a/helm/ocaml/cic_disambiguation/logic_notation.ml +++ b/helm/ocaml/cic_disambiguation/logic_notation.ml @@ -46,8 +46,6 @@ EXTEND ]; END -(* TODO a lot of hard coded URIs, move them in HelmLibraryObjects *) - let _ = (* TODO cut-and-pasted code: here, in arit_notation.ml and * disambiguateChoices.ml *) @@ -64,19 +62,7 @@ let _ = Cic.Appl [ Cic.MutInd (HelmLibraryObjects.Logic.eq_URI, 0, []); Cic.Implicit (Some `Type); t1; t2 - ])); - DisambiguateChoices.add_symbol_choice "eq" - ("equality over objects with sort Type", - (fun interp _ args -> - let t1, t2 = - match args with - | [t1; t2] -> t1, t2 - | _ -> raise DisambiguateChoices.Invalid_choice - in - Cic.Appl [ - Cic.MutInd (HelmLibraryObjects.Logic_Type.eqt_URI, 0, []); - Cic.Implicit (Some `Type); t1; t2 - ])); + ])); DisambiguateChoices.add_binary_op "and" "logical and" (mutind HelmLibraryObjects.Logic.and_URI); DisambiguateChoices.add_binary_op "or" "logical or" @@ -84,3 +70,4 @@ let _ = DisambiguateChoices.add_unary_op "not" "logical not" (const HelmLibraryObjects.Logic.not_URI); +(* vim:set encoding=utf8: *)