karlexmarin Claude Opus 4.7 (1M context) commited on
Commit
b54babf
·
1 Parent(s): d5c0dac

v0.5.2: Anti-Ising badge + per-identity tooltips

Browse files

- TAF Card now shows 🧲 Anti-Ising badge for any γ ∈ Phase A (0,1)
- 12 per-identity tooltips added to consistency check details
- Hover D-SAGE-1 → quadratic identity explanation
- Hover Rushbrooke → tautology reasoning
- Hover Fisher_independent → why it does NOT close
- etc. (12 D-SAGE checks)
- All in 4 langs (EN/ES/FR/ZH)
- 13 new i18n keys × 4 langs = 52 keys total added
- Cumulative: 222/222 keys per lang, parity perfect

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files changed (2) hide show
  1. js/i18n.js +68 -0
  2. js/main.js +16 -5
js/i18n.js CHANGED
@@ -251,6 +251,23 @@ export const TRANSLATIONS = {
251
  "v05.consistency.title": "🔬 Algebraic consistency check (Sage + Lean v0.5)",
252
  "v05.consistency.desc": "Verifies 12 D-SAGE algebraic identities of TAF critical exponents (machine-proof Sage Groebner basis + Lean Mathlib4). Pass = framework intact. Fail = bf16 outlier / quantization artifact.",
253
  "v05.consistency.btn": "🔬 Verify algebraic consistency",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  },
255
 
256
  // ────────────────────────────────────────────────────────────────────────
