Improve understanding of propositional predicate logic

Assignment Help Computer Engineering
Reference no: EM131622999

Purpose

To improve your understanding of propositional and first-order predicate logic, including their use in mechanized reasoning. To develop skills in analysis and formal reasoning about complex concepts, and to practise writing down formal arguments.

Five challenges

Challenge 1
On the Island of Knights and Knaves, everyone is a knight or knave. Knights always tell the truth. Knaves always lie. You meet three people, let us call them A, B and C. A says to you: "If I am a knight then my two friends here are knaves." Use propositional logic to determine whether this statement gives you any real information. What, if anything, can be deduced about A, B, and C?

Challenge 2

Let ? and ψ be these propositional formulas:
- ? : ((P ⇒ S) ∧ (Q ⇒ R) ∧ (R ⇒ P )) ⇒ S.
- ψ : (((P ∨ Q) ⇒ S) ∧ (¬P ⇒ (R ⇒ Q)) ∧ (R ∨ S)) ⇒ S.

1. Negate ? and transform the resulting formula to CNF.

2. Either use resolution on the resulting set of clauses and prove that ? is valid by deriving ⊥, or show that ? is in fact non-valid.

3. Negate ψ and transform the resulting formula to CNF.

4. Either use resolution on the resulting set of clauses and prove that ψ is valid by deriving ⊥, or show that ψ is in fact non-valid.

Challenge 3
Show that the closed formula
[∀x∀y(P (x, y) ⇒ P (h(x), h(h(y))))] ⇒ ∀x(P (x, h(x)) ∧ P (h(h(x)), x)) is non-valid but satisfiable.

Challenge 4
For this question use the following predicates:
- S(x), which stands for "x is a surgeon"
- P (x, y), which stands for "x is a patient of y"
- R(x), which stands for "x recovers"
- H(x), which stands for "x is happy"

1. Express, as a formula in first-order predicate logic (not clausal form), this statement S1: "A surgeon with no patients is happy." (Be careful to get this right; most of the following depends on this.)

2. Express, as a formula in first-order predicate logic (not clausal form), this statement
S2: "A surgeon is happy if all her patients recover." (Be even more careful here.)

3. Translate S2 to clausal form (remaining careful).

4. Translate the negation of S1 to clausal form (still taking care.)

5. Give a proof by resolution to show that S1 follows from S2.

Challenge 5

Consider a single-digit display able to show the eight digits 0-7. The display has seven LEDs (labelled a-g), as shown on the right. For example, to display the digit 3, all segments except b and e should light a up. Each of the seven segments a-g can be considered a propositional function of three propositional variables X, Y and Z, with input XYZ b c specifying the desired digit in binary notation. For example, for input XYZ = 011 (that is, X being false and Y and Z being true) the outputs e f b and e should be 0 (False) while the rest should be 1 (True). In fact, the truth tables for all the functions a-g are as follows:

1715_figure.jpg

X

Y

Z

a

b

c

d

e

f

g

0

0

0

1

1

1

0

1

1

1

0

0

1

0

0

1

0

0

1

0

0

1

0

1

0

1

1

1

0

1

0

1

1

1

0

1

1

0

1

1

1

0

0

0

1

1

1

0

1

0

1

0

1

1

1

0

1

0

1

1

1

1

0

1

1

0

1

1

1

1

1

1

1

1

0

1

0

0

1

0

The single-digit display must be implemented with logic circuitry. Here we assume that only three types of logic gates are available. An and-gate takes two inputs and produces, as output, the conjunction (∧) of the inputs. Similarly, an or-gate implements disjunction (∨).

Finally, an inverter takes a single input and negates it.

The task here is to design a circuit for all of a-g using as few gates as possible. We can specify the circuit by writing down the Boolean equations for each of the outputs a-g. For example, we can define f = X ∨ ¬Y ∨ Z, which shows that f can be implemented with three gates. Since we want to use as few gates as possible, it is important to look for cases where outputs can be shared, or reused. For example, if we already have implemented b then we could define f = b ∨ Z, using just one gate. Note that any sub-circuit that you want to share (that is, you want to direct its output to different places), the output must have a name. You can define as many "helper" functions as you please, to create the smallest possible solution.

