Skip to content

Commit 8c1cb30

Browse files
committed
latest
1 parent 56d26bc commit 8c1cb30

File tree

5 files changed

+61
-120
lines changed

5 files changed

+61
-120
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
docusaurus-site/static/vampire-runner/vampire.js
22
docusaurus-site/static/vampire-runner/vampire.wasm
33
docusaurus-site/node_modules
4+
.emcache
45
vampire

docusaurus-site/docs/exercises/L2-lab.mdx

Lines changed: 0 additions & 38 deletions
This file was deleted.

docusaurus-site/docs/exercises/L2.mdx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,35 @@ $$
8989
Thus exactly one inference is applicable.
9090

9191
</details>
92+
93+
94+
## Problem 2.4
95+
96+
Give an example of a non-tautological ground clause with at least one selected literal such that the selection is not well-behaved for any ordering.
97+
98+
<details>
99+
<summary>Solution</summary>
100+
101+
Take $p \lor \underline{p}$. The maximal literal must be $p$ under any ordering, but only one occurrence is selected, so the selection can never satisfy the “select all maximal literals” requirement.
102+
103+
</details>
104+
105+
106+
## Problem 2.5
107+
108+
Let
109+
110+
$$
111+
S = \{\neg q \lor r,\ \neg p \lor q,\ \neg r \lor \neg q,\ \neg q \lor \neg p,\ \neg p \lor \neg r,\ \neg r \lor p,\ r \lor q \lor p\}.
112+
$$
113+
114+
1. Prove $S$ is unsatisfiable using $\mathbb{BR}$.
115+
2. Encode $S$ in TPTP and use Vampire (run with `-av off`) to prove unsatisfiability.
116+
117+
<details>
118+
<summary>Solution (sketch)</summary>
119+
120+
1. Use binary resolution to derive unit clauses: resolve $\neg q \lor r$ with $\neg r \lor \neg q$ to obtain $\neg q$, then propagate to derive $p$ and $r$, eventually leading to a contradiction when resolving with clauses containing their negations. Any complete derivation is acceptable.
121+
2. Translate each clause into TPTP CNF syntax, run `vampire -av off input.tptp`, and inspect the proof output to confirm the empty clause is produced.
122+
123+
</details>

docusaurus-site/docs/exercises/L4-lab.mdx

Lines changed: 0 additions & 82 deletions
This file was deleted.

docusaurus-site/docs/exercises/L8.mdx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,31 @@ where $f,g$ are function symbols, $x,y,z$ variables, and $a,b$ constants.
112112
Thus the inference is not simplifying under any KBO.
113113

114114
</details>
115+
116+
## Problem 8.5 (Hands-on Vampire)
117+
118+
Show that the inverse of a dense order is dense. Outline a TPTP formalisation and the key steps in Vampire’s refutation (`-av off`).
119+
120+
<details>
121+
<summary>Solution</summary>
122+
123+
Encode strict total order axioms and density for $r_1(x,y)$, plus clauses asserting $r_2(y,x)$ iff $r_1(x,y)$. Negate density for $r_2$ by adding a clause stating that there exist $a,b$ with no $c$ such that $r_2(a,c)$ and $r_2(c,b)$. Running Vampire (`-av off`) produces a refutation: the proof repeatedly superposes the inverse-direction axioms with the negated density clause until it forces a contradiction with density of $r_1$. Recording the premises, substitutions, and derived clauses from those superposition steps shows precisely how the contradiction—and therefore the density of the inverse relation—arises.
124+
125+
</details>
126+
127+
## Problem 8.6 (Hands-on Vampire)
128+
129+
Using the group axioms (associativity, left identity, inverses), prove that the left identity element $e$ is also a right identity. Provide a TPTP encoding (axioms plus negated goal) and describe the main superposition steps in Vampire’s refutation (`-av off`).
130+
131+
<details>
132+
<summary>Solution</summary>
133+
134+
Encode the axioms:
135+
136+
- Associativity: $! [X,Y,Z] : mult(mult(X,Y),Z) = mult(X,mult(Y,Z))$.
137+
- Left identity: $! [X] : mult(e,X) = X$.
138+
- Inverses: $! [X] : mult(inv(X),X) = e$.
139+
140+
Add the negated goal $! [X] : mult(X,e) \neq X$. Vampire refutes the set by chaining superposition steps: for example, superposing the inverse axiom with the negated goal yields clauses equating $mult(inv(X), mult(X,e))$ with $e$, which then rewrite to contradictions with the left-identity clause. Documenting the key superposition inferences (premises, mgus, conclusions) explains how the empty clause is ultimately derived, establishing that $e$ must also be a right identity.
141+
142+
</details>

0 commit comments

Comments
 (0)