PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

AI · Theory

Unification in FOL

← All stacks

Theory

38/215

Unification in FOL

Unification finds substitutions that make two FOL expressions look the same. Knows(John, x) and Knows(John, Jane) unify with {x/Jane}. Occurs check stops x unifying with f(x). No unifier? fail.

It is the engine inside resolution and Prolog-style matching. Tiny pair on the board is the whole exam.

Output — idea / do / check for Unification in FOL. Fill those three in the viva.

Exam tip

One successful unify + one fail.

Example

# Unification in FOL
print("idea :", "Unification in FOL")
print("do   : one tiny example on paper")
print("check: one failure case")

Output: idea / do / check for Unification in FOL. Fill those three in the viva.

Short notes

  • DefSubstitution so two terms match.
  • Trapoccurs check.

Questions

1

Explain Unification in FOL as if you are teaching a junior — definition, then one example.

2

What does the example print, and what does that prove?

3

What mistake do freshers make with Unification in FOL?

Previous← Inference in First-Order LogicNextResolution in FOL →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.