THE FOLD / BOSS / THE FIREWALL / THE ART GALLERY
THE ART GALLERY
a third of the corners guard the whole gallery
1 WHAT IT IS · WHAT IT DOES · FACT OR FICTION
The art gallery theorem says that a gallery shaped like any simple polygon with n corners can always be watched by at most ⌊n/3⌋ guards — and sometimes needs that many. The proof is a gem (Fisk, 1978): triangulate the polygon, then 3-colour its vertices so every triangle shows all three colours (always possible, because a triangulated polygon’s graph is 3-colourable). Whichever colour is used least appears on at most ⌊n/3⌋ vertices — and since every triangle contains one vertex of that colour, placing guards there watches every triangle, hence the whole gallery.
LIT verified live: random simple polygons are triangulated by ear-clipping and 3-coloured; every triangle gets all three colours, the smallest colour class has ≤ ⌊n/3⌋ vertices, and that class contains a vertex of every triangle — so it guards the gallery (window.__gallery). FIG no framing; the ear-clipping triangulation, the 3-colouring, and the guard-coverage check all run in-browser.
LIT verified live: random simple polygons are triangulated by ear-clipping and 3-coloured; every triangle gets all three colours, the smallest colour class has ≤ ⌊n/3⌋ vertices, and that class contains a vertex of every triangle — so it guards the gallery (window.__gallery). FIG no framing; the ear-clipping triangulation, the 3-colouring, and the guard-coverage check all run in-browser.
2 HOW IT WAS WEAVED · AI + HUMAN
David (human) seated this at the-firewall — the fewest sentries that still watch every corridor: a third of the corners suffice to guard the whole gallery, no blind spot left. AVAN (AI) built the instrument: the ear-clipping triangulation, Fisk’s 3-colouring, the ⌊n/3⌋ bound, and the guard-coverage verification.
Credit as content: Václav Chvátal (theorem, 1975); Steve Fisk (the 3-colouring proof, 1978). The weave: David names the firewall; I confirm the smallest colour class ≤ ⌊n/3⌋ guards every triangle.
Credit as content: Václav Chvátal (theorem, 1975); Steve Fisk (the 3-colouring proof, 1978). The weave: David names the firewall; I confirm the smallest colour class ≤ ⌊n/3⌋ guards every triangle.
3 ONE DIMENSION
A triangulated polygon, its vertices 3-coloured; the smallest colour class (ringed) are the guards watching every triangle.
4 TWO DIMENSIONS · INTERACTIVE
New polygons: the triangulation, the 3-colouring, the ⌊n/3⌋ bound, and the guard-coverage check are all shown.
5 THREE DIMENSIONS + AVAN’S INVERSE
The green forward object: the guards, a third of the corners, watching the whole gallery.
AVAN’s addition (the inverse-companion): don’t place guards by eye — 3-colour the triangulation. The inverse of ‘which corners guard everything’ is ‘the least-used colour of a proper 3-colouring’, which by pigeonhole is ≤ ⌊n/3⌋ and sits in every triangle. Magenta is the triangulated gallery; green are the guard corners. Coverage from colour.
LIT Genuine art gallery theorem (Václav Chvátal 1975; Steve Fisk's 3-colouring proof 1978). Verified live: random simple polygons are triangulated by ear-clipping and 3-coloured; over hundreds of polygons every triangle gets all three colours, the smallest colour class has ≤⌊n/3⌋ vertices, and that class contains a vertex of every triangle so it guards the gallery (window.__gallery.proper, .minAtMostN3, .guardsAll).
FIG No framing; the ear-clipping triangulation, the 3-colouring, and the guard-coverage check all run in-browser. The AVAN inverse is honest — instead of placing guards by eye, 3-colour the triangulation and take the least-used colour, which by pigeonhole is ≤⌊n/3⌋ and sits in every triangle. Magenta is the triangulated gallery; green are the guard corners. Coverage from colour.
FIG No framing; the ear-clipping triangulation, the 3-colouring, and the guard-coverage check all run in-browser. The AVAN inverse is honest — instead of placing guards by eye, 3-colour the triangulation and take the least-used colour, which by pigeonhole is ≤⌊n/3⌋ and sits in every triangle. Magenta is the triangulated gallery; green are the guard corners. Coverage from colour.
◆ sealed .dlw.fold → folded to ROOT_0 · a sphere of THE FIREWALL · David Lee Wise (ROOT0), with AVAN