<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Raphaël Sterbac Blog</title><link>https://www.raphaelsterbac.fr/blog/</link><description>Recent content on Raphaël Sterbac Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 30 Jun 2026 10:22:14 +0100</lastBuildDate><atom:link href="https://www.raphaelsterbac.fr/blog/index.xml" rel="self" type="application/rss+xml"/><item><title>21th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/21th-week/</link><pubDate>Tue, 30 Jun 2026 10:22:14 +0100</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/21th-week/</guid><description>&lt;h1 id="implementing-universe-polymorphism"&gt;Implementing universe polymorphism&lt;/h1&gt;
&lt;p&gt;Over the past week, I have been implementing explicit universe polymorphism in the style of BCDE. This was a bit more involved and subtle
than what I thought, but I am slowly getting there and currently testing my code.&lt;/p&gt;
&lt;p&gt;However, the elaboration algorithm itself is really easy to describe in theory and I already added the rules in the paper. One thing that I am a bit uncertain of is the
raw user notations that I currently use : $\forall \alpha\mathpunct{.} A$ for the level products and $\Lambda l \mathpunct. u$ for the level abstraction, with $u {l}$ for the level application.&lt;/p&gt;</description></item><item><title>20th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/20th-week/</link><pubDate>Tue, 23 Jun 2026 10:52:01 +0100</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/20th-week/</guid><description>&lt;h1 id="normalisation-for-explicit-universe-polymorphism"&gt;Normalisation for explicit universe polymorphism&lt;/h1&gt;
&lt;p&gt;I drafted the proof for normalisation of a theory with universe polymorphism. I am not quite there yet, but I think that what I have written now
should the right thing to do. The notations are a bit shaky and the proof of the relative induction principle is not very precise (but to be fair, the ones in the original paper are not much more detailed&amp;hellip;), but with a bit
more work this should be in a good shape.&lt;/p&gt;</description></item><item><title>19th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/19th-week/</link><pubDate>Tue, 16 Jun 2026 13:33:12 +0100</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/19th-week/</guid><description>&lt;h1 id="refactoring-my-implementation"&gt;Refactoring my implementation&lt;/h1&gt;
&lt;p&gt;Last week, I have continued working on my implementation, and this is now at a quite good stage. Notably, the source files are now structured
and not monolithic as before, and I tried to refactor a bit my code so that it is more readable. I still have a few TODOs notably regarding the dataypes elaboration, for things
that I am a bit unsure of, or that can probably be simplified. In fact, as this is the first time that this has been concretely implemented (and also the first
time I implement such a big piece of type theory!), the code could surely be done in a better way. So this is not quite finished yet, but I am still quite happy with the current result!&lt;/p&gt;</description></item><item><title>18th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/18th-week/</link><pubDate>Tue, 09 Jun 2026 09:22:39 +0100</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/18th-week/</guid><description>&lt;h1 id="implementing-datatype-descriptions"&gt;Implementing Datatype Descriptions&lt;/h1&gt;
&lt;p&gt;Other the past week while I was in Denmark, I continued my implementation of Dagand&amp;rsquo;s datatype descriptions and I managed to end up with something
that seem to be working ! It allows the user to write code like this:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;data Nat : U 0 where {
 zero : Nat ;
 succ : Nat -&amp;gt; Nat
} ;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;that gets elaborated in terms of Dagand&amp;rsquo;s descriptions, extension functor etc&amp;hellip; It also generates the eliminator such that you can write recursive programs like this:&lt;/p&gt;</description></item><item><title>16th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/16th-week/</link><pubDate>Tue, 26 May 2026 10:24:43 +0100</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/16th-week/</guid><description>&lt;h1 id="implementing-datatype-descriptions"&gt;Implementing Datatype Descriptions&lt;/h1&gt;
&lt;p&gt;This week, I have been implementing Dagand&amp;rsquo;s datatype descriptions in my minimal implementation of the Fuss-Free hierarchy. This has
been a lot of fun, and I think I have set up everything so that the last step remaining is the actual elaboration from the inductive definitions
written by the user to the core language with datatypes descriptions. This is described in chapter 7 of Dagand&amp;rsquo;s thesis, but this will be the part
where I need to be a bit careful with the universes. This will be a bit tricky, but with a bit of care I would be able to finish this in a few days
of focus.&lt;/p&gt;</description></item><item><title>14th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/14th-week/</link><pubDate>Tue, 12 May 2026 09:39:21 +0100</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/14th-week/</guid><description>&lt;h1 id="writing-the-paper"&gt;Writing the paper&lt;/h1&gt;
&lt;p&gt;I have started writing the extension to other types for the elaboration section, starting with
sigma types and lists. I am not sure how to continue after this, an approach could be to use the W-types
encoding to have a simple presentation, but with this approach we do not bring home the main advantage of the
Fuss-Free presentation, which can deal with user-defined inductives in all generality. The issue is that introducing
a theory of signatures and everything would take too much space, and diverges from the point we are making at presenting
a simplifying approach. Maybe presenting the example of W-types formally and then discussing informally a more general approach
to inductive types would be a good balance ?&lt;/p&gt;</description></item><item><title>12th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/12th-week/</link><pubDate>Wed, 29 Apr 2026 22:01:31 +0100</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/12th-week/</guid><description>&lt;h1 id="the-fuss-free-hierarchy-and-more-general-types"&gt;The Fuss-Free hierarchy and more general types&lt;/h1&gt;
&lt;p&gt;I have been reflecting about the Fuss-Free hierarchy and how to use it on general Inductives, or
even on user defined types. My original idea was to allow the user to do things like $\mathsf{UserDefinedType}(&amp;hellip;)@i$ to indicate
that we are asking for the corresponding small type, which we can elaborate in the fuss-free hierarchy by coding and decoding.
For instance, if we define a type of lists, then $\mathsf{List}(A)@i$ is a small type, given that $A$ is one. Pushing this further,
we can effectively do this for virtually &lt;em&gt;any&lt;/em&gt; type, and we only have to add the corresponding rule for closure under smallness, which
mimicks the formation rule with the smallness predicate instead of the well-formed type judgement.&lt;/p&gt;</description></item><item><title>10th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/10th-week/</link><pubDate>Tue, 14 Apr 2026 10:17:24 +0100</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/10th-week/</guid><description>&lt;h1 id="elaboration-of-cumulative-universes"&gt;Elaboration of cumulative universes&lt;/h1&gt;
&lt;p&gt;This week, I have been reviewing the rules I had written a while ago for the elaboration to the Fuss-Free hierarchy. Those
rules had evolved quite a bit over the past few months, as we introduced an explicit casting mechanism to get rid of the problems
related with unification. However, now that we went back to a system with no explicit casts, and with the experience of implementing
the elaboration in practice, I think that we needed to revisit the rules.&lt;/p&gt;</description></item><item><title>9th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/9th-week/</link><pubDate>Tue, 07 Apr 2026 10:57:04 +0100</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/9th-week/</guid><description>&lt;h1 id="normalisation-by-sconing"&gt;Normalisation by Sconing&lt;/h1&gt;
&lt;p&gt;This week, I have been mostly up to understanding relative induction principles and sconing. The related
papers are quite interesting, and this clarified a lot of stuff related to gluing and GATs for me. Then,
I wrote the proof of normalisation for the natural hierarchy using this technique. This took me a few days,
but it was not that difficult and simplified \textit{a lot} of things in the end, at least in comparison to
the kind of proof I was used to.&lt;/p&gt;</description></item><item><title>8th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/8th-week/</link><pubDate>Tue, 31 Mar 2026 09:55:03 +0100</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/8th-week/</guid><description>&lt;h1 id="postponed-casts-and-unification"&gt;Postponed casts and unification&lt;/h1&gt;
&lt;p&gt;Last week, I continued reading about pattern unification and tried to figure things out by reading Andras'
code for &amp;ldquo;Observing definitional equality&amp;rdquo;. I am slowly trying to integrate it to my code, but for now this
is clearly at an early stage, and I am a bit struggling to figure things out from Andras&amp;rsquo; code as there is a lot
going on there, with a lot of features implemented all at once. I will continue working on this more thoroughly this week.&lt;/p&gt;</description></item><item><title>7th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/7th-week/</link><pubDate>Sun, 22 Mar 2026 16:33:36 +0000</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/7th-week/</guid><description>&lt;h1 id="formulating-natural-universe-hierarchies"&gt;Formulating natural universe hierarchies&lt;/h1&gt;
&lt;p&gt;I&amp;rsquo;ve been working on finding a concise way to formulate the &lt;em&gt;natural&lt;/em&gt; universe hierarchy,
such that all the structural rules follow from functoriality and naturality condition. The idea
is to work in a logical framework to specify the signature of our theory in a categorical way. This
was a lot of fun ! Maybe there are also interesting ideas to get from the paper &lt;em&gt;A Generalized Algebraic
Theory for Type Theory with Explicit Universe Polymorphism&lt;/em&gt;, that I should probably try to read at some point.&lt;/p&gt;</description></item><item><title>6th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/6th-week/</link><pubDate>Tue, 17 Mar 2026 08:59:32 +0000</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/6th-week/</guid><description>&lt;h1 id="implementing-the-fuss-free-hierarchy"&gt;Implementing the Fuss-Free hierarchy&lt;/h1&gt;
&lt;p&gt;I have been continuing my implementation of the fuss-free hierarchy this week,
Last week, I added synthesis rule for Pi and U, but that is not necessary if we write another function &amp;lsquo;checkTy&amp;rsquo; which corresponds
to a new judgment in the bidirectional typing algorithm, which checks a term against Type. We can also add an optional size to
this judgement, which tells the elaborator to check it against $Small_i$ and produces a small type. I have implemented all of that,
and it seems to be working! I still need to put my implementation to more tests though.&lt;/p&gt;</description></item><item><title>5th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/5th-week/</link><pubDate>Tue, 10 Mar 2026 09:44:43 +0000</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/5th-week/</guid><description>&lt;h1 id="implementing-the-fuss-free-hierarchy"&gt;Implementing the Fuss-Free hierarchy&lt;/h1&gt;
&lt;p&gt;I have been tinkering with implementation a bit this week, reading Andras Kovacs elaboration zoo code and trying to
understand bidirectional elaboration and evaluation in practice. This lead me to try modifying his implementation of
implicit cumulative universes to work with the Fuss-Free hierarchy in the core, thus elaborating the implicit user syntax
to the fuss-free hierarchy.&lt;/p&gt;
&lt;p&gt;This was simply an implementation of the elaboration rules I previously wrote on paper, but I got to see how this would
work in practice. For example, in the practical implementation, it appears that a synthesis rule is needed for Pi and U, to
infer types in things like : &amp;rsquo;let f : U 1 -&amp;gt; U 1 = \A. A&amp;rsquo;, where we need to infer the universe level of &amp;lsquo;U 1 -&amp;gt; U 1&amp;rsquo;. To do this,
I wrote infer rules giving the code of the corresponding type in the smallest universe possible. However this is only needed&lt;br&gt;
for the &amp;rsquo;let&amp;rsquo; case, so maybe this is ok.&lt;/p&gt;</description></item><item><title>4th Week</title><link>https://www.raphaelsterbac.fr/blog/posts/4th-week/</link><pubDate>Sun, 01 Mar 2026 18:07:33 +0000</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/4th-week/</guid><description>&lt;h1 id="starting-to-write-a-paper"&gt;Starting to write a paper&lt;/h1&gt;
&lt;p&gt;I&amp;rsquo;m glad to say that I started working on a paper with Jon, which will cover some of the stuff written here and aiming
at clarifying the state of affairs when it comes to cumulative hierarchies of universes in dependent type theory and
proof assistants, with a focus on both theoretical and practical aspects.&lt;/p&gt;
&lt;p&gt;This work will partially use ideas from my previous internship focusing on the equivalence between
Tarski and Russell universe, work I will be presenting at TYPES 2026 this year.&lt;/p&gt;</description></item><item><title>Third week</title><link>https://www.raphaelsterbac.fr/blog/posts/third-week/</link><pubDate>Mon, 23 Feb 2026 12:52:43 +0000</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/third-week/</guid><description>&lt;h1 id="equivalence-between-fuss-free-and-tarksi"&gt;Equivalence between Fuss-Free and Tarksi&lt;/h1&gt;
&lt;p&gt;When showing that we can translate from a strict Tarski hierarchy to the Fuss-free
formulation, we can&amp;rsquo;t define $Small_i$ as a proper type internally. To solve this issue,
we can show this direction of the equivalence result by a semantics argument, showing
that the syntactic category with family (CwF) $\mathcal{T}_T$ of the strict Tarski theory
is a model of the fuss-free hierarchy. To do this, we define $Small_i$ as the characteristic
map of the monomorphism $\text{El}_i$. Then, this satisfies the smallness rules of the fuss-free formulation,
and we can define the coding map as a pullback map of the cartesian square defining the characteristic map $\text{Small}_i$.
So now the equivalence result is completely proven!&lt;/p&gt;</description></item><item><title>Second Week</title><link>https://www.raphaelsterbac.fr/blog/posts/second-week/</link><pubDate>Sun, 15 Feb 2026 18:03:24 +0000</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/second-week/</guid><description>&lt;h1 id="elaboration-of-the-universe-hierarchy"&gt;Elaboration of the universe hierarchy&lt;/h1&gt;
&lt;p&gt;When elaborating the &amp;ldquo;fuss-free&amp;rdquo; universe hierarchy, we need a mode switch for checking neutral types against
the smallness judgement. This might cause unexpected issue to have two mode switch, and will not be well-behaved
with unification and sub-typing (just like the issue for the algebraic hierarchies).&lt;/p&gt;
&lt;p&gt;Hence, we need to introduce casts to tell the type checker to try to lift to another universe instead
of trying to unify something. Also, from the elaboration perspective, the &amp;ldquo;fuss-free&amp;rdquo; hierarchy is not of a great
help after all. The smallness judgement and code for type connective can be elaborated easily but we have to much
downsides with the smalness judgement needing a mode switch and being not needed anyway.&lt;/p&gt;</description></item><item><title>First Week</title><link>https://www.raphaelsterbac.fr/blog/posts/first-week-02-feb/</link><pubDate>Thu, 05 Feb 2026 18:03:24 +0000</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/first-week-02-feb/</guid><description>&lt;h1 id="subtyping-and-parametrised-inductive-types"&gt;Subtyping and Parametrised Inductive Types&lt;/h1&gt;
&lt;p&gt;On Tuesday, which was my first proper day, I focused on the potential issues we could
encounter when adding structural subtyping and Parametrised Inductive types. A typical
and pathological example of the latter is the list datatype $\text{List}(A)$.&lt;/p&gt;
&lt;p&gt;If we allow the user to deduce $l : \text{List}(U_{i+1})$ from $l : \text{List}(U_{i})$,
then we would also have both $nil_{i} : \text{List}(U_{i+1})$ and $nil_{i+1} : \text{List}(U_{i+1})$.
However, we wouldn&amp;rsquo;t have $nil_{i} = nil_{i+1}$, unless we add the equation. This breaks canonicity
for inductive types, and could lead to weird error messages on the user-side such as &lt;code&gt;Could not unify nil and nil&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>First Post</title><link>https://www.raphaelsterbac.fr/blog/posts/first-post/</link><pubDate>Tue, 03 Feb 2026 09:13:35 +0000</pubDate><guid>https://www.raphaelsterbac.fr/blog/posts/first-post/</guid><description>&lt;p&gt;First post !&lt;/p&gt;</description></item></channel></rss>