From 3df850dfa9710bbed8d52a862b58b0211b7a0cd0 Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Thu, 1 Jan 2026 17:38:43 +1100 Subject: [PATCH] OK I added some checks and I think it's actually correct! --- explore_120cell.js | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/explore_120cell.js b/explore_120cell.js index 6ea33b7..b88a891 100644 --- a/explore_120cell.js +++ b/explore_120cell.js @@ -462,5 +462,31 @@ const c5s = coherent_5cells(cell120, all5); const celli = c5s.map((c5) => [ "1", "2", "3", "4", "5" ].map((l) => c5[l])); -console.log(celli); -console.log(celli.length); + +// check it because I don't believe it yet + +const vertex_check = {}; + +for( const c5 of celli ) { + for( const l in c5 ) { + const v = c5[l]; + if( v in vertex_check ) { + console.log(`Double count vertex ${v}`); + } + vertex_check[v] = 1; + } +} + +for( let i = 1; i < 601; i++ ) { + if( !vertex_check[i] ) { + console.log(`v ${i} missing`); + } +} + + +const idict = {}; +for( let i = 1; i < 121; i++ ) { + idict[i] = celli[i - 1]; +} + +console.log(JSON.stringify(idict, null, 2));