Ko fight example from a pro game - 3

Advanced

123456789
start of ko

This is a game between Zhang Li, 3p, and Huang Yizhong, 6p, in 2005 (2005-10-08, 7th Chinese League A, round 13, W+R 7.5 komi, complete game record). White invites a ko with 6, which is necessary to fight the capturing race in the corner. 9 starts the ko.

1234567910
B8 at BC

1 is the first threat and it is a local ko threat. 4 is also a local threat. Next 5-6 prepares 7 which is necessary to continue the ko. 9 is another local threat.

1235689
B4 at BB, W7 at W1

2 is a local threat and 3 must respond again. 9 seems to finish the ko, but . . .

12345789
W6 at WW; W8 at B3

Black throws in at 1, a tesuji that reminds of the two-stone corner squeeze. 3 then takes the ko, which has become a two-stage ko. Finally, 8 resolves the ko.

The last local threat, at 4, is worth a closer look . . .

1234ab
Why is it a ko threat

If 1 resolved the ko, 2 connects. 3 cannot resist, as 4 makes miai of a and b. Probably 4 should be played at a immediately.