X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_disambiguation%2Farit_notation.ml;h=780fed363d575f473f6056607970cdc39e127ccd;hb=5325734bc2e4927ed7ec146e35a6f0f2b49f50c1;hp=d07cc49eff819cd41965a35abe473e141bb20229;hpb=4240cc4ea18d734df697ccbce423d42f74c03c63;p=helm.git diff --git a/helm/ocaml/cic_disambiguation/arit_notation.ml b/helm/ocaml/cic_disambiguation/arit_notation.ml index d07cc49ef..780fed363 100644 --- a/helm/ocaml/cic_disambiguation/arit_notation.ml +++ b/helm/ocaml/cic_disambiguation/arit_notation.ml @@ -42,6 +42,12 @@ EXTEND return_term loc (CicAst.Appl [CicAst.Symbol ("divide", 0); t1; t2]) ] ]; + term: LEVEL "power" + [ + [ t1 = term; SYMBOL "^"; t2 = term -> + return_term loc (CicAst.Appl [CicAst.Symbol ("power", 0); t1; t2]) + ] + ]; term: LEVEL "inv" [ [ SYMBOL "-"; t = term -> @@ -117,6 +123,12 @@ let _ = (const HelmLibraryObjects.Reals.rmult_URI); DisambiguateChoices.add_binary_op "times" "binary positive times" HelmLibraryObjects.BinPos.pmult; + DisambiguateChoices.add_binary_op "times" "binary integer times" + HelmLibraryObjects.BinInt.zmult; + DisambiguateChoices.add_binary_op "power" "real power" + (const HelmLibraryObjects.Reals.pow_URI); + DisambiguateChoices.add_binary_op "power" "integer power" + (const HelmLibraryObjects.BinInt.zpower_URI); DisambiguateChoices.add_binary_op "divide" "real divide" (const HelmLibraryObjects.Reals.rdiv_URI); DisambiguateChoices.add_unary_op "uminus" "real unary minus"