docs(diagrams): add 4 remaining SVG figures for §8 HMM + §10 geometry

- fig_hmm_regime: 3-state Bull/Neutral/Bear HMM state machine + emission table
- fig_viterbi_trellis: Viterbi trellis K=3 T=4 with MAP path highlighted
- fig_std_vs_nat_gradient: standard vs natural gradient property comparison panels
- fig_lie_group_hierarchy: GL/SL/O/SO/Sp/H Lie group tree with finance annotations

All 27 SVGs regenerated; mathematical_foundations.md now 0 remaining ASCII blocks.
_fix_diagrams3.py added for reproducibility.
This commit is contained in:
ThotDjehuty
2026-03-07 13:39:43 +01:00
parent 5d06f0ab57
commit 49be6c7bf7
30 changed files with 8808 additions and 1086 deletions
@@ -6,7 +6,7 @@
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:date>2026-03-07T11:02:32.779442</dc:date>
<dc:date>2026-03-07T13:33:15.379636</dc:date>
<dc:format>image/svg+xml</dc:format>
<dc:creator>
<cc:Agent>
@@ -39,7 +39,7 @@ z
</g>
<g id="PolyCollection_1">
<defs>
<path id="m9449d46e40" d="M 61.267358 -47.13225
<path id="m093648a96e" d="M 61.267358 -47.13225
L 61.267358 -47.13225
L 61.978963 -47.13225
L 62.690568 -47.13225
@@ -1044,13 +1044,13 @@ L 61.267358 -47.13225
z
" style="stroke: #d62728; stroke-opacity: 0.09"/>
</defs>
<g clip-path="url(#p9b05fcc7e2)">
<use xlink:href="#m9449d46e40" x="0" y="270.66825" style="fill: #d62728; fill-opacity: 0.09; stroke: #d62728; stroke-opacity: 0.09"/>
<g clip-path="url(#pbfcd3c9241)">
<use xlink:href="#m093648a96e" x="0" y="270.66825" style="fill: #d62728; fill-opacity: 0.09; stroke: #d62728; stroke-opacity: 0.09"/>
</g>
</g>
<g id="PolyCollection_2">
<defs>
<path id="ma1341e1689" d="M 61.267358 -47.13225
<path id="mfed8867b3b" d="M 61.267358 -47.13225
L 61.267358 -47.13225
L 61.978963 -47.13225
L 62.690568 -47.13225
@@ -2055,13 +2055,13 @@ L 61.267358 -47.13225
z
" style="stroke: #27ae60; stroke-opacity: 0.09"/>
</defs>
<g clip-path="url(#p9b05fcc7e2)">
<use xlink:href="#ma1341e1689" x="0" y="270.66825" style="fill: #27ae60; fill-opacity: 0.09; stroke: #27ae60; stroke-opacity: 0.09"/>
<g clip-path="url(#pbfcd3c9241)">
<use xlink:href="#mfed8867b3b" x="0" y="270.66825" style="fill: #27ae60; fill-opacity: 0.09; stroke: #27ae60; stroke-opacity: 0.09"/>
</g>
</g>
<g id="PolyCollection_3">
<defs>
<path id="maf7a393b6f" d="M 61.267358 -47.13225
<path id="ma649b81a59" d="M 61.267358 -47.13225
L 61.267358 -47.132957
L 61.978963 -47.133092
L 62.690568 -47.133251
@@ -3066,20 +3066,20 @@ L 61.267358 -47.13225
z
" style="stroke: #2e6be5; stroke-opacity: 0.09"/>
</defs>
<g clip-path="url(#p9b05fcc7e2)">
<use xlink:href="#maf7a393b6f" x="0" y="270.66825" style="fill: #2e6be5; fill-opacity: 0.09; stroke: #2e6be5; stroke-opacity: 0.09"/>
<g clip-path="url(#pbfcd3c9241)">
<use xlink:href="#ma649b81a59" x="0" y="270.66825" style="fill: #2e6be5; fill-opacity: 0.09; stroke: #2e6be5; stroke-opacity: 0.09"/>
</g>
</g>
<g id="matplotlib.axis_1">
<g id="xtick_1">
<g id="line2d_1">
<defs>
<path id="m4481f5eb4a" d="M 0 0
<path id="mdb6fa5cc84" d="M 0 0
L 0 3.5
" style="stroke: #000000; stroke-width: 0.8"/>
</defs>
<g>
<use xlink:href="#m4481f5eb4a" x="98.0009" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#mdb6fa5cc84" x="98.0009" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_1">
@@ -3124,7 +3124,7 @@ z
<g id="xtick_2">
<g id="line2d_2">
<g>
<use xlink:href="#m4481f5eb4a" x="159.223471" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#mdb6fa5cc84" x="159.223471" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_2">
@@ -3166,7 +3166,7 @@ z
<g id="xtick_3">
<g id="line2d_3">
<g>
<use xlink:href="#m4481f5eb4a" x="220.446041" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#mdb6fa5cc84" x="220.446041" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_3">
@@ -3197,7 +3197,7 @@ z
<g id="xtick_4">
<g id="line2d_4">
<g>
<use xlink:href="#m4481f5eb4a" x="281.668612" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#mdb6fa5cc84" x="281.668612" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_4">
@@ -3212,7 +3212,7 @@ z
<g id="xtick_5">
<g id="line2d_5">
<g>
<use xlink:href="#m4481f5eb4a" x="342.891182" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#mdb6fa5cc84" x="342.891182" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_5">
@@ -3253,7 +3253,7 @@ z
<g id="xtick_6">
<g id="line2d_6">
<g>
<use xlink:href="#m4481f5eb4a" x="404.113753" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#mdb6fa5cc84" x="404.113753" y="233.112" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_6">
@@ -3293,12 +3293,12 @@ z
<g id="ytick_1">
<g id="line2d_7">
<defs>
<path id="m8a7759b22d" d="M 0 0
<path id="m7d3290d429" d="M 0 0
L -3.5 0
" style="stroke: #000000; stroke-width: 0.8"/>
</defs>
<g>
<use xlink:href="#m8a7759b22d" x="43.512813" y="223.536" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#m7d3290d429" x="43.512813" y="223.536" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_8">
@@ -3313,7 +3313,7 @@ L -3.5 0
<g id="ytick_2">
<g id="line2d_8">
<g>
<use xlink:href="#m8a7759b22d" x="43.512813" y="197.206122" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#m7d3290d429" x="43.512813" y="197.206122" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_9">
@@ -3328,7 +3328,7 @@ L -3.5 0
<g id="ytick_3">
<g id="line2d_9">
<g>
<use xlink:href="#m8a7759b22d" x="43.512813" y="170.876245" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#m7d3290d429" x="43.512813" y="170.876245" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_10">
@@ -3343,7 +3343,7 @@ L -3.5 0
<g id="ytick_4">
<g id="line2d_10">
<g>
<use xlink:href="#m8a7759b22d" x="43.512813" y="144.546367" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#m7d3290d429" x="43.512813" y="144.546367" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_11">
@@ -3358,7 +3358,7 @@ L -3.5 0
<g id="ytick_5">
<g id="line2d_11">
<g>
<use xlink:href="#m8a7759b22d" x="43.512813" y="118.21649" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#m7d3290d429" x="43.512813" y="118.21649" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_12">
@@ -3373,7 +3373,7 @@ L -3.5 0
<g id="ytick_6">
<g id="line2d_12">
<g>
<use xlink:href="#m8a7759b22d" x="43.512813" y="91.886612" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#m7d3290d429" x="43.512813" y="91.886612" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_13">
@@ -3388,7 +3388,7 @@ L -3.5 0
<g id="ytick_7">
<g id="line2d_13">
<g>
<use xlink:href="#m8a7759b22d" x="43.512813" y="65.556735" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#m7d3290d429" x="43.512813" y="65.556735" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_14">
@@ -3437,7 +3437,7 @@ z
<g id="ytick_8">
<g id="line2d_14">
<g>
<use xlink:href="#m8a7759b22d" x="43.512813" y="39.226857" style="stroke: #000000; stroke-width: 0.8"/>
<use xlink:href="#m7d3290d429" x="43.512813" y="39.226857" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_15">
@@ -3616,7 +3616,7 @@ L 355.87184 223.528691
L 409.242217 223.536
L 416.358267 223.536
L 416.358267 223.536
" clip-path="url(#p9b05fcc7e2)" style="fill: none; stroke: #d62728; stroke-width: 2; stroke-linecap: square"/>
" clip-path="url(#pbfcd3c9241)" style="fill: none; stroke: #d62728; stroke-width: 2; stroke-linecap: square"/>
</g>
<g id="line2d_16">
<path d="M 61.267358 223.536
@@ -3687,7 +3687,7 @@ L 284.711337 223.525069
L 338.081714 223.536
L 416.358267 223.536
L 416.358267 223.536
" clip-path="url(#p9b05fcc7e2)" style="fill: none; stroke: #27ae60; stroke-width: 2; stroke-linecap: square"/>
" clip-path="url(#pbfcd3c9241)" style="fill: none; stroke: #27ae60; stroke-width: 2; stroke-linecap: square"/>
</g>
<g id="line2d_17">
<path d="M 61.267358 223.535293
@@ -3761,12 +3761,12 @@ L 244.14985 223.518862
L 281.864917 223.535999
L 416.358267 223.536
L 416.358267 223.536
" clip-path="url(#p9b05fcc7e2)" style="fill: none; stroke: #2e6be5; stroke-width: 2; stroke-linecap: square"/>
" clip-path="url(#pbfcd3c9241)" style="fill: none; stroke: #2e6be5; stroke-width: 2; stroke-linecap: square"/>
</g>
<g id="line2d_18">
<path d="M 159.223471 233.112
L 159.223471 22.44
" clip-path="url(#p9b05fcc7e2)" style="fill: none; stroke-dasharray: 4.81,2.08; stroke-dashoffset: 0; stroke: #e8850a; stroke-width: 1.3"/>
" clip-path="url(#pbfcd3c9241)" style="fill: none; stroke-dasharray: 4.81,2.08; stroke-dashoffset: 0; stroke: #e8850a; stroke-width: 1.3"/>
</g>
<g id="patch_3">
<path d="M 43.512813 233.112
@@ -4440,7 +4440,7 @@ L 69.612813 73.859531
</g>
</g>
<defs>
<clipPath id="p9b05fcc7e2">
<clipPath id="pbfcd3c9241">
<rect x="43.512813" y="22.44" width="390.6" height="210.672"/>
</clipPath>
</defs>

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB