The QNFO familyQNFOQWAVq08PapersAsk
QNFO Papers

Quick read · plain language

A Better Way to Write Prompts for AI

A plain-language version of “KERNEL as a Verifiable Prompt Specification Framework: Six Properties, Composition Bounds, and a Benchmark Design”

3 min readNo jargon, no mathematicsLogic & formalism

The short version

This paper proposes six rules for writing clear AI prompts. It shows mathematically that breaking one big prompt into smaller checked steps works better than hoping one big prompt succeeds.

The problem with today's prompts

People who build AI tools write prompts like guesswork. They try different wording and hope the AI does what they want. This causes real problems. A coding helper might ignore one of five rules. A tutoring bot might misunderstand a fuzzy question. A search helper might return wrong answers when someone tweaks the input slightly. Teams cannot check what went wrong afterward. They can only rewrite the prompt and try again.

The paper asks: what if prompts were written like safety-critical software, with clear rules that a machine can check?

Six rules for a good prompt

The paper gives six properties that a prompt document should have. The authors call these the KERNEL properties.

Simplicity means the prompt contains nothing extra beyond the goal, rules, format, and checks. Verifiability means at least one check can be run automatically on the output. Reproducibility means nothing in the prompt depends on hidden outside context. Narrow scope means the prompt asks for exactly one thing; multi-step jobs become a chain of single-step prompts. Explicit constraints means every rule states a clear way to fail it. Structured format means the prompt uses a fixed layout where each part can be found separately.

A prompt that passes all six is called compliant. The paper counts exactly sixty-four possible ways to pass or fail the six properties, and only one way passes all.

Why smaller steps beat one big prompt

The main result compares two ways to handle a job with five separate requirements. In one way, a single big prompt tries to satisfy all five at once. In the other way, five small prompts each handle one requirement, with one allowed retry if the first try fails.

The paper assumes each requirement has an eight-in-ten chance of success on the first try, and a retry after failure has a five-in-ten chance. Under these assumptions, the big prompt succeeds about one-third of the time. The chain of small prompts succeeds about three-fifths of the time. This is roughly twice as good.

The advantage grows with more requirements. With ten requirements, the small-prompt approach is over three times better.

The paper also compares cost. The big prompt needs about two thousand input words per success. The chain needs about one thousand. This is roughly half the cost.

What would test these claims

The paper designs a benchmark study that has not been run. It would use six properties, ten tasks, and three AI models, with repeated runs. The study would check each property one at a time to see which matter most. The full design needs about two thousand runs.

The paper also describes a much smaller first test. One task family, one model, and ten runs could show whether the core idea holds.

What this paper does not show

The paper contains no experiments. Every number is computed from stated assumptions, not measured from real AI behavior. The authors label this clearly.

The key assumption is that failures in different requirements happen independently. If real AI tends to fail multiple requirements together, the advantage of small prompts shrinks or disappears. The benchmark is designed to test exactly this.

The paper does not know three things. It does not know how much automatic checking costs in practice. It does not know how much the four non-core properties help. It does not know whether a simple scoring model might work as well as the full theory.

The framework may not apply where success is partly a matter of human judgment and cannot be checked automatically.

Words used here

Compliant
meeting all six rules for a well-formed prompt document.
Monolithic prompt
one single prompt that tries to do everything at once.
Narrow scope
the rule that one prompt should do exactly one thing.
Predicate
a yes-or-no statement about whether something meets a rule.
Verifiability
the rule that a machine must be able to check whether the output is correct.

Learn more in plain language

This plain-language version was written by an AI model from the text of the paper and checked against plain-language rules: everyday words, no mathematics, no unexplained names. It leaves details out and can still be wrong; the paper is the source of record. To report a problem, open the paper, select the passage and choose Report.

For specialists: the technical digest, quoted from the paper

In the paper's words

Prompt engineering for large language models (LLMs) is practiced as a craft of heuristics, yet teams deploying LLM agents need prompts whose behavior can be specified, checked, and reasoned about the way safety-critical software is specified. The gap is formal: no existing framework states prompt quality as a set of machine-checkable constraints on a prompt specification, and no analysis quantifies what such constraints would buy in first-try success, revision cost, or run-to-run consistency. We formalize the KERNEL properties—simplicity, verifiability, reproducibility, narrow scope, explicit constraints, and structured format—as six binary predicates on a prompt specification, prove a composition result that chained narrow, verifiable sub-prompts dominate monolithic prompts under stated independence assumptions, and derive the benchmark design that would test the claim.

The abstract, verbatim, and its opening sentence is the claim. Every line below is quoted from the text.

