Infinity Lesson 3D: Hilbert's Hotel
- Skill do Lab
- v0.1.0
- Education
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.
Exemplo
Hilbert's Hotel interactive 3D infinity explainer
O exemplo é executado em um frame isolado, sem acesso a esta página.
Executar online
Execute em um sandbox do SandBase e veja seus resultados no Lab.
Abrir no Lab ↗O que você recebe
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.
Como funciona
- 01
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.
- 02
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.
- 03
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.
Mais Skills
Todas as Skills de Education →
Science MV
Explain science through visible causes, transformations and results.

Loop Story
Explain a cycle: build each stage, close the loop, then reveal the takeaway.

Flux Rotor: Cobalt Drive
Inspect an original motor with real winding groups, alternating magnet sectors and a keyed shaft. Balanced phase currents drive prescribed synchronous rotation, material colors and spatial harmonic markers. Open the actual cutaway and separate six components offline. This display does not solve torque, efficiency or magnetic finite elements.

Voxel Paddock: Mint Apex
Inspect an original open-wheel vehicle built from procedural cubes. Spin actual wheels on a stationary display, turn nominal geometric steering and separate twelve component groups. Edit bounded dimensions, voxel density and three palettes offline. This is not a driving or aerodynamics simulation.

River Era: Valley Years
Scrub an authored river settlement timeline from camp and farms to town, workshops and speculative towers. Actual seeded geometry changes reversibly; boats and vehicles follow the same river and bank equations. This is an illustrative sequence rather than predictive history.

3D Mechanical Watch Explorer
Inspect a kinematic mechanical watch with actual meshed tooth ratios, 54 components, axial explosion, material cutaway and bilingual mouse/touch controls. One offline HTML with optional synthesized tones.

