Primeira Ordem Lógica (FOL), also known as predicate logic or first-order predicate logic, is a formal system in lógica matemática that allows for the expression of statements about objects and their relationships. It extends propositional logic by incorporating quantifiers, predicates, and variables, enabling a more nuanced representation of complex declarações.
In FOL, statements are built using predicates, which are functions that return true or false based on the input values (objects). For example, the predicate Likes(John, IceCream) states that ‘John likes ice cream.’ This allows us to express relationships between different entities and their properties.
A FOL usa dois quantificadores principais: o quantificador existencial (∃) e o quantificador universal (∀). O quantificador existencial nos permite afirmar que existe pelo menos um objeto para o qual um predicado é verdadeiro, enquanto o quantificador universal afirma que um predicado é verdadeiro para todos os objetos de um domínio específico.
Uma das vantagens significativas da Lógica de Primeira Ordem é its ability to support reasoning through inferência lógica. This means that if certain statements are true, FOL can be used to deduce new truths based on those statements using rules of inference, such as Modus Ponens or Universal Instantiation.
FOL has applications in various fields, including artificial intelligence, where it is used for representação do conhecimento and automated reasoning, as well as in computer science for database querying and in formal verification of software and hardware systems.
Despite its expressiveness, First-Order Logic is not without limitations. For instance, it cannot easily represent certain concepts like time or modality without additional frameworks. Nevertheless, it remains a foundational tool for formal reasoning and logic.