@@ -286,6 +303,23 @@ export const TRANSLATIONS = {
286
  "v05.consistency.desc": "Verifica 12 identidades algebraicas D-SAGE de los exponentes críticos TAF (machine-proof Sage Groebner basis + Lean Mathlib4). Pasa = framework intacto. Falla = bf16 outlier / artefacto de cuantización.",
287
  "v05.consistency.btn": "🔬 Verificar consistencia algebraica",
288
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289
  "hero.title": "🔬 TAF Agent",
290
  "hero.tagline": "Prueba <strong>CUALQUIER</strong> LLM transformer antes de gastar GPU/€.",
291
  "hero.subtitle": "Todo el cómputo corre localmente en tu navegador. Gratis. Sin límites. Auditable.",
@@ -532,6 +566,23 @@ export const TRANSLATIONS = {
532
  "v05.consistency.desc": "Vérifie 12 identités algébriques D-SAGE des exposants critiques TAF (machine-proof Sage Groebner basis + Lean Mathlib4). Passe = framework intact. Échec = outlier bf16 / artefact de quantification.",
533
  "v05.consistency.btn": "🔬 Vérifier cohérence algébrique",
534
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
535
  "hero.title": "🔬 TAF Agent",
536
  "hero.tagline": "Testez <strong>N'IMPORTE QUEL</strong> LLM transformer avant de dépenser du GPU/€.",
537
  "hero.subtitle": "Tout le calcul s'exécute localement dans votre navigateur. Gratuit. Illimité. Auditable.",
@@ -778,6 +829,23 @@ export const TRANSLATIONS = {
778
  "v05.consistency.desc": "验证 TAF 临界指数的 12 个 D-SAGE 代数恒等式(Sage Groebner basis + Lean Mathlib4 机器证明)。通过 = 框架完整。失败 = bf16 异常值 / 量化伪影。",
779
  "v05.consistency.btn": "🔬 验证代数一致性",
780
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
781
  "hero.title": "🔬 TAF Agent",
782
  "hero.tagline": "在花费 GPU/$ 之前,测试<strong>任意</strong> Transformer LLM。",
783
  "hero.subtitle": "所有计算在您的浏览器本地运行。免费。无限制。可审计。",
 
251
  "v05.consistency.title": "🔬 Algebraic consistency check (Sage + Lean v0.5)",
252
  "v05.consistency.desc": "Verifies 12 D-SAGE algebraic identities of TAF critical exponents (machine-proof Sage Groebner basis + Lean Mathlib4). Pass = framework intact. Fail = bf16 outlier / quantization artifact.",
253
  "v05.consistency.btn": "🔬 Verify algebraic consistency",
254
+
255
+ // v0.5.2 — Anti-Ising universality class badge
256
+ "v05.antiising.badge": "🧲 Anti-Ising class (β=γ−1&lt;0, machine-verified)",
257
+
258
+ // v0.5.2 — Per-identity tooltips (plain English explanations)
259
+ "v05.tooltip.D_SAGE_1": "Quadratic algebraic identity connecting anomalous dimension η and susceptibility γ_χ. The CORE identity discovered by Sage Groebner basis (machine-proof). Replaces earlier wrong claim of triple closure.",
260
+ "v05.tooltip.D_SAGE_2": "In Phase A, β = γ−1 is negative (anti-Ising). Multiplied by χ = 1/(1−γ) gives exactly −1. Signature of TAF's negative-β regime.",
261
+ "v05.tooltip.D_SAGE_4": "The specific heat exponent α and susceptibility χ sum to exactly 2 in TAF. Algebraic consequence of Josephson hyperscaling.",
262
+ "v05.tooltip.D_SAGE_5": "Linear sum identity: α + γ_χ = 2(2−γ). Means as γ approaches 1 (Hagedorn), the sum approaches 2; at γ=0 it's 4.",
263
+ "v05.tooltip.D_SAGE_6": "Order parameter exponent times susceptibility exponent equals a specific quadratic in γ. Factored algebraic relation.",
264
+ "v05.tooltip.Rushbrooke_tautology": "Standard Rushbrooke hyperscaling 2β + γ_χ = ν·d at d=1. In TAF this is a TAUTOLOGY — γ_χ is defined exactly so this holds. Confirmed by Sage Groebner basis.",
265
+ "v05.tooltip.Josephson_tautology": "Standard Josephson hyperscaling 2 − α = ν·d at d=1. In TAF this is a TAUTOLOGY — α is defined exactly so this holds.",
266
+ "v05.tooltip.Fisher_independent": "Fisher relation γ_χ = (2−η)·ν. In TAF this is INDEPENDENT (does NOT close as identity, contrary to triple-closure claim). Residual is γ(2γ−3)/(1−γ).",
267
+ "v05.tooltip.eta_2gamma_REFUTED": "Paper 1 originally claimed η=2γ. This identity refutes it: residual is positive throughout Phase A. Lean Mathlib4 machine-proof refutation.",
268
+ "v05.tooltip.D_14_nu_imprint": "The learned imprint slope ν = −1/(2π) times 2π equals −1. Trivial dimensional check from paper 1.",
269
+ "v05.tooltip.D_SAGE_7": "The central charge c=3 times |ν_imprint| times 2π equals 3. Dimensional closure connecting CFT and training imprint.",
270
+ "v05.tooltip.nu_beta_id": "Correlation length exponent ν times order parameter exponent β equals −1 in Phase A. Variant of D-SAGE-2.",
271
  },
272
 
273
  // ────────────────────────────────────────────────────────────────────────
 
303
  "v05.consistency.desc": "Verifica 12 identidades algebraicas D-SAGE de los exponentes críticos TAF (machine-proof Sage Groebner basis + Lean Mathlib4). Pasa = framework intacto. Falla = bf16 outlier / artefacto de cuantización.",
304
  "v05.consistency.btn": "🔬 Verificar consistencia algebraica",
305
 
306
+ // v0.5.2 — Anti-Ising universality class badge
307
+ "v05.antiising.badge": "🧲 Clase Anti-Ising (β=γ−1&lt;0, verificado por máquina)",
308
+
309
+ // v0.5.2 — Per-identity tooltips (explicaciones en lenguaje claro)
310
+ "v05.tooltip.D_SAGE_1": "Identidad algebraica cuadrática que conecta dimensión anómala η con susceptibilidad γ_χ. Identidad CORE descubierta por Sage Groebner basis (machine-proof). Reemplaza claim incorrecto de triple closure.",
311
+ "v05.tooltip.D_SAGE_2": "En Fase A, β = γ−1 es negativo (anti-Ising). Multiplicado por χ = 1/(1−γ) da exactamente −1. Signature del régimen negativo-β de TAF.",
312
+ "v05.tooltip.D_SAGE_4": "El exponente de calor específico α y la susceptibilidad χ suman exactamente 2 en TAF. Consecuencia algebraica del hiperescalado de Josephson.",
313
+ "v05.tooltip.D_SAGE_5": "Identidad lineal: α + γ_χ = 2(2−γ). Significa que cuando γ se acerca a 1 (Hagedorn), la suma se acerca a 2; en γ=0 vale 4.",
314
+ "v05.tooltip.D_SAGE_6": "Exponente de parámetro de orden multiplicado por exponente de susceptibilidad da una cuadrática específica en γ. Relación algebraica factorizada.",
315
+ "v05.tooltip.Rushbrooke_tautology": "Hiperescalado de Rushbrooke estándar 2β + γ_χ = ν·d en d=1. En TAF es TAUTOLOGÍA — γ_χ se define exactamente para que se cumpla. Confirmado por Sage Groebner basis.",
316
+ "v05.tooltip.Josephson_tautology": "Hiperescalado de Josephson estándar 2 − α = ν·d en d=1. En TAF es TAUTOLOGÍA — α se define exactamente para que se cumpla.",
317
+ "v05.tooltip.Fisher_independent": "Relación de Fisher γ_χ = (2−η)·ν. En TAF es INDEPENDIENTE (NO cierra como identidad, contrario al claim de triple closure). El residuo es γ(2γ−3)/(1−γ).",
318
+ "v05.tooltip.eta_2gamma_REFUTED": "Paper 1 afirmaba η=2γ. Esta identidad lo refuta: el residuo es positivo en toda Fase A. Refutación machine-proof por Lean Mathlib4.",
319
+ "v05.tooltip.D_14_nu_imprint": "La pendiente de imprint aprendido ν = −1/(2π) multiplicada por 2π da −1. Verificación dimensional trivial del paper 1.",
320
+ "v05.tooltip.D_SAGE_7": "La carga central c=3 multiplicada por |ν_imprint| multiplicada por 2π da 3. Cierre dimensional conectando CFT con imprint de entrenamiento.",
321
+ "v05.tooltip.nu_beta_id": "Exponente de longitud de correlación ν multiplicado por exponente de parámetro de orden β da −1 en Fase A. Variante de D-SAGE-2.",
322
+
323
  "hero.title": "🔬 TAF Agent",
324
  "hero.tagline": "Prueba <strong>CUALQUIER</strong> LLM transformer antes de gastar GPU/€.",
325
  "hero.subtitle": "Todo el cómputo corre localmente en tu navegador. Gratis. Sin límites. Auditable.",
 
566
  "v05.consistency.desc": "Vérifie 12 identités algébriques D-SAGE des exposants critiques TAF (machine-proof Sage Groebner basis + Lean Mathlib4). Passe = framework intact. Échec = outlier bf16 / artefact de quantification.",
567
  "v05.consistency.btn": "🔬 Vérifier cohérence algébrique",
568
 
569
+ // v0.5.2 — Anti-Ising universality class badge
570
+ "v05.antiising.badge": "🧲 Classe Anti-Ising (β=γ−1&lt;0, vérifié par machine)",
571
+
572
+ // v0.5.2 — Tooltips par identité (explications en langage clair)
573
+ "v05.tooltip.D_SAGE_1": "Identité algébrique quadratique reliant la dimension anormale η et la susceptibilité γ_χ. Identité CENTRALE découverte par Sage Groebner basis (machine-proof). Remplace l'ancienne affirmation incorrecte de triple closure.",
574
+ "v05.tooltip.D_SAGE_2": "En Phase A, β = γ−1 est négatif (anti-Ising). Multiplié par χ = 1/(1−γ) donne exactement −1. Signature du régime négatif-β de TAF.",
575
+ "v05.tooltip.D_SAGE_4": "L'exposant de chaleur spécifique α et la susceptibilité χ se somment exactement à 2 en TAF. Conséquence algébrique de l'hyperscaling de Josephson.",
576
+ "v05.tooltip.D_SAGE_5": "Identité linéaire : α + γ_χ = 2(2−γ). Signifie que quand γ s'approche de 1 (Hagedorn), la somme s'approche de 2 ; à γ=0 elle vaut 4.",
577
+ "v05.tooltip.D_SAGE_6": "Exposant de paramètre d'ordre multiplié par exposant de susceptibilité donne une quadratique spécifique en γ. Relation algébrique factorisée.",
578
+ "v05.tooltip.Rushbrooke_tautology": "Hyperscaling de Rushbrooke standard 2β + γ_χ = ν·d à d=1. En TAF c'est une TAUTOLOGIE — γ_χ est défini exactement pour que cela soit vrai. Confirmé par Sage Groebner basis.",
579
+ "v05.tooltip.Josephson_tautology": "Hyperscaling de Josephson standard 2 − α = ν·d à d=1. En TAF c'est une TAUTOLOGIE — α est défini exactement pour que cela soit vrai.",
580
+ "v05.tooltip.Fisher_independent": "Relation de Fisher γ_χ = (2−η)·ν. En TAF est INDÉPENDANTE (ne ferme PAS comme identité, contrairement à l'affirmation de triple closure). Le résidu est γ(2γ−3)/(1−γ).",
581
+ "v05.tooltip.eta_2gamma_REFUTED": "Paper 1 affirmait η=2γ. Cette identité le réfute : le résidu est positif dans toute la Phase A. Réfutation machine-proof par Lean Mathlib4.",
582
+ "v05.tooltip.D_14_nu_imprint": "La pente d'empreinte apprise ν = −1/(2π) multipliée par 2π donne −1. Vérification dimensionnelle triviale du paper 1.",
583
+ "v05.tooltip.D_SAGE_7": "La charge centrale c=3 multipliée par |ν_imprint| multipliée par 2π donne 3. Fermeture dimensionnelle reliant CFT à l'empreinte d'entraînement.",
584
+ "v05.tooltip.nu_beta_id": "Exposant de longueur de corrélation ν multiplié par exposant de paramètre d'ordre β donne −1 en Phase A. Variante de D-SAGE-2.",
585
+
586
  "hero.title": "🔬 TAF Agent",
587
  "hero.tagline": "Testez <strong>N'IMPORTE QUEL</strong> LLM transformer avant de dépenser du GPU/€.",
588
  "hero.subtitle": "Tout le calcul s'exécute localement dans votre navigateur. Gratuit. Illimité. Auditable.",
 
829
  "v05.consistency.desc": "验证 TAF 临界指数的 12 个 D-SAGE 代数恒等式(Sage Groebner basis + Lean Mathlib4 机器证明)。通过 = 框架完整。失败 = bf16 异常值 / 量化伪影。",
830
  "v05.consistency.btn": "🔬 验证代数一致性",
831
 
832
+ // v0.5.2 — Anti-Ising universality class badge
833
+ "v05.antiising.badge": "🧲 反 Ising 类 (β=γ−1&lt;0,机器验证)",
834
+
835
+ // v0.5.2 — 每个恒等式的工具提示(通俗解释)
836
+ "v05.tooltip.D_SAGE_1": "二次代数恒等式,连接异常维度 η 和磁化率 γ_χ。Sage Groebner basis 发现的核心恒等式(机器证明)。取代了之前关于三重闭合的错误声明。",
837
+ "v05.tooltip.D_SAGE_2": "在 A 相中,β = γ−1 为负(反 Ising)。乘以 χ = 1/(1−γ) 恰好等于 −1。TAF 负 β 体制的标志。",
838
+ "v05.tooltip.D_SAGE_4": "比热指数 α 和磁化率 χ 在 TAF 中精确加和为 2。Josephson 超标度的代数推论。",
839
+ "v05.tooltip.D_SAGE_5": "线性恒等式:α + γ_χ = 2(2−γ)。意味着当 γ 接近 1(Hagedorn)时,总和接近 2;在 γ=0 时为 4。",
840
+ "v05.tooltip.D_SAGE_6": "序参量指数乘以磁化率指数等于 γ 的特定二次式。因式分解的代数关系。",
841
+ "v05.tooltip.Rushbrooke_tautology": "标准 Rushbrooke 超标度 2β + γ_χ = ν·d 在 d=1。在 TAF 中这是一个重言式 — γ_χ 的定义就是为了使其成立。Sage Groebner basis 确认。",
842
+ "v05.tooltip.Josephson_tautology": "标准 Josephson 超标度 2 − α = ν·d 在 d=1。在 TAF 中这是一个重言式 — α 的定义就是为了使其成立。",
843
+ "v05.tooltip.Fisher_independent": "Fisher 关系 γ_χ = (2−η)·ν。在 TAF 中是独立的(不作为恒等式闭合,与三重闭合声明相反)。残差为 γ(2γ−3)/(1−γ)。",
844
+ "v05.tooltip.eta_2gamma_REFUTED": "Paper 1 声称 η=2γ。这个恒等式驳斥了它:残差在整个 A 相中为正。Lean Mathlib4 的机器证明驳斥。",
845
+ "v05.tooltip.D_14_nu_imprint": "学习到的印记斜率 ν = −1/(2π) 乘以 2π 得 −1。来自 paper 1 的简单维度检查。",
846
+ "v05.tooltip.D_SAGE_7": "中心电荷 c=3 乘以 |ν_imprint| 乘以 2π 得 3。连接 CFT 和训练印记的维度闭合。",
847
+ "v05.tooltip.nu_beta_id": "关联长度指数 ν 乘以序参量指数 β 在 A 相中得 −1。D-SAGE-2 的变体。",
848
+
849
  "hero.title": "🔬 TAF Agent",
850
  "hero.tagline": "在花费 GPU/$ 之前,测试<strong>任意</strong> Transformer LLM。",
851
  "hero.subtitle": "所有计算在您的浏览器本地运行。免费。无限制。可审计。",
js/main.js CHANGED
@@ -1110,6 +1110,11 @@ function renderProfile(p, params) {
1110
  θ=${formatN(ms.rope_theta)} ·
1111
  ${ms.has_GQA ? "GQA" : "MHA"}${ms.has_SWA ? " + SWA" : ""}
1112
  </div>
 
 
 
 
 
1113
  </div>
1114
 
1115
  <h3 data-i18n="tafcard.recipes_title">📋 Recipes (verdict per dimension)</h3>
@@ -1190,12 +1195,18 @@ json.dumps(result)
1190
  const passed = r.n_checks_passed;
1191
  const total = r.n_checks_total;
1192
  const allOk = r.all_consistent;
1193
- const checksRows = Object.entries(r.checks).map(([id, c]) =>
1194
- `<div class="num-row" style="padding:0.25em 0;">
1195
- <span class="num-label" style="font-family:monospace;font-size:0.85em;">${escapeHtml(id)}: ${escapeHtml(c.claim)}</span>
 
 
 
 
 
 
1196
  <span class="num-value" style="color:${c.passes ? "#3fb950" : "#f85149"};">${c.passes ? "✓" : "✗"}</span>
1197
- </div>`
1198
- ).join("");
1199
  $("consistency-result").innerHTML = `
1200
  <div style="padding:0.7em; border-left:3px solid ${allOk ? "#3fb950" : "#f85149"}; background:rgba(${allOk ? "63,185,80" : "248,81,73"},0.08); margin-bottom:0.5em;">
1201
  <strong>${allOk ? "✅" : "❌"} ${passed}/${total} D-SAGE identities ${allOk ? "consistent" : "FAILED"}</strong>
 
1110
  θ=${formatN(ms.rope_theta)} ·
1111
  ${ms.has_GQA ? "GQA" : "MHA"}${ms.has_SWA ? " + SWA" : ""}
1112
  </div>
1113
+ ${(kn.gamma_decomposed ?? kn.gamma_pade) > 0 && (kn.gamma_decomposed ?? kn.gamma_pade) < 1
1114
+ ? `<div class="taf-anti-ising-badge" style="margin-top:0.4em; display:inline-block; padding:0.25em 0.6em; border-radius:4px; background:rgba(110,80,200,0.15); border:1px solid rgba(110,80,200,0.4); font-size:0.85em;" data-i18n="v05.antiising.badge">
1115
+ 🧲 Anti-Ising class (β=γ−1&lt;0, machine-verified)
1116
+ </div>`
1117
+ : ''}
1118
  </div>
1119
 
1120
  <h3 data-i18n="tafcard.recipes_title">📋 Recipes (verdict per dimension)</h3>
 
1195
  const passed = r.n_checks_passed;
1196
  const total = r.n_checks_total;
1197
  const allOk = r.all_consistent;
1198
+ const tooltipText = (id) => {
1199
+ const key = `v05.tooltip.${id.replace(/[^a-zA-Z0-9]/g, '_')}`;
1200
+ const tip = t(key);
1201
+ return (tip === key) ? '' : tip;
1202
+ };
1203
+ const checksRows = Object.entries(r.checks).map(([id, c]) => {
1204
+ const tip = tooltipText(id);
1205
+ return `<div class="num-row" style="padding:0.25em 0;" ${tip ? `title="${escapeHtml(tip)}"` : ''}>
1206
+ <span class="num-label" style="font-family:monospace;font-size:0.85em;${tip ? 'cursor:help;border-bottom:1px dotted rgba(110,180,255,0.5);' : ''}">${escapeHtml(id)}: ${escapeHtml(c.claim)}</span>
1207
  <span class="num-value" style="color:${c.passes ? "#3fb950" : "#f85149"};">${c.passes ? "✓" : "✗"}</span>
1208
+ </div>`;
1209
+ }).join("");
1210
  $("consistency-result").innerHTML = `
1211
  <div style="padding:0.7em; border-left:3px solid ${allOk ? "#3fb950" : "#f85149"}; background:rgba(${allOk ? "63,185,80" : "248,81,73"},0.08); margin-bottom:0.5em;">
1212
  <strong>${allOk ? "✅" : "❌"} ${passed}/${total} D-SAGE identities ${allOk ? "consistent" : "FAILED"}</strong>