What is the advantage of Horn logic in comparision to predicate logic or proposition logic

197 Views Asked by At

Can anybody explain with an example what the advantage of horn logic in comparison with predicate and proposition logic is?

2

There are 2 best solutions below

0
On

See :

We have already commented on the computational price we pay for transforming a propositional logic formula into an equivalent CNF. The latter class of formulas has an easy syntactic check for validity, but its test for satisfiability is very hard in general.

Fortunately, there are practically important subclasses of formulas which have much more efficient ways of deciding their satisfiability. One such example is the class of Horn formulas.

0
On

Horn logic is a subset of propositional and predicate logic where all statements are in a special format so that you can have very fast computer algorithms to test for satisfiability (and, as such, logical consequence).

But this only works because of the format of the statements, and in general, not all statements of propositional and predicate logic can be put into that format ... which is why Horn logic is a subset.