Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Minimization of second-order unifiers

Mathematical logicAlgebra

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

We know that first-order unification is decidable. More generally, if there exists a unifier for a first-order unification problem, then there exists a most general unifier.

I'm interested in the following generalization to second-order unification:

Given a second-order unification problem with a unifier σ\sigmaσ, when can we find a "most general generalization" of σ\sigmaσ?

Fix a second-order theory with a single base sort tm\mathrm{tm}tm and without equations. It consists of a collection of function symbols with second-order types. (More generally I'm interested in this question for free dependently-sorted second-order algebraic theories, i.e. dependent type theories without definitional equalities.)

For example we can consider the signature of unityped lambda calculus with two constants a,ba,ba,b:

  • app:tm→tm→tm\mathrm{app} : \mathrm{tm} \to \mathrm{tm} \to \mathrm{tm}app:tm→tm→tm

  • lam:(tm→tm)→tm\mathrm{lam} : (\mathrm{tm} → \mathrm{tm}) → \mathrm{tm}lam:(tm→tm)→tm

  • a:tma : \mathrm{tm}a:tm

  • b:tmb : \mathrm{tm}b:tm

Note that I only consider theories without equations, so the β\betaβ- and η\etaη-rules are not included in this signature.

A metacontext is a context whose variables (called metavariables) have first-order types.

A unification problem t≐ut \doteq ut≐u is a pair (t,u)(t,u)(t,u) of terms over a metacontext Γ\GammaΓ.

An unifier is a substitution σ:Δ→Γ\sigma : \Delta \to \Gammaσ:Δ→Γ such that t[σ]=u[σ]t[\sigma] = u[\sigma]t[σ]=u[σ], where Δ\DeltaΔ is also a metacontext.

I'd like to know if given an unifier σ:Δ→Γ\sigma : \Delta \to \Gammaσ:Δ→Γ, we can always find another unifier ρ:Θ→Γ\rho : \Theta → \Gammaρ:Θ→Γ such that σ\sigmaσ factors through ρ\rhoρ and every other such factorization of σ\sigmaσ factors through ρ\rhoρ.

Here are some examples:

Consider the unification problem P(a)≐Q(b)P(a) \doteq Q(b)P(a)≐Q(b) over the metacontext (P:tm→tm,Q:tm→tm)(P : \mathrm{tm} \to \mathrm{tm}, Q : \mathrm{tm} \to \mathrm{tm})(P:tm→tm,Q:tm→tm).

It has several unifiers. For instance σ1=[P:=x↦app(x,b),Q:=x↦app(a,x)]\sigma_{1} = [P := x \mapsto \mathrm{app}(x,b), Q := x \mapsto \mathrm{app}(a,x)]σ1​=[P:=x↦app(x,b),Q:=x↦app(a,x)] and σ2=[P:=x↦app(a,a),Q:=x↦app(a,a)]\sigma_{2} = [P := x \mapsto \mathrm{app}(a,a), Q := x \mapsto \mathrm{app}(a,a)]σ2​=[P:=x↦app(a,a),Q:=x↦app(a,a)] are two unifiers (both over the empty metacontext). The unifier σ3=[P:=x↦R(x,b),Q:=x↦R(a,x)]\sigma_{3} = [P := x \mapsto R(x,b), Q := x \mapsto R(a,x)]σ3​=[P:=x↦R(x,b),Q:=x↦R(a,x)] over the metacontext (R:tm→tm→tm)(R : \mathrm{tm} \to \mathrm{tm} \to \mathrm{tm})(R:tm→tm→tm) is a common generalization of σ1\sigma_{1}σ1​ and σ2\sigma_{2}σ2​, and should be the most general unifier of this unification problem.

Another example is the unification problem P(a)≐aP(a) \doteq aP(a)≐a over the metacontext (P:tm→tm)(P : \mathrm{tm} \to \mathrm{tm})(P:tm→tm). It has two incomparable unifiers [P:=x↦x][P := x \mapsto x][P:=x↦x] and [P:=x↦a][P := x \mapsto a][P:=x↦a]. Every other unifier should factor through one of these two.

We can also consider P(Q(a),b)≐bP(Q(a),b) \doteq bP(Q(a),b)≐b over (P:tm→tm,Q:tm→tm)(P : \mathrm{tm} \to \mathrm{tm}, Q : \mathrm{tm} \to \mathrm{tm})(P:tm→tm,Q:tm→tm). We have three unifiers σ1=[P:=(x,y)↦x,Q:=x↦b]\sigma_{1} = [P := (x,y) \mapsto x, Q := x \mapsto b]σ1​=[P:=(x,y)↦x,Q:=x↦b], σ2=[P:=(x,y)↦y,Q:=x↦R(x)]\sigma_{2} = [P := (x,y) \mapsto y, Q := x \mapsto R(x)]σ2​=[P:=(x,y)↦y,Q:=x↦R(x)] and σ3=[P:=(x,y)↦b,Q:=x↦R(x)]\sigma_{3} = [P := (x,y) \mapsto b, Q := x \mapsto R(x)]σ3​=[P:=(x,y)↦b,Q:=x↦R(x)]. I believe that every other unifier factors through one of these three.

I can also rephrase the question in category theory:

Let C\mathcal{C}C be a freely generated cartesian category with an exponentiable object. Given two maps f,g:Γ→Δf,g : \Gamma \to \Deltaf,g:Γ→Δ, an unifier of fff and ggg is a morphism ρ:Θ→Γ\rho : \Theta \to \Gammaρ:Θ→Γ such that f∘ρ=g∘ρf \circ \rho = g \circ \rhof∘ρ=g∘ρ.

Unifiers of fff and ggg form a category. The terminal object in this category, when it exists, is the equalizer of fff and ggg.

Then the question becomes: do all connected components of the category of unifiers have a terminal object?

Statement and context adapted from MathOverflow · Rafaël Bocquet

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Ordinal / order type
An ordinal describes the shape of a well-ordered set, rather than only its size. Infinite sets of equal cardinality can have different order types.

Topics : ct.category-theory · lo.logic · universal-algebra · type-theory

Authors listed by the source : Rafaël Bocquet

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : October 7, 2021

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni