当前位置:网站首页>Logic of automatic reasoning 07 - predicate calculus
Logic of automatic reasoning 07 - predicate calculus
2022-07-28 00:46:00 【Hard working K cub】
Logic of automatic reasoning 07– Predicate calculus
sanity 、 integrity 、 Compactness (Soundness, Completeness, Compactness)
Like propositional logic , Predicate logic is sound and complete :Γ |- ϕ ⇔ Γ |= ϕ
Predicate logic satisfies compactness :
For each group of sentences Γ: Γ There's a model ⇔ Γ Every finite subset of Γ0 There is a model
Completeness and compactness collapse in finite !
We only consider finite structures !
In many computer science applications , Infinite structure is meaningless . General completeness :Γ |= φ If and only if Γ |-φ. Γ |=fin φ Indicate satisfaction Γ Each finite structure of also satisfies φ. Does not correspond to Γ |- ϕ( For any proof calculus ).
Some formulas are valid in finite fields , But it cannot be proved .
When limited to finite structures , There is no complete proof calculus , Compactness also failed .
Γ Every finite subset of has a ( Co., LTD. ) Model , but Γ There is no finite model . It has an infinite model !
When can attributes be defined in predicate logic ?
Let's limit our discussion to a finite simple undirected graph .
{E}- Structure is ∀x.¬E(x, x), ∀x∀y.(E(x, y) → E(y, x)) Model of ( It all boils down to more general settings )
If there is a sentence , Then the attribute of the graph P It is definable in predicate logic , There is φ Defining attributes :
chart (V, E) Have the quality of P If and only if (V, E) |= φ.
If there are no sentences defining attributes , Then the attribute is undefined .
For each predicate logic formula φ, There are two graphs :G1 And attribute P And no attributes P Of G2, bring :
G1 |= ϕ if and only if G2 |= ϕ
The graph has a triangle .
∃x∃y∃z.(x /= y ∧ x /= z ∧ y /= z ∧ E(x, y) ∧ E(y, z) ∧ E(z, x) )
The graph is a cyclic disjoint union .
∀x∃y∃z.(E(x, y) ∧ E(x, z) ∧ y /= z ∧ ∀z’ ( E(x, z’) -> z’ = y ∨ z’ = z) )
Quantifier rank of formula qr(φ) The definition of :
qr(⊥) = qr(T) = qr(P(t1, . . .tn)) = 0
qr(¬ϕ) = qr(ϕ)
qr(ϕ ψ) = max{
qr(ϕ), qr(ψ)} if ∈ {
∧, ∨, →}
qr(Qx. ϕ) = qr(ϕ) + 1 if Q ∈ {
∀, ∃}
To prove an attribute P Is undefined , Our goal is to prove that for each natural number k ∈ N There are two G1 With attributes P and G2 No nature P bring
G1 |= φ If and only if G1 |= φ
The level of quantifiers is k Every sentence of φ establish .
Ehrenfeucht-Fra¨ıss´e games
We write G ≡k G’, If the figure G and G’ All sentences that agree with quantifiers rank at most k.
EFk (G, G’) Two players : Spoiler and copier
Spoiler wants to show G/≡k.G’
The copier wants to show G≡k.G’
k Round game rules :
Every round i≤ A play k
1 Spoiler selection G=(V,E) or G’=(V’,E’) One of them
2 Spoiler selects a point from the selected graphics ( Expressed as ai or ai’)
3 The replicator selects a point from another drawing ( Expressed as ai’ or ai)
k After wheel , The competition status is (a1,…,ak,a1’,…,ak’)
If ({a1,…,ak},E) and ({a1’,…,ak’},E’ The replicator will win the game with the same graphics . Otherwise, the spoiler will win
It's not enough to win just one game . The copier needs to always be able to win !
The copier is playing EFk(G,G’) There are winning strategies , If he can choose his action , Make sure that k After the round , The state of the game is victory , For copiers ( No matter how you play the spoiler ).
otherwise , Spoilers have a winning strategy .
Theorem (Ehrenfeucht-Fra¨ıss´e theorem)
For every pair of structures A and B and natural number k ∈ N
A ≈k B if and only if A ≡k B
边栏推荐
- Camera and lidar calibration: gazebo simulation livox_ camera_ lidar_ Calibration ---- external parameter calibration calculation and result verification
- 头补零和尾补零对FFT输出结果的影响
- Network equipment hard core technology insider firewall and security gateway (12) the mystery of zero contact office
- C event related exercise code.
- 每次读取一行字符串输入(有待补充)
- Redis-事务与乐观锁
- Read cmake in one article
- [must read for new products] valuation analysis of Meishi technology, distributed audio-visual products and Solutions
- y79.第四章 Prometheus大厂监控体系及实战 -- prometheus的服务发现机制(十)
- Numpy has no unsqueeze function
猜你喜欢

startUMl

Set data constructor

程序员工作中的理性与感性活动及所需的技能素养

FFT 采样频率和采样点数的选取

Build Release Blogs

Recurrence of fastjson historical vulnerabilities

Read cmake in one article

Basic operations of MySQL database (I) --- Based on Database

英特尔AI实践日第56期 | 探讨行业发展新趋势

Promoting cloud network integration and building a digital economy: Intel unveiled the 5th Digital China Construction Summit - cloud ecosystem Conference
随机推荐
【打新必读】魅视科技估值分析,分布式视听产品及解决方案
大众中国豪掷80亿,成国轩高科第一大股东
JS event propagation capture stage bubbling stage onclick addeventlistener
LeetCode 415. 字符串相加 和 43. 字符串相乘
公司7月来了个软件测试工程师,一副毛头小子的样儿,哪想到是新一代卷王...
头补零和尾补零对FFT输出结果的影响
Interesting Huffman tree
Matlab | those matlab tips you have to know (3)
[must read for new products] valuation analysis of Meishi technology, distributed audio-visual products and Solutions
Openvino integrates tensorflow to accelerate reasoning
mysql数据库的基本操作(三)-——基于字段
Intel AI practice day issue 56 | explore new trends in industry development
有趣的哈夫曼树
Code review tool
C event related exercise code.
Network device hard core technology insider firewall and security gateway (summary)
Matlab | those matlab tips you have to know (I)
永州水质检测实验室建设:家具说明
What are the namespaces and function overloads of + and @ in front of MATLAB folder
"Digital economy, science and technology for the good" talk about dry goods