• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 3 out of 11 pages
Lecture notes

Modelling Computer Systems I

Document preview thumbnail
Preview 3 out of 11 pages

This is the summary of all the materials of module CS-170 in Swansea University. The file contains five chapters: Propositional logic, sets, predicate logic, functions and relation.

Content preview

Modelling of Computer Systems



Table of Content
Chapter 1 Propositional Logic
1.1 Propositions and Deductions
1.2 The Language of Propositional Logic
1.3 Modelling with Propositional Logic
1.4 Ambiguities of Natural Languages
1.5 Truth Tables
1.6 Equivalences and Valid Arguments
Chapter 2 Sets
2.1 Set Notation
2.2 Membership, Equality and Inclusion
2.3 Set and Properties
2.4 Operations on Sets
2.5 Ordered pairs and Cartesian Products
2.6 Logical Equivalences versus Set Identities
2.7 Example
Chapter 4 Predicate Logic
4.1 Predicates and Free Variables
4.2 Quantifiers and Bound Variables
4.3 Rules of Quantification
4.4 Modelling in Predicate Logic
Chapter 6 Functions
6.1 Definition
6.2 Injective and Surjective
6.3 Composing Functions
Chapter 7 Relation
7.1 Basic Definition
7.2 Binary Relation
7.3 Operations on Binary Relations
7.4 Properties of Binary Relations




1

,Modelling of Computer Systems




Chapter 1 Propositional Logic

1.1 Propositions and Deductions
1. A statement is a declaration which is either true or false
2. Atomic statement is a statement without connectives

1.2 The Language of Propositional Logic
1. Propositional variables P, Q, R represent unknown proposition.
2. Propositional connectives “not” (¬), “or” (∨), and (∧), “implies” (⇒), “equivalent” (⇔) are
used to combine propositions.


Connectives Symbol Pronunciation

Negation ¬p not p、p does not hold、p is false、it is not the case that p......

Disjunction p∨q p or q、p or q or both、p unless q

Conjunction p∧q p and q、p but q、not only p but also q

Implication p⇒q p implies q、p only if q、if p then q、q if p、q whenever p

Equivalence p⇔q p if, and only if, q、p is equivalent to q


3. Propositional formula is represented by either an atomic formula with a variable such
as P, Q, R or a compound formula built up with propositional connectives such as P ∨ Q.
4. Well formed Formula refers to a statement written in propositional logic



5. Parentheses and precedences should be carefully handled.
Connectives are applied right to left, such that p ⇒ q ∨ r ⇒ s is interpreted
as p ⇒ (q ∨ r) ⇒ s due to ∨ binds more tightly than ⇒. It then becomes p ⇒
((q ∨ r) ⇒ s) due to right­to­left order.
6. Syntax Tree is constructed by a well­formed formula.

Note: Consider a statement (P ∨ Q) ∧ R, it is clear that P, Q, R are propositional variables, so
they are propositional formulae. Thus (P ∨ Q) is a propositional formula so (P ∨ Q) ∧ R is
also a propositional formula.


1.3 Modelling with Propositional Logic

1.4 Ambiguities of Natural Languages


2

, Modelling of Computer Systems




1.5 Truth Tables




1.6 Equivalences and Valid Arguments
1. Tautology is a proposition which is true regardless of the truth values
2. Contradiction is a proposition which is false regardless of the truth values
3. Satisfiable is a proposition which is sometimes true or false under some interpretation




3

Document information

Uploaded on
October 22, 2013
Number of pages
11
Written in
2012/2013
Type
Lecture notes
Professor(s)
Unknown
Contains
All classes
£3.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Milton
3.5
(2)
Sold
8
Followers
4
Items
4
Last sold
3 year ago

Reviews from verified buyers




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions