Examples Theorem Surface Style
User-facing theorem surfaces in VeriTile/Examples/ should start from the
public compute-facing APIs. See
CorrectnessSurfaces.md for the full user guide.
- Bench-corpus headlines (
bench/tritonbench_g/,bench/examples/) are stated on aKernelIO⊨/⊨[R]face, not on the surfaces below; that triple bundles the addressing, the output values and the frame into one line. SeeCorrectnessSurfaces.mdand../bench/MAIN_THEOREM_CONVENTIONS.md§4. - Single-kernel correctness against a mathematical or algorithmic spec uses
ComputeCorrect.Realizes_without_Rounding(a kernel realizes a spec),ComputeCorrect.Post, orComputeCorrect.General. - Two-kernel equivalence or rewrite refinement uses
ComputeRefine.Refines(a kernel refines another — writes-equality on the two final memories outside declared scratch regions), the pointwiseComputeRefine.RefinesAt,ComputeRefine.Post, orComputeRefine.General. - Rounding-aware single-kernel claims use
ComputeRefine.Realizes, whose expected outputs depend onRoundingModel. Two-kernel claims useComputeRefine.Refines RorRefinesAt Rwith an explicit model. These abstract cast/store contracts do not imply full IEEE-754 semantics.
Projected algorithm lemmas may still mention Kernel.Correct_without_Rounding
or Kernel.Refine when they are explicitly internal bridge lemmas. Those lemmas
should not be the exported example theorem named in
scripts/kernel-manifest.tsv.
Naming
Section titled “Naming”- Single-kernel correctness theorem:
<name>_correct_view - Two-kernel refinement theorem:
<name>_refinement_view
Execution-only helper lemmas may use an _exec_view suffix and can state direct
exec equalities. The public theorem should wrap that helper in
ComputeCorrect.Realizes_without_Rounding (single-kernel spec) or ComputeRefine.Refines
(two-kernel writes-equality) when it is an output observation theorem.
Domain-specific theorem surfaces that are not ordinary single-kernel or
two-kernel example views, such as whole-grid launch facts or specialized
FlashAttention math/trace statements, may keep established descriptive names.
When a public artifact theorem is renamed to follow this style,
scripts/kernel-manifest.tsv must be updated in the same commit.