"""Reproduce the exact compatible-state transfer and ergodic-cost schematic."""
from pathlib import Path
SVG='<svg xmlns="http://www.w3.org/2000/svg" width="1280" height="1190" viewBox="0 0 1280 1190" role="img" aria-labelledby="lc-title lc-desc">\n  <title id="lc-title">Automatic basis control and the exact remaining ergodic cost</title>\n  <desc id="lc-desc">The actual canonical transfer gives T equals E_A I divided by d on the smaller center, physically Q P(w times t). Cesaro weights automatically have vanishing total basis energy and preserve compatibility and the physical trace. Their state functionals return in norm to the actual B. The normal trace in the state GNS completion is used only for the averaging proof, without replacing the original P. The minimum cost among boundedly dominated compatible states equals the lower spectral endpoint of the conditional ergodic cost bar a. General amenability has not been shown to make that endpoint zero for one suitable state.</desc>\n  <rect width="1280" height="1190" fill="#f4f7fb"/>\n  <text x="35" y="43" font-family="Helvetica" font-size="27" font-weight="bold" fill="#14263c">Automatic commutator control; the original cost remains</text>\n  <text x="35" y="82" font-family="Helvetica" font-size="20" fill="#14263c">a = b_hat; b = d^2 sqrt(1-4/d) Q(|E_D0(f-E_C(f))|). Full joint centers retained. (LC.1)</text>\n  <rect x="24" y="108" width="1232" height="177" rx="12" fill="#e5f0fa" stroke="#2563a0" stroke-width="2"/>\n  <text x="44" y="148" font-family="Helvetica" font-size="23" font-weight="bold" fill="#14263c">Use the actual basis transfer and the original larger expectation. (LC.3)-(LC.4)</text>\n  <text x="44" y="189" font-family="Helvetica" font-size="21" fill="#14263c">I(h) = sum a_i h a_i*; T = E_A I/d on Z(A); physically T(t) = Q(P(w t)).</text>\n  <text x="44" y="228" font-family="Helvetica" font-size="21" fill="#14263c">sum psi([h,a_i]*[h,a_i]) = 2d psi(h(h-T(h))); psi T = psi on Z(A).</text>\n  <text x="44" y="264" font-family="Helvetica" font-size="19" fill="#14263c">The transfer is basis-independent. No new P_alpha or original P(ell)=1 is inserted.</text>\n  <line x1="640" y1="288" x2="640" y2="317" stroke="#334155" stroke-width="3"/>\n  <polygon points="632,306 648,306 640,318" fill="#334155"/>\n  <rect x="24" y="326" width="1232" height="228" rx="12" fill="#e9f5e6" stroke="#48833e" stroke-width="2"/>\n  <text x="44" y="367" font-family="Helvetica" font-size="23" font-weight="bold" fill="#14263c">Every positive smaller-center seed can be averaged. (LC.5)-(LC.6)</text>\n  <text x="44" y="408" font-family="Helvetica" font-size="21" fill="#14263c">h_n = (1/n) sum_(k=0)^(n-1) T^k(h); c = psi(h) &gt; 0; A2 = sum ||a_i||^2 &lt;= d ceil(d).</text>\n  <text x="44" y="447" font-family="Helvetica" font-size="21" fill="#14263c">sum W_(n,i) &lt;= 4d psi(h^2)/n; uniform conjugation error &lt;= 2 sqrt(d A2 psi(h^2)/n)/c.</text>\n  <text x="44" y="486" font-family="Helvetica" font-size="21" fill="#14263c">Compatibility and restriction to M equal tau are exact for every n.</text>\n  <text x="44" y="525" font-family="Helvetica" font-size="19" fill="#14263c">W_(n,i) = psi([h_n,a_i]*[h_n,a_i]); the averaged positive weights need not be projections.</text>\n  <rect x="24" y="582" width="1232" height="245" rx="12" fill="#ffffff" stroke="#8093a9" stroke-width="2"/>\n  <text x="44" y="623" font-family="Helvetica" font-size="23" font-weight="bold" fill="#14263c">The state completion supplies a proved return map to actual B. (LC.7)-(LC.10)</text>\n  <text x="44" y="665" font-family="Helvetica" font-size="21" fill="#14263c">In state L2: h_n --&gt; Pi(h) in the Markov fixed algebra F; bar a = Pi(a).</text>\n  <text x="44" y="705" font-family="Helvetica" font-size="21" fill="#14263c">||psi(z dot)||_(B*) &lt;= ||z||_(2,psi): normalized weights converge in actual B* norm.</text>\n  <text x="44" y="745" font-family="Helvetica" font-size="21" fill="#14263c">Limit state psi_H is compatible, M-central, has physical trace tau and retains J_e annihilation.</text>\n  <text x="44" y="789" font-family="Helvetica" font-size="20" fill="#14263c">Exact limiting cost: psi_(Pi h)(a) = alpha(h bar a)/c; the original a is never replaced.</text>\n  <rect x="24" y="855" width="1232" height="218" rx="12" fill="#fff0d6" stroke="#b7791f" stroke-width="2"/>\n  <text x="44" y="896" font-family="Helvetica" font-size="23" font-weight="bold" fill="#14263c">One-state spectral target, with its exact limitation. (LC.11)-(LC.12)</text>\n  <text x="44" y="937" font-family="Helvetica" font-size="21" fill="#14263c">inf {sigma(a): sigma compatible and sigma &lt;= C psi for some finite C} = min sp_F(bar a).</text>\n  <text x="44" y="976" font-family="Helvetica" font-size="21" fill="#14263c">For one psi, a zero lower endpoint gives one actual zero-cost state. Kernel mass gives it directly.</text>\n  <text x="44" y="1015" font-family="Helvetica" font-size="21" fill="#14263c">At a true cost minimizer psi_0: bar a_(psi_0) = psi_0(a) 1. Its scalar need not be proved zero yet.</text>\n  <text x="44" y="1053" font-family="Helvetica" font-size="19" fill="#14263c">A positive endpoint for one psi excludes only its bounded domination class, not every suitable state.</text>\n  <text x="35" y="1115" font-family="Helvetica" font-size="21" font-weight="bold" fill="#14263c">General amenability has not yet forced min sp_F(bar a) = 0 for one available state.</text>\n  <text x="35" y="1154" font-family="Helvetica" font-size="20" fill="#14263c">Full BF, exact full partition, common-stage alignment and generation remain assigned.</text>\n  <text x="35" y="1180" font-family="Helvetica" font-size="16" fill="#14263c">Schematic proof maps; no encoded trace areas. Complete constructions and all constants: LC.1-LC.12.</text>\n</svg>'
Path(__file__).with_suffix(".svg").write_bytes(SVG.encode("utf-8"))
