Apoth3osis
<_MODELS/SKY_MULTIWAY

SKY Multiway Tree

Watch computation branch into a multiway tree. Every possible reduction path is explored simultaneously, and topos-theoretic gluing identifies when different paths converge to the same result. The Y combinator spirals infinitely, revealing why fixed points require non-termination.

3D Multiway View

Interactive

Loading visualization...

Reduction Flow

Lean 4 Verified

Loading schematic...
>WHAT_YOU_SEE
Term Nodes

Each glowing sphere represents a combinator term. The root node is the initial expression; children are the results of applying reduction rules.

S Reductions (Orange)

The S combinator: S x y z = (x z)(y z). It distributes the third argument to both inner terms.

K Reductions (Cyan)

The K combinator: K x y = x. It discards its second argument entirely.

Y Spiral (Magenta)

The Y combinator: Y f = f (Y f). It unfolds infinitely, shown as a descending spiral.

Glued Nodes (Green Ring)

When different reduction paths reach the same normal form, they are identified by the Grothendieck closure operator. The green connection shows this topos-theoretic gluing.

Branching Depth

The tree grows downward. Each level represents one reduction step. Non-deterministic choices create multiple branches at each level.

>INNOVATION

Sieves as Heyting Algebras

The key insight from topos theory: sieves on a category form a complete Heyting algebra. When we view SKY terms as a thin category (via reachability), the Grothendieck closure operator becomes a nucleus that identifies equivalent computational states.

This isn't just mathematical elegance - it's a machine-checked proof that multiway branching respects logical structure. The Lean formalization proves that closed sieves inherit Heyting algebra structure, meaning we can reason about equivalence classes of computations using intuitionistic logic.

Sieve.instFramesieveNucleusclosedSieve_instHeytingno_total_fixpoint_Bool
>REDUCTION_RULES
// SKY Combinator Calculus
K x yx// discard y
S x y z(x z) (y z)// distribute z
Y ff (Y f)// infinite unfolding