Numbers it reports

  1. The principal computed results: a monolithic prompt with five independent requirements each met with probability $0.8$ succeeds with probability $0.32768$, while the same workload decomposed into five verified sub-prompts with one bounded repair each succeeds with probability $0.59049$, a $1.80$-fold improvement, at a projected $2.20$-fold reduction in input-token cost per successful completion; a one-at-a-time ablation benchmark over six properties, ten tasks, and three models requires $1{,}800$ runs.

    from Abstract
  2. A projected input-token cost per successful completion of $1{,}112$ tokens for the chained design against $2{,}440$ for the monolith, a $2.20$-fold reduction, derived from the same success probabilities and stated prompt-size assumptions (Section 4.4).

    from 1. Introduction
  3. A mapping of the framework onto existing verification practice, using contract-extraction cost accounting [11], claim-labeling discipline [10], and tamper-evident execution records [4] as the engineering substrate (Section 7).

    from 1. Introduction
  4. Scalable kernel clustering shows that an approximate algorithm can match exact kernel $k$-means in clustering quality while reducing quadratic run-time and memory costs, achieving over $90\%$ speedup in kernel computation on the Imagenet experiments [7].

    from 2. Background and Related Work
  5. The analogy disciplines our claims: if full conformance verification of every prompt is expensive, an approximate checker that preserves verdict quality at lower cost is the right engineering target, and the benchmark of Section 4.5 is where the quality equivalence would be measured.

    from 2. Background and Related Work
  6. The quantum-decoding analysis labels every quantitative claim as exact computation, complexity arithmetic, or error budget, and reports no new empirical measurements [10]; this paper follows that labeling scheme.

    from 2. Background and Related Work

How it is done

  1. We then derive, with shown arithmetic, the quantitative consequences: a state-space coverage count for the six-property compliance lattice, a composition theorem with a worked numerical example, a token-cost comparison, and the exact size of the controlled benchmark that would test the framework's central claim.

    from 1. Introduction
  2. The survey of formal specification and verification of separation kernels reports that most spatial-separation verification uses theorem proving because the kernels are small—thousands of lines—making full verification feasible, and that more than $140$ bugs were found in the project of verifying the seL4 kernel [6].

    from 2. Background and Related Work
  3. This is an analytical paper: it formalizes, derives, and computes, and it reports no experiment, measurement, or simulation.

    from 3. Methods
  4. The number of distinct specification classes is $$ N_{\text{classes}} = 2^{6} = 64. $$ Exactly one class—the all-ones vector—is KERNEL-compliant, so a uniformly drawn specification from the six-bit space is compliant with probability $$ p_{\text{compliant}} = \frac{1}{64} = 0.015625. $$ This count is the prompt-side analogue of the protocol-coverage arithmetic in [12], where a binary protocol over $k$ gated tools covers a $(2/3)^{k}$ fraction of the three-state space; for $k = 5$ gated tools that fraction is $f(5) = 32/243 \approx 0.132$ [12].

    from 4.1 The compliance lattice and its coverage arithmetic

What would falsify it

  1. Third, an engineer could decompose a fragile monolithic prompt into narrow, verifiable sub-prompts and predict—before running anything—whether the decomposition helps.

    from 1. Introduction
  2. A fully specified benchmark design—$360$ distinct prompt-model configurations and $1{,}800$ runs under a five-repetition protocol—whose regression and ablation analysis would isolate each property's contribution and whose outcomes would confirm or falsify the framework (Sections 4.5 and 7).

    from 1. Introduction
  3. Under the model of Section 4.2, the predicted sign and rough magnitude of each coefficient is known in advance for $P_2$ and $P_4$ (they gate the composition mechanism), while $P_1$, $P_3$, $P_5$, $P_6$ are open—the benchmark exists precisely because the framework does not predict their effect sizes.

    from 4.5 Benchmark size arithmetic

Where the claim stops

  1. What the results do and do not claim.

    from 6. Discussion
  2. R3 and R4 are exact arithmetic on top of assumed inputs ($q = 0.8$, $s = 0.5$, $800$ and $200$ tokens); they are projections, not measurements.

    from 6. Discussion
  3. The result rests on the following assumptions, with sensitivity noted for each: Independence of per-requirement success.

    from 6. Discussion

Where to read

  1. Abstract208 words · 1 min
  2. 1. Introduction629 words · 3 min
  3. 2. Background and Related Work1,034 words · 4 min
  4. 3. Methods545 words · 2 min
  5. 4. Analysis1,487 words · 6 min
  6. 5. Results297 words · 1 min
  7. 6. Discussion886 words · 4 min
  8. 7. Practical Implications and Engineering Pathways965 words · 4 min
  9. 8. Conclusion191 words · 1 min
  10. Provenance and AI Involvement240 words · 1 min

Read from the paper itself: 18 sections, 6,641 words. Nothing in this digest is written by a model; a line that is not a sentence of the paper is not shown. Have a specific question? Ask this paper.

The full text · Ask the whole corpus