When TeX shrinks an equation, it only uses the shrink component of glue "at the outer level". For instance, numerator/denominator of fractions are not shrunk, as shown by the example below: first I put the output of the code then the desired output (obtained by scaling \thinmuskip, \medmuskip, \thickmuskip by 0.8, it turns out).
\shipout\vbox{\hsize=140pt\relax
$${1+2+3\over 2-1}=1+2+3={1+2+3}$$}
\bye
Is it possible in LuaTeX to make TeX shrink such glue that is in a sublist when necessary? (I don't think it is possible in other TeX engines unless one takes over control of the full math typesetting, like in breqn.)
(This question is inspired by Does TeX use Hookean physical springs to represent positive and negative glue? where it was asked whether TeX could combine boxes in parallel.)


nodetreepackage. When I add\input{nodetree.tex}\nodetreeregister{hpack}before your document I can at least see the glue spec inside the hlist. Therefore it should be possible to access it as well. However, I have no idea how. Perhaps drop Hans an email. – Henri Menke May 27 '17 at 04:28$${1+2+3\over 1}=1+2+3$$to$$\left.1+2+3\right.=1+2+3$$and compare the results at widths of 86 and 94. – Mico May 27 '17 at 05:20