Science is fun but I’d suggest reading comprehension. That might help with science too.Other way around. High altitude allows for lower octane. Hence why you see 85 octane in places like Denver. Lower elevation requires higher octane. Science is fun.
That said, you’re generally correct... even moreso on NA engines as forced induction engines mostly make up for the loss of atmospheric pressure. As cylinder pressure drops, so does the heat generated as a byproduct of less efficient combustion, which mitigates spark knock under typical driving/engine conditions at high elevation.