Infinitive subject

From Teflpedia

An infinitive subject is an infinitive (in English always a to-infinitive) that is used as subject, to refer to an activity. For example, to know in To know him is to love him.

This is a highly formal register, and in most similar contexts, English speakers will use dummy it instead.