Question: what is the difference between then and so?
Answer: As adverbs the difference between so and then is that so is to the (explicitly stated) extent that while then is (temporal location) at that time.