Keywords

  • reasoning 推理
  • Deductive reasoning(for a basic logic) 演绎推理
  • analogy 类比;比喻 /əˈnælədʒi/
  • definition of terminology  /ˌtɜːmɪˈnɒlədʒi/术语的定义
  • proposition/ˌprɒpəˈzɪʃn/命题
  • distinction/dɪˈstɪŋkʃn/n. 区别;差别
  • arithmetic /əˈrɪθmətɪk/ 算术,算法
  • anthropomorphize/,ænθrəpəʊ'mɔːfaɪz/vt. 赋与人性,人格化
  • knowledge base(KB) 知识库
  • connectionism /kə'nekʃənizəm/ 联结主义
  • retrieval /rɪˈtriːvl/n. 检索;恢复;取回;拯救
  • inference: 推理
  • entailment:蕴含
  • syntax:  /ˈsɪntæks/n. 语法;句法;
  • semantic: /sɪˈmæntɪk/adj. 语义的;语义学的
  • falsity: /ˈfɔːlsəti/n. 虚伪;错误;谎言;不真实
  • notation /nəʊˈteɪʃn/n. 符号
  • terminology:/ˌtɜːmɪˈnɒlədʒi/n. 术语,术语学;用辞
  • theorem/ˈθɪərəm/n. [数] 定理;原理
  • axiom: /ˈæksiəm/n. [数] 公理
  • iff: 当且仅当
  • K |= a是语义蕴含,K |- b是形式推演
 

What's all the Fuss about?

  • Resources required to solve a problem
    • Time(computational complexity)
    • Memory
  • Some problem are easy to solve
    • 1+1=?
    • This is good!
  • Some problems are difficult to solve
    • Playing chess, scheduling/timetabling...
    • Is this bad?
  • Some problems cannot be solved!
    • Reasoning, planning,...
 

What is knowledge?

  • taking the world to be one way and not another
  • the propositions for the true or false encode what you know about the world.
 

What is representation?

  • symbolic encoding of propositions believed by some agent 命题的符号编码,由某些行为者相信
  • symbols standing for things in the world
 

What is reasoning?

  • Manipulation of symbols encoding propositions to produce representations of new propositions.对编码命题的符号进行操作,以产生新命题的表示。
 

Why knowledge?

  • taking an intentional stance
 

Why representation?

  • intentional stance says nothing about what is / is not represented symbolically
 

Why reasoning?

  • Want knowledge to affect action
    • We don't want to do action A if sentence P is in KB,
    • But rather do action A if world believed in satisfies P
  • Difference:
    • P may not be explicitly represented
    • Need to apply what is known to particulars of given situation
  • Usually need more than just DB-style retrieval of facts in the KB
 

Entailment

  • Sentences P1, P2, ..., Pn entail sentence P iff the truth of P is implicit in the truth of P1, P2, ..., Pn
  • Inference: the process of calculating entailments
    • sound: get only entailment
    • complete: get all entailment
  • Sometimes want unsound / incomplete reasoning
  • Logic: study of entailment relations
 

Using Logic

  • No universal language / semantics
  • No universal reasoning scheme
  • Start with first-order predicate calculus(FOL)
 

Why do we need formal Knowledge Representation?

  • Natural languages exhibit ambiguity
  • ambiguity make it difficult to make any inferences
 

Syntax vs Semantics

  • Syntax: Describe the legal sentences in a knowledge representation language.
  • Semantics: Refers to the meaning of sentences. Semantics talks about truth and falsity.
 

Propositions

  • Propositions are statements of fact.
  • We shall use single letters to represent propositions
    • P: Socrates is bald.
 

Formulae in Propositional Logic

Syntax

  • BNF grammar
    • Sentence ::= AtomicSentence || ComplexSentence
    • AtomicSentence ::= True || False || P || Q || R || . .
    • ComplexSentence ::= ( Sentence ) || Sentence Connective Sentence || ¬ Sentence
    • Connective ::= ∧ || ∨ || → || ↔
 

Semantics

  • The semantics of the connectives can be given by truth tables. It determines the semantics for complex formulae.

What is a logic?

  • A logic consists of:
    • A formal system for expressing knowledge about a domain consisting of
      • Syntax: Sentences(well formed formulae)
      • Semantics: Meaning
    • A proof theory: rules of inference for deducing sentences from a knowledge base
 

Provability

  • λ ⊢ ρ: we can construct a proof for ρ from λ using axioms and rules  of inference
  • If λ is empty (i.e., 0⊢ρ) and ρ is a single formula, then we say that ρ is a theorem of the logic
 

Entailment

  • λ |= ρ: whenever the formula(s) λ are true, one of the formula(s) in ρ is true
  • In the case where ρ is a single formula, we can determine whether  λ |= ρ by constructing a truth table for λ and ρ. If, in any row of the  truth table where all the formulae in λ are true, ρ is also true, then  λ |= ρ.
  • If λ is empty, we say that ρ is a tautology
 

Soundness and Completeness

  • λ |= a是语义蕴含, λ |- b是形式推演
  • An inference procedure (and hence a logic) is sound if and only if it  preserves truth
    • In other words ⊢ is sound iff whenever λ ⊢ ρ, then λ |= ρ
      • Soundness 是说右侧推演的知识都是被λ蕴含的(推出来的知识都是正确的)
  • A logic is complete if and only if it is capable of proving all truths
    • In other words, whenever λ |= ρ, then λ ⊢ ρ
      • Completeness 是说,左侧蕴含出来的知识都可以推演出来
  • A logic is decidable if and only if we can write a mechanical procedure (computer program) which when asked λ ⊢ ρ it can eventually halt and answer “yes” or answer “no”
 

