Programming Search⌘K

Conceptadvanced

Fibers

Also called fiber, user-mode thread, stackful coroutine, Win32 fibers, Ruby Fiber, PHP Fiber, Boost.Fiber, ucontext.

A fiber is a thread of execution with its own stack that the program schedules itself. A fiber runs until it switches to another fiber, so fibers on one thread never run at the same time.

Applies to
core-languages

Idea

A fiber is a thread of execution that the program schedules itself. The Win32 documentation defines it as "a unit of execution that must be manually scheduled by the application".1 Each fiber has its own stack, like a thread. Unlike a thread, a fiber is never preempted: it runs until it switches to another fiber.1 The Ruby documentation says that fibers "are never preempted and that the scheduling must be done by the programmer and not the VM".2

A fiber runs inside an OS thread, and one thread can run many fibers, one at a time.1 So fibers add one more level to the usual list: a computer runs processes, a process runs threads, and a thread runs fibers.3

Because a fiber has its own stack, it can pause anywhere in a chain of function calls and continue later at the same point. Ruby says that each fiber "comes with a stack", which lets the fiber pause "from deeply nested function calls".2 PHP calls its fibers "full-stack, interruptible functions".4 The example files use this property. A recursive function walks a tree and pauses at each leaf, deep in the recursion, and gives the leaf to the caller.

How it works

Switching between fibers

A fiber stores only a small amount of state: its stack, some registers, and the data that it got when it was created.1 To switch fibers, the running fiber saves its registers and its stack pointer, and loads those of the next fiber.5 The kernel takes no part in the switch, so the switch is faster than a thread switch.3 The Boost.Fiber documentation compares the costs: a thread switch "usually costs thousands of CPU cycles on x86", and a fiber switch costs "less than a hundred cycles".5

On Windows, the API has four main calls:1

  • ConvertThreadToFiber makes the current thread into a fiber, so that it can switch to other fibers.
  • CreateFiber makes a new fiber with a stack size, a start function and a data value.
  • SwitchToFiber saves the current fiber and runs another one.
  • DeleteFiber frees the stack and the other data of a fiber.

On Linux, the C library has the same tools in <ucontext.h>. makecontext prepares a context that runs a function on a stack that the caller allocates, and swapcontext "saves the current context" and activates another one.6 The C++ example uses these functions.

Fibers and their thread

For the operating system, a fiber does not exist. The work that a fiber does belongs to the thread that runs it. For example, a fiber that reads thread-local storage reads the storage "of the thread that is running it".1 When the OS preempts the thread, it also stops the fiber that the thread is running, and that fiber continues when the thread runs again.1 For values that belong to one fiber, Windows has fiber-local storage, with the calls FlsAlloc, FlsGetValue and FlsSetValue.1

Who chooses the next fiber

There are two styles:

  • Direct switching. The running fiber names the fiber that runs next. Win32 SwitchToFiber, Ruby Fiber#resume and Fiber.yield, and PHP Fiber::resume and Fiber::suspend work like this.124
  • A scheduler. A fiber that waits gives control to a scheduler, and the scheduler picks a fiber that is ready. The N4024 paper describes this model: "a fiber blocks" and the scheduler dispatches another fiber, as an OS does with threads.3 Boost.Fiber works like this, and so do Ruby fibers with a scheduler: a non-blocking fiber that reaches an operation that would block gives control to other fibers.52

In languages

LanguageVerdictNote
PythonAbsent
C++Library
JavaAbsent
CLibraryThe C standard library has no fibers; glibc has getcontext, makecontext and swapcontext in ucontext.h, and Windows has the Win32 fiber API. No separate example file. Alternative: The ucontext.h functions, as in the C++ example.
C#Absent
JavaScriptAbsent
TypeScriptAbsentTypeScript runs on a JavaScript engine, which has no fibers. No example file exists. Alternative: Generator functions with yield*, as in the JavaScript example.
GoAbsent
RustAbsent
KotlinAbsentKotlin has no fiber type in its standard library; no example file because kotlinc is not installed on the machine that recorded the examples. Alternative: A virtual thread and a SynchronousQueue, as in the Java example.
SQLDoes not applyA query does not run threads of execution.
BashAbsentBash has no fibers. No example file exists.
PowerShellAbsentPowerShell has no fibers; no example file because pwsh is not installed on the machine that recorded the examples.
HTMLDoes not applyMarkup has no threads of execution.
CSSDoes not applyStyle rules have no threads of execution.
Regular expressionsDoes not applyA pattern has no threads of execution.

