arXiv:2610.27264cs.LOOct 2026

Manuscript Offprint

arXiv:2610.27264

Theorem prover Arend

Fedor Part, Valery Isaev, Sergey Sinchuk

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

This paper is an exposition of the theorem prover Arend developed at JetBrains Research. Arend language has been designed to facilitate the formalization of mathematics within the framework of univalent foundations and with the focus on constructive mathematics. It is based on a variant of homotopy type theory with cubical syntax that is more closely aligned with Martin-Löf Type Theory (MLTT) than fully computational cubical type theories, while still retaining some of their computational properties useful in practice. Among the most notable features of the Arend language is its powerful system of classes and records supporting subsumptive subtyping, partial implementations and anonymous extensions, which provides extensive flexibility for constructing hierarchies of definitions. Formalization in Arend is streamlined by the IntelliJ Arend plugin, which transforms IntelliJ IDEA into a full-fledged integrated development environment (IDE) for the Arend language. The main Arend library arend-lib includes formalizations in constructive algebra, topology and synthetic homotopy theory.

1 Introduction

Interactive theorem provers (ITPs) are software tools designed to assist in the creation, verification, and exploration of formal proofs by providing a rigorous framework for encoding and checking logical reasoning. They leverage formal systems, such as type theory or higher-order logic, to provide an interactive environment where users can encode theorems, construct proofs, and validate their correctness with absolute precision. By eliminating human error, ITPs have become invaluable not only in formalizing complex mathematical results but also in verifying the correctness of critical software and hardware systems, bridging the gap between pure mathematics and practical applications. Modern ITPs, such as Coq [9], Agda [43], Lean [15], and HOL-based systems like Isabelle/HOL [42] and HOL4 [53], are used both to verify algorithms and protocols and to formalize mathematics. Earlier milestones in mathematical formalization include the Four-Color Theorem [17] and the Feit–Thompson Theorem [18], both verified in Coq.

Recent Lean formalizations include the main theorem on liquid vector spaces (the Liquid Tensor Experiment) [56] and the polynomial Freiman–Ruzsa theorem in characteristic 2 [46]. AI-assisted formalization has also reached large mathematical developments: in September 2026, Anthropic released a complete Lean formalization of Fermat’s Last Theorem, produced with Claude agents and building on Mathlib, the Imperial College FLT project, and the formalization for regular primes [5]. In the same month, OpenAI released Lean formalizations of finite-time blowup for the three-dimensional Navier–Stokes equations with smooth forcing and for the unforced Euler equations [44]. Its October 2026 release contains over 700 mathematical manuscripts, grouped into 372 families; the accompanying repository reports that about 42% of its main results are formalized in Lean [45].

AlphaProof and Aristotle demonstrated automated proof search on formalized Olympiad problems [25, 1]. DeepSeek-Prover-V2 provides open models combining informal reasoning and Lean proof generation [47]. Leanstral targets proof development in existing Lean repositories [41]. In these systems, feedback from the prover guides proof search and revision, and completed proof terms are checked against the formal statements.

Central to many ITPs is dependent type theory, a formalism that unifies programs and proofs within a single framework. Systems like Coq, Lean and Agda, built upon the Calculus of Inductive Constructions (CIC) or Martin-Löf Type Theory (MLTT) [39], exemplify the power of dependent type theory in encoding rich mathematical structures and reasoning about them formally. Whereas Coq and Lean (based on CIC) do not particularly favor constructivism (Lean even has the axioms of choice and excluded middle built-in), Agda (based on MLTT) leans more towards constructive mathematics. HOL-based systems, rooted in classical higher-order logic, offer an alternative approach that is more familiar to traditional mathematicians and computer scientists. However, dependent type theories surpass HOL in expressiveness by allowing types to depend on values, enabling constructive reasoning with computational interpretations via term reductions, and unifying proofs and programs within a single framework, capabilities that HOL's classical framework lacks.

In the early 2000s, the fields of formalized mathematics and dependently typed languages — previously limited mostly to communities of computer scientists and logicians — began to draw significant attention from pure mathematicians. A pivotal moment in this shift was the formulation of Univalent Foundations (UF) of mathematics by Vladimir Voevodsky between 2006 and 2009 [59]. This new approach, inspired by the homotopy semantics of MLTT, interprets types as homotopy types 1^{1} rather than as sets [31]. In particular, the equality type a=Aba =_A b is interpreted as the type of paths between aa and bb in AA, for p,q:a=Abp, q : a =_A b, the type p=a=Abp =_a =_A b qq is the type of homotopies between pp and qq in AA, and so on. The homotopy semantics suggested that MLTT can serve as a basis for a formal system where the notion of a homotopy type is taken as primitive instead of the notion of a set. This led to formulation of Homotopy Type Theory (HoTT) as an extension of MLTT with univalence axiom ( A≅B)≅(A=B)A \cong B) \cong (A = B), which allows to identify two equivalent types, and higher inductive types, a certain generalization of inductive types allowing higher path constructors [57, Chapters 2 and 6].

