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 ->
(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"