diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2011-08-30 14:58:16 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2011-08-30 14:58:16 +0000 |
| commit | c70df9200c3244f45f75dcaefa650a82ddab55cc (patch) | |
| tree | d692efe7aa9a98bfbb4d947aef416ebb11cf5076 /examples/nlg/Logic.gf | |
| parent | 4215fc31bf9bfc949599697a014dc13a112ed47c (diff) | |
added example for NLG from logical formula. See examples/nlg
Diffstat (limited to 'examples/nlg/Logic.gf')
| -rw-r--r-- | examples/nlg/Logic.gf | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/nlg/Logic.gf b/examples/nlg/Logic.gf new file mode 100644 index 000000000..63c330faf --- /dev/null +++ b/examples/nlg/Logic.gf @@ -0,0 +1,20 @@ +abstract Logic = { + +cat + Ind; Prop; + +fun + john : Ind; + mary : Ind; + boy : Ind -> Prop; + love : Ind -> Ind -> Prop; + leave : Ind -> Prop; + smart : Ind -> Prop; + exists : (Ind -> Prop) -> Prop; + forall : (Ind -> Prop) -> Prop; + and,or : Prop -> Prop -> Prop; + impl : Prop -> Prop -> Prop; + not : Prop -> Prop; + eq : Ind -> Ind -> Prop; + +} |
