Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use python to write the code. Thanks Create a program for the following: 1 . Prove ( true ) or disprove ( false )

Please use python to write the code. Thanks
Create a program for the following:
1. Prove (true) or disprove (false) the following assertions for the domain of
{0,1,2,3,4,5,6,7,8,9,10}. For the universal quantifier, show at least one of the
numbers in the domain that disproves the assertion. For the existential
quantifier, show at least one number in the domain that proves the assertion:
a)x P(x), where P(x) is the statement x<2
b)x P(x), where P(x) is the statement x<2
c)x (P(x) Q(x)) where P(x) is the statement x<2 and where Q(x) is the statement x>7
d)x (P(x) Q(x)) where P(x) is the statement x<2 and where Q(x) is the statement x>7
e) Prove De Morgans Law for the Existential Quantifier where P(x) is the statement x<5
f) Prove De Morgans Law for the Universal Quantifier where P(x) is the statement x<5
2. Find the following truth values for P(x,y): x y =1 where the domain of x and y is {1,2,4,5,10,0.5,0.25,0.2,0.1}. Show the values in the domain that either make the assertions true or false.
a)xyP(x,y)
b)xyP(x,y)
c)yxP(x,y)
d)xyP(x,y)
e)yxP(x,y)
f)xyP(x,y)
Print out a line between each of the above indicating which number your program is answering, (e.g.,1b).
Remember:
o To prove requires showing it is true for ALL values in the domain; to
prove requires showing it is true for only ONE value in the domain; to
disprove requires showing it is false for ONE value in the domain; to
disprove requires showing it is false for ALL values in the domain.
o To prove Laws, requires showing both sides are the same for the domain
(either both TRUE or both FALSE); and given P(x), you have to figure out
what P(x) is, e.g., if P(x)= x > y, then P(x)= x <= y.
Provide comments that explain what each line of code is doing

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions

Question

(2) Who knows about it in the company?

Answered: 1 week ago

Question

What is Selenium? What are the advantages of Selenium?

Answered: 1 week ago

Question

Explain the various collection policies in receivables management.

Answered: 1 week ago

Question

What are the main objectives of Inventory ?

Answered: 1 week ago