[
[ t1 = term; SYMBOL <:unicode<lor>> (* ∨ *); t2 = term ->
return_term loc (CicAst.Appl [CicAst.Symbol ("or", 0); t1; t2])
]
];
[
[ t1 = term; SYMBOL <:unicode<lor>> (* ∨ *); t2 = term ->
return_term loc (CicAst.Appl [CicAst.Symbol ("or", 0); t1; t2])
]
];
[
[ t1 = term; SYMBOL <:unicode<land>> (* ∧ *); t2 = term ->
return_term loc (CicAst.Appl [CicAst.Symbol ("and", 0); t1; t2])
]
];
[
[ t1 = term; SYMBOL <:unicode<land>> (* ∧ *); t2 = term ->
return_term loc (CicAst.Appl [CicAst.Symbol ("and", 0); t1; t2])
]
];
[
[ SYMBOL <:unicode<lnot>> (* ¬ *); t = term ->
return_term loc (CicAst.Appl [CicAst.Symbol ("not", 0); t])
[
[ SYMBOL <:unicode<lnot>> (* ¬ *); t = term ->
return_term loc (CicAst.Appl [CicAst.Symbol ("not", 0); t])
let _ =
(* TODO cut-and-pasted code: here, in arit_notation.ml and
* disambiguateChoices.ml *)
let _ =
(* TODO cut-and-pasted code: here, in arit_notation.ml and
* disambiguateChoices.ml *)
Cic.Appl [
Cic.MutInd (HelmLibraryObjects.Logic.eq_URI, 0, []);
Cic.Implicit (Some `Type); t1; t2
Cic.Appl [
Cic.MutInd (HelmLibraryObjects.Logic.eq_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"
DisambiguateChoices.add_binary_op "and" "logical and"
(mutind HelmLibraryObjects.Logic.and_URI);
DisambiguateChoices.add_binary_op "or" "logical or"