Thursday, November 26, 2026

Mathematics and AI: Women Building the Future

I recently wrote an opinion piece for the Committee for Women in Mathematics (CWM) of the International Mathematical Union, entitled Formalizing Mathematics and Making Its Women Visible. It was my first opinion piece ever (and my friends know that I'm very opionated!). It gave me an opportunity to reflect on two developments that I care deeply about: the changing relationship between mathematics and artificial intelligence, and the need to make women's mathematical contributions more visible.

The two questions may seem unrelated. I don't think they are.

For a long time, formalized mathematics was regarded by many working mathematicians as a rather specialized activity, something for logicians and computer scientists, rather than part of everyday mathematical research. Proof assistants were impressive, certainly, but learning to use them required considerable effort, and it wasn't always clear what mathematicians would gain from doing so.

Artificial intelligence is changing this discussion at lightspeed. We now have machines that can produce convincing mathematical arguments, suggest proofs, explain concepts, and sometimes solve difficult problems seemingly on their own. But convincing mathematical prose is not necessarily correct mathematics. The better machines become at generating plausible arguments, the more important it becomes to have reliable ways of checking them.

This is one reason why I believe that formalization matters more now than it did ten years ago, even two years ago. We need the precision of formal systems, but we also need the flexibility of ordinary mathematical language. Mathematicians do not communicate by exchanging fully formal proofs. We use examples, analogies, diagrams, implicit assumptions, and sometimes deliberately ambiguous language while trying to understand a problem or its solutions.

My hope is that AI can help us bridge these two worlds, rather than forcing us to choose between them. The 2024 Hausdorff trimester Prospects of Formal Mathematics, which I helped organize in Bonn (with Kevin Buzzard, Jacques Carette, Michael Kohlhase and Josef Urban), made these questions particularly vivid. It brought together people from mathematical communities that do not always talk to one another: researchers developing proof assistants, mathematicians formalizing substantial results, people working on mathematical libraries, and researchers interested in AI for mathematics.

It also provided the setting for the workshop Women in Formal Mathematics, organized with Sandra Alves and EuroProofNet-Women. For me, this was not simply an exercise in increasing visibility, although visibility matters. It was about recognizing that women are already doing important technical work in formal mathematics, and that their contributions should help determine how the field develops.

Formal mathematics is still building its infrastructure, its research culture, and its criteria for what constitutes valuable work. Who gets credit for constructing libraries? Who decides which mathematics is worth formalizing? How do we value the work of making mathematical knowledge accessible and reusable? And who gets to participate in making these decisions?

These are mathematical questions, but they are also questions about the kind of mathematical community we want to have. I am hopeful about the possibilities of AI for mathematics, but I am skeptical of grand claims about machines replacing mathematicians. And even more skeptical about big tech being the arbiter of what mathematics gets produced. Mathematical research is not simply the production of correct proofs. It involves choosing interesting questions, developing concepts, understanding connections, building new world models and explaining why a result matters.

The arrival of powerful AI tools should be an opportunity to think more carefully about these activities, not to abandon them. And as we develop new mathematical tools and new ways of working, we should make sure that the women contributing to this transformation are neither overlooked nor written out of its history, as they have often been before.

That is the connection I wanted to make in my CWM piece: the future of mathematics is not just about what machines will be able to do. It is also about what we, as a mathematical community, decide to build together.

This is me speaking at Women in Logic July 2026 about mathematics, artificial intelligence, and the importance of ensuring that women help shape the future of mathematical research. 

Monday, October 19, 2026

Lab Notes? what and why


Some unfinished business with Dialectica categories

I've recently put two Lab notes in my Drafts repository, both about extending Dialectica constructions beyond their usual setting. Neither is meant as a research paper, at least not in its present form. So why write them, and why make them public? Part of the answer is that mathematical research produces more than papers. We make calculations, test examples, revisit old assumptions, and sometimes discover that things we expected to work simply don't. Much of this disappears into notebooks, files and conversations with colleagues, but some of it is worth keeping, especially when it concerns questions that have been around for a long time. These two notes are about such questions.

Dialectica categories come from Gödel's functional interpretation of arithmetic. In my thesis I described a categorical construction whose objects are triples: an object of witnesses, an object of counterexamples, and a subobject of their product, a relation telling us when a witness stands up to a counterexample. Over any cartesian closed category this gives models of linear logic, and a categorical account of much of the structure implicit in Gödel's interpretation.

But there are choices hidden in this description. Why should relations be subobjects? And why should the base category be cartesian closed? The two Lab notes take up these questions one at a time.

Two ways of generalizing Dialectica

The first note, Dialectica categories without subobjects, changes the notion of relation. Instead of a subobject of the product of witnesses and counterexamples, we take a map from that product into an object of truth values L. The object L is a lineale, an ordered algebraic structure with just the operations needed to interpret linear logic. Ordinary true-or-false relations are one possibility among many: by changing the lineale we can have relations valued in the natural numbers, in the integers, or in other algebraic structures. A commutative group ordered by equality is already a lineale, and then the conditions on morphisms become equations.

This is not a new idea. Reading relations as maps into truth values is an old observation, and for the Girard variant of the construction the lineale-valued calculations were published long ago, in the Multirelations technical report and in my 2006 article comparing Dialectica and Chu. For the original construction, though, they were never written down anywhere public. The note does exactly that, modality included.

The second note, Dialectica Constructions over Monoidal Bases, changes something else. It keeps the lineale-valued relations of the first note, but replaces the cartesian closed base with a symmetric monoidal closed category with products. Our reason for wanting this was vector spaces. Lafont and Streicher showed that finite-dimensional vector spaces sit beautifully inside the Chu construction, and we wanted the same for Dialectica.

Over a monoidal base, copying and discarding are no longer available for free, as they are in a cartesian category. The Dialectica construction uses witnesses in ways that need exactly these operations, so the note makes the comonoid structure on witnesses explicit. The tensor of two dialectica objects then uses the monoidal tensor on witnesses and the real product on counterexamples, and the note works out the rest of the connectives with their coherence. Graded sets, that is, sets where every element has a size, provide a happy example, modality included: the tensor adds sizes, just as generating functions multiply.

Vector spaces, however, are much less cooperative. The construction can be carried out over them, but with lineale-valued relations the tensor and the product coincide, and the distinction between them is one linear logic cannot do without. Going back to subspaces as relations keeps the two apart, but then I haven't found an internal hom. This is especially interesting because Chu constructions work so well with vector spaces. The two constructions, often presented as close cousins, behave quite differently here. I don't think this shows that Dialectica cannot give interesting categories of vector spaces, but it does show that the obvious approaches are not enough, and that is worth knowing.

Why not papers?

A research paper is usually expected to present a substantial new result, explain its significance, and place it within a developed argument. These notes have a different purpose. Their positive results are expected, even if the calculations had never been written down, and their negative results leave us with questions rather than a satisfying alternative construction. Doing everything that could be done around them would turn a fairly straightforward investigation into a much larger project, without making its central observations more useful. I would rather have the calculations available now than wait for a paper that may never be written.

This matters most for negative results. When an approach fails, we tend not to publish it, and then someone else spends months rediscovering the same obstruction. A failed construction is not an impossibility theorem, of course, but knowing exactly where it gets stuck can save other people a lot of time.

Why are these notes needed?

We have many categorical constructions that produce models of logic, but we don't always understand their range as well as we should. We know the standard examples and the general theorems, and the space between them is often surprisingly unexplored. What happens when we change the notion of relation, or the base category? Which assumptions are essential, and which are merely convenient? Which logical operations survive the change?

These questions matter particularly for Dialectica constructions because of their origins in proof interpretation. The distinction between witnesses and counterexamples is not decoration: it carries logical information, and changing the surrounding categorical structure shows which parts of that information really matter. The notes are small contributions to this larger map. They settle a few calculations, expose some hidden assumptions, and leave questions open. Not everything needs to become a journal paper to be useful, and perhaps by making these investigations public we make it easier for someone to find the vector-space construction we haven't found yet.


Tuesday, October 13, 2026

Ada Lovelace Day 2026: Fatima Lawvere

Ada Lovelace Day is an occasion to celebrate women in mathematics, science, and technology, especially those whose contributions have not received the recognition they deserve. Today I want to remember Fatima Fenaroli Lawvere, who recently passed away, and a class of women whose contributions are too often overlooked: those who work tirelessly to support and preserve the mathematical work of their husbands.

I learned of Fatima's death through a moving message sent by Posina to the Categories mailing list. I am grateful to him for writing it, and for reminding us how much we owe her. I also want to thank Anders Kock, who provided the only photograph of Fatima that I could find, and whose presentation at the 2023 meeting dedicated to Bill Lawvere offers some wonderful testimony about her contributions.

I had some personal experience of Fatima's work behind the scenes. On several occasions when I tried to contact Bill Lawvere, it was Fatima who replied to my messages. At the time, this seemed simply the way things worked. Looking back, I realize how much she did to sustain Bill's mathematical life and his connections with the community.

Fatima Lawvere was much more than the wife of F. William Lawvere, one of the forefathers of category theory. Posina describes her as "a pedagogical revolution personified." She attended Bill's lectures, asked questions, and contributed to the development of the approach that eventually became Conceptual Mathematics: A First Introduction to Categories, by Lawvere and Stephen Schanuel.

Anders Kock quotes Bill Lawvere's recollections of working with Schanuel late into the night, sometimes laughing at the discovery of unexpectedly simple proofs. Bill remembered that Fatima could hear them laughing, and that the following morning she would type the notes he had left on her table. There is something both delightful and revealing about this image: the mathematicians laughing over their discoveries, and Fatima making sure those discoveries became written mathematics.

But her role went much further. Their son Danilo recalls that she ensured that Bill went to conferences with notes or drafts, that deadlines were met, letters answered, and extensive lecture notes preserved. He also says that Conceptual Mathematics was partly conceived by Fatima and that she was the driving force behind its completion and publication. Throughout the years, Fatima worked to preserve Bill's mathematical legacy. The Lawvere Archives are an extraordinary resource, making lectures, manuscripts, articles, and ideas spanning decades of research available to future generations. 

This kind of work is rarely counted as a mathematical contribution. It doesn't produce theorems with one's name attached, or necessarily lead to papers, citations, or prizes. But without it, important parts of our mathematical history simply disappear. There is a long history of women whose intellectual and practical work has sustained the careers of celebrated men: collaborators, editors, translators, organizers, guardians of archives. Their contributions are difficult to measure, and consequently easy to forget.

I don't want to suggest that this is the role women should play in mathematics. Quite the contrary. We have fought for generations for women to have mathematical careers of their own and receive recognition for their discoveries. But that struggle should not make us forget the women whose contributions took other forms.

Making mathematics accessible and preserving mathematical knowledge are themselves valuable intellectual achievements.

Fatima Lawvere deserves to be remembered for what she did. On this Ada Lovelace Day, I want to thank her for her work, her persistence, and her generosity to the mathematical community.


The Lawvere Archives: https://lawverearchives.com/

F. William Lawvere and Stephen H. Schanuel, Conceptual Mathematics: A First Introduction to Categories.

Anders Kock, presentation at the 2023 meeting dedicated to F. William Lawvere, quoting Lawvere's 2014 obituary for Stephen Schanuel and recollections by Danilo Lawvere.

Thursday, September 17, 2026

Partial Compilers and Problems

  

[with apologies to xkcd for copying the style and not being so good] 

A compiler does not always have to do everything in one go.

A compiler pass might take a program, simplify it, lower it to another representation, split a computation between machines, or choose a different representation — and then hand the result to another compiler. The second compiler does another piece of the job, and eventually something produces the final target program. This is the idea behind a partial compiler.

But there is an interesting question that the usual description leaves out:

How do we know that a compiler pass has not introduced an error?

There is a surprisingly simple answer. Put back something that the original definition threw away.

A compiler that leaves the job unfinished

A partial compiler takes a source program and produces a reduced source program. But it also has to remember enough information to put the final answer back together.

Schematically, we can think of a partial compiler as having two parts:

  • a way to reduce the source;

  • a way to assemble the final target from the original source and whatever comes back from the next compiler.

The second part is important. If I take something out of a program in the first pass, I may need the original program again when I assemble the final result.

This is exactly the shape studied by Budiu, Galenson and Plotkin in their work on the Compiler Forest. Partial compilers can be composed: one pass hands its reduced program to the next, and the results are assembled in the reverse order. There is already a beautiful mathematical structure here. Partial compilers form a category. And there is an even older mathematical structure hiding underneath.

This looks  like Dialectica

In the Dialectica interpretation, an object consists roughly of two kinds of things:

witnesses and counterexamples.

A witness is proposed evidence that something is true. A counterexample is a challenge to that evidence.

A Dialectica morphism has exactly the same two pieces of data as a partial compiler:

  • something going forward, turning one witness into another;

  • something going backward, turning a challenge to the output into a challenge to the input.

The backward map is allowed to depend on the original witness. This is precisely what a partial compiler needs when it has to remember the source while reconstructing the target. So a partial compiler is not merely similar to a Dialectica morphism.

It is a Dialectica morphism with one important thing missing: the relation.

This identification is not new.  The authors of the Compiler Forest work themselves connect their construction with Dialectica through Blass's questions and answers and Milner's tactics. I also pointed it out in a talk on partial compilers and Dialectica spaces in 2011.

What is interesting and new is what happens when we stop throwing the relation away.

Put the counterexamples back

Suppose that for every source program S and target program T we have a relation saying that T is a bad implementation of S. Then a compiler pass is correct when it respects that relation. What does that mean?

Suppose the pass turns S into a smaller source f(S). Later, another compiler produces a target for f(S), and our pass uses that target to assemble a final target T for S. If T is wrong for S, then the target that came back from the next compiler must already have been wrong for f(S).

In other words: the pass itself has introduced no new errors.

That is exactly the Dialectica morphism condition, once we read the relation as a relation of refutations rather than as a relation saying that something is correct. And this gives a rather pleasant interpretation of the categorical composition.

A stack of compiler passes does not need a new correctness proof for the composite. Instead, take the specification at the end and push it backwards through the passes, one pass at a time. The specification that arrives at one pass tells us exactly what that pass has to guarantee.

This is a weakest-precondition calculation, but with the program running in two directions: witnesses move forward and counterexamples move backward.

Why "counterexample" rather than "correctness"?

There is a small but important subtlety here. One could have defined the relation the other way around: perhaps α(S,T) says that T is a correct implementation of S.

But then the direction of the Dialectica condition is wrong for what we want from a compiler. The useful reading is asymmetric:

the source is what we are trying to implement; the target is what can refute the implementation.

That is why counterexamples travel backwards. There is something rather satisfying about this. Correctness is not extra information that a compiler has to carry around. The compiler already has its two pieces of data.

The relation is a specification against which those pieces can be checked. A compiler either satisfies it or it doesn't.

Something unexpected happens: copying

Once we have the relation back, we can ask questions that are difficult to see in the original compiler description. One of them is:

Can a compiler duplicate its source?

This turns out not to be a question about the source. It is a question about the target type.

To copy something in the Dialectica category, the target has to know how to combine two copies into one. In mathematical language, it needs a suitable commutative monoid structure.

This makes visible the reason for a phenomenon reported in the Compiler Forest work. If compile-time effects are moved inside the construction, one might expect to get another category. But composition is no longer associative.

The Dialectica analysis explains why. The source appears in both the reduction and the generation part of a partial compiler. In effect, it is being used twice. Copying is free in a cartesian world.

It is not free in general.

The target type has to be able to absorb those two copies. A single outer monad can restore the situation because it keeps the effect outside this copying problem. So a categorical question about whether composition is associative turns out to have a very concrete interpretation:

Can this kind of target be copied?

What about cost?

The same construction also lets us replace ordinary truth values by quantitative ones. Instead of saying simply

this target is a counterexample

we can assign a value measuring how far a target is from being wrong: the slack left under a bound on size, running time, register pressure, or another resource. The natural example is the Lawvere quantale, where the monoidal operation is addition and the order is reversed, so that 0 means outright failure and ∞ means no failure at all. The value has to be the slack rather than the cost itself, because cost in its usual order does not give a lineale.

Then the Dialectica relation becomes a cost model with a guarantee in it. If the final target has to fit under a bound B, and the next compiler is held to a bound B′, the condition says the pass adds at most B − B′. And, just as before, specifications can be pushed backwards through a stack of compiler passes, so the bound each pass must meet is computed rather than guessed.

There is another nice coincidence here.

When a compiler is lifted from individual sources to lists of sources, the specification for a list can be obtained simply by combining the specifications of its elements.

For costs, that means adding them. So the same mathematical operation — the monoidal structure — appears on opposite sides of the relation. On the target side, it describes how targets can be assembled or copied. On the specification side, it describes how costs can be aggregated.

From verified compilers to a type of verified compilers

There is one more step that I find particularly intriguing.

Suppose we do not want to say merely that a compiler has a specification. We want to restrict its source type to the sources for which the specification is actually satisfied. Then we are no longer talking about a class of programs carrying a side condition. We are constructing a new object consisting only of the sources that meet the condition.

In categorical language, this is a comprehension construction, and in the paper it leads to a proposed object of verified partial compilers. The idea is that the verified compilers themselves should form a type. There is even a natural adjunction suggested by this construction: a function-space-like object of verified partial compilers should be right adjoint to product with the source problem.


What I like about this story

The original partial compilers were motivated by a very concrete problem: compiling programs in stages and assembling the pieces later.

The mathematical construction reveals that the same pattern occurs in several places. A problem can be reduced to another problem and a solution can be assembled from a solution of the reduced problem. That is Kolmogorov's interpretation of intuitionistic logic as a calculus of problems. It is also the shape of Milner's tactics: reduce a goal to subgoals, then assemble a proof from their solutions. And it is the shape of a partial compiler.

Dialectica categories provide a common mathematical language for all of these.

The striking point for me is not that we can redescribe compilers categorically. It is that restoring the relation gives us things that were invisible when the relation was discarded:

  1. correctness,
  2. a criterion for copying,
  3. quantitative cost,
  4. and potentially a type of verified partial compilers.

None of this requires changing the compiler. The passes are the same passes. The composition is the same composition. The extra ingredient is simply the relation that says what counts as a counterexample.

So perhaps the moral is a very small one:

Sometimes the most useful information is precisely the information that was thrown away.

But another useful one is the (not-quite-ready) preprint. 

PS: I'm glad I said not-quite-ready yet, as I did get the order on the Lawvere quantale wrong in the first version of this post, once again. I hope this is now correct. 

Polynomials with Predicate: a Dialectica reading

I have just put up a new preprint, Polynomials with Predicates: a Dialectica Reading. It started from a fairly simple observation: if you take a Dialectica object and forget its predicate, what remains looks very much like a polynomial.

But the more I looked at the comparison, the more I thought the interesting story was actually the other way around.

Polynomial functors give us a useful language for seeing the shape of structures that Dialectica has been carrying for a long time. They do not replace the Dialectica construction, because they forget precisely the part that makes it logical: the predicate saying which witnesses withstand which challenges.

And the comparison becomes particularly interesting when we look at dependence and sequencing.

Witnesses, challenges, and shape

A Dialectica object consists of witnesses, challenges, and a relation saying which witness withstands which challenge. There is an obvious interaction pattern here. A witness is chosen; a challenge is presented; and the predicate tells us whether the witness withstands the challenge.

If we forget the predicate, the witnesses become the positions of a polynomial and the challenges become its directions. For the Gödel Dialectica construction, the forward map on witnesses and witness-dependent backward map on challenges are exactly the data of a morphism between the corresponding monomials. So a kind of polynomial is, in this sense, the shape of a Dialectica object.

It records who chooses what and what may depend on what. It does not record whether the resulting interaction succeeds. That distinction is important throughout the paper.

 

A familiar collection of connectives

Once we look only at the shape, most of the polynomial operations on monomials line up with Dialectica linear logic connectives. But this is not a correspondence that starts with the recent polynomial literature.

The main Dialectica connectives go back to the original Dialectica construction in the late 1980s. The ordinary tensor, additive conjunction, and implication already appear there, together with their characteristic witness/challenge asymmetry.

Then, in 1993, Blass introduced another tensor in which the challenge to one component may depend on the witness chosen in the other. The pre-existing cross-product of the Girard Dialectica construction gives the corresponding two-sided dependence.

So there is a first chain:

ordinary tensor → Blass tensor → cross product

where the successive steps allow more dependence of challenges on witnesses. But there is another chain, going in the opposite direction. Instead of making challenges depend on witnesses, we can make witnesses depend on challenges:

ordinary tensor → ◁ → par.

The middle operation is the one I want to emphasize. The two chains are not independent: at the level of objects, linear negation swaps witnesses and challenges, so it swaps the chains term by term, and ◁ is the dual of Blass's tensor — which is how one could have known the connective was there before anyone wrote it down.

 

Sequencing is not new

The operation ◁ says that the witness for the second component may be chosen in response to a challenge to the first. In plain language:

first play A, see how A is challenged, and then choose how to play B.

This is precisely the sort of dependence one expects from sequential composition. But I want to stress something that could easily be obscured by the polynomial terminology.

This sequential understanding is not new in this paper.

Ordered contexts and the sequential modality already appeared in the Dialectica models of state, in particular in my 2014 paper Linear Logic Model of State Revisited. The sequential modality and the distinction between parallel and sequential use were already there. What is new here is the particular tensor ◃\triangleleft: its shape was available from the Dialectica constructions, but it had not been isolated as a logical connective.

The operation itself, with its predicate, is also written down by Dorta, Jarvis and Niu in their account of our  ACT MRC working group, as a composition product; what is new here is the reading of it as a connective. 

The present paper is not discovering sequencing by looking at polynomial substitution. Rather, polynomial substitution gives us a particularly clean way of recognizing the shape of a sequential Dialectica connective that was already present.

This is one reason I like the comparison. It tells us that the polynomial operation is not the source of the logical idea. The logical idea was already there; the polynomial viewpoint makes its shape easier to see.

The history of ordered contexts is older still

There is another piece of history that belongs here. The ordered-context story is not something that has been invented to justify the current categorical terminology either. The relevant orders are the series-parallel orders: start with a point, combine things side by side, and combine things in sequence. The work of Béchet, de Groote and Retoré in 1997 gives the relevant axiomatization of the inclusion between these orders. 

This matters because the later categorical picture is not introducing an arbitrary notion of “before”. There is already a well-understood combinatorial structure behind the ordered contexts. The linear-logic models of state paper put this order into the logic; the present paper puts the corresponding dependence into the shape of the Dialectica object.

From the two chains to interchange

Once the two tensors are seen together, something rather nice happens. We have the ordinary, parallel tensor and the sequential tensor ◁. There is a natural map from parallel to sequential combination: a witness chosen for the second component independently can simply be regarded as a sequential strategy that ignores the challenge to the first.

More importantly, there is the middle interchange law

(A ◁ B) ⊗ (C ◁ D) → (A ⊗ C) ◁ (B ⊗ D).

In words, two processes that each have an internal order can be run side by side and then resequenced. This is exactly where the series-parallel story comes back in. The point is not that we have discovered yet another useful natural transformation. The point is that the old ordered-context structure tells us that this is the right transformation to look for. Once the two monoidal structures share a unit, the middle interchange generates the relevant ways of adding order between series-parallel contexts.

So the categorical statement that the Dialectica construction carries a normal duoidal structure is really organizing several pieces of older logic and category theory into one picture.

Then reuse follows

There is a final consequence that I particularly like. The usual exponential modality ! corresponds to reuse in parallel. Its challenges are finite multisets: the order in which things are reused is irrelevant.

The sequential modality † corresponds to reuse in sequence. Its challenges are words: now order matters. Again, neither of these ideas is new. They already occur in the earlier Dialectica models of state. What the present organization shows is how they fit together.

Because the two tensors are related by the natural map above, the comonoid structure for the ordinary tensor gives a comonoid structure for the sequential tensor as well. In particular:

whatever may be reused in parallel may also be reused in sequence.

What had appeared as another structural requirement in the models of state becomes a consequence of the relationship between the two tensors. That is, for me, the real mathematical payoff of the paper.

So what do polynomials contribute?

Not the logic. Not the predicate. Not the idea of sequencing. What they contribute is a good way of exposing the shape of dependence.

The two chains

challenges depend on witnesses

and

witnesses depend on challenges

make a collection of Dialectica connectives much easier to organize. They also make visible the intermediate operation ◁ and its relationship with polynomial substitution.

But the predicate still matters. Two Dialectica objects can have exactly the same interaction pattern and therefore exactly the same polynomial shape, while differing completely in which witnesses withstand which challenges.

That is why the title of the paper says Polynomials with Predicates. The polynomial tells us the shape. The predicate tells us what that shape means.

And the historical point is worth making explicit: the main Dialectica connectives appeared in 1989; Blass's tensor followed in 1993; the series-parallel analysis appeared in 1997; and the sequential modality and ordered-context interpretation were already present by 2014.”. The polynomial viewpoint comes later.

What is new here is not the invention of these structures, but the way of putting these pieces together and seeing the polynomial structure underneath them. For me, that is the useful lesson of the comparison: sometimes a new vocabulary is most valuable not because it gives us a new construction, but because it lets us recognize the structure that was there before.

 

 (Hermann and Marcelo from work on Linear Logic Model of State, 1996)

Natural Language Is Not Going Away

Quite a few weeks ago, my friend Simone Severini sent me a book he wrote with Andrea Borghini, Science, Ltd.: Notes on the Research Enterprise in the Age of Machines. He told me, rather modestly, that they had quoted me in it.

It turns out that they quoted me quite a lot.

The conversations behind the book go back to May 2023, although the message Simone sent me about the finished book arrived in August 2025. Reading the book now was an interesting exercise, because I discovered that I still believe everything that I told him then—and that much of what I have been working on in the intervening years has gone in precisely that direction.

The book is about a large question: how should the scientific enterprise change when machines become capable not simply of calculating things for scientists, but of reading, organizing and connecting scientific knowledge at scales that humans cannot?

One of the problems Simone and Andrea discuss is particularly acute in mathematics. We have millions of papers. We have more mathematics than any individual could possibly read. But the relationships between mathematical ideas are still mostly buried inside those papers, expressed in the language mathematicians use to talk to one another.

This was the context in which they asked me about formalization.

I apparently said:

“My goal is to try to overcome this lack not of data, but of annotations on data when working in mathematics, so that we can explore the scientific literature and understand texts in depth. And we should try to extract as much information as possible with natural language before proceeding with formalization.”

I still think this is right. (annotations here is an euphemism for semantics)

There is a very understandable temptation, when thinking about mathematics and machines, to conclude that the solution is to formalize everything. Formal mathematics is great, and formal proof assistants are becoming extraordinarily powerful.  But formalization requires choices: a formal system, a representation, a particular piece of software, conventions about what is made explicit and what isn't.

Mathematicians themselves don't normally communicate that way. We talk, write papers, draw diagrams, invent terminology, abuse notation, leave things implicit and rely on enormous amounts of shared mathematical culture.

So I also told them:

“When we collaborate, we speak in our language. Moreover, when you decide to formalize something, you have to make a technical choice and adopt a tool that, all of a sudden, might become obsolete as soon as a better formalization is discovered. See programming languages. However, it is unlikely that the use of natural language will become obsolete: it is an excellent tool that has evolved over thousands of years.”

Here, for once in my life, I underestimated a number. (Brazilians are known for exaggerating them!)

Language has been with us for considerably longer than “thousands of years.” Exactly how much longer is a fascinating and disputed question, because spoken language leaves no fossils. Estimates for fully developed human language often reach well beyond 100,000 years, and some researchers argue for a much older origin still.

So perhaps I should have said: natural language is an extraordinarily successful technology that humans have been developing for at least tens of thousands, and very possibly hundreds of thousands, of years. It would be surprising if the arrival of proof assistants and large language models suddenly made it obsolete.

What I wanted instead—and still want—is a good interface between these two worlds.

In the years since those conversations, this has increasingly become, for me, the idea of Network Mathematics: representing mathematical knowledge not as a pile of documents and not as a single enormous formal library, but as an extended knowledge graph connecting the different ways in which mathematics exists.

Some of our work since then has been about trying to build pieces of precisely this bridge. MathGloss tries to identify and align mathematical concepts across resources written for humans and resources intended for machines; more recently, our work on extracting mathematical relations asks whether language models can recover some of the relationships that mathematicians leave implicit in mathematical prose. Concepts are hard enough to identify; relations between them are harder still. But extracting both may give us enough overlapping evidence to begin reconstructing the network that is already there in the literature. 

Definitions, concepts, theorems, examples, papers, informal explanations, formal statements, proofs, databases and libraries should be connected. A mathematical concept appearing in ordinary mathematical English should be able to point toward its occurrence in Wikipedia or Wikidata, toward related concepts, toward its use in papers, and eventually toward one or several formalizations of it. 

The point is not to replace informal mathematics by formal mathematics, nor formal mathematics by informal mathematics.

The point is to build the bridges.

 This is why I was particularly pleased to discover that Simone and Andrea return to our conversation later in the book, when they start imagining “science in a graph.” They ask what the vertices of such a graph should be, what language should describe them, and how the connections between them should be represented. Existing scientific databases give us the documents, but most of the interesting conceptual relationships are still hidden inside those documents and recoverable only by readers who already understand the field.

Yes. Exactly.

This is also why the recent explosion of language models seems important to me. If machines are becoming much better at dealing with the language scientists actually use, perhaps we don't have to choose between the enormous human inheritance encoded in natural language and the precision and computational possibilities of formal systems.

We can try to connect them.

Simone and Andrea's book goes much further than mathematics. It asks how publishing, peer review, funding, scientific databases and ultimately the institutions of science might have to change if scientific knowledge becomes genuinely machine-readable and machine-navigable. It is also appropriately suspicious of the idea that simply making science faster automatically makes science better.

But I was delighted to find my 2023 self appearing in their argument.

Especially because, three years later, I would give them essentially the same answer. Despite all the proposals and papers rejected on that. I am stubborn.

Except for the number.

Wednesday, September 16, 2026

What Is Actually Linear Here?

                                         [Andrea Schalk, Summer 2007, from her webpage]

I have been playing with a very small variation on the Schalk–de Paiva construction (more here) and it has turned into a rather larger question than I expected. The experiment is almost embarrassingly simple:

Take lineale-valued sets, and replace relations by structure-preserving functions.

That is essentially the whole idea behind a new preprint, Functional Lineale-valued Sets.

Why bother? The original construction, usually called FP-Set, is a remarkably uniform way of producing models of linear logic. You take a set, put values from a lineale between its elements, and use relations as morphisms. With suitable choices of the lineale, you get familiar linear logic models  such as phase spaces, coherence spaces, or hypercoherences. Also a whole host of other models that people did not seem to have played much with.

But relations do a lot of the work in the construction. So I wanted to ask a slightly impolite question:

What happens if we take the relations away?

 

In the functional version, an object is still just a set equipped with a lineale-valued notion of similarity. But now a morphism is an ordinary function which preserves that structure. And something rather interesting happens. The linear structure does not disappear. Instead, it becomes much easier to see where it is coming from.

The tensor comes from the lineale. The internal hom comes from residuation. Negation comes from the choice of a dualizing element. Modal structure comes from a storage operator. Even the conditions giving duplicable objects are conditions on the values in the lineale.

In other words, the sets are not providing the linear structure. The lineale is. Most of the structure is "imported" from the codomain, which is a familiar situation in mathematics.

What the functions give us is something different: ordinary categorical structure. Products and coproducts are computed on the underlying sets. Equalizers and coequalizers are available. With a complete lineale, the resulting category is complete and cocomplete.

This is quite different from the relational construction, where the relational notion of morphism is closely tied to the way the structure is built. So the little experiment seems to separate two things which are rather thoroughly entangled in the usual presentation:

the linear structure comes from the values, while the ordinary categorical structure comes from the functions.

This also raises the question of whether there is a linear analogue of the familiar theory of H-sets and Q-sets. For readers who have not met them: an H-set or Q-set is, roughly, a set in which equality is replaced by a degree of similarity. Instead of asking whether two elements are equal, we assign a value measuring how similar, or how equal, they are. These structures grew out of the study in the frame-valued case, and are closely connected with sheaves and topos theory. 

This is precisely why they are tempting here. We already have a lineale supplying values between elements, so why not use those values to describe a linear version of “being the same”? And if the resulting objects behaved like their classical H-set/Q-set counterparts, perhaps we could recover some of the beautiful categorical constructions that come with them.

There is a natural way to do this. The off-diagonal values describe similarity between elements, while the diagonal values describe their extent. One can then write down conditions resembling symmetry, transitivity, boundedness and a local identity condition.

At first sight these conditions look nicely linear. But this is where things get more interesting. When you examine what the conditions actually say, most of the apparently linear behaviour has a rather cartesian origin. The local identity condition, in particular, forces the extents to be idempotent. So there is a curious phenomenon:

the conditions look linear in form, but cartesian structure is hiding in their provenance.

And this seems to matter. The tempting next step would be to imitate the familiar tripos-to-topos story and try to build a topos-like category from these linear H-sets, or LinSets. But the local identity condition gets in the way. The problem is not with the doctrine. For a quantale, the usual powerset construction gives a perfectly good linear analogue of the predicate doctrine, and the Frobenius property obtains. The problem appears when we try to build the objects on top of that doctrine.

In the ordinary H-set story, the predicate itself supplies the identity relation. In the functional linear setting, identities are already ordinary functions, and the lineale-valued predicate does not have to be an identity. Requiring it to play that role introduces precisely the idempotence condition that pushes us back towards the cartesian world.

So at the moment I see several possible ways forward. Perhaps one should develop a genuinely functional version of linear H-sets, accepting that some of the familiar universal properties will have to change. Perhaps there are useful conditions under which functions and functional relations coincide. Or perhaps the moral is more radical: a linear completion should not necessarily be expected to look like a topos.

There is also a nice comparison with Dialectica constructions. In a Dialectica category, we have two sorts of data: witnesses and counterexamples. A map evaluates one against the other in the lineale. Here those two sides have been collapsed into one set. So LinSet can be viewed as an extreme case of the Dialectica idea: there is no longer a separate witness side and counterexample side. There is just the evaluation structure on a single set.

And that small change seems to move the crucial assumptions around.

This is why I am sending this one out as a conversation starter rather than as a finished theory. I would particularly like to hear from people who know the H-set and Q-set literature, people who know the linear logic side, and people who have thought about functional relations and topos constructions.

Have I isolated something useful here, or have I simply moved the difficulty somewhere else?

I would be delighted by either reaction: I want to work on this with you or no, this is wrong, and here is why.