13208
|
1 |
(* Title: HOL/Prolog/HOHH.thy
|
|
2 |
ID: $Id$
|
|
3 |
Author: David von Oheimb (based on a lecture on Lambda Prolog by Nadathur)
|
|
4 |
|
|
5 |
higher-order hereditary Harrop formulas
|
|
6 |
*)
|
9015
|
7 |
|
|
8 |
HOHH = HOL +
|
|
9 |
|
|
10 |
consts
|
|
11 |
|
|
12 |
(* D-formulas (programs): D ::= !x. D | D .. D | D :- G | A *)
|
|
13 |
"Dand" :: [bool, bool] => bool (infixr ".." 28)
|
|
14 |
":-" :: [bool, bool] => bool (infixl 29)
|
|
15 |
|
|
16 |
(* G-formulas (goals): G ::= A | G & G | G | G | ? x. G
|
|
17 |
| True | !x. G | D => G *)
|
|
18 |
(*"," :: [bool, bool] => bool (infixr 35)*)
|
|
19 |
"=>" :: [bool, bool] => bool (infixr 27)
|
|
20 |
|
|
21 |
translations
|
|
22 |
|
|
23 |
"D :- G" => "G --> D"
|
|
24 |
"D1 .. D2" => "D1 & D2"
|
|
25 |
(*"G1 , G2" => "G1 & G2"*)
|
|
26 |
"D => G" => "D --> G"
|
|
27 |
|
|
28 |
end
|
|
29 |
|