Intro
Intro
17 August, 2015
Subramani
Outline
Outline
Subramani
Motivation
Why Logic?
Subramani
Motivation
Why Logic?
(i) The Law!
Subramani
Motivation
Why Logic?
(i) The Law!
(ii) Mathematics.
Subramani
Motivation
Why Logic?
(i) The Law!
(ii) Mathematics.
(iii) Computer Science
Subramani
Motivation
Why Logic?
(i) The Law!
(ii) Mathematics.
(iii) Computer Science (Automated Reasoning).
Subramani
Subramani
Argument
Subramani
Argument
If a Democrat is elected, then taxes will go up.
Subramani
Argument
If a Democrat is elected, then taxes will go up.
Either a Democrat will be elected or the bill will pass.
Subramani
Argument
If a Democrat is elected, then taxes will go up.
Either a Democrat will be elected or the bill will pass.
Therefore, if the taxes do not go up, then the bill will pass.
Subramani
Argument
If a Democrat is elected, then taxes will go up.
Either a Democrat will be elected or the bill will pass.
Therefore, if the taxes do not go up, then the bill will pass.
Questions of Interest
Subramani
Argument
If a Democrat is elected, then taxes will go up.
Either a Democrat will be elected or the bill will pass.
Therefore, if the taxes do not go up, then the bill will pass.
Questions of Interest
Subramani
Argument
If a Democrat is elected, then taxes will go up.
Either a Democrat will be elected or the bill will pass.
Therefore, if the taxes do not go up, then the bill will pass.
Questions of Interest
1
Subramani
Argument
If a Democrat is elected, then taxes will go up.
Either a Democrat will be elected or the bill will pass.
Therefore, if the taxes do not go up, then the bill will pass.
Questions of Interest
1
Subramani
Argument
If a Democrat is elected, then taxes will go up.
Either a Democrat will be elected or the bill will pass.
Therefore, if the taxes do not go up, then the bill will pass.
Questions of Interest
1
What is an argument?
Subramani
Argument
If a Democrat is elected, then taxes will go up.
Either a Democrat will be elected or the bill will pass.
Therefore, if the taxes do not go up, then the bill will pass.
Questions of Interest
1
What is an argument?
Subramani
Subramani
Argument
Subramani
Argument
Every farmer owns a cow.
Subramani
Argument
Every farmer owns a cow. No dentist owns a cow.
Subramani
Argument
Every farmer owns a cow. No dentist owns a cow. Therefore, no dentist is a farmer.
Subramani
Argument
Every farmer owns a cow. No dentist owns a cow. Therefore, no dentist is a farmer.
Questions of Interest
Subramani
Argument
Every farmer owns a cow. No dentist owns a cow. Therefore, no dentist is a farmer.
Questions of Interest
Subramani
Argument
Every farmer owns a cow. No dentist owns a cow. Therefore, no dentist is a farmer.
Questions of Interest
1
Subramani
Argument
Every farmer owns a cow. No dentist owns a cow. Therefore, no dentist is a farmer.
Questions of Interest
1
Subramani
Argument
Every farmer owns a cow. No dentist owns a cow. Therefore, no dentist is a farmer.
Questions of Interest
1
Subramani
Argument
Every farmer owns a cow. No dentist owns a cow. Therefore, no dentist is a farmer.
Questions of Interest
1
Note
Subramani
Argument
Every farmer owns a cow. No dentist owns a cow. Therefore, no dentist is a farmer.
Questions of Interest
1
Note
More generally, we are interested in deducing new facts, given a set of facts and
inferences.
Subramani
Subramani
Problem
Subramani
Problem
Prove that the sum of the first n positive integers is
Subramani
n(n+1)
.
2
Subramani
Problem
Subramani
Problem
Let A and B denote two sets.
Subramani
Problem
Let A and B denote two sets. Argue that (A B) A.
Subramani
Automated Reasoning
Subramani
Automated Reasoning
An algorithm
Subramani
Automated Reasoning
An algorithm
Consider the following algorithm:
Subramani
Automated Reasoning
An algorithm
Consider the following algorithm:
Function M AX -F IND(A, n)
1: if (n == 1) then
2:
return(A[1]).
3: else
4:
return(max(A[n], M AX -F IND(A, n 1))).
5: end if
Subramani
Questions
Subramani
Questions
Questions of Interest
Subramani
Questions
Questions of Interest
Subramani
Questions
Questions of Interest
1
Subramani
Questions
Questions of Interest
1
Subramani
Questions
Questions of Interest
1
Subramani
Questions
Questions of Interest
1
What is a proof?
Subramani
Questions
Questions of Interest
1
What is a proof?
Subramani
Subramani