yaobinwen / robin_on_rails

Robin on Rails: my notes about technology and some other knowledge.
1 stars 0 forks source link

Study Stanford: CS103: Mathematical Foundations of Computing #194

Open yaobinwen opened 11 months ago

yaobinwen commented 11 months ago

Description

yaobinwen commented 11 months ago

Update (2023-07-20)

I wanted to study propositional logic because I want to evaluate the following proof (see the reply by Jan Hidders):

To show this we need to show that for any x the following two statements are equivalent:

    x∈A∖(B∩C)

x∈(A∖B)∪(A∖C)

We can show this by using the definitions of the set operations and propositional reasoning rules:

(i) x∈A∖(B∩C)

By definition of ∖

this is equivalent to:

(ii) x∈A∧x∉(B∩C)

By definition of ∩

this is equivalent to:

(iii) x∈A∧¬(x∈B∧x∈C))

By De Morgan (i.e. ¬(P∧Q)
is equivalent to ¬P∨¬Q

) this is equivalent to:

(iv) x∈A∧(x∉B∨x∉C)

By distribution of ∧
over ∨

this is equivalent to:

(v) (x∈A∧x∉B)∨(x∈A∧x∉C)

By definition of ∖

this is equivalent to:

(vi) x∈A∖B∨x∈A∖C

By definition of ∪

this is equivalent to:

(vii) x∈(A∖B)∪(A∖C)

QED