Knowledge 1:Propositional Logic 命题逻辑基础及符号的更多相关文章

  1. JQuery基础概念--$符号的实质

    $符号的实质 //$其实就是一个函数,以后用$的时候,记得跟小括号 $(); //参数不同,功能就不同 //3种用法 //1. 参数是一个function, 入口函数 $(function () { ...

  2. python 基础 特殊符号的使用

    python语句中的一些基本规则和特殊符号: 1.井号# 表示之后的字符为python注释 Python注释语句从#号字符开始,注释可以在语句的任何一个地方开始,解释器会忽略掉该行#号之后的所有内容 ...

  3. shell基础之符号与语法

            shell脚本如今已经成为了一种非常普遍的脚本语言,之所以如此广泛的被应用,毋庸置疑它是有它的独到之处的.shell脚本语言和其它的语言比方说c/c++有何不同呢?c/c++等语言属于 ...

  4. C#语法基础----变量 符号 数据转换

    变量的作用:为了更好的管理内存数据,不同类型的数据存放在不同的内存块中. 变量的特点:不同数据类型占用的存储空间大小不一样. 变量的意义:内存地址是一串十六进制数,非常不好记忆,通过变量可以快速找到数 ...

  5. Discrete Mathematics and Its Applications | 1 CHAPTER The Foundations: Logic and Proofs | 1.2 Applications of Propositional Logic

    Translating English Sentences System Specifications Boolean Searches Logic Puzzles Logic Circuits

  6. Discrete Mathematics and Its Applications | 1 CHAPTER The Foundations: Logic and Proofs | 1.1 Propositional Logic

    propositional variables (or statement variables), letters used for propositional variables are p, q, ...

  7. JAVA基础——运算符号

    运算符(java) 算数运算符:+,-,*,/,%(取余),++,-- 赋值运算符:= 关系运算符:<, >, >= ,<= ,== , != 逻辑运算符:&& ...

  8. 2018美赛准备之路——Matlab基础——基本运算符号表示

    π pi ln(x) log(x)   lg(x) log10(x) log2(x) log2(x) 根号 sqrt(x) x的y次方 x^y e的y次方 exp(y)    

  9. Python基础知识(Basic knowledge)

    Python基础知识(Basic knowledge) 1.认识Python&基础环境搭建 2.Python基础(上) 3.Python基础(中) 4.Python基础(下) 5.Python ...

随机推荐

  1. CAP 3.1 版本发布通告

    前言 今天,我们很高兴宣布 CAP 发布 3.1 版本正式版.同时我们也很高兴的告诉你 CAP 在 GitHub 已经突破了 4000 Star. CAP 3000 Star 还是去年8月份的时候,最 ...

  2. 第三方登陆--QQ登陆--单体应用

    从零玩转第三方QQ登陆 下面有源码 前后端分离版本 一样的思路 https://www.cnblogs.com/Yangbuyi/p/13194007.html 第三方GITEE登陆 https:// ...

  3. springboot整合websocket后打包报错:javax.websocket.server.ServerContainer not available

    项目整合了websocket以后,打包多次都没有成功,原来是报错了,报错内容如下: Error starting ApplicationContext. To display the conditio ...

  4. 第二篇Scrum冲刺博客--Interesting-Corps

    第二篇Scrum冲刺博客 站立式会议 1.会议照片 2.队友完成情况 团队成员 昨日完成 今日计划 鲍鱼铭 主页页面和探测空间设计及布局实现 主页页面跳转社区功能及社区设计及布局实现 叶学涛 设计页面 ...

  5. Python中pytesseract库的使用以及注意事项

    当我们在使用pytesseract库的时候,使用 pip install pytesseract安装完成后,发现它并不能识别出图片内容,并且会抛出异常pytesseract.pytesseract.T ...

  6. Chrome中实时查看.md文件

    经常用Vim的朋友,在Vim中有一个Markdown语法高亮的插件,叫做:vim-markdown ,用起来还不错. 在Chrome中有一个实时预览Markdown效果的扩展,叫做:Markdown ...

  7. 区块链入门到实战(24)之以太坊(Ethereum) – 网络节点

    用途: 全节点:用于区块和交易的校验 轻节点:电子钱包 以太坊(Ethereum)网络是一个公共的区块链网络,网络中包含2种网络节点: 全节点 轻节点 全节点 包含了从初始区块开始的全部区块,这些区块 ...

  8. [QZOI2019]Game 题解

    QZOI2019 CSP-S模拟赛 T1 错误的贪心导致考场上只有10pts... 看来以后贪心还是需要先证明啊 题目描述 小A和小B在玩一个游戏,他们两个人每人有 $n$ 张牌,每张牌有一个点数,并 ...

  9. .NET Core3.1 Dotnetty实战第一章

    一.概要 本系列文章主要讲述由微软Azure团队研发的.net的版本的netty,Dotnetty.所有的开发都将基于.net core 3.1版本进行开发. Dotnetty是什么,原本Netty是 ...

  10. TCP/IP网络编程之字节序和网络字节序

    一.概要 本篇文章主要讲解基于.net中tcp/ip网络通信编程中的网络字节序.在自我进步的过程中记录这些内容,方便自己记忆的同时也希望可以帮助到大家.技术的进步源自于分享和不断的自我突破. 技术交流 ...