introduction to logic Flashcards

1
Q

Why do we need a special language, why not just english:

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are the two fundamental aspects of logic?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

why do we use symbol?

A

We use symbols because language is so rich that it limits the power of language to create issues

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are the three components of logic?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

who was regarded as the founder of logic?

A

Aristotle was the founder – he resonded in syllogism – for example socrates is a man , all men are mortal, therefore socrates is mortal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what would we like from the semantics, syntax and a proof system?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what can temporal logic do?

A

Temporal logic can be used to reason over time steps `

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does a syntax of a programming language determine?

A

it determines exactly which combinations of symbols constitute a legitimate program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how can we give a semantics to our programs?

A

initially, all variables have some given non-negative integer values

we execute the program, with the usual definitions of + and –.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

how can you define a given program p?

A

an input for a given program is a specification v of a non-negative integer value for every variable of p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When would an input v satisy p?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a database?

A

A structured collection of logical records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a database query language?

A

A language for asking and answering questions of this structured data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Where are almost all database query languages built on?

A

SQL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the expressive power of SQL closely related to?

A

Predicatae logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are formal methods?

A

Use of mathematically based techniques for the specification and verification of computer systems. Prove that programs have certain properties don’t just rely on testing

17
Q

What is model checking?

A

It is a branch of formal methods

The computer system is first modelled as some mathematical structure then a specific property that this system might have is expressed by a formula of some logic

18
Q

how are formal methods used in microprocessor designs?

A

Microprocessor design – all major microprocessor manufacturers use model checking methods as a part of their desing procress

19
Q

how are formal methods used in design of data communication protocol software?

A

Design of data communication protocol software- model checkers have been used as rapid prototyping systems for validating new data communications/ security protocols

20
Q

how are formal methods used in critical software?

A

Critical software – NASA used model checking to look for bugs in code developed by the space program

21
Q

how are formal methods used in operating systems?

A

Operating systems – microsoft uses model checking to verify the correct functioning of new windows device drivers

22
Q

what did Frege attempt to do?

A

He attempted to show that all mathematics grew out of logic

23
Q

what was Frege intentions to show and what would that mean?

A

His intention was to show that there was a set of axioms (basic and obvious facts) and a set of logical rules (unambiguous) so that all true mathematical statements expressible in Frege’s logic could be inferred from these axioms and using these rules.

24
Q

What is russles paradox?

A

In Frege’s logical system, one could define certain sets of objects, Russell showed that the set R can be so defined R = {A is a set : where A is not in the set of A}. The paradox arises when one asks whether R is not in the set of R, if R is not in the set of R then R satisfies the premise to be in R so R is in the set of R. if R is is in the set of R then R satisfies the premise to be in R so R is not in the set of R.

25
Q

How can you fobid russels paradox

A

you have to forbid the set for which A Is a set and A is not in the set of A

26
Q

What is Godels incompleteness theorem?

A

in any acceptable logical system powerful enough to describe the arithmetic of the natural numbers, there are true things about the natural numbers that cannot be proven in the system

27
Q

what did hilbert believe?

A

all mathematical statements could be written in a formal language and manipulated according to formal rules
all true mathematical statements could be proved in the formalism
there would be an “algorithm” to decide whetherany mathematical statement is true or not

28
Q

who destroyed hilberts programme?

A

Kurt Godel

29
Q

what is the entscheidungsproblem?

A

the Entscheidungsproblem which asks for:
- an “algorithm” that will take as input: a description of a formal language and a mathematical statement in the language
- produce as output* either “true” or “false”, according to whether the statement is true or false.

30
Q

how did turing prove the general solution to the Entscheidungsproblem is impossible?

A

Turing proved his result by reformulating Kurt Gödel’s proofs but in the context of computation and using what are now known as Turing machines.

31
Q

how did Church prove the general solution to the Entscheidungsproblem is impossible?

A

Church’s notion of a computer was the lambda calculus which led to functional programming languages such as Haskell and LISP.