In this F-104 V-n diagram, why does the stall speed (in terms of IAS) decrease with altitude in some parts of the flight envelope? (This question has been edited to reflect a change in perspective: based on answers to the related question What is causing these &quot;corners&quot; on this F-104 V-n diagram?, I now believe that the curves on the upper left edge of the envelope are intended to represent the stall speed throughout their entirety, both above and below the distinct &quot;corners&quot;.  If the aircraft is being limited by something other than the actual stall along some portions of these curves, then it would be helpful to clarify and explain that in an answer either to the present question or the one linked above.)
In this V-n diagram for an F-104 (source: this Wikipedia link), why does the stall speed at any given G-loading (in terms of IAS) decrease with altitude-- at least in the part of the envelope that is below the sharp &quot;corners&quot;?
And why is the opposite is true for data points above the &quot;corners&quot;?
For example-- (numbers are approximate)--
Below the &quot;corners&quot;--
20,000', 5G, 415 knots IAS, versus 30,000', 5G, 375 knots IAS
30,000', 3G, 330 knots IAS, versus 40,000', 3G, 295 knots IAS
60,000', 1G, 175 knots IAS, versus 70,000', 1G, 140 knots IAS
Above the &quot;corners&quot;--
30,000', 5G, 375 knots IAS, versus 40,000', 5G, 475 knots IAS
And why do the curves cross each other?
(For example, at about 350 KIAS and 3.5G, the 40,000' curve crosses the 30,000' curve.)
Related ASE questions and answers-- but some of which seem to suggest the opposite relationship should be the case (at least for the &quot;below the corners&quot; cases)--
Why does indicated stall speed change? (see question and all answers)
What causes a slight increases in indicated stall speed with altitude? (see question and all answers)
How does the IAS stall speed vary with increasing altitude? (see question and all answers)
As an airplane approaches Mach 1, all pressure changes grow with the Prandtl-Glauert factor of $\frac{1}{\sqrt{1-Ma^2}}$. Therefore, the lift curve slope increases so the wing produces more lift at the same angle of attack and dynamic pressure the closer its Mach number is to 1. On wings with thicker airfoils and higher aspect ratio the maximum lift coefficient drops in the transsonic region; however, thin wings of low aspect ratios are unaffected by this.
NACA TN 3469 by Edward Polhamus compares wings with varying sweep angle, thickness and aspect ratio. The plot below shows that the Prandtl-Glauert effect is strongest for unswept wings and the transsonic lift bucket disappears for thin wings with an aspect ratio of 4 and lower. The F-104 had a 3.36% airfoil and an aspect ratio of 2.45.

This effect also shows up in the maximum lift; the plot below is from Sighard Hoerner's Fluid Dynamic Lift, chapter 4. It shows how the Mach number affects maximum lift: Small leading edge radii show a loss of maximum lift at moderate Mach numbers but perform well at transsonic speeds.

The indicated stall speed decreases with altitude because the lower temperature lowers the local speed of sound and brings the airplane closer to Mach 1 and thus to higher maximum lift. This effect is limited to subsonic speed close to Mach 1 which explains why those corners only show up when the indicated airspeed correlates with Mach close to 1 at that particular altitude.