Papers
Topics
Authors
Recent
Search
2000 character limit reached

Orthologic with Function Symbols

Updated 6 July 2026
  • 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 O(n2(1+m))O(n^2(1+m)) decision procedure for provability under mm assumptions together with an O(n2)O(n^2) 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 \land and \lor, unary orthocomplement ¬\neg, and constants \bot and \top. Terms are built from variables, constants, these connectives, and, in the extended setting, function symbols. Subtyping is the lattice order: xyx \le y iff x=xyx = x \land y, equivalently mm0 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 mm1 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 mm2, union types by mm3, and negation types by mm4. Subtyping mm5 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 mm6, where mm7 arguments are invariant, mm8 are monotone (covariant), and mm9 are antimonotone (contravariant). Arguments are grouped as O(n2)O(n^2)0 for invariants, O(n2)O(n^2)1 for covariants, and O(n2)O(n^2)2 for contravariants (Guilloud et al., 14 Jul 2025).

The governing law is monotonicity with variance:

O(n2)O(n^2)3

An equivalent equational form is

O(n2)O(n^2)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 O(n2)O(n^2)5 and O(n2)O(n^2)6, one derives O(n2)O(n^2)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 O(n2)O(n^2)8 or O(n2)O(n^2)9, and a sequent is an unordered pair of annotated terms. The baseline system includes identity, \land0-left and \land1-right axioms, introduction rules for \land2, \land3, and \land4, 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 \land5 from \land6, whereas RightAnd derives \land7 from both \land8 and \land9. Negation switches polarity:

\lor0

Replace encodes weakening and contraction in this restricted setting:

\lor1

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 \lor2, one derives

\lor3

from premises expressing equality on invariant arguments, monotone order on covariant arguments, and reversed order on contravariant arguments. Thus, each invariant \lor4 requires both \lor5 and \lor6; each covariant \lor7 requires \lor8; and each contravariant \lor9 requires ¬\neg0 (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:

¬\neg1

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 ¬\neg2 is distributed to cuts on the corresponding argument premises according to variance, after which the ¬\neg3-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

¬\neg4

and a target inequality ¬\neg5, decide whether ¬\neg6 holds in all ortholattices with function symbols satisfying ¬\neg7 (Guilloud et al., 14 Jul 2025).

The algorithm reduces provability in CFPlus to propositional Horn entailment. First, one constructs the set ¬\neg8 of all sequents over annotated subterms that may appear in proofs, restricting attention to subterms of ¬\neg9, \bot0, and the axiom terms. Because sequents are pairs of annotated subterms, \bot1, where \bot2 is the total size of the input formulas (Guilloud et al., 14 Jul 2025).

For each rule instance whose premises and conclusion lie in \bot3, a Horn clause of the form “conclusion \bot4 premises” is generated. AxiomCut contributes clauses parameterized by the finite axiom set. The number of clauses is

\bot5

since there are at most 9 core rules plus one axiom-cut instance per axiom. The target sequent \bot6 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 \bot7 (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 \bot8, contravariant in its first argument and covariant in its second. To show

\bot9

the Horn encoding reflects the premises required by the \top0-rule: \top1 for contravariance, relying on \top2, and \top3 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 \top4 is minimal if there is no equivalent term \top5 with strictly smaller size. A normalizer \top6 must satisfy three conditions: \top7, equivalence implies equality of normal forms, and \top8 is minimal (Guilloud et al., 14 Jul 2025).

Normal forms are characterized inductively. Variables, \top9, and xyx \le y0 are normal. So are function applications xyx \le y1 provided each argument is normal. For finite joins xyx \le y2, every xyx \le y3 must be normal, no xyx \le y4 may be below another xyx \le y5, and if any xyx \le y6 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:

xyx \le y7

The xyx \le y8 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 xyx \le y9, a symbol x=xyx = x \land y0 is introduced that flips variance so that expressions of the form x=xyx = x \land y1 can be treated uniformly after negation pushing (Guilloud et al., 14 Jul 2025).

The x=xyx = x \land y2 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 x=xyx = x \land y3 pass then performs antichain reduction, removing any disjunct subsumed by another; conjunctions are treated dually (Guilloud et al., 14 Jul 2025).

Finally, the x=xyx = x \land y4 pass collapses evident tautologies and contradictions:

  • x=xyx = x \land y5 if x=xyx = x \land y6 or x=xyx = x \land y7;
  • x=xyx = x \land y8 if x=xyx = x \land y9 or mm00.

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 mm01 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 mm02 can be modeled by a unary covariant constructor mm03, and a multi-field record such as mm04 is represented as mm05. Width, depth, and permutation subtyping follow from ortholattice laws and constructor monotonicity. For instance,

mm06

and

mm07

by covariance in the field type position (Guilloud et al., 14 Jul 2025).

For function types, a binary constructor mm08 is contravariant in its domain and covariant in its codomain. Thus, from mm09 and mm10, the calculus derives

mm11

For product types, a binary covariant constructor mm12 gives the expected monotone behavior in both arguments. Negation types are interpreted ortholattice-theoretically: mm13 means “not mm14,” and De Morgan laws hold. Examples include mm15 as a non-null type and mm16 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,

mm17

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 mm18 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).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Orthologic with Function Symbols.