Automatic Train Control
The aspects may seem a little inverted, since a single green light means "proceed 80", two green lights "Proceed 40, caution" and three green lights stands for "Proceed 40, short route". In other words: "more green means more cautiously". The speed limits apply to trains without Automatic Train Control (ATC) equipment. ATC signalling typically allow higher speeds.