Few of the tier 1 languages have fibers. Most of them have a stackless alternative, such as generators or iterators, where only one function can pause. The example files walk the tree [[1, 2], [3, [4]]] and print its leaves. Then they compare the leaves of two trees in step, which is the classic "same fringe" problem.

Language Verdict Mechanism
Python absent generators with yield from, which are stackless
JavaScript absent generator functions with yield*, which are stackless
TypeScript absent as JavaScript
Java absent a virtual thread and a SynchronousQueue
Kotlin absent the Java alternatives on the JVM
C# absent iterators with yield return, which are stackless
Go absent a goroutine and an unbuffered channel
Rust absent an OS thread and a rendezvous channel, sync_channel(0)
C library <ucontext.h> in glibc, or the Win32 fiber API
C++ library <ucontext.h>, Boost.Fiber, or the Win32 fiber API
Bash absent no fibers
PowerShell absent no fibers
SQL n/a a query does not run threads of execution
Regex n/a a pattern has no threads of execution
HTML/CSS n/a markup and style rules have no threads of execution
  • Python, JavaScript and C#. A generator or an iterator can pause, but only in its own body. To pause inside a recursion, each level must be a generator. PEP 380 added yield from so that a generator can "delegate part of its operations to another generator".7 JavaScript has yield* for the same purpose.8 C# has no such operator, so a recursive iterator loops over the inner iterator and gives each value again with yield return.9
  • Java and Go. A virtual thread or a goroutine has its own stack, so it can pause at any depth. But a scheduler in the runtime, not the program, decides when it runs.1011 A SynchronousQueue or an unbuffered channel makes the two sides take turns: in a SynchronousQueue, "each insert operation must wait for a corresponding remove operation by another thread".12
  • Rust. A channel with bound 0 is a "rendezvous" channel, where each sender hands off a message directly to a receiver.13 With an OS thread on the sending side, this gives the same behavior as a fiber, but each walk uses a full thread.
  • C and C++. The <ucontext.h> functions give real fibers. Boost.Fiber adds a scheduler, and fiber versions of mutexes, condition variables and futures.35
  • Ruby and PHP. Outside the tier 1 languages, Ruby has the class Fiber,2 and PHP added the class Fiber in PHP 8.1.14
PythonGitHub
def walk(tree):
    if isinstance(tree, list):
        for child in tree:
            yield from walk(child)  # each level of the recursion is a generator
    else:
        yield tree


def same_fringe(x, y):
    gx, gy = walk(x), walk(y)
    while True:
        a, b = next(gx, None), next(gy, None)
        if a != b:
            return False
        if a is None:
            return True


a = [[1, 2], [3, [4]]]
b = [1, [2, [3, 4]]]
c = [[1, 2], [3, 5]]

for leaf in walk(a):
    print("got", leaf)
print("same fringe a b:", str(same_fringe(a, b)).lower())
print("same fringe a c:", str(same_fringe(a, c)).lower())
Output
got 1
got 2
got 3
got 4
same fringe a b: true
same fringe a c: false
  • Verdict: absent. Python has no fibers in the standard library. Generators are the alternative, but they are stackless: only the generator function itself can suspend.
  • To suspend inside a recursion, each level must be a generator, and yield from passes the values of the inner generator up to the outer one.
  • same_fringe advances two generators in turn and stops at the first difference. The generators that it does not finish stay suspended until they are garbage-collected.
#include <ucontext.h>

#include <iostream>
#include <vector>

struct Tree {
    int value = 0;
    std::vector<Tree> children;  // no children: a leaf
};

Tree L(int v) { return Tree{v, {}}; }
Tree N(std::vector<Tree> children) { return Tree{0, std::move(children)}; }

// A fiber with its own stack. resume() switches to it; suspend() switches back.
class Fiber {
public:
    explicit Fiber(const Tree& tree) : tree_(tree), stack_(64 * 1024) {
        getcontext(&self_);
        self_.uc_stack.ss_sp = stack_.data();
        self_.uc_stack.ss_size = stack_.size();
        self_.uc_link = &caller_;  // when entry() returns, go back to the caller
        makecontext(&self_, &Fiber::entry, 0);
    }
    Fiber(const Fiber&) = delete;
    Fiber& operator=(const Fiber&) = delete;