The answer to this question must be submitted separately on Grok (details below). You are to submit a text file consisting of one line per definition (so not Haskell code; this is not a Haskell programming exercise). This file will be tested automatically, so it is important that you follow the notational conventions exactly. We write ¬ as - and ∨ as +. We write ∧ as ., or, simpler, we just leave it out, so that concatenation of expressions denotes their conjunction. Here is an example set of equations (for a different problem):

# An example of a set of equations in the correct format:

a = -Y Z + Y -Z + X -Y -Z b = u + X (Y + Z)
c = X + -(Y Z)
d = u + X a u = -X -Y
# u is an auxiliary function introduced to simplify b and d

Empty lines, and lines that start with ‘#', are ignored. Input variables are in upper case. Negation binds tighter than conjunction, which in turn binds tighter than disjunction.

So the equation for a says that a = (¬Y ∧ Z) ∨ (Y ∧ ¬Z) ∨ (X ∧ ¬Y ∧ ¬Z). Note the use of a helper function u, allowing b and d to share some circuitry. Also note that we do not allow any feedback loops in the circuit. In the example above, d depends on a, so a is not allowed to depend, directly or indirectly, on d (and indeed it does not).

Verified Expert

The assignment consisted of 5 questions with various sub-parts. I have solved all the questions. I have drawn tables wherever needed. The question 5 needed a special code, which I have written. The solutions have been highlighted by yellow colour in the file attached.

Reference no: EM131622999

Questions Cloud

Resolve a situation between two employees : What are the negotiation process and strategies that a mediator will adopt to resolve a situation between two employees.
The use of online documentation and paper documentation : Evaluate online tutorials and online communities in regard to helping users. Create an argument for the approach you find to be the most effective?
Techniques within project management : What are some schedule compression techniques within Project Management? Why are they helpful?
What do equity securities represent : What do equity securities represent? Describe the two types of equity securities distinguishing between them.
Improve understanding of propositional predicate logic : Improve your understanding of propositional and first-order predicate logic, including their use in mechanized reasoning.
Internationalsection of reputable website : Conduct an Internet search to find and read at least 3 recent articles that relate to the key term you selected. Articles may be found.
Describe the factors that affect exchange rates in the long : Describe the factors that affect exchange rates in the long run?
Defines gender and class in opinion : How does your personal cultural profile affect how you communicate both formally and informally with friends, family, and other individuals you may come.
Write at least five comments that you hope people will say : Write at least five comments that you hope people will say about you at retirement party, i.e., what you contributed to the field, how you approached your work.

Reviews

len1622999

9/1/2017 5:53:30 AM

Some of the problems are harder than others. All should be solved and submitted by students individually. Your solution will count for 10 marks out of 100 for the subject. Each question is worth 2 marks. Marks are primarily allocated for correctness, but elegance and how clearly you communicate your thinking will also be taken into account. For Challenge 5, there will be 1 mark for a correct solution. After that, your mark depends on which quartile your solution sits in, when we order all solutions by increasing number of gates. If it falls in the best quartile (that is, within the 25% of solutions that use the fewest gates), we add 1 mark. If you are in the next quartile, we add 0.5 marks. Otherwise no marks are added to the mark for correctness.

len1622999

9/1/2017 5:53:24 AM

Comments: 5 questions needed to be answered. Last question required coding with haskell Some of the problems are harder than others. All should be solved and submitted by students individually. Your solution will count for 10 marks out of 100 for the subject. Each question is worth 2 marks. Marks are primarily allocated for correctness, but elegance and how clearly you communicate your thinking will also be taken into account. For Challenge 5, there will be 1 mark for a correct solution. After that, your mark depends on which quartile your solution sits in, when we order all solutions by increasing number of gates. If it falls in the best quartile (that is, within the 25% of solutions that use the fewest gates), we add 1 mark. If you are in the next quartile, we add 0.5 marks. Otherwise no marks are added to the mark for correctness.

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd