FO(.)
In computer science, FO(.) (a.k.a. FO-dot) is a knowledge representation language based on first-order logic (FO).[1] It extends FO with types, aggregates (counting, summing, maximising ... over a set), arithmetic, inductive definitions, partial functions, and intensional objects.
By itself, a FO(.) knowledge base cannot be run, as it is just a "bag of information", to be used as input to various generic reasoning algorithms. Reasoning engines that use FO(.) include IDP-Z3,[2] IDP[3][4] and FOLASP.[5] As an example, the IDP system allows generating models, answering set queries, checking entailment between two theories and checking satisfiability, among other types of inference over a FO(.) knowledge base.
FO(.) has four types of statements:
- Type, function and predicate declarations,
- Axioms, i.e., logic sentences about possible worlds,
- Definitions that specify a unique interpretation of a defined symbol, given the interpretation of its parameters. Definitions can be inductive.
- Enumerations, i.e., definitions of symbols by enumeration.
Example
A voting law specifies that citizens must be at least 18 years old to vote. Furthermore, if the voting law is interpreted as being prescriptive, voting is mandatory when you are over 18. This can be represented in FO(.) as follows:
vocabulary V { age: () β β€ // function declaration prescriptive, vote: () β πΉ // predicate declarations } theory T:V { age() < 18 β Β¬vote(). // axiom: if you are less than 18, you may not vote. prescriptive() β (age() β₯ 18 β vote()). // axiom: if prescriptive: if you are at least 18, you must vote }
In this code, Aβ
B indicates a function from A to B, [math]\displaystyle{ \mathbb{Z} }[/math] denotes integers, [math]\displaystyle{ \mathbb{B} }[/math] denotes the booleans, Β¬
denotes negation, and β
denotes material conditional. Predicates < and β₯ are built-in and have their usual meaning.
Such knowledge base can be turned automatically into an Interactive Lawyer[6] (see here[7])
References
- β Denecker, Marc (2000). "Extending classical logic with inductive definitions". International Conference on Computational Logic: 703β717. Bibcode: 2000cs........3019D.
- β "IDP-Z3". http://www.idp-z3.be.
- β De Cat, Broes; Bogaerts, Bart; Bruynooghe, Maurice; Janssens, Gerda; Denecker, Marc (2018). "Predicate logic as a modeling language: The IDP system". Declarative Logic Programming: Theory, Systems, and Applications. pp. 279β323. doi:10.1145/3191315.3191321. ISBN 9781970001990. https://lirias.kuleuven.be/handle/123456789/627949.
- β "IDP". https://dtai.cs.kuleuven.be/drupal/software/idp.
- β "FOLASP". https://gitlab.com/EAVISE/folasp/folasp-engine.
- β "Interactive Consultant". https://www.idp-z3.be/interactive_consultant.html.
- β "Interactive Lawyer". https://interactive-consultant.idp-z3.be/?G4ewxghgRgrgNhATgTwAQDUDeAoVqIDmApgFyoAUAlKoEmEqgJIR5PMssD0bqAZjAHZgAXAJYheqACZEwCRBGGjcqAA6IiAZzCIhS4cCIAaVKAGkK1OoFYNwJy7TDstXihkExKky5I3muwBfbAIALIhAUVAAVEnRUHDxCIioAHlQARgAOVEAlwlQAGuN4ygA6VmLiuwgADxEAWzIhLlRkEBh8VVQ4dTVUQIgxNMNG5qqINF4QASMxogLFFXVNbV18zIo4qkBTIhT0rLyqQrwyypAa1Dr7Oa0dIT1a%2BoGWonxx9og1cb6GptQqmFeJk18gA.
External links
Original source: https://en.wikipedia.org/wiki/FO(.).
Read more |