X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_disambiguation%2Flogic_notation.ml;h=073e2cdf34d1dad8b99eabd82adfc2f577945102;hb=3f00169098f1cd1cdecbbf20982f7c4c58f7d71d;hp=a19361b32e7264717b96e5f5fc185353d50fff99;hpb=0d853dfc19b683f5d37741df405a2db721f7221a;p=helm.git diff --git a/helm/ocaml/cic_disambiguation/logic_notation.ml b/helm/ocaml/cic_disambiguation/logic_notation.ml index a19361b32..073e2cdf3 100644 --- a/helm/ocaml/cic_disambiguation/logic_notation.ml +++ b/helm/ocaml/cic_disambiguation/logic_notation.ml @@ -47,6 +47,10 @@ EXTEND END let _ = + (* TODO cut-and-pasted code: here, in arit_notation.ml and + * disambiguateChoices.ml *) + let const s = Cic.Const (s, []) in + let mutind s = Cic.MutInd (s, 0, []) in DisambiguateChoices.add_symbol_choice "eq" ("leibnitz's equality", (fun interp _ args -> @@ -57,6 +61,13 @@ let _ = in Cic.Appl [ Cic.MutInd (HelmLibraryObjects.Logic.eq_URI, 0, []); - Cic.Implicit; t1; t2 - ])) + 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" + (mutind HelmLibraryObjects.Logic.or_URI); + DisambiguateChoices.add_unary_op "not" "logical not" + (const HelmLibraryObjects.Logic.not_URI); +(* vim:set encoding=utf8: *)