One Function, Many Programs? Near-Minimal Descriptions and Computational Structure
★ Giulio Ruffini
★ guarantor: Giulio Ruffini · vouches for the paper per WP0084 §6
Programs computing the same function can differ in their states, operations, and memory use. Does requiring short descriptions force them to share computational structure? We separate bounds on the number of programs, the information needed to reconstruct one source from another, and the relations shared by their executions. Classical prefix coding bounds both number and reconstruction cost for programs producing a common finite output.
For whole functions, write for the shortest program length and for the allowed excess. If the function is total, the number of programs of length at most is bounded by times a fixed polynomial in , without certification. If a fixed, sound, computably enumerable equivalence relation certifies that two near-shortest programs compute the same function, either source can be reconstructed from the other with at most bits. This reconstruction result also covers partial functions; the unrestricted pairwise bound remains unresolved here.
These bounds limit the number of possible structural classes but do not identify their execution relations. Minimal linear filters and selected nonlinear realizations admit structural uniqueness under their respective assumptions, whereas optimal multiplication chains can have different dependency graphs. The remaining task is to determine which shared structures follow from a specified economy criterion and realization class. Partial invariants can constrain this comparison without supplying a complete classification. Lean checks finite counting and coding; the full complexity bounds remain paper proofs.
Two programs that compute exactly the same function can look nothing alike inside — different states, different operations, different memory footprints. This paper asks a sharp version of an old question: if you insist both programs be nearly as short as possible, does that force them to be built the same way internally? The surprising answer is: not automatically. Being short constrains how many such programs can exist and how cheaply you can translate one into another, but it says almost nothing about whether their execution traces share any real structure.
The paper carefully separates three different things people often blur together. First, multiplicity: how many near-shortest programs exist for a given function. Second, reconstruction cost: how many extra bits you need to turn one such program into another. Third, structure: whether their actual step-by-step computations — states, transitions, dependency graphs — are related in any meaningful way. Classical information theory (prefix coding, à la Kolmogorov complexity) cleanly bounds the first two for a fixed finite output. Ruffini extends this to whole functions: for total functions (defined on every input), the count of near-minimal programs is bounded by a simple formula in the slack δ, no extra assumptions needed. But turning that count into an actual reconstruction — building one program from another — requires an extra ingredient: a "certification relation," some fixed, trustworthy, listable way of verifying that two programs really do compute the same thing (think: proofs in a fixed formal theory). With that in hand, reconstruction costs about δ plus a logarithmic overhead, and this part also works for partial functions.
None of this touches structure, and that's the paper's real payload. It shows the two properties can come apart in either direction. For minimal linear filters (like digital signal processing recurrences), there really is a uniqueness theorem: any two minimal-state realizations of the same filter are related by an invertible change of coordinates — same structure, just relabeled. Similar rigidity shows up in restricted nonlinear systems (certain recurrent networks) and in optimal bilinear algorithms for 2×2 matrix multiplication. But then the paper gives a clean counterexample: computing x¹⁵ by repeated multiplication has two different optimal five-multiplication chains, and they use different numbers of squaring operations — genuinely different dependency graphs, both optimal, no isomorphism between them. So minimality plus optimality doesn't generally force one shared organization; sometimes it does, sometimes it doesn't, and which case you're in depends on the specific realization class and cost measure, not on program length alone.
The upshot is a research program rather than a closed answer: counting bounds tell you the space of possible descriptions is limited, but classifying what those descriptions actually share operationally requires picking a specific notion of "structure" (which relations get preserved) and proving separate rigidity results for that class — filters, matrix algorithms, physical dynamics, whatever. The paper also flags a hard limit: there's no possible universal, sound, algorithmic test for "these two programs compute the same function," because that would solve the halting problem. So any certification relation you use is necessarily partial, and its choice matters for what the theorems can actually deliver. Practically, this connects to a companion paper (WP0215) asking whether physical systems that produce the same input-output behavior must share the same internal dynamics — same open question, one level up.
- WP ID
- WP0228
- Lifecycle
- prospect
- Visibility
- internal
- Access level
- open
- Embargo until
- —
- Priority
- —
- Collab
- closed
- Venue
- —
- DOI
- —
- Deadline
- —
- Owner
- —
- Source
- drive_legacy
- Repo path
- WP0228
- v0.1.9 (draft) · cut-versionAbstract revision, manuscript v0.1.9: state the scientific problem, connect results to it, and distinguish established comparisons from proposed neural and experiential tests. Scientific body unchanged apart from version references. Includes checked PDF, editable source, bibliography, and abstract redline.
- v0.1.8 (draft) · cut-versionNeural-manifold revision, manuscript v0.1.8. Adds partial geometric, topological, and dynamical invariants, their preservation conditions, empirical precedents, and proposed tests. Prior source preserved. WP0231 includes revised paper/slides and internal foundation review attachments; public foundation records remain unchanged.
- v0.1.7 (draft) · cut-versionManuscript v0.1.7, Git 668a392: reviewed integration of the received v0.1.6, preserving its abstract and all formal blocks. Clarified nonlinear hypotheses and notation; verified published references; reran existing Lean build/audit; effective-action lemma remains a paper proof.
- v0.1.6 (draft) · cut-versionArchive the exact received manuscript v0.1.6 before integrating the checked v0.1.7. Adds restricted nonlinear realization cases, effective source actions, and the conditional factor-avoidance excess.
- v0.1.5 (draft) · cut-versionManuscript v0.1.5: explicit storyline from descriptive economy to structural classification, aligned abstract/introduction/discussion and a new conclusion; unrestricted total-function counting precedes certified reconstruction. Prose reduced by about 9%; all 16 formal statement/proof environments and 39 displays preserved.
- v0.1.4 (draft) · cut-versionManuscript v0.1.4: plain-language revisions, explicit polynomial count overhead in the Discussion, and updated WP0215 reference. All theorem statements, proofs, and displays unchanged.
- v0.1.3 (draft) · cut-versionManuscript v0.1.3: integrate the supplied v0.1.2 and HTML notes; define mathematical structure, distinguish costs and equivalences in the examples, clarify results versus structural classification and common-factor research. Formal statements and proofs unchanged; exact example checks and released Lean synchronization pass.
- v0.1.2 (draft) · cut-versionPreserve the author-supplied manuscript v0.1.2, including its new title, structural examples, and HTML revision notes, before integrating the reviewed v0.1.3.
- v0.1.1 (draft) · cut-versionManuscript v0.1.1: pedagogical explanation of counting versus exact-source reconstruction and specified execution structure. All displayed mathematics and theorem statements preserved from checked v0.1.0; complete-paper readability review.
- v0.1.0 (draft) · drive-legacyAuto-created on first stamp run; no prior version cut.
