Prolog Flashcards
Logic programs are
Declarative
Proposition is a
Logical statement or query about the state of the universe
Why was formal logic developed?
To describe propositions with the goal of allowing those formally stated propositions to be checked for validity
What there needs of formal logic can symbolic logic be used for?
(1) express propositions
(2) express relationship between propositions
(3) describe how new propositions can be inferred from others that are assumed to be true.
What is first order predicate calculus used for? What is it a type of.
Logic programming, symbolic logic
Proposition’s objects are represented by
Simple terms (constants or variables)
What is the simplest type of propositions?
Atomic propositions
Logical programming languages are
Declarative languages
What do fact and rule statements correspond to (hint what type of clauses)
Headed horn clauses
How do you write a prolog atom
String of letters, digits and underscores stating with lowercase letters
How do you write variables in prolog
Inbound entitle
Starts with an upper caps letter
Facts in prologare (3)
Assumed to be true, contains to variables and stored in database