Unit 1-Lecture 5:Quantifiers & Predicate Logic

1 Predicate

Definition: Propositions with variables.

2 Quantifier

2.1 Definition

  • An assertion that a predicate is always true is called a universal quantification. It’s upside-down A, for all, acts like an AND.
  • An assertion that a predicate is sometimes true is an existential quantification. It’s backwards E– there exists– acts like an OR.

2.2 Mixing and Order of Quantifier

  • Problems with translating A E quantifiers and E A quantifiers into English
  • Translation from English into math is not something that can be done in a mindless mechanical way. Sometimes, the quantifiers really are meant to go the other way from the way that they literally appear.

2.3 Variables Over One Domain

  • When all the variables in a formula are understood to take values from the same nonempty set, the unnamed nonempty set that x and y range over is called the domain of discourse, or just plain domain, of the formula.

2.4 Negating Quantifier

NOT(x.P(x)) IFF x.NOT(P(x))
NOT(x.P(x)) IFF x.NOT(P(x))

2.5 Validity and Satisfiable

  • A predicate calculus formula is valid when it’s true for all possible domains of discourse that the variables range over.
  • xy.P(x,y) IMPLIES yx.P(x,y)
  • But this is not true:
    xy.P(x,y) IMPLIES yx.P(x,y)

Reference

[1] Lehman E, Leighton F H, Meyer A R. Mathematics for Computer Science[J]. 2015.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值