How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Finite-trellis Viterbi decoding returns a maximum-score path
Statement
For every finite weighted trellis, the algorithm returns “no admissible path” exactly when the trellis has no path. Otherwise it returns an admissible path whose score is maximal among all admissible paths. If and (with empty sums taken as ), then when each real multiplication and comparison is counted as one operation the running time is and the auxiliary storage is . In the case the algorithm returns the unique empty path with score .
Facts & Assumptions
Given: A finite weighted trellis, a total order on each vertex set, and the algorithm in the Definition.
Finite weighted trellises: When , the unique path is the empty tuple with score . When , every allowed edge weight is positive. A path has positive initial and terminal weights, follows one allowed edge between each pair of consecutive layers, and has score equal to the product of its endpoint and edge weights.
The optimal-prefix recurrence for a finite trellis: When , the unique prefix path through no layers has score . When , the recurrence table is the maximum score of a prefix path ending at , and is zero exactly when no such prefix path exists.
Max-product Viterbi decoding on a finite trellis: When , the algorithm returns the empty path with score . When , it stores a maximizing predecessor for each positive with , maximizes at the terminal layer, and returns the path obtained by following those backpointers.
Proof
If , [F1] gives the unique empty path and its score , which the branch in [F3] returns. If , [F2] shows that every positive is attained by a prefix path and a zero value means there is no such prefix. Therefore, for each terminal vertex , exactly when some full path ends at ; when positive it is the largest score of such a path.
Suppose . The finite set of terminal values has a positive maximum exactly when at least one full path exists. If it is positive, let be the maximizing terminal vertex; then and . If , then and , so the selected one-vertex tuple is already an admissible path of maximum score; no backpointer is needed. If , then by [F3], is defined and selects an allowed edge from some with , so because the edge weight is positive. In the case, repeating this argument for the layers shows every pointer is defined, each selected pair is an allowed edge, and the chain ends at with . The chain is therefore a path, and its score is , the maximum terminal value from step 1.1. If all terminal values are zero, step 1.1 shows there is no path, so the algorithm correctly returns “no admissible path.” The case is settled by step 1.1.
The branch takes constant time. For , each vertex is initialized or scanned a bounded number of times, each edge contributes one candidate product and comparison, and traceback visits at most layers. Thus the time is . The algorithm stores at most one backpointer per vertex and scores for the current and preceding layers, so auxiliary storage is .
Depends on
Used by
Dependency tree · one level
3 results within one dependency step of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- Manolis Kellis, 6.096 Algorithms for Computational Biology, Lecture 7: Gene Finding and HMMs, MIT OpenCourseWare (Spring 2005) (standard reference, not scraped)
- Stanford CS262, Lecture 7: Hidden Markov Models (standard reference, not scraped)