Hamiltonian Path via ∃ M ⊆ E
Run
Prompt (Question • Data • Logic)
Question.
Does the undirected graph
G=(V,E)
have a Hamiltonian path?
Data.
V = {a,b,c,d,e,f}
E = { a—b, b—c, c—d, d—e, e—f, b—d }
Logic (Second-Order).
∃ M ⊆ E. |M|=|V|−1 ∧ connected(M) ∧ deg_M endpoints = {1,1} ∧ others = {2}
The witness
M
is a subset of edges (a second-order variable).
Answer
—
Reason Why
—
Checks (at least 5)
—
Diagnostics
No errors yet.