The impact of HoTT/UF on formalization of mathematics is two-fold:

  1. Many standard constructions and theorems in homotopy theory can now be elegantly formalized using HoTT, where homotopy types serve as primitives rather than sets. This method, known as synthetic homotopy theory, utilizes the equality type to encapsulate complex homotopy structures [57, Chapter 8]. Set-theoretic versions of these formalizations tend to be more cumbersome. This synthetic approach not only simplifies the formalization of existing theories but also has the potential to reshape many areas of modern mathematics by adopting a higher categorical perspective over traditional set-theoretic approaches.

  2. HoTT/UF provides a framework for set-theoretic formalization where sets are homotopy types with trivial homotopy structure and propositions are sets with at most one element. One can do formalizations completely confined to this set theory fragment of HoTT. As such a framework HoTT/UF augments MLTT with a fair degree of extensionality:

(a) Quotients can be easily defined in HoTT using higher inductive types [57, Section 6.10]. Meanwhile quotients are notoriously hard to deal with in pure MLTT due to intensionality of equality [35].

(b) Univalence axiom implies propositional and function extensionality: any two equivalent propositions are equal and any two pointwise equal functions are equal [57, Sections 3.3 and 4.9].

(c) Univalence axiom implies structure identity principle: isomorphic structures (such as groups, topological spaces and so on) are equal [57, Section 9.8].

This approach can, in principle, be implemented using an ITP based on MLTT, such as Coq or Agda 2^{2}, by merely appending univalence and higher inductive types as axioms devoid of any computational content. However, this severely impairs the computational properties of MLTT, which are crucial for practical formalization efforts. Additionally, there are several other problematic issues stemming from the fact that these ITPs were not originally designed with native support for HoTT/UF. For example, the universe of propositions Prop in Coq or Agda does not correspond to the type of propositions as defined in HoTT/UF.

1^{1}The canonical geometric example of a homotopy type is a topological space up to weak homotopy equivalence. Other combinatorial examples include presheaves such as simplicial or cubical sets up to a suitable equivalence.

2^{2}An important caveat is that the ITP should not incorporate built-in features that contradict the univalence axiom. For instance, Lean is unsuitable for UF as it incorporates a strong form of the axiom of choice built-in.

Theorem prover Arend. The development of Arend began in 2015 at JetBrains Research with the goal of creating a modern ITP featuring native support for HoTT/UF. Its two principal components are the Arend language, which is based on a variant of MLTT specifically tailored to integrate seamlessly with HoTT/UF, and a suite of tooling provided by the Arend plugin for IntelliJ IDEA [6]. The key components of the Arend ITP are listed below. The language and command-line interface described here are those of Arend 1.12. 3^{3}

  1. Type theory. At the core of the type theory of Arend is the homotopy type theory with interval type (HoTT-I) [27, 28], formulated by Valery Isaev in 2014. It consists of two components:

(a) Variant of MLTT with the interval type: a minor, more extensional modification of MLTT that incorporates a primitive type I for the interval. The equality type (or path type) is defined in terms of I. Function extensionality is derivable and is fully computational in this theory. This setup gives rise to a variant of cubical syntax: n-dimensional homotopies in a type A are naturally represented in HoTT-I as functions In→A\mathbf{I}^n \to A.

(b) Univalence axiom: a form of univalence axiom, which is a built-in axiom with some computational rules.

The native support for HoTT/UF in the type theory of Arend is further amplified by the following extensions of HoTT-I:

(a) Inductive types with conditions. Using the primitive I, a path constructor can be defined simply as a constructor pcon(i : I) with an interval type parameter, or multiple parameters for higher-dimensional homotopies. The only difference with an ordinary constructor is that there could be conditions that dictate how pcon evaluates at the ends of the interval to other constructors: pcon left ⇒\Rightarrow con 1_{1}, pcon right ⇒\Rightarrow con 2_{2}. In particular, it implies con 1_{1} = con 2_{2} but does not lead to contradictions as in the case of standard inductive types in MLTT, thanks to a modified elimination principle that requires the preservation of conditions. This provides support for higher inductive types and, in particular, quotients with computational behavior [61].

