X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_disambiguation%2Farit_notation.ml;h=780fed363d575f473f6056607970cdc39e127ccd;hb=bbe7741f3bbaacb93f2876c018dace82f5e929b8;hp=d21c5d3a79f3c9ac2c3bfa5c2d73cae9e1eabc23;hpb=320b8572a343818d9bf1d7d75502c92cc8043010;p=helm.git diff --git a/helm/ocaml/cic_disambiguation/arit_notation.ml b/helm/ocaml/cic_disambiguation/arit_notation.ml index d21c5d3a7..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" @@ -154,3 +166,5 @@ let _ = Cic.Appl [ Cic.MutInd (HelmLibraryObjects.Logic.eq_URI, 0, []); Cic.Implicit (Some `Type); t1; t2 ] ])); + +(* vim:set encoding=utf8: *)