当前位置:网站首页>[mathematical logic] propositional logic (propositional and connective review | propositional formula | connective priority | truth table satisfiable contradiction tautology)
[mathematical logic] propositional logic (propositional and connective review | propositional formula | connective priority | truth table satisfiable contradiction tautology)
2022-07-03 03:29:00 【Programmer community】
List of articles
- One 、 Propositions and connectives
- Two 、 Propositional formula
- 3、 ... and 、 Examples of propositional formulas
- Four 、 Connective priority
- 5、 ... and 、 Truth table
Based on the previous blog 【 Mathematical logic 】 Predicate logic ( Individual words | Individual domain | The predicate | Full name quantifier | There are quantifiers | Predicate formula | exercises ) ;
One 、 Propositions and connectives
Atomic proposition :
p
,
q
,
r
p , q , r
p,q,r Express Atomic proposition , Also known as Simple proposition ;
- really :
1
1
1 Express Propositional truth value It's true ;
- false :
0
0
0 Express Propositional truth value For false ;
Conjunctions : Last blog 【 Mathematical logic 】 Predicate logic ( Individual words | Individual domain | The predicate | Full name quantifier | There are quantifiers | Predicate formula | exercises ) 3、 ... and . Conjunctions The chapter explains the connectives ;
- Negative connectives :
¬
\lnot
¬
- Conjunctions :
∧
\land
p
∧
q
p \land q
p∧q ,
p
q
pq
pq Tongzhen , The result is true , The rest is false ;
∧ ,
- Disjunctive connectives :
∨
\lor
p
∨
q
p \lor q
p∨q ,
p
q
pq
pq Same as , The result is false , The rest is true ;
∨ ,
- Implicative connectives :
→
\to
p
→
q
p \to q
p→q ,
p
p
p really
q
q
q false , The result is false , The rest is true ;
→ ,
- Equivalent connectives :
\leftrightarrow
p
q
p \leftrightarrow q
pq ,
p
q
pq
pq When the truth value is the same, it is true , Indicates equivalence ,
p
q
pq
pq If the true value is opposite, it is false , Equivalence does not hold ;
,
Two 、 Propositional formula
Propositional formula form :
① Single Propositional argument / Propositional constant Is a proposition formula ;
② If
A
A
A Is a proposition formula , be
(
¬
A
)
(\lnot A)
(¬A) It is also a propositional formula ;
③ If
A
,
B
A,B
A,B Is a proposition formula , be
(
A
∧
B
)
,
(
A
∨
B
)
,
(
A
→
B
)
,
(
A
B
)
(A \land B) , (A \lor B), (A \to B), (A \leftrightarrow B)
(A∧B),(A∨B),(A→B),(AB) It is also a propositional formula ;
④ A limited number of times application ① ② ③ Formed symbol string Is a proposition formula ; ( Infinite times cannot )
3、 ... and 、 Examples of propositional formulas
Examples of propositional formulas :
Simple proposition :
p
p
p
Compound proposition : Use Conjunctions The proposition of is called Compound proposition ;
¬
p
\lnot p
¬p
(
p
→
q
)
(p \to q)
(p→q) , The outermost parentheses can be omitted ,
p
→
q
p \to q
p→q
(
p
→
(
q
→
r
)
)
(p \to (q \to r))
(p→(q→r)) , The outermost bracket can be omitted , Inner brackets cannot ,
p
→
(
q
→
r
)
p \to (q \to r)
p→(q→r) ;
Four 、 Connective priority
Connective priority :
“
¬
\lnot
¬” Greater than “
∧
,
∨
\land , \lor
∧,∨” Greater than “
→
,
\to, \leftrightarrow
→,”
∧
,
∨
\land , \lor
∧,∨ Same priority ;
→
,
\to, \leftrightarrow
→, Same priority ;
5、 ... and 、 Truth table
Truth table :
p p p | q q q | p → q p \to q p→q | p ∧ ¬ q p \land \lnot q p∧¬q | p ∧ ( p ∨ q ) p p \land ( p \lor q ) \leftrightarrow p p∧(p∨q)p |
---|---|---|---|---|
0 0 0 | 0 0 0 | 1 1 1 | 0 0 0 | 1 1 1 |
0 0 0 | 1 1 1 | 1 1 1 | 0 0 0 | 1 1 1 |
1 1 1 | 0 0 0 | 0 0 0 | 0 0 0 | 1 1 1 |
1 1 1 | 1 1 1 | 1 1 1 | 0 0 0 | 1 1 1 |
p
→
q
p \to q
p→q yes Satisfiability ;
p
∧
¬
q
p \land \lnot q
p∧¬q yes Paradoxical , Also known as Permanent falsehood ;
p
∧
(
p
∨
q
)
p
p \land ( p \lor q ) \leftrightarrow p
p∧(p∨q)p yes Tautology , Also known as Yongzhen style ;
Satisfiability : Truth table , At least one result is true , It can be true ;
Paradoxical ( Permanent falsehood ) : All truth values are false ;
Satisfiability And Paradoxical , yes A choice Of , Compound proposition Or Satisfiability , Or Paradoxical ;
Tautology ( Yongzhen style ) Is a kind of satisfiable ;
边栏推荐
猜你喜欢
Introduction to mongodb
用Three.js做一个简单的3D场景
FileZilla client download and installation
[pyg] understand the messagepassing process, GCN demo details
The idea cannot be loaded, and the market solution can be applied (pro test)
Use of El tree search method
Hutool动态添加定时任务
Summary of electromagnetic spectrum
Summary of determinant knowledge points in Chapter 1 of Linear Algebra (Jeff's self perception)
Mongodb installation & Deployment
随机推荐
docker安装及启动mysql服务
Don't use the new Dede collection without the updated Dede plug-in
ffmpeg录制屏幕和截屏
机械臂速成小指南(八):运动学建模(标准DH法)
Elsevier latex submitted the article pdftex def Error: File `thumbnails/cas-email. jpeg‘ not found: using draf
numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
Introduction à mongodb
BigVision代码
2020-01-01t00:00:00.000000z date format conversion
Unity3d RPG implementation (medium)
Advanced redis applications [password protection, data persistence, master-slave synchronization, sentinel mode, transactions] [not completed yet (semi-finished products)]
Agile certification (professional scrum Master) simulation exercises
程序员新人上午使用 isXxx 形式定义布尔类型,下午就被劝退?
VS code配置虚拟环境
403 error displayed when vs cloning
The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled
监听对象中值变化及访问
Avec trois. JS fait une scène 3D simple
C # webrequest post mode, based on "basic auth" password authentication mode, uploads files and submits other data using multipart / form data mode
[combinatorics] number of solutions of indefinite equations (number of combinations of multiple sets R | number of non negative integer solutions of indefinite equations | number of integer solutions