(b) Universes Prop and Set matching h-propositions and h-sets. Arend incorporates an impredicative universe Prop that captures the logic of h-propositions and a predicative hierarchy of universes Set 0⊂Set 1⊂…0 \subset \text{Set } 1 \subset \ldots for h-sets. The universes Prop and Set provide a syntactic framework that facilitates working within the set theory domain, akin to the elementary topos of h-sets, and distinctively delineate the set-level aspect of the type theory from the higher levels, ensuring that set-theoretic formalization is confined strictly to the subtheory prescribed by these universes.

(c) Universes stratified by homotopy level. Alongside predicative universe polymorphism, Arend provides universes of propositions, sets and higher types. A definition can be placed in the appropriate universe using a proof of its homotopy level. In Arend 1.12 homotopy levels are constants, not polymorphic parameters; cumulativity allows a type to be used at a higher homotopy level.

The above outlines the core fragment of Arend's type theory as it relates to HoTT/UF. Its key properties include:

(a) Computational behavior. Unlike MLTT augmented merely with axioms for univalence and higher inductive types, Arend's type theory includes a number of computational reduction rules for involved terms, which prove crucial for practical usage. However, it lacks sufficient computational rules to render the theory fully computational: the MLTT property that every closed term of type Nat evaluates to a canonical number does not hold in Arend. The core theory of Arend represents one of the earliest and simplest forms of cubical type theory, in which the interval still functions as an ordinary type. Later cubical type theories make univalence derivable and recover canonicality by adding a language of dimensions and faces together with uniform Kan composition [12, 24];

3^{3}The checks reported here use source revision 3adf367b9c0b of https://github.com/arend-lang/Arend.

some Cartesian variants additionally separate fibrant and non-fibrant types [4]. This machinery is substantially more elaborate than the coe/iso interface of HoTT-I; see Section 2.5. The type theory of Arend could potentially be adjusted to enhance its computational aspects, but practical experiences in formalization have not demonstrated a significant need for such enhancements.

(b) Constructivity. The type theory of Arend is inherently constructive. In its core theory, the law of excluded middle does not hold, and the axiom of choice is valid only in the form of unique choice. While the axioms of classical logic can be consistently added and utilized in libraries, the main Arend library, arend-lib, is dedicated to constructive mathematics, and no standard metas utilize any classical axioms.

Finally, the type theory of Arend includes the following extensions, which are of significant practical importance for formalization and yet are not present in Coq, Lean, or Agda:

(a) Records with partial implementations and anonymous extensions. In Arend, type classes and records support multiple inheritance with partial implementations. Specifically, if record DD extends record CC, it is possible to implement an arbitrary subset of CC's fields within DD. For instance, for a field ff of CC, its extension DD may include an expression f⇒af \Rightarrow a that specifies a value aa for ff. This flexibility blurs the traditional distinction between parameters and fields in classes and records, enabling more versatile hierarchical structure development. Additionally, Arend allows for the creation of records and classes on-the-fly as an anonymous extension, denoted as C{f1⇒a1,…,fk⇒ak}C\{f_1 \Rightarrow a_1, \ldots, f_k \Rightarrow a_k\}. This feature facilitates dynamic customization of types without the need to define fully specified new classes or records, thus enhancing modularity and reusability.

(b) Array types. Arend introduces a specialized type for arrays, denoted as Array A, where A : Type. This type encompasses several concepts including the type of lists of elements of type A, the type of vectors of elements of type A of fixed length n and the type Fin n → A of functions from a finite set of cardinality n to A. The type Array is a record with fields A : Type, len : Nat and at : Fin len → A. The anonymous extension Array A describes arrays of various lengths with elements of type A, and the extension Array An specifies arrays of a fixed length n. A crucial feature of the array type in Arend is its computational extensionality: if two arrays of equal length are elementwise computationally identical, then they are considered computationally equivalent as entire structures.

  1. Proof terms. In Arend, proof terms do not need to be fully detailed. Users can take advantage of the “inference of implicit arguments” mechanism, which allows them to omit some arguments in expressions (more concretely, the ones that can be inferred via the “inference of implicit arguments mechanism” built into the Arend type checker). Additionally, users can employ metas such as rewrite to construct particularly complicated parts of expressions. Metas should be seen as “expression-level tactics”, meaning they can be seamlessly interwoven with standard Arend term constructs. In other words, unlike Coq, Arend does not have separate “proof” and “term” levels – everything (including proofs) in Arend happens on the “term” level.

  2. IntelliJ IDEA plugin. The easiest way to use Arend is through the tooling provided by the Arend plugin for IntelliJ IDEA. IntelliJ IDEA, developed by JetBrains, is a versatile IDE with intelligent code assistance, robust refactoring tools, and seamless integration with languages like Java, Kotlin, and Python. It has a variety of built-in tools for version control, debugging and testing.