    // Run the fiber until it suspends. Returns false when it has finished.
    bool resume(int& out) {
        if (done_) return false;
        Fiber* previous = current_;
        current_ = this;
        swapcontext(&caller_, &self_);
        current_ = previous;
        if (done_) return false;
        out = value_;
        return true;
    }

    // Called on the fiber's own stack: give a value to the caller and pause.
    static void suspend(int v) {
        Fiber* f = current_;
        f->value_ = v;
        swapcontext(&f->self_, &f->caller_);
    }

private:
    static void walk(const Tree& t) {
        if (t.children.empty()) {
            suspend(t.value);  // pauses here, deep in the recursion
        } else {
            for (const Tree& child : t.children) walk(child);
        }
    }

    static void entry() {
        Fiber* f = current_;
        walk(f->tree_);
        f->done_ = true;
    }

    static inline Fiber* current_ = nullptr;
    const Tree& tree_;
    std::vector<char> stack_;
    ucontext_t self_{};
    ucontext_t caller_{};
    int value_ = 0;
    bool done_ = false;
};

bool same_fringe(const Tree& x, const Tree& y) {
    Fiber fx(x), fy(y);
    while (true) {
        int a = 0, b = 0;
        bool hasA = fx.resume(a);
        bool hasB = fy.resume(b);
        if (hasA != hasB || a != b) return false;
        if (!hasA) return true;
    }
}

int main() {
    Tree a = N({N({L(1), L(2)}), N({L(3), N({L(4)})})});
    Tree b = N({L(1), N({L(2), N({L(3), L(4)})})});
    Tree c = N({N({L(1), L(2)}), N({L(3), L(5)})});

    Fiber leaves(a);
    int leaf = 0;
    while (leaves.resume(leaf)) std::cout << "got " << leaf << '\n';
    std::cout << std::boolalpha;
    std::cout << "same fringe a b: " << same_fringe(a, b) << '\n';
    std::cout << "same fringe a c: " << same_fringe(a, c) << '\n';
}
Output
got 1
got 2
got 3
got 4
same fringe a b: true
same fringe a c: false
  • Verdict: library. C++ has no fibers in the standard library. This example builds a fiber with the <ucontext.h> functions of glibc; Boost.Fiber and the Win32 fiber API are other choices.
  • makecontext makes a context that runs entry on a stack that the program allocates, here 64 KiB. swapcontext saves the current context and switches to another one.
  • walk is an ordinary recursive function. It calls suspend at any depth, and the whole call stack of the fiber waits until the next resume.
  • The POSIX standard removed these functions in 2008, but glibc still provides them. When same_fringe returns early, the destructors of objects on the unfinished fiber's stack never run, so in this example the fiber stack holds only references.
JavaGitHub
import java.util.List;
import java.util.concurrent.SynchronousQueue;

public class Main {
    static final Object END = new Object();

    // Start a walk on a virtual thread. The thread hands each leaf over the queue
    // and waits there until the caller takes it.
    static SynchronousQueue<Object> start(Object tree) {
        SynchronousQueue<Object> queue = new SynchronousQueue<>();
        Thread.ofVirtual().start(() -> {
            try {
                walk(tree, queue);
                queue.put(END);
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
            }
        });
        return queue;
    }

    static void walk(Object tree, SynchronousQueue<Object> queue) throws InterruptedException {
        if (tree instanceof List<?> list) {
            for (Object child : list) {
                walk(child, queue);
            }
        } else {
            queue.put(tree); // waits here, deep in the recursion
        }
    }

    static boolean sameFringe(Object x, Object y) throws InterruptedException {
        SynchronousQueue<Object> qx = start(x);
        SynchronousQueue<Object> qy = start(y);
        while (true) {
            Object a = qx.take();
            Object b = qy.take();
            if (!a.equals(b)) return false;
            if (a == END) return true;
        }
    }

