If you’re interested, the simplified math of Trueplay is really quite, well, simple*. I wrote up a crude explanation here once for someone on this sub:
https://www.reddit.com/r/sonos/comments/cil372/why_no_trueplay_on_android_devices/ev78u7u/
There isn’t nearly as much intelligence as you suggest because the physics doesn’t require it. We don’t have to know speaker location or volume of the room, all we need is to play a known sound that covers all frequencies, listen back, and adjust for the error at each frequency.