How would I write the following in Prolog?
a -> b V c
In English that would be a implies that b or c (or both)
The clause
a => (b ; c) % ';' means 'or'
is not a Horn clause and hence cannot be represented in (pure) Prolog (see e.g Wikipedia). On the other hand (b ; c) => a
is a Horn clause and can obviously be represented by two Prolog rules.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With