    public static void main(String[] args) throws InterruptedException {
        Object a = List.of(List.of(1, 2), List.of(3, List.of(4)));
        Object b = List.of(1, List.of(2, List.of(3, 4)));
        Object c = List.of(List.of(1, 2), List.of(3, 5));

        SynchronousQueue<Object> leaves = start(a);
        for (Object leaf = leaves.take(); leaf != END; leaf = leaves.take()) {
            System.out.println("got " + leaf);
        }
        System.out.println("same fringe a b: " + sameFringe(a, b));
        System.out.println("same fringe a c: " + sameFringe(a, c));
    }
}
Output
got 1
got 2
got 3
got 4
same fringe a b: true
same fringe a c: false
  • Verdict: absent. Java has no fiber type. A virtual thread with a SynchronousQueue gives the same stackful pause: walk can wait in put at any depth of the recursion.
  • A SynchronousQueue has no capacity, so each put waits until the caller takes the value. The two sides take turns, as a fiber and its caller do.
  • The difference from a fiber is the scheduler. The caller does not switch to the walk; the JDK decides when the virtual thread runs.
  • When sameFringe returns early, the unfinished walks stay blocked in put. Virtual threads are daemon threads, so they do not stop the JVM from exiting.
using System;
using System.Collections.Generic;

static IEnumerable<int> Walk(object tree)
{
    if (tree is object[] children)
    {
        foreach (var child in children)
        {
            // Each level of the recursion is an iterator that passes values up.
            foreach (var leaf in Walk(child))
            {
                yield return leaf;
            }
        }
    }
    else
    {
        yield return (int)tree;
    }
}

static bool SameFringe(object x, object y)
{
    using var ex = Walk(x).GetEnumerator();
    using var ey = Walk(y).GetEnumerator();
    while (true)
    {
        bool hasX = ex.MoveNext();
        bool hasY = ey.MoveNext();
        if (hasX != hasY) return false;
        if (!hasX) return true;
        if (ex.Current != ey.Current) return false;
    }
}

object a = new object[] { new object[] { 1, 2 }, new object[] { 3, new object[] { 4 } } };
object b = new object[] { 1, new object[] { 2, new object[] { 3, 4 } } };
object c = new object[] { new object[] { 1, 2 }, new object[] { 3, 5 } };

foreach (var leaf in Walk(a))
{
    Console.WriteLine($"got {leaf}");
}
Console.WriteLine($"same fringe a b: {SameFringe(a, b).ToString().ToLower()}");
Console.WriteLine($"same fringe a c: {SameFringe(a, c).ToString().ToLower()}");
Output
got 1
got 2
got 3
got 4
same fringe a b: true
same fringe a c: false
  • Verdict: absent. C# has no fiber type. Iterators with yield return are the alternative, and they are stackless: an iterator keeps its position between requests and continues after the last yield return.
  • A recursive iterator must loop over the inner iterator and give each value again with yield return.
  • SameFringe moves two enumerators forward in turn with MoveNext, and the using declarations dispose of them when the method returns.
JavaScriptGitHub
function* walk(tree) {
  if (Array.isArray(tree)) {
    for (const child of tree) {
      yield* walk(child); // each level of the recursion is a generator
    }
  } else {
    yield tree;
  }
}

function sameFringe(x, y) {
  const gx = walk(x);
  const gy = walk(y);
  for (;;) {
    const a = gx.next();
    const b = gy.next();
    if (a.done !== b.done || a.value !== b.value) return false;
    if (a.done) return true;
  }
}

const a = [[1, 2], [3, [4]]];
const b = [1, [2, [3, 4]]];
const c = [[1, 2], [3, 5]];

for (const leaf of walk(a)) {
  console.log("got", leaf);
}
console.log("same fringe a b:", sameFringe(a, b));
console.log("same fringe a c:", sameFringe(a, c));
Output
got 1
got 2
got 3
got 4
same fringe a b: true
same fringe a c: false
  • Verdict: absent. JavaScript has no fibers. Generator functions are the alternative, and like Python generators they are stackless.
  • yield* delegates to the inner generator, so each level of the recursion must be a function*.
  • next() returns an object with value and done, so the caller can see when a walk is finished.
package main

import "fmt"

// walk sends each leaf on ch. The send waits until a receiver takes the value,
// so walk pauses there, deep in the recursion.
func walk(tree any, ch chan<- int) {
	switch t := tree.(type) {
	case []any:
		for _, child := range t {
			walk(child, ch)
		}
	case int:
		ch <- t
	}
}

