100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Lecture notes

Modelling Computer Systems I

Rating
2.0
(1)
Sold
3
Pages
11
Uploaded on
22-10-2013
Written in
2012/2013

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.











Whoops! We can’t load your doc right now. Try again or contact support.

Document information

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

Subjects

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
£2.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
Milton
3.5
(2)

Reviews from verified buyers

Showing all reviews
2 year ago

2.0

1 reviews

5
0
4
0
3
0
2
1
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Milton Newcastle University
View profile
Follow You need to be logged in order to follow users or courses
Sold
8
Member since
12 year
Number of followers
4
Documents
4
Last sold
2 year ago

3.5

2 reviews

5
1
4
0
3
0
2
1
1
0

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

Frequently asked questions