Orthologic with Function Symbols
- Orthologic with function symbols is a framework that models subtyping via free ortholattices, capturing intersection, union, and negation in type languages.
- It employs a two-formula sequent calculus with variance-aware rules to accurately reflect monotonic and antimonotonic type constructors.
- The framework includes a normalization algorithm for minimal canonical forms and a polynomial-time decision procedure that avoids exponential blow-up.
Searching arXiv for the cited paper and closely related work to ground the article. Orthologic with function symbols is a proof-theoretic and algorithmic framework for subtyping in type languages that combine intersection, union, and negation with parameterized type constructors of mixed variance. In this setting, types are interpreted as terms of free ortholattices extended by function symbols, and subtyping is identified with the ortholattice order. The framework developed in "Orthologic Type Systems" formalizes monotonic and antimonotonic constructors, gives a sound and complete sequent calculus for subtyping inequalities under assumptions, establishes partial cut elimination, and derives an decision procedure for provability under assumptions together with an normalization algorithm to minimal canonical form (Guilloud et al., 14 Jul 2025).
1. Orthologic as a basis for subtyping
Orthologic provides the ambient algebraic structure. Its signature contains binary connectives and , unary orthocomplement , and constants and . Terms are built from variables, constants, these connectives, and, in the extended setting, function symbols. Subtyping is the lattice order: iff , equivalently 0 under the lattice axioms (Guilloud et al., 14 Jul 2025).
The semantic structures are ortholattices: bounded lattices equipped with an orthocomplement satisfying involution and De Morgan laws. The laws used include commutativity, associativity, idempotence, absorption, bounds, double negation, excluded middle, contradiction, and De Morgan dualities. A central feature is that ortholattices are generally non-distributive: distributivity laws such as 1 do not hold in general (Guilloud et al., 14 Jul 2025).
This non-distributive basis is decisive for the type-theoretic interpretation. Intersection types are modeled by 2, union types by 3, and negation types by 4. Subtyping 5 is logical entailment in the ortholattice order. Because distributivity is not assumed, the framework avoids identifications that are valid in Boolean algebras but unsound for many richer type constructors. This places orthologic between purely lattice-theoretic subtyping and fully Boolean approaches, preserving complement-like structure without inheriting the full complexity and normalization blow-up associated with distributive Boolean reasoning (Guilloud et al., 14 Jul 2025).
2. Function symbols and variance-sensitive constructors
The extension with function symbols is designed to model type constructors such as records, pairs, functions, and algebraic data types. A function symbol is annotated as 6, where 7 arguments are invariant, 8 are monotone (covariant), and 9 are antimonotone (contravariant). Arguments are grouped as 0 for invariants, 1 for covariants, and 2 for contravariants (Guilloud et al., 14 Jul 2025).
The governing law is monotonicity with variance:
3
An equivalent equational form is
4
The equivalence of these formulations ensures that ortholattices with function symbols defined by the equational law form a variety (Guilloud et al., 14 Jul 2025).
The intended interpretations follow standard variance patterns. A unary covariant constructor can represent a field wrapper or container-like operation. A binary constructor covariant in both arguments can represent product-like types. A binary constructor contravariant in the first argument and covariant in the second models function space: from 5 and 6, one derives 7 (Guilloud et al., 14 Jul 2025).
The framework treats constructors under an open-world assumption: no equations are assumed beyond ortholattice laws and variance axioms. This suggests a deliberately weak but robust semantic interface. A plausible implication is that the approach supports a broad class of user-defined constructors without committing to distributive identities or representation-specific algebraic equations.
3. Sequent calculus and proof theory
The proof system uses a two-formula sequent calculus in which each occurrence is annotated as left or right. An annotated term is written 8 or 9, and a sequent is an unordered pair of annotated terms. The baseline system includes identity, 0-left and 1-right axioms, introduction rules for 2, 3, and 4, a structural rule Replace, Cut, and an Axiom rule for background subtyping assumptions (Guilloud et al., 14 Jul 2025).
The connective rules are tuned to the two-formula format. For example, LeftAnd derives 5 from 6, whereas RightAnd derives 7 from both 8 and 9. Negation switches polarity:
0
Replace encodes weakening and contraction in this restricted setting:
1
Exchange is implicit because sequents are unordered pairs (Guilloud et al., 14 Jul 2025).
Function symbols are handled by a single variance-aware inference rule. For a constructor 2, one derives
3
from premises expressing equality on invariant arguments, monotone order on covariant arguments, and reversed order on contravariant arguments. Thus, each invariant 4 requires both 5 and 6; each covariant 7 requires 8; and each contravariant 9 requires 0 (Guilloud et al., 14 Jul 2025).
This calculus, called SCPlus in the full presentation, is sound and complete for ortholattices with function symbols under finite axiom sets. Its design enforces a strong subterm discipline: all rules except Cut and Axiom satisfy a subterm property. That proof-theoretic economy becomes the basis for both cut elimination and algorithmic decidability (Guilloud et al., 14 Jul 2025).
4. Partial cut elimination and the subterm property
A central theorem is partial cut elimination. The cut-free variant CFPlus removes Cut and Axiom and replaces them with AxiomCut:
1
The theorem states that a sequent is provable in SCPlus if and only if it is provable in CFPlus (Guilloud et al., 14 Jul 2025).
The proof proceeds by commuting Cut upward through the proof tree until it can be eliminated or transformed into AxiomCut. This includes commuting Cut past negation rules, Replace, and, crucially, the function-symbol rule. In the latter case, a cut on a term headed by 2 is distributed to cuts on the corresponding argument premises according to variance, after which the 3-rule is re-applied. The induction measure decreases through reductions in cut height or cut formula complexity (Guilloud et al., 14 Jul 2025).
The result is partial rather than full. Arbitrary cuts disappear, but cuts induced by assumptions remain. The framework explicitly identifies this as essential: AxiomCut is the only permitted source of non-subformula reasoning. Full elimination of axiom cuts is not available in this two-formula setting (Guilloud et al., 14 Jul 2025).
The proof-theoretic significance is immediate. Once unrestricted Cut is removed, proofs involve only subterms of the goal and of the axiom terms. This subterm property bounds the space of possible sequents and makes exhaustive proof search polynomially manageable. In that sense, partial cut elimination is not merely a metatheorem but the structural hinge connecting semantics, proof theory, and decision procedures.
5. Decision procedure under assumptions
The subtyping problem is formulated as follows: given a finite set of axioms
4
and a target inequality 5, decide whether 6 holds in all ortholattices with function symbols satisfying 7 (Guilloud et al., 14 Jul 2025).
The algorithm reduces provability in CFPlus to propositional Horn entailment. First, one constructs the set 8 of all sequents over annotated subterms that may appear in proofs, restricting attention to subterms of 9, 0, and the axiom terms. Because sequents are pairs of annotated subterms, 1, where 2 is the total size of the input formulas (Guilloud et al., 14 Jul 2025).
For each rule instance whose premises and conclusion lie in 3, a Horn clause of the form “conclusion 4 premises” is generated. AxiomCut contributes clauses parameterized by the finite axiom set. The number of clauses is
5
since there are at most 9 core rules plus one axiom-cut instance per axiom. The target sequent 6 is then decided by linear-time unit propagation for Horn clause satisfiability. Because Horn entailment is linear in the clause-set size, the overall complexity is 7 (Guilloud et al., 14 Jul 2025).
The significance of this reduction is twofold. First, it yields an efficiently decidable subtyping relation for a language including intersection, union, negation, and mixed-variance constructors. Second, the cost depends quadratically on formula size and linearly on the number of assumptions, rather than exhibiting the exponential behavior associated with distributive Boolean normalization. The framework therefore combines relatively expressive connectives with predictable proof search.
A representative example uses the function constructor 8, contravariant in its first argument and covariant in its second. To show
9
the Horn encoding reflects the premises required by the 0-rule: 1 for contravariance, relying on 2, and 3 by identity. Unit propagation then derives the target sequent (Guilloud et al., 14 Jul 2025).
6. Normalization and minimal canonical forms
The framework also provides a polynomial-time normalization procedure producing minimal canonical forms. A term 4 is minimal if there is no equivalent term 5 with strictly smaller size. A normalizer 6 must satisfy three conditions: 7, equivalence implies equality of normal forms, and 8 is minimal (Guilloud et al., 14 Jul 2025).
Normal forms are characterized inductively. Variables, 9, and 0 are normal. So are function applications 1 provided each argument is normal. For finite joins 2, every 3 must be normal, no 4 may be below another 5, and if any 6 is itself a meet, then no conjunct of that meet may already be below the whole join. Meets are characterized dually (Guilloud et al., 14 Jul 2025).
The algorithm is composed of four passes:
7
The 8 pass pushes negation inward to a pseudo-negation-normal form using De Morgan laws and double-negation elimination, while preserving function applications. For each function symbol 9, a symbol 0 is introduced that flips variance so that expressions of the form 1 can be treated uniformly after negation pushing (Guilloud et al., 14 Jul 2025).
The 2 pass performs local pruning inside joins and meets. In a disjunction, if a disjunct is a meet and some conjunct is already below the entire disjunction, that meet can be replaced by the conjunct, strictly shrinking the term. The 3 pass then performs antichain reduction, removing any disjunct subsumed by another; conjunctions are treated dually (Guilloud et al., 14 Jul 2025).
Finally, the 4 pass collapses evident tautologies and contradictions:
- 5 if 6 or 7;
- 8 if 9 or 00.
Because all required subtyping checks are confined to subterms of the input and can be discharged by the quadratic proof procedure, the full normalizer runs in 01 time and yields minimal canonical forms (Guilloud et al., 14 Jul 2025).
This normalization discipline is especially important in the presence of negation and non-distributivity. Rather than expanding terms into exponentially large DNF- or CNF-like representations, the algorithm preserves a compact canonical structure compatible with orthologic semantics.
7. Type-theoretic reading, examples, and comparative position
The framework is explicitly motivated by type systems with intersection, union, and negation in the presence of subtyping assumptions. Types are terms of free ortholattices with function symbols, and constructors receive variance declarations reflecting their intended subtyping behavior (Guilloud et al., 14 Jul 2025).
Several examples illustrate the interpretation. For records, each field label 02 can be modeled by a unary covariant constructor 03, and a multi-field record such as 04 is represented as 05. Width, depth, and permutation subtyping follow from ortholattice laws and constructor monotonicity. For instance,
06
and
07
by covariance in the field type position (Guilloud et al., 14 Jul 2025).
For function types, a binary constructor 08 is contravariant in its domain and covariant in its codomain. Thus, from 09 and 10, the calculus derives
11
For product types, a binary covariant constructor 12 gives the expected monotone behavior in both arguments. Negation types are interpreted ortholattice-theoretically: 13 means “not 14,” and De Morgan laws hold. Examples include 15 as a non-null type and 16 as the type of records without a bar field (Guilloud et al., 14 Jul 2025).
The framework also records non-derivability that would be forced by distributivity. For example,
17
is not provable in general. This is presented as consistent with practical intersection type systems where such conjunctive function subtyping fails. The point is methodological: the calculus captures monotonicity constraints exactly, without importing distributive principles that become unsound in richer constructor settings (Guilloud et al., 14 Jul 2025).
The comparison with Boolean algebra is explicit. Boolean entailment is coNP-complete, and Boolean normal forms can be exponentially larger. By contrast, orthologic retains involution, De Morgan duality, and complements while admitting quadratic algorithms for decision and normalization. The comparison with systems such as BCD, MLsub, and System F-sub is likewise framed around distributivity and constructor equations: many such systems adopt identities like 18 in restricted syntactic regimes, whereas orthologic with function symbols rejects these as generally unsound and instead supports open-world monotonic constructors with polynomial-time reasoning (Guilloud et al., 14 Jul 2025).
A common misconception is that the presence of negation should force fully Boolean behavior. In this framework, negation is orthocomplementation in an ortholattice, not classical Boolean complementation in a distributive lattice. Another is that proof-theoretic tractability requires eliminating assumptions or restricting constructors to pure covariance. The system shows the opposite: finite background assumptions are retained through AxiomCut, and mixed-variance constructors are incorporated directly, yet provability remains polynomial (Guilloud et al., 14 Jul 2025).