Apply FOL to Legal Reasoning and Expert Systems
Write your answers in the text areas provided under each question. Your work will be automatically saved in your browser as you type. You can export all your answers at the end of the exercise.
Scenario: You are designing a legal expert system to assist in determining whether a person is liable for theft under certain conditions. The system's knowledge base (KB) must represent facts and rules using First-Order Logic (FOL) and perform reasoning to reach conclusions.
Skills Tested:
Use these predicates and constants throughout the exercise:
Points: 10 | Convert legal statements to First-Order Logic
Task: Translate the following legal statements into First-Order Logic (FOL):
Think of FOL translation as building a precise mathematical representation:
Key Insight: General laws use ∀ (apply to everyone). Specific facts use constants (apply to specific individuals).
English: "Anyone who takes someone else's property without permission commits theft."
Breakdown:
English: "If a person commits theft, that person is liable."
Breakdown:
English: "If a person is a minor, they are not liable."
Breakdown:
English: "Ahmed took Fatima's car without permission."
Breakdown:
English: "Ahmed is not a minor."
Breakdown:
Points: 5 | Construct the complete KB from translations
Task: From your translations in Part 1, write the complete FOL Knowledge Base (KB) as a numbered set of formulas.
A well-organized KB makes reasoning easier:
Key Insight: Think of the KB as having two parts - the "laws" (rules) and the "evidence" (facts). Inference combines them.
Points: 5 | Derive conclusions step-by-step
Task: Using Modus Ponens, derive step-by-step whether:
You must clearly show the use of:
FOL inference requires two key steps:
Key Insight: Universal rules are templates. UI fills in the template with specific values. MP triggers the rule.
Points: 10 | Apply resolution to prove prosecution
Additional Rule: The system now knows:
Query (Goal): Prove that Ahmed can be prosecuted
Task: Use resolution to show whether Prosecuted(Ahmed) logically follows from the KB.
Resolution is a proof by contradiction technique:
Key Insight: Resolution chains backward from the goal to known facts, eliminating literals until nothing remains.
Extended KB (adding prosecution rule):
Convert to CNF (eliminate →, convert to clauses):
Goal: Prove Prosecuted(Ahmed)
Negated Goal: ¬Prosecuted(Ahmed)
Points: 5 | Connect symbolic reasoning to real-world systems
Task: Explain how this FOL reasoning process would operate in a legal expert system.
Think of expert systems as having three main components:
Key Insight: Expert systems separate knowledge (what) from reasoning (how), making them maintainable and explainable.
Process:
Benefits of this approach:
How rules are stored:
Process:
How this works in practice:
How the Inference Engine Operates:
Unification in Action:
✅ Benefits of FOL-Based Legal Expert Systems:
⚠️ Limitations:
🔄 Modern Hybrid Approaches:
What you've learned from this exercise
Your answers are automatically saved in your browser's local storage. Use the buttons below to manage all your answers at once: