Individual 2
Individual 2
Individual 2
Satisfiability.....................................................................................................................................3
Deduce conclusion using inference rules:.......................................................................................4
Converting Facts and heuristics into horn clause............................................................................5
Applying Resolution:.......................................................................................................................7
Satisfiability
1. Modus Ponens:
If a vehicle is parked in a designated area, then it is stationary.
∀v ∈ V, ∀pk ∈ PK, Parked (v, pk) → Stationary(v)
Vehicle v1 is parked in designated area pk1.
Parked (v1, pk1)
Conclusion: Vehicle v1 is stationary.
Stationary(v1)
2. Modus Tollens:
If a vehicle is not stationary, then it is not parked in a designated area.
∀v ∈ V, ∀pk ∈ PK, ¬Stationary(v) → ¬Parked(v, pk)
Vehicle v2 is not stationary.
¬Stationary(v2)
Conclusion: Vehicle v2 is not parked in any designated area.
∀pk ∈ PK, ¬Parked(v2, pk)
3. Hypothetical Syllogism:
If a dispatcher manages a set of vehicles, and each vehicle is associated with a
driver, then the dispatcher manages a set of drivers.
∀dr ∈ DR, ∀V' ⊆ V, Manage (dr, V') ∧ (∀v ∈ V', AssociatedDriver (v,
dr)) → ManageDrivers (dr, {d | ∀d ∈ D, ∃v ∈ V', AssociatedDriver (v,
d)})
Dispatcher dr1 manages vehicles in set V'1 and each vehicle in V'1 is associated
with a driver.
Manage (dr1, V'1) ∧ (∀v ∈ V'1, AssociatedDriver (v, dr1))
Conclusion: Dispatcher dr1 manages a set of drivers.
ManageDrivers (dr1, {d1, d2, ...})
4. Addition:
If a vehicle is associated with a driver, then the vehicle is driven by the driver.
∀v ∈ V, ∀d ∈ D, AssociatedDriver (v, d) → DrivenBy(v, d)
Vehicle v3 is associated with driver d3.
AssociatedDriver (v3, d3)
Conclusion: Vehicle v3 is driven by driver d3.
DrivenBy (v3, d3)
5. Simplification:
If a vehicle is driven by a driver, then the vehicle is associated with the driver.
∀v ∈ V, ∀d ∈ D, DrivenBy(v, d) → AssociatedDriver(v, d)
Vehicle v4 is driven by driver d4.
DrivenBy(v4, d4)
Conclusion: Vehicle v4 is associated with driver d4.
AssociatedDriver(v4, d4)
6. Resolution:
If a vehicle is parked in a designated area, then it is stationary.
∀v ∈ V, ∀pk ∈ PK, Parked(v, pk) → Stationary(v)
Vehicle v5 is not stationary.
¬Stationary(v5)
Conclusion: Vehicle v5 is not parked in any designated area.
∀pk ∈ PK, ¬Parked(v5, pk)
Facts:
1. Each passenger is associated with a vehicle.
∀p∈P,∃v∈V,AssociatedVehicle(p,v)
2. Every dispatcher manages a set of vehicles.
∀dr∈DR,∃V′⊆V,Manage(dr,V′)
3. Gas stations offer multiple fuel options.
∀g∈G,∃F′⊆F,OfferedFuel(g,F′)
4. Every lane is part of a road.
∀l∈L,∃r∈R,PartOf(l,r)
5. Traffic lights control traffic flow at intersections.
∀t∈T,∃r1,r2∈R,Controls(t,r1,r2)
Heuristics:
1. If a vehicle is parked in a designated area, then it is stationary.
∀v∈V,∀pk∈PK,Parked(v,pk)→Stationary(v)
2. If a vehicle is associated with a driver, then the vehicle is driven by the driver.
∀v∈V,∀d∈D,AssociatedDriver(v,d)→DrivenBy(v,d)
3. If a dispatcher manages a set of vehicles, then the dispatcher manages a set of drivers.
∀dr∈DR,∀V′⊆V,Manage(dr,V′)∧(∀v∈V
′,AssociatedDriver(v,dr))→ManageDrivers(dr,{d∣∀d∈D,∃v∈V
′,AssociatedDriver(v,d)})
Applying Resolution: