当前位置:网站首页>[mathematical logic] propositional logic (equivalent calculus | idempotent law | exchange law | combination law | distribution law | De Morgan law | absorption rate | zero law | identity | exclusion l
[mathematical logic] propositional logic (equivalent calculus | idempotent law | exchange law | combination law | distribution law | De Morgan law | absorption rate | zero law | identity | exclusion l
2022-07-03 03:40:00 【Programmer community】
List of articles
- One 、 Equivalent calculus
- Two 、 Equivalent formula
- 3、 ... and 、 Basic equivalence
- Four 、 Basic operation
- 5、 ... and 、 Equivalent calculus
Based on the previous blog 【 Mathematical logic 】 Propositional logic ( Review of propositions and connectives | Propositional formula | Connective priority | Truth table Satisfiability Paradoxical Tautology ) ;
One 、 Equivalent calculus
Equivalent calculus :
- Equivalent formula
- Basic equivalence
- Equivalence calculus replacement rule
Two 、 Equivalent formula
Equivalent concept :
A
,
B
A , B
A,B It's two propositional formulas , If
A
B
A \leftrightarrow B
AB It's Yongzhen style , that
A
,
B
A,B
A,B The two propositional formulas are equivalent , Remember to do
A
⇔
B
A \Leftrightarrow B
A⇔B ;
Equivalent characteristics :
A
A
A and
B
B
B Two propositional formulas , Sure Replace each other , Whenever there is
A
A
A All places can be replaced with
B
B
B , Whenever there is
B
B
B All places can be replaced with
A
A
A ;
prove
p
→
q
p \to q
p→q And
¬
p
∨
q
\lnot p \lor q
¬p∨q Is equivalent ;
p p p | q q q | p → q p \to q p→q | ¬ p ∨ q \lnot p \lor q ¬p∨q | ( p → q ) ( ¬ p ∨ q ) (p \to q) \leftrightarrow (\lnot p \lor q) (p→q)(¬p∨q) |
---|---|---|---|---|
0 0 0 | 0 0 0 | 1 1 1 | 1 1 1 | 1 1 1 |
0 0 0 | 1 1 1 | 1 1 1 | 1 1 1 | 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 | 1 1 1 | 1 1 1 |
Write the truth table of two propositional formulas , thus Calculation
(
p
→
q
)
(
¬
p
∨
q
)
(p \to q) \leftrightarrow (\lnot p \lor q)
(p→q)(¬p∨q) Truth table of , After the calculation, it is found that Yongzhen style , According to the definition , These two propositional formulas are equivalent ,
(
p
→
q
)
⇔
(
¬
p
∨
q
)
(p \to q) \Leftrightarrow (\lnot p \lor q)
(p→q)⇔(¬p∨q) ;
3、 ... and 、 Basic equivalence
Basic operation rules :
- 1. Idempotent law :
A
⇔
A
∨
A
A \Leftrightarrow A \lor A
A⇔A∨A ,
A
⇔
A
∧
A
A \Leftrightarrow A \land A
A⇔A∧A
- 2. Commutative law :
A
∨
B
⇔
B
∨
A
A \lor B \Leftrightarrow B \lor A
A∨B⇔B∨A ,
A
∧
B
⇔
B
∧
A
A \land B \Leftrightarrow B \land A
A∧B⇔B∧A
- 3. Associative law :
(
A
∨
B
)
∨
C
⇔
A
∨
(
B
∨
C
)
(A \lor B ) \lor C \Leftrightarrow A \lor (B \lor C)
(A∨B)∨C⇔A∨(B∨C) ,
(
A
∧
B
)
∧
C
⇔
A
∧
(
B
∧
C
)
(A \land B ) \land C \Leftrightarrow A \land (B \land C)
(A∧B)∧C⇔A∧(B∧C)
- 4. Distributive law :
A
∨
(
B
∧
C
)
⇔
(
A
∨
B
)
∧
(
A
∨
C
)
A \lor (B \land C) \Leftrightarrow ( A \lor B ) \land ( A \lor C )
A∨(B∧C)⇔(A∨B)∧(A∨C) ,
A
∧
(
B
∨
C
)
⇔
(
A
∧
B
)
∨
(
A
∧
C
)
A \land (B \lor C) \Leftrightarrow ( A \land B ) \lor ( A \land C )
A∧(B∨C)⇔(A∧B)∨(A∧C)
New operation rules :
- 5. De Morgan law :
¬
(
A
∨
B
)
⇔
¬
A
∧
¬
B
\lnot ( A \lor B ) \Leftrightarrow \lnot A \land \lnot B
¬(A∨B)⇔¬A∧¬B ,
¬
(
A
∧
B
)
⇔
¬
A
∨
¬
B
\lnot ( A \land B ) \Leftrightarrow \lnot A \lor \lnot B
- With And (
∧
\land
∧ ) Not (
¬
\lnot
¬ ) , I can represent or (
∨
\lor
∨ )
- With or (
∨
\lor
∨ ) Not (
¬
\lnot
¬ ) , I can represent And (
∧
\land
∧ )
¬(A∧B)⇔¬A∨¬B
- With And (
- 6. absorptivity :
- The former absorbs the latter :
A
∨
(
A
∧
B
)
⇔
A
A \lor ( A \land B ) \Leftrightarrow A
A∨(A∧B)⇔A
- The latter absorbs the former :
A
∧
(
A
∨
B
)
⇔
A
A \land ( A \lor B ) \Leftrightarrow A
A∧(A∨B)⇔A ;
- The former absorbs the latter :
0
,
1
0 , 1
0,1 Related operation laws :
- 7. Law of zero :
A
∨
1
⇔
1
A \lor 1 \Leftrightarrow 1
A∨1⇔1 ,
A
∧
0
⇔
0
A \land 0 \Leftrightarrow 0
1
1
1 Is or arithmetic zero yuan ,
0
0
0 It's with operation zero yuan ;
- And zero yuan The result of the operation is zero yuan ;
A∧0⇔0
- 8. The same thing :
A
∨
0
⇔
A
A \lor 0 \Leftrightarrow A
A∨0⇔A ,
A
∧
1
⇔
A
A \land 1 \Leftrightarrow A
0
0
0 Is or arithmetic Unit element ,
1
1
1 yes And arithmetic Unit element
- And Unit element The result of the operation is In itself
A∧1⇔A
- 9. The law of excluded middle :
A
∨
¬
A
⇔
1
A \lor \lnot A \Leftrightarrow 1
A∨¬A⇔1
- 10. Law of contradiction :
A
∧
¬
A
⇔
0
A \land \lnot A \Leftrightarrow 0
A∧¬A⇔0
The duality principle is applicable to the above operation law , Put both sides
∧
,
∨
\land , \lor
∧,∨ swap , meanwhile
0
,
1
0 ,1
0,1 swap , Equivalence still holds ;
Equivalent implication operation law :
- 11. Double negative rate :
¬
¬
A
⇔
A
\lnot \lnot A \Leftrightarrow A
¬¬A⇔A
- 12. Implication equivalence :
A
→
B
⇔
¬
A
∨
B
A \to B \Leftrightarrow \lnot A \lor B
- Replace implied connectives : Contains connectives
→
\to
→ It's not necessary , Use
¬
,
∨
\lnot , \lor
¬,∨ Two connectives can be substituted Contains connectives ;
A→B⇔¬A∨B
- Replace implied connectives : Contains connectives
- 13. Equivalent equation :
A
B
⇔
(
A
→
B
)
∨
(
B
→
A
)
A \leftrightarrow B \Leftrightarrow ( A \to B ) \lor ( B \to A )
- Double arrow ( Equivalent connectives ) It can be understood as a necessary condition for re division
A
→
B
A \to B
A→B ( Contains connectives ) Comprehend
A
A
A yes
B
B
B Sufficient conditions of ,
B
B
B yes
A
A
A Necessary conditions
B
→
A
B \to A
B→A ( Contains connectives ) Comprehend
B
B
B yes
A
A
A Sufficient conditions of ,
A
A
A yes
B
B
B Necessary conditions
- Replace equivalent connectives : Equivalent connectives
\leftrightarrow
It's not necessary , Use
→
,
∨
\to , \lor
→,∨ Two connectives can be substituted Equivalent connectives ;
AB⇔(A→B)∨(B→A)
- 14. Equivalent negative equivalent :
A
B
⇔
¬
A
¬
B
A \leftrightarrow B \Leftrightarrow \lnot A \leftrightarrow \lnot B
AB⇔¬A¬B
- 15. Hypothetical translocation ( Converse no proposition ) :
A
→
B
⇔
¬
B
→
¬
A
A \to B \Leftrightarrow \lnot B \to \lnot A
A
A
A be called The front part ,
B
B
B be called Afterpiece ( Conclusion ) ;
A→B⇔¬B→¬A
- 16. To fallacy ( Reduction to absurdity ) :
(
A
→
B
)
∧
(
A
→
¬
B
)
⇔
¬
A
( A \to B ) \land ( A \to \lnot B ) \Leftrightarrow \lnot A
- This is the principle of disproof , from
A
A
A Deduce
B
B
B and
¬
B
\lnot B
¬B ,
B
B
B and
¬
B
\lnot B
¬B Is contradictory , be
A
A
A It's wrong. ,
¬
A
\lnot A
¬A Yes. ;
(A→B)∧(A→¬B)⇔¬A
- This is the principle of disproof , from
Four 、 Basic operation
Basic operation :
Equivalent equation : Equivalent connectives
\leftrightarrow
It's not necessary , Use
→
,
∨
\to , \lor
→,∨ Two connectives can be substituted Equivalent connectives ;
Implication equivalence : Contains connectives
→
\to
→ It's not necessary , Use
¬
,
∨
\lnot , \lor
¬,∨ Two connectives can be substituted Contains connectives ;
De Morgan law :
- With And (
∧
\land
∧ ) Not (
¬
\lnot
∨
\lor
∨ )
¬ ) , I can represent or (
- With or (
∨
\lor
∨ ) Not (
¬
\lnot
∧
\land
∧ )
¬ ) , I can represent And (
So come to the conclusion , And non perhaps Or not ( A choice ) , It can express all propositions ;
5、 ... and 、 Equivalent calculus
prove
p
→
(
q
→
r
)
p \to ( q \to r )
p→(q→r) And
(
p
∧
q
)
→
r
(p \land q) \to r
(p∧q)→r It is equivalent. ;
Prove that the above two propositions are equivalent , There are two ways :
- One is to list Truth table
- The other is to Equivalent calculus
p
→
(
q
→
r
)
p \to ( q \to r )
p→(q→r)
Use Implication equivalence , Replace : take
q
→
r
q \to r
q→r Replacement for
¬
q
∨
r
\lnot q \lor r
¬q∨r
⇔
p
→
(
¬
q
∨
r
)
\Leftrightarrow p \to ( \lnot q \lor r )
⇔p→(¬q∨r)
Continue to use Implication equivalence , Replace the implication symbol of the outer layer :
⇔
¬
p
∨
(
¬
q
∨
r
)
\Leftrightarrow \lnot p \lor ( \lnot q \lor r )
⇔¬p∨(¬q∨r)
Use Associative law , take
p
,
q
p, q
p,q Bind together :
⇔
(
¬
p
∨
¬
q
)
∨
r
\Leftrightarrow ( \lnot p \lor \lnot q ) \lor r
⇔(¬p∨¬q)∨r
Use De Morgan law , take
¬
\lnot
¬ Take it outside :
⇔
¬
(
p
∧
q
)
∨
r
\Leftrightarrow \lnot ( p \land q ) \lor r
⇔¬(p∧q)∨r
Use Implication equivalence , Replace ;
⇔
(
p
∧
q
)
→
r
\Leftrightarrow (p \land q) \to r
⇔(p∧q)→r
边栏推荐
- Stepping on pits and solutions when using inputfilter to limit EditText
- Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
- Filter
- Change and access of median value of listening object
- Pat class B common function Usage Summary
- softmax的近似之NCE详解
- [mathematical logic] propositions and connectives (propositions | propositional symbolization | truth connectives | no | conjunction | disjunction | non truth connectives | implication | equivalence)
- 编译文件时报错:错误: 编码GBK的不可映射字符
- Hi3536C V100R001C02SPC040 交叉编译器安装
- node,npm以及yarn下载安装
猜你喜欢
Hutool动态添加定时任务
Pytoch configuration
没有sXid,suid&sgid将进入险境!-尚文网络xUP楠哥
Download and install captura and configure ffmpeg in captura
递归:一维链表和数组
Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
MySQL MAC download and installation tutorial
MongoDB复制集【主从复制】
渤、黄海的潮汐特征
Limit of one question per day
随机推荐
Limit of one question per day
Convert binary stream to byte array
Mysql Mac版下载安装教程
Dynamic programming: longest common substring and longest common subsequence
MongoDB复制集【主从复制】
Without sxid, suid & sgid will be in danger- Shangwen network xUP Nange
小程序获取用户头像和昵称
Ffmpeg recording screen and screenshot
Pytorch multi card distributed training distributeddataparallel usage
二进制流转换成字节数组
错误 C2694 “void Logger::log(nvinfer1::ILogger::Severity,const char *)”: 重写虚函数的限制性异常规范比基类虚成员函数
Limit of one question per day
用Three.js做一个简单的3D场景
Simple wechat applet development page Jump, data binding, obtaining user information, obtaining user location information
QQ小程序开发之 一些前期准备:预约开发账号、下载安装开发者工具、创建qq小程序
Basic operations of mongodb [add, delete, modify, query]
CEPH Shangwen network xUP Nange that releases the power of data
递归使用和多维数组对象变一维数组对象
Role of JS No
The difference between static web pages and dynamic web pages & the difference between Web1.0 and Web2.0 & the difference between get and post