func start(tree any) <-chan int {
	ch := make(chan int) // unbuffered
	go func() {
		walk(tree, ch)
		close(ch)
	}()
	return ch
}

func sameFringe(x, y any) bool {
	cx, cy := start(x), start(y)
	for {
		a, okA := <-cx
		b, okB := <-cy
		if okA != okB || a != b {
			return false
		}
		if !okA {
			return true
		}
	}
}

func main() {
	a := []any{[]any{1, 2}, []any{3, []any{4}}}
	b := []any{1, []any{2, []any{3, 4}}}
	c := []any{[]any{1, 2}, []any{3, 5}}

	for leaf := range start(a) {
		fmt.Println("got", leaf)
	}
	fmt.Println("same fringe a b:", sameFringe(a, b))
	fmt.Println("same fringe a c:", sameFringe(a, c))
}
Output
got 1
got 2
got 3
got 4
same fringe a b: true
same fringe a c: false
  • Verdict: absent. Go has no fibers that the program switches by hand. A goroutine with an unbuffered channel gives the same stackful pause: walk can wait on a send at any depth.
  • The Go runtime, not the program, decides when each goroutine runs. Each goroutine has its own stack, which the runtime grows when necessary.
  • When sameFringe returns early, the unfinished goroutines stay blocked on their sends. In a long-running program, add a done channel so that they can stop.
RustGitHub
use std::sync::mpsc::{sync_channel, Receiver, SyncSender};
use std::thread;

enum Tree {
    Leaf(i32),
    Node(Vec<Tree>),
}

use Tree::{Leaf, Node};

// Send each leaf. A send on a channel with bound 0 waits for the receiver,
// so walk pauses there, deep in the recursion. It stops when the receiver is gone.
fn walk(tree: &Tree, tx: &SyncSender<i32>) -> bool {
    match tree {
        Leaf(v) => tx.send(*v).is_ok(),
        Node(children) => children.iter().all(|child| walk(child, tx)),
    }
}

fn start(tree: Tree) -> Receiver<i32> {
    let (tx, rx) = sync_channel(0);
    thread::spawn(move || {
        walk(&tree, &tx);
    });
    rx
}

fn same_fringe(x: Tree, y: Tree) -> bool {
    let (rx, ry) = (start(x), start(y));
    loop {
        match (rx.recv().ok(), ry.recv().ok()) {
            (None, None) => return true,
            (a, b) if a == b => continue,
            _ => return false,
        }
    }
}

fn a() -> Tree {
    Node(vec![Node(vec![Leaf(1), Leaf(2)]), Node(vec![Leaf(3), Node(vec![Leaf(4)])])])
}

fn b() -> Tree {
    Node(vec![Leaf(1), Node(vec![Leaf(2), Node(vec![Leaf(3), Leaf(4)])])])
}

fn c() -> Tree {
    Node(vec![Node(vec![Leaf(1), Leaf(2)]), Node(vec![Leaf(3), Leaf(5)])])
}

fn main() {
    for leaf in start(a()) {
        println!("got {leaf}");
    }
    println!("same fringe a b: {}", same_fringe(a(), b()));
    println!("same fringe a c: {}", same_fringe(a(), c()));
}
Output
got 1
got 2
got 3
got 4
same fringe a b: true
same fringe a c: false
  • Verdict: absent. Rust has no fibers in the standard library. An OS thread with a rendezvous channel gives the same stackful pause, at the cost of a full thread for each walk.
  • sync_channel(0) makes a channel with no buffer, so each send waits until the receiver takes the value.
  • When same_fringe returns, it drops the receivers. The next send in each walk then returns an error, walk returns false, and the thread ends.
  • Fibers and coroutines. The words overlap. Wikipedia says that fibers are "sometimes called stackful coroutines".15 N4024 makes a different distinction. In that paper, a coroutine passes control directly to its caller, and a fiber has a scheduler and the synchronization tools of a thread.3 By that definition, Ruby and PHP fibers are closer to coroutines: Fiber.yield in Ruby gives control back to the caller of Fiber#resume.2
  • Stackful and stackless. A stackless coroutine is a state machine that the compiler makes. It keeps only the local variables that are live across a pause, and it runs on the stack of the thread that resumes it.16 A fiber can pause in any function that it calls, but it needs a stack large enough for all of them.16
  • Green threads and Virtual threads. These are user-mode threads with a scheduler in the language runtime. A virtual thread can block in ordinary code, and the JDK runs another virtual thread on its carrier.10 Fibers in the strict sense have no scheduler unless a library adds one.
  • Async/await. An async function is a stackless coroutine. The points where a stackless coroutine can pause are all "statically known to the compiler".16
  • Continuations. Boost.Fiber is built on call/cc, call with current continuation, from the Boost.Context library.5

