# Infinity Lesson 3D: Hilbert's Hotel

> Step through Hilbert's hotel in 3D: make room for one more guest, fit an infinite coach, number infinitely many coaches, and try a rule that visibly fails.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Education](https://www.sandbase.ai/skills/education)
- Version: 0.1.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/education/infinity-lesson-3d

## What you get

Bring an infinite-set argument, its chapters with steps, a rule to try and an optional palette. The Skill returns a downloadable Skill, an interactive demo and an example video.

## Install

Download the Skill package from https://www.sandbase.ai/skills/education/infinity-lesson-3d (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/infinity-lesson-3d build an interactive 3D explainer of <your infinite-set argument> with chapters for <your constructions>, step-by-step animations, a rule that visibly fails, live counters and a quiz, in English and Chinese
```

## How it works

1. **Fill the Hilbert Hotel prompt** Infinity Lesson 3D fills its prompt with node scripts/fill-prompt.mjs --slots assets/prompts/examples/hilbert-hotel.json --out prompt.md, then node scripts/new-project.mjs --out my-lesson and npm ci. All text, including chapters, steps, captions, counters, failure messages, labels and the quiz, lives in src/lesson.json in English and Simplified Chinese. The room rules sit in the pure module src/hotel.mjs, shared by page and tests.
2. **Step through the argument** Four chapters run over a procedural corridor of numbered doors fading into fog. A full hotel makes room with n to n + 1, an infinite coach moves guests with n to 2n, and infinitely many coaches are numbered along Cantor's diagonals; the fourth chapter is a four-question quiz. Press N or the step button, or P for Autoplay. Try this swaps in a rule that visibly fails.
3. **Build and verify the logic** npm run build:single writes one offline HTML file and npm run shoot -- --file dist-single/index.html runs the browser checks in references/verification.md, with Node 22.4 and local Chrome. The release verified 13 steps across the chapters, the one-guest shift, the doubling, the diagonal numbering and each failing alternative: the finite hotel overflowing, plus-one or plus-ten leaving passengers, and coach-by-coach never finishing.

## FAQ

### Is Infinity Lesson 3D a video?

No. Infinity Lesson 3D moves the guests and coaches through a small simulation in the browser, so a rule that cannot work visibly leaves someone without a room. The room numbers shown for each passenger are computed exactly by src/hotel.mjs, including Cantor's diagonal and its inverse.

### Is the infinity in Infinity Lesson 3D real?

Infinity Lesson 3D shows infinity illustratively. It draws the corridor and coaches to a finite depth and fades them into fog, standing in for and so on forever. Counters show the infinity sign where the real answer is infinite. Beyond the built doors the hotel stays full, so the argument never relies on a last room.

### Can Infinity Lesson 3D teach a different argument?

Yes, Infinity Lesson 3D can teach another argument through a new chapter class. It needs only lesson.json edits for new text, steps or quiz items, but a new argument, such as the countable rationals, means copying the closest chapter, keeping the Chapter contract, reusing scene.ts and registering its kind in src/main.ts. Shoot must check both the working and failing rule.

### Why does Infinity Lesson 3D have no sound?

Infinity Lesson 3D is silent by design, because the lesson is meant to be projected while a teacher talks. The step caption is a live region, controls are labelled buttons with visible focus and keyboard shortcuts, and full WCAG conformance still needs assistive-technology testing.

### What does Infinity Lesson 3D need to run?

Infinity Lesson 3D needs WebGL 2 and no keys, model calls, external assets or storage, so it costs nothing to run. Without WebGL 2 the page shows a message and an embedding page receives infinity-lesson-3d:error with code webgl. The 345 by 345 embed keeps only the view, a chapter menu and the step and Autoplay buttons.

## Examples

- Hilbert's Hotel interactive 3D infinity explainer (scene)
- Hilbert's Hotel (video)
