introduction to logic Flashcards
Why do we need a special language, why not just english:
English is so rich that it cannot be formally described
The meaning of an English sentence can be ambiguous – sentences such as this sentence is false cannot have a truth value as it is a semantic paradox
what are the two fundamental aspects of logic?
a system of deduction by which proofs can be constructed ie a proof system
a notion of meaning by which the truth (or falsity) of some property of some object can be determined ie its semantics
why do we use symbol?
We use symbols because language is so rich that it limits the power of language to create issues
what are the three components of logic?
Syntax – the definition of the well formed formulae of logic
Semantics – the association of meaning and truth to the formulae of the logic
Proof systems – the manipulation of formulae according to a system of rules
who was regarded as the founder of logic?
Aristotle was the founder – he resonded in syllogism – for example socrates is a man , all men are mortal, therefore socrates is mortal
what would we like from the semantics, syntax and a proof system?
all the “true” (semantics) formulae should be “provable” (syntax, proof system) ie completeness
a formula that is “provable” (syntax, proof system) should be “true” (semantics) ie soundness.
what can temporal logic do?
Temporal logic can be used to reason over time steps `
What does a syntax of a programming language determine?
it determines exactly which combinations of symbols constitute a legitimate program.
how can we give a semantics to our programs?
initially, all variables have some given non-negative integer values
we execute the program, with the usual definitions of + and –.
how can you define a given program p?
an input for a given program is a specification v of a non-negative integer value for every variable of p
When would an input v satisy p?
An input v might be said to satisfy p if throughout the execution of p with the variables initially valued by v , no variable ever takes a negative value.
What is a database?
A structured collection of logical records
What is a database query language?
A language for asking and answering questions of this structured data
Where are almost all database query languages built on?
SQL
What is the expressive power of SQL closely related to?
Predicatae logic