The Mechanism · Gated-generation receipt

gen-define-np-completeness-and-give-one-short-worked-example-8dc9

stable pending witness
2026-05-29 02:28:32 UTC · anthropic/claude-sonnet-4-5

Prompt

Define NP-completeness and give one short worked example.
57 chars

Generation

# NP-Completeness ## Definition A problem is **NP-complete** if: 1. **It is in NP**: A proposed solution can be verified in polynomial time 2. **It is NP-hard**: Every problem in NP can be reduced to it in polynomial time Informally: NP-complete problems are the "hardest" problems in NP. If you could solve any one of them efficiently, you could solve all NP problems efficiently. ## Worked Example: 3-SAT **Problem**: Given a Boolean formula in CNF with 3 literals per clause, is there an assignment making it TRUE? **Instance**: (x₁ ∨ x₂ ∨ ¬x₃) ∧ (¬x₁ ∨ x₃ ∨ x₄) ∧ (¬x₂ ∨ ¬x₃ ∨ ¬x₄) **Proposed solution**: x₁=T, x₂=T, x₃=F, x₄=T **Verification** (polynomial time): - Clause 1: (T ∨ T ∨ T) = **T** ✓ - Clause 2: (F ∨ F ∨ T) = **T** ✓ - Clause 3: (F ∨ T ∨ F) = **T** ✓ All clauses satisfied → **YES, satisfiable** ✓ **Why NP-complete?** - ✓ In NP: We verified the solution in O(n) time - ✓ NP-hard: Cook-Levin theorem proved every NP problem reduces to SAT (and 3-SAT follows)
20 tokens in · 433 tokens out · 10606 ms · $0.0066

The four gates

RED
pass
no disqualifying input patterns detected
FLOOR
pass
output above protective minimum; no mismatches
WAY
pass
no declared way_path (Way check NA); no coercion language
EXECUTION
deferred
no witnesses available (Witness Roll not yet constituted)

Verifier results

scripture_anchors NOT_APPLICABLE
0 Scripture citation(s) extracted
theology_doctrine NOT_APPLICABLE
no doctrine keyword patterns detected

Metrics

Total latency
10614.7 ms
Base LLM
10606.2 ms
Verifiers
0.5 ms
Gates
0.1 ms
Cost
$0.0066

Trail

02:28:32 received prompt_chars=57 verifiers=['scripture_anchors', 'theology_doctrine']
02:28:32 red_gate decision=pass reason=no disqualifying input patterns detected
02:28:43 base_llm_call model=anthropic/claude-sonnet-4-5 tokens_in=20 tokens_out=433 latency_ms=10606.2 cost_usd=0.0066
02:28:43 verifier:scripture_anchors verdict=NOT_APPLICABLE summary=0 Scripture citation(s) extracted
02:28:43 verifier:theology_doctrine verdict=NOT_APPLICABLE summary=no doctrine keyword patterns detected
02:28:43 floor_gate decision=pass reason=output above protective minimum; no mismatches
02:28:43 way_gate decision=pass reason=no declared way_path (Way check NA); no coercion language
02:28:43 execution_gate decision=deferred reason=no witnesses available (Witness Roll not yet constituted)
02:28:43 signed hash_algo=sha256 hash=sha256:9d0b82199735e879c20310787f12c90d46161db39cad78e462626336adcb9353

Content hash

sha256:9d0b82199735e879c20310787f12c90d46161db39cad78e462626336adcb9353

SHA256 over the canonical JSON (excluding this field). Tamper detection. Ed25519 signing planned for v2 once the operator’s signing key is provisioned on disk.

Bring another teaching · Run a discernment