当前位置:网站首页>[mathematical logic] predicate logic (judge whether the first-order predicate logic formula is true or false | explain | example | predicate logic formula type | forever true | forever false | satisfi
[mathematical logic] predicate logic (judge whether the first-order predicate logic formula is true or false | explain | example | predicate logic formula type | forever true | forever false | satisfi
2022-07-03 03:53:00 【Programmer community】
List of articles
- One 、 Judge whether the predicate logic formula is true or false ( semantics )
- Two 、 Predicate logic " explain "
- 3、 ... and 、 Predicate logic " explain " Example
- Four 、 Predicate logic formula type
One 、 Judge whether the predicate logic formula is true or false ( semantics )
Predicate logic grammar And semantics :
grammar : The above two sections explain Predicate logic Formula , how Write the formula according to the statement , yes grammar Category ;
semantics : How about the formula written Determine whether it is true or false , Belong to semantics Category ;
Determine whether the formula is true or false :
- Propositional logic : In propositional logic , By assigning values to propositional arguments , And calculate according to the rules of connectives , Finally get the true value , This process is called assignment ;
- First order predicate logic : In first-order predicate logic , Use “ explain ” Method , Determine whether a formula is true or false ;
Two 、 Predicate logic “ explain ”
explain :
Given Predicate logic The formula
A
A
A , The formula
A
A
A from Individual words , The predicate , quantifiers form ;
Individual domain : Appoint The formula
A
A
A Of Individual domain by It is known that Individual domain
D
D
D ;
Individual words : Use specific Individual constant yuan replace
A
A
A Medium Individual words ;
function : Use Specific functions , replace
A
A
A Medium Function arguments ;
The predicate : Use specific The predicate , replace
A
A
A Medium Predicate argument ;
After performing the above operations , You can get
A
A
A One of the formulas “ explain ” ;
assignment And explain :
assignment : assignment yes For propositional logic Propositional argument take
0
,
1
0 , 1
0,1 True or false ;
explain : explain yes to Individual words In the individual domain Specify which individual , to The predicate Specify a specific nature or relationship , to quantifiers Appoint Individual domain Determine its scope , To determine the Individual words , The predicate , quantifiers , You can determine the truth of the formula ;
Given a Predicate logic The formula , Give a explain , Can Determine whether it is true or false ;
The same Predicate logic The formula , There can be Different interpretations ;
- individual Appoint Different individual
- The predicate Appoint Different Nature or relationship
- quantifiers Use different Individual domain Explain ;
3、 ... and 、 Predicate logic “ explain ” Example
Given First order predicate logic The formula
A
A
A by
∀
x
(
F
(
x
)
→
G
(
x
)
)
\forall x ( F(x) \to G(x) )
∀x(F(x)→G(x)) , There are several explanations ;
Explain a :
Individual domain : Set of real numbers ;
F
(
x
)
F(x)
F(x) :
x
x
x It's a reasonable number ;
G
(
x
)
G(x)
G(x) :
x
x
x It's a score ;
At this point, the formula
A
A
A It can be explained as : Rational numbers can be expressed as fractions ;
At this time, the corresponding proposition of this explanation is True proposition ;
Explain two :
Individual domain : Total individual domain ;
F
(
x
)
F(x)
F(x) :
x
x
x Is the person ;
G
(
x
)
G(x)
G(x) :
x
x
x Hair is black ;
At this point, the formula
A
A
A It can be explained as : Everyone has black hair ;
At this time, the corresponding proposition of this explanation is False proposition ;
Four 、 Predicate logic formula type
Predicate logic The formula , With the explanation , You can judge the type of formula ;
Predicate logic Formula types are divided into Yongzhen style , Permanent falsehood , Satisfiability , Equivalent formula etc. ;
- Yongzhen style : The formula
A
A
A stay Any explanation is true ;
- Permanent falsehood : The formula
A
A
A stay Any explanation is false ;
- Satisfiability : The formula
A
A
A There is at least one true explanation ;
- Equivalency : If
A
B
A \leftrightarrow B
A
A
A and
B
B
B Is equivalent , Write it down as
A
⇔
B
A \Leftrightarrow B
A⇔B , call
A
⇔
B
A \Leftrightarrow B
A⇔B Is equivalent ;
AB It's Yongzhen style , The formula
边栏推荐
- Nanning water leakage detection: warmly congratulate Guangxi Zhongshui on winning the first famous brand in Guangxi
- shardingsphere动态数据源
- Nodejs Foundation: shallow chat URL and querystring module
- How to execute a swift for in loop in one step- How can I do a Swift for-in loop with a step?
- Using jasmine to monitor constructors - spying on a constructor using Jasmine
- 如何迈向IPv6之IPv6过渡技术-尚文网络奎哥
- [Blue Bridge Road -- bug free code] DS18B20 temperature reading code analysis
- MySQL MAC download and installation tutorial
- Introduction à mongodb
- 第十届中国云计算大会·中国站:展望未来十年科技走向
猜你喜欢
递归:快速排序,归并排序和堆排序
Ffmpeg download and installation tutorial and introduction
Recursion: quick sort, merge sort and heap sort
leetcode:动态规划模板
How to move towards IPv6: IPv6 Transition Technology - Shangwen network quigo
Simple wechat applet development page Jump, data binding, obtaining user information, obtaining user location information
FileZilla Client下载安装
node,npm以及yarn下载安装
Wechat applet + Alibaba IOT platform + Hezhou air724ug build a serverless IOT system (III) -- wechat applet is directly connected to Alibaba IOT platform aliiot
Mysql Mac版下载安装教程
随机推荐
Docker install and start MySQL service
pytorch是什么?pytorch是一个软件吗?
Ffmpeg download and installation tutorial and introduction
小程序获取用户头像和昵称
递归:深度优先搜索
FileZilla client download and installation
在 .NET 6 项目中使用 Startup.cs
nodejs基础:浅聊url和querystring模块
How does the pytorch project run?
如何迈向IPv6之IPv6过渡技术-尚文网络奎哥
第十届中国云计算大会·中国站:展望未来十年科技走向
Download and install node, NPM and yarn
学会pytorch能干什么?
2022 P cylinder filling examination content and P cylinder filling practice examination video
【刷题篇】接雨水(一维)
How to move towards IPv6: IPv6 Transition Technology - Shangwen network quigo
[Blue Bridge Road -- bug free code] interpretation of some codes of matrix keyboard
Is pytorch open source?
[home push IMessage] software installation virtual host rental tothebuddy delay
Message queue addition failure