Arend plugin supports the following functionality:

(a) Incremental type checking. Under normal circumstances the Arend plugin uses the so-called “on-the-fly” (or smart) mode of type checking. In this mode, the type checker operates in a background thread, automatically reprocessing each code modification made by the user.

(b) Arend Messages tool window. The Arend Messages tool window serves as the primary interactive element in Arend, providing essential insight into proof goals, expected types, and error notifications. While writing terms the user can insert hole expressions {?}\{?\} for arbitrary subterms, which would introduce goals shown in Arend Messages. This allows for a convenient way of writing proof terms by gradually breaking down the original proof goal into several subgoals.

(c) Editor features. The Arend editor supports a variety of features that greatly simplify working with Arend code such as: auto-completion of identifiers; quick fixes for Arend errors; intention actions such as adding missing clauses in pattern matching; refactorings such as handling consequences of changing signatures of definitions or moving definitions; navigation tools such as Go to Declaration or Find Usages; quick documentation popups supporting LaTex; parameter hint tooltip which can be invoked in application expressions.

(d) Debugger for metas.

Arend CLI and LLM-assisted formalization. Besides the IDE plugin, Arend provides a command-line interface exposing the type checker and several library retrieval tools. This makes it possible to use Arend together with AI coding agents such as Claude Code; a collection of ready-made agent skills for Arend formalization is also available (see Section 5).

The library arend-lib. The main Arend library arend-lib covers three broad areas. Its main developments are constructive; results using excluded middle or choice are separated into modules that explicitly assume these principles.

  1. Constructive mathematics. This is the main part of the library. The mathematical landscape in the constructive setting is richer than in the classical setting since classically equivalent definitions often become inequivalent constructively.

This part contains the following: schemes via locally ringed locales; principal ideal domains and the proof that they are 1-dimensional Smith domains; splitting fields of polynomials and algebraic closure for countable, decidable fields; constructive forms of the Fundamental Theorem of Algebra, including Richman's root-multiset construction and algebraic closedness of the algebraic numbers; connection between zero-dimensional and integral extensions; matrices over commutative rings, determinants, characteristic polynomials, Cayley-Hamilton theorem; linear algebra over Smith domains; integral ring extensions; polynomials over one or several variables; Nakayama's lemma; derivative over topological rings; directed limits for sequences and functions; series and power series; natural, integer, rational, real and complex numbers and various structures on them; categories, functors, adjoint functors, Kan extensions, (co)limits; elementary topoi and Grothendieck topoi; topological spaces, locales, uniform and cover spaces, and their completions.

The main references are the books [40, 36], Richman's constructive FTA [49], and Isaev's paper on constructive complete spaces [29].

  1. Synthetic homotopy theory. All of the synthetic homotopy theory of the HoTT Book [57] has been formalized in arend-lib, partly with AI assistance. It includes pointed types, loop spaces and homotopy groups; spheres, suspensions, joins and pushouts; truncations and connectedness; the fundamental group of the circle; the Hopf fibration and long exact sequences; the Freudenthal, van Kampen and Whitehead theorems; Eilenberg–MacLane spaces K1(G)K_{1}(G); localizations, modalities and the generalized Blakers–Massey theorem (Section 6.2.1).

  2. Computer science. This part includes abstract reduction systems, confluence and termination, higher-order term rewriting with the λ\lambda-calculus as an example, modularity of confluence, and first-order algebraic theories with their models and free models.

Future directions. So far, developments in synthetic homotopy theory in HoTT have been limited. One reason is that types in HoTT are necessarily ∞\infty-groupoids, a special kind of ∞\infty-categories where all morphisms are invertible. This is because equality is symmetric. Attempts to define more general ∞\infty-categorical structures in terms of ∞\infty-groupoids in HoTT have led to the still-open question of definability of (semi-)simplicial types in HoTT[33]. Recently, proposals for directed HoTT [11, 19], where types are ∞\infty-categories, have emerged. Future versions of Arend are expected to support a variant of directed HoTT.

The structure of this paper. Section 2 introduces HoTT-I and Arend's extensions, explains their use in set-theoretic formalization and synthetic homotopy theory, and compares their computational behavior with other cubical type theories, including open problems concerning additional computation rules. Section 3 presents universe polymorphism, classes and records, and arrays through code examples. Section 4 describes the IntelliJ IDEA plugin's type checking, editing, navigation and refactoring tools. Section 5 explains how the Arend CLI supports LLM-assisted formalization with Claude Code. Section 6 surveys arend-lib, focusing on constructive category theory, topology and algebra, followed by synthetic homotopy theory and further topics.

References (34)