Skip to content

se-buw/fm4se-satsolving

Repository files navigation

Points bar

📝 Report


Propositional Logic and SAT Solving

Task 1

Using at least three atoms and two different operators in each formula-

a. Provide a formula $\varphi$, where $\models \varphi$ holds.

b. Provide a formula $\varphi$, where $\models \varphi$ does not hold.

Submit the permalink of each formula (see Submission).

Task 2

Provide two folmulas $\varphi$:

a. where $\varphi$ is semantically equivalent to $p \rightarrow (q \vee r)$. Check each direction of the semantic entailment separately.

b. where $\varphi$ is NOT semantically equivalent to $p \rightarrow (q \vee r) $. Check each direction of the semantic entailment separately.

You may check each direction of the semantic entailment separately using limboole.

Submit the permalinks of each the relevant checks (4 checks) (see Submission).

Task 3

Check whether the conclusion(4) is a valid conclusion.

  1. If Bob spends 5 hours playing video games or watching Netflix, then he cannot finish his formal method assignment.
  2. If Bob finishes his formal method assignment, then he can submit the final project.
  3. Bob submitted the final project.
  4. Therefore, Bob was playing video games for 5 hours.

a. Express the sentences in propositional logic.

b. Formulate the conclusion using semantic entailment.

Submit the permalinks for each subtask (5 permalinks) (see Submission)

Task 4

Consider the following permissions table for a role-based access control system.

Role Course Assignment Server
Student
Teacher
Admin

a. Follow the steps done in class to encode the above table and the constraints for checking them in limboole. Use these names:

Propositional atoms for roles: isStudent, isTeacher, isAdmin.

Propositional atoms for resources: accessCourse, accessAssignment, accessServer

b. Define two meaningful constraints for the above roles and resources in natural language and encode them in limboole.

c. From a and b above, formulate the validity check.

Submit the permalinks for each subtask (6 permalinks) (see Submission)

Submission

Submit all the permalinks in src/main/java/de/buw/fm4se/satsolving/task/Tasks.java

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published