CSC 351 - Prolog Flashcards
What is a proposition?
Logical statement that may or may not be true.
Can be represented as a fact (assumed to be true) or query (truth is to be determined)
Logic Languages?
- expressed in a form of symbolic logic
- uses a logical inferencing process to produce results
- declarative
What is symbolic logic
Logic which can be used for the basic needs of formal logic
Object representation
Objects in prepositions are represented by either constants or variables
What is a compound term?
One element of a mathematical relation, written like a function
What is resolution?
Inference principle that allows inferred propositions to be computed from given propositions
What is unification?
Finding values for variables in prepositions that allows matching process to succeed
What is instantiation?
Assigning temporary values to variables to allow unification to succeed
What is a prolog term?
A constant, variable or structure
What is a prolog constant?
An atom or an integer
What is a prolog atom?
Symbolic value, can be a string of letters, digits and underscores beginning with a lowercase letter
What is a prolog variable?
Any string of letters, digits and underscores beginning with an uppercase
What is a prolog instantiation?
Binding of a variable to a value
What is a prolog structure?
Represents atomic proposition
Inferencing process of prolog?
To prove a query (goal) is true, must find a chain of inference rules and/or facts
Prolog uses backward chaining - begin with goal and attempt to find sequence that leads to set of facts
Prolog uses depth-first search