Analogy Theorem: A Formal Transfer Principle
- Analogy Theorem is a family of rigorous transfer principles that formalize the schema 'A is to B as C is to D' by defining transformation equivalences across domains.
- It encompasses universal algebra with rewrite rules, logic programming with modular forms, numerical analogies via power means, and computational classifiers preserving asymptotic complexity.
- The theorem’s variants provide actionable criteria for sound transfer, ensuring uniqueness, isomorphism preservation, and feasibility through structured model justification.
Searching arXiv for the cited Analogy-related papers to ground the article in current arXiv records. Search 1: universal algebra / analogical proportions. Search 2: logic-program analogy / proportions. Search 3: numerical analogy via generalized means. Search 4: computational analogy / transfer / classifiers. In recent arXiv literature, the expression Analogy Theorem does not denote a single classical theorem, but a family of formally specified results that make precise the schema “ is to as is to .” Across universal algebra, logic programming, numerical analysis, computation, learning theory, and program logic, these results replace informal similarity by explicit objects such as rewrite rules, forms, justifications, power transforms, preservation conditions, or metric-stability clauses. The common aim is to state when a transformation known in a source domain can be instantiated in a target domain, when the resulting target object is uniquely or characteristically justified, and when transfer is sound, feasible, or complexity-preserving (Antić, 2020, Antić, 2018, Lepage et al., 2024).
1. Universal-algebraic formulation
A general abstract basis is given in Antić’s framework of analogical proportions on algebras of a common language. For two -algebras , a rewrite rule is a pair of terms in which every variable of occurs in . For elements and 0, the justification sets are defined by
1
and similarly on 2. Arrow proportions, directed analogical proportions, and full analogical proportions are then built by intersecting justification sets and imposing maximality and symmetry conditions (Antić, 2020).
Within this setting, the central theorem is the Functional Proportion Theorem. If 3 is an 4-term, then for any 5 and 6,
7
characteristically justified by 8. Under injectivity at the relevant points, this upgrades first to directed proportion and then to full analogical proportion:
9
The same paper proves a First Isomorphism Theorem and a Second Isomorphism Theorem: analogical proportions are preserved by isomorphisms, but not in general by homomorphisms (Antić, 2020).
This formulation is significant because it makes analogy a local algebraic property controlled by common justifications rather than by surface resemblance. It also sharply limits the classical axiomatics. Symmetry, inner symmetry, reflexivity, inner reflexivity, and determinism hold in general, but central permutation, strong reflexivity, strong inner reflexivity, commutativity, transitivity, inner transitivity, central transitivity, and monotonicity fail in general. The framework therefore rejects the idea that analogical proportion is uniformly an equivalence-like relation; it is instead a structured but nontransitive relation driven by available rewrite justifications (Antić, 2020).
2. Logic-program proportions and the directed Analogy Theorem
In logic programming, the theorem is instantiated on Horn programs over an unranked first-order language. The key technical move is to represent programs modularly by forms, i.e. meta-terms generated from concrete programs, program variables, and operations such as union, composition 0, concatenation 1, substitution, 2, 3, 4, 5, and 6. A directed analogical proportion has the shape
7
read “8 transforms into 9 as 0 transforms into 1.” A justification is a pair of forms 2, with every variable in 3 occurring in 4, that simultaneously explains the source transformation and the target transformation (Antić, 2018).
The paper introduces two algebraic operations. Composition 5 is a sequential-resolution operation on programs, and is generally non-associative. Concatenation 6 is an argument-wise skeleton-preserving combination, associative on programs with matching skeletons. In both cases, least-model behavior is not modular in a straightforward way: neither 7 nor 8 factors simply through 9 and 0 (Antić, 2018).
The central result is again called the Functional Proportion Theorem, and in the logic-program setting it is the natural candidate for an Analogy Theorem:
1
for any form 2 built over operations available in both domains, characteristically justified by the single justification 3. If 4, then 5 is a functional solution of 6. The Uniqueness Lemma adds a characteristic-justification criterion: if 7 has a unique witness in the target domain, then 8 uniquely pins down 9 (Antić, 2018).
The worked examples show the constructive force of the theorem. A form extracted from unary naturals and the addition program yields an append program when instantiated with lists, giving the directed proportion “numbers are to addition what lists are to append.” A form
0
transfers evenness from the unary-natural generator to a list-reversing program, producing a program that reverses lists of even length. A membership form built from lists, when instantiated with naturals, yields a program computing a less-than relation on numerals (Antić, 2018).
3. Quantitative and structural variants
A distinct numerical version appears in the theory of analogies on positive real numbers via generalized means. For 1, analogy in power 2 is defined by
3
with 4 the two-variable power mean; for 5 this is equivalent to 6, while 7 gives 8. The theorem states that if 9 are positive, then there exists a unique 0 such that
1
The same framework shows that every such analogy reduces to an arithmetic analogy through the transform 2 for 3 and 4, so that
5
Analogical equations then admit explicit solutions:
6
and, for fixed real 7, solvability extends to nonzero complex numbers (Lepage et al., 2024).
Another theorem explicitly framed as an analogy is the tensor version of Yuan’s theorem of the alternative. For even-order symmetric tensors 8, assuming that a common linear transform makes them essentially nonpositive, exactly one of two alternatives holds: either there exists 9 such that all homogeneous forms 0, or there is a convex combination 1 that lies in the SOS cone. This converts a quadratic alternative into a tensor/SOS certificate and leads to exact first-level SOS relaxation for polynomial optimization with essentially nonpositive coefficients (Hu et al., 2014).
These variants show that an Analogy Theorem need not be restricted to symbolic rewrite systems. In one case, analogy is parameterized by a unique power; in another, it is a structural transport from PSD-matrix certificates to SOS-tensor certificates. The unifying feature is that analogy is encoded by a formally checkable invariant rather than by informal similarity.
4. Computational analogy and analogy-preserving classifiers
In computability theory, Computational Analogy is a relation on computable functions 2 defined through Enumerating Turing Machines and approximations of E-Turing machines. Two functions are computationally analog, written 3, when E-Turing machines for one can serve as approximations for E-Turing machines of the other, with recovery overhead bounded by 4 or 5. The theorem-level consequences are strong: 6 is an equivalence relation; if 7, then
8
and computational irreducibility is preserved in both the strong and ordinary senses. The set of computable functions is thereby partitioned into classes whose members share asymptotic complexity and irreducibility properties (Zwirn, 2013).
In analogical classification, the central result takes the form of a Galois connection. A classifier 9 is analogy-preserving relative to a pair 0 of 4-ary relations when componentwise 1-analogies in the feature space and solvability of the analogical equation in the label space force the label quadruple to satisfy 2. The key theorem is
3
where 4 augments 5 by all unsolvable label quadruples. This turns analogical preservation into ordinary polymorphism preservation and permits a Galois theory of analogical classifiers. On the Boolean domain, the paper explicitly determines the closed classes for the five Antić relations 6: depending on the pair 7, the sound classifiers are exactly one of the affine clone 8, the projections-and-constants clone 9, the negations-and-constants clone 0, or the constants-only clone 1 (Couceiro et al., 2022).
Both theories replace vague claims that “computing one is like computing another” or that “a classifier respects analogy” by preservation theorems with explicit closure properties. In one case the preserved quantities are asymptotic computation time and irreducibility; in the other they are relational invariants under a Pol/Inv correspondence.
5. Feasibility, transfer gain, and verified transfer
A separate line of work studies when analogical transfer is feasible rather than merely definable. In a complexity-minimization framework based on model description length, a source model 2 is weakly or strongly 3-reusable for a target case depending on whether reusing 4 reduces target description length by at least 5. The associated Analogy Feasibility Theorem states that if a compatible source model is weakly 6-reusable for some target output 7, then the source compresses the target by at least 8 bits relative to the best standalone target description; if the target MDL minimizer is unique and strong reusability holds, then the minimizing 9 is a unique analogical solution. The same framework defines transferability coefficients 00 and 01 over compatible source models (Murena, 2022).
In evolutionary transfer optimization, analogical reasoning is decomposed into retrieval, mapping, and evaluation. The theoretical core consists of two performance-gain theorems. The Unconditionally Nonnegative Performance Gain Theorem states that the performance gain of an analogy-based knowledge transfer method is unconditionally nonnegative if and only if it includes the evaluation subprocess. The Conditionally Positive Performance Gain Theorem states that strictly positive gain can be guaranteed either by big-source retrieval, where useful source knowledge appears with probability tending to 02 as the source pool grows, or by appropriate mapping, where the usefulness improvement 03 is large enough to make the infimum gain positive. The framework relies on a monotonic relation between observable similarity 04 and usefulness 05 and gives a threshold
06
for cancelling harmful transfer (Xue et al., 27 Mar 2025).
Program-logic work pushes the theorem into verified domain transfer. In a first-order and Hoare-logic formulation, one fixes predicates 07 and 08, a metric 09, a reference element 10, and thresholds 11. Under metric axioms, stability axioms, and a regularity condition, the FOL theorem proves
12
together with the existence of a counterexample outside the 13-neighborhood. In Hoare logic, if a program 14 is 15-stable and preserves 16, then
17
and a strengthened exterior precondition yields a violation postcondition. The practical condition is
18
and the paper instantiates 19 with Wasserstein-type distances for MNIST20USPS adaptation (Nikita, 4 Oct 2025).
6. Epistemic interpretation, limitations, and recurrent structure
Across these formulations, a recurring pattern is the passage from a source-side dependency to a target-side dependency by means of a shared formal device: a term 21, a form 22, a rewrite justification, a power transform 23, a translator between E-Turing machines, a polymorphism condition, a model-reuse code, or a stable program transformation. This suggests that the common content of an Analogy Theorem is not a particular formula but a proof principle: the same construction recipe is applied in both domains, and soundness depends on whether the recipe is characteristic, maximal, injective, or stability-preserving (Antić, 2020, Antić, 2018, Murena, 2022).
The limitations are equally systematic. In universal algebra, analogical proportion is local and generally nontransitive; many familiar axioms fail. In logic programming, composition is generally non-associative, least models do not distribute straightforwardly over composition or concatenation, trivial justifications may dominate, and computing generalization and justification sets is non-trivial. In complexity-based transfer, exact Kolmogorov complexity is unavailable and tractable practice depends on coding choices. In transfer optimization, the monotone similarity–usefulness relation, realizability of mappings, and IID source assumptions are substantive hypotheses. In Hoare-logic transfer, guarantees are local in the metric and narrow as 24 grows (Antić, 2020, Antić, 2018, Murena, 2022, Xue et al., 27 Mar 2025, Nikita, 4 Oct 2025).
A complementary philosophical account comes from the study of reasoning by analogy in mathematics. There, analogical support is said to be genuine only when three conditions are met: Materiality, Relevance in the form of a robust mathematical connection, and No-Essential-Difference. On this view, deep analogies function as “relay-results,” whereas superficial analogies are merely “hookings.” That account does not give a single symbolic theorem schema for all domains, but it does clarify why formal Analogy Theorems aim to exclude manufactured similarities and to preserve dependency structure rather than mere resemblance (Cangiotti et al., 2022).
Taken together, the literature treats an Analogy Theorem as a rigorous transfer principle. Its strongest forms assert existence, uniqueness, preservation, or nonnegative gain; its weakest forms provide only justified candidate solutions. The term therefore names a family of theorem schemas whose shared ambition is to make “transform in the same way” mathematically explicit.