Pitfalls

  • Blocking calls. A fiber that calls a function that blocks its thread also stops all other fibers on that thread.3 Libraries that use fibers must use asynchronous I/O, or fiber-aware versions of blocking calls.16
  • Long computations. No one preempts a fiber. A long CPU-bound loop must switch to other fibers from time to time, or the other fibers on its thread do not run.3
  • Thread-local storage. Code on a fiber sees the thread-local storage of the current thread.1 If a fiber moves to a different thread, a cached address of a thread-local variable can point to the storage of the old thread. P1364 shows how this corrupts memory or reads freed memory.16
  • Stack size. A fiber gets a fixed stack when it is created, and it must be large enough for every function that the fiber calls. A stack that is too small can corrupt memory.16
  • Deleting a running fiber. If a fiber in one thread deletes the selected fiber of another thread, that other thread "is likely to terminate abnormally" because its stack is gone.1 On Windows, if the fiber function returns, the thread that runs it exits.1

Cost

  • Memory. P1364 estimates that a fiber needs nearly as much memory as a thread: both have a user stack, typically 1 MiB of virtual address space. A fiber needs no kernel context and no kernel stack, which saves about 1%.16
  • Switch. A fiber switch does not enter the kernel, so it is cheaper than a thread switch.3 It is still more expensive than a function call or a stackless resume. P1364 measures a fiber switch on x86-64 System V at 23 instructions that move 64 bytes.16
  • Parallelism. The fibers of one thread never run at the same time, so they cannot use more than one core.315 To use many cores, a program runs fibers on several threads.

History

The first idea is the coroutine, which P1364 dates to 1958.16 According to P1364, service pack 5 of Windows NT 3.51 added fibers to the Win32 API in 1996, at the request of the SQL team and others.16 SQL Server 7.0 added an optional fiber mode in 1998, and later advice was not to turn it on, because fiber mode rarely made the server faster and some components failed with it.16 In 2014, N4024 described a planned proposal to add fibers to the C++ standard library, with Boost.Fiber as the reference implementation.3 In 2018, P1364 recommended threads, or asynchronous code with state machines, in place of fibers.16 PHP 8.1 added fibers as a core feature.14 Ruby 3.0 added non-blocking fibers, which work with a scheduler.2

References

  1. Microsoft Learn, Win32 apps, Fibers, whole page; Fiber Local Storage
  2. Ruby documentation, class Fiber, introduction; Non-blocking Fibers
  3. N4024: Distinguishing coroutines and fibers (Goodspeed and Kowalke, 2014), Fibers; Coroutines; Relationship
  4. PHP Manual, Fibers, introduction
  5. Boost.Fiber documentation, Overview, Overview
  6. Linux manual page, makecontext(3), DESCRIPTION; HISTORY
  7. PEP 380: Syntax for Delegating to a Subgenerator, Abstract
  8. MDN Web Docs, yield*, introduction
  9. Microsoft Learn, C# iterators, Produce elements with yield return; Understand deferred element production
  10. JEP 444: Virtual Threads, Description
  11. Go FAQ, Why goroutines instead of threads?
  12. Java SE 21 API, java.util.concurrent.SynchronousQueue, class description
  13. Rust standard library, module std::sync::mpsc, module documentation
  14. PHP 8.1 release announcement, Fibers
  15. Wikipedia, Fiber (computer science), Advantages and disadvantages; Operating system support
  16. P1364R0: Fibers under the magnifying glass (Nishanov, 2018), Introduction; 2.1 Memory Footprint; 2.2 Context Switching overhead; 2.3 Compatibility & Scalability; 3.1 Fiber use on Windows

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/D8F89R/text.yaml