(Natural Deduction & Resolution)

  • A variable 𝒙 in a WFF 𝝓 and a term 𝒕: [𝒕/𝒙] is a substitution. Applying a substitution on 𝝓— πœ™[𝑑/π‘₯] is the WFF obtained from πœ™ by replacing all free occurrences of 𝒙 with t

  • when applying multiple substitutions: order is important

  • for two substitutions π’”π’–π’ƒπŸ and π’”π’–π’ƒπŸ: π’”π’–π’ƒπŸ ∘ π’”π’–π’ƒπŸ is the composition of the substitutions and applies 𝑠𝑒𝑏2, then 𝑠𝑒𝑏1

  • substitution example πœ™ = (βˆ€π‘₯ 𝑃 π‘₯ ∨ Q 𝑦 ) β†’ 𝑆(π‘₯, 𝑦): πœ™[𝑑/π‘₯] = (βˆ€π‘₯ 𝑃 π‘₯ ∨ Q 𝑦 ) β†’ 𝑆(𝒕, 𝑦) ….. πœ™ [𝑓(𝑧)/𝑦] = (βˆ€π‘₯ 𝑃 π‘₯ ∨ Q 𝒇 𝒛 ) β†’ 𝑆(π‘₯, 𝒇(𝒛))

  • substitution problem: The bound variable conflicts with the substitute variable

  • substitution solution: Rename the bound variable before substitution

  • Rename π‘₯ to 𝑧 and then apply the substitution: πœ™[π‘₯/𝑦] = βˆ€π‘§ 𝑆(𝑧, π‘₯)

  • A WFF πœ™ in prenex normal form: A sequence of quantifiers and variables followed by a quantifier-free sub-formula

  • The quantifier-free sub-formula is called: the matrix of πœ™

  • βˆ€π‘₯ βˆƒπ‘¦ (𝑃 π‘₯, 𝑦 β†’ 𝑆 𝑧 ) is in: prenex normal form

  • (𝑃 π‘₯, 𝑦 β†’ 𝑆 𝑧 ) is: its matrix

  • βˆ€π‘₯βˆƒπ‘¦ 𝑃 π‘₯, 𝑦 β†’ βˆƒπ‘§ 𝑆(𝑧) is: not in prenex normal form

  • PNF Theorem: Every WFF can be converted to prenex normal form

  • Β¬βˆ€π‘₯βˆƒπ‘¦βˆƒπ‘§ 𝑆(π‘₯, 𝑦, 𝑧) : βˆƒπ‘₯βˆ€π‘¦βˆ€π‘§ ¬𝑆(π‘₯, 𝑦, 𝑧)

  • (βˆ€π‘₯ 𝑃 π‘₯, 𝑦 ∨ βˆƒπ‘§ 𝑄 𝑧 ) : βˆ€π‘₯βˆƒπ‘§ (𝑃 π‘₯, 𝑦 ∨ 𝑄 𝑧 )

  • Β¬βˆ€x πœ™ π‘₯ : βˆƒΒ¬πœ™(π‘₯)

  • Β¬βˆƒx πœ™ π‘₯ : βˆ€Β¬πœ™(π‘₯)

  • Skolemization: Converting WFFs to WFFs without existential quantifiers

  • Skolem normal form: The result of Skolemization of a formula in prenex normal form

  • MGU: A unifier 𝑠𝑒𝑏1 is called a most general unifier (MGU) if every unifier 𝑠𝑒𝑏2 is equal to 𝑠𝑒𝑏 ∘ 𝑠𝑒𝑏1 for some substitution 𝑠𝑒b. e.g. 𝑠𝑒𝑏1 = [𝑓 (𝑧) Ξ€π‘₯] is a MGU for {𝑃 (x), 𝑃 (𝑓 (z))}

  • Robinson’s Theorem: Every set of unifiable clauses has a MGU

  • MGUs are not unique, but they differ only in variable names

  • For WFFs πœ™ and πœ“, we follow these steps to prove 𝝓 ⊒ 𝝍 using resolution: 1. Convert 𝝓 ∧ ¬𝝍 to prenex Skolem form with a matrix 𝑭. 2. Convert 𝐹 to a set of clauses 𝑭. 3. Apply resolution steps on clauses in 𝐹. 4. Stop and return True if β–‘ is reached

  • Equisatisfiable: WFFs πœ™ and πœ“ are equisatisfiable if πœ™ is satisfiable if and only if πœ“ is satisfiable

  • Two logically equivalent formulas are also equisatisfiable, but: two equisatisfiable formulas are not always equivalent

  • Theorem: A WFF in predicate logic is equisatisfiable to its Skolem form