Definition. Sections and retractions [01FQ]

A section-retraction pair is defined to be a pair of functions s:B\to A and r:A\to B equipped with a homotopy r\circ s\sim 1_B. In this context, s is called a section of r and r is called a retraction of s. The idea is that r “undoes” or “retracts” whatever s does. B is called a retract of A in the presence of such a section-retraction pair.

Given a function r:A\to B, the type of sections of r can be defined by a sum:

\mathsf {sectionOf}(r) :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(s:B\to A)}} r\circ s \sim 1_B

Likewise, for a function s:B\to A, the type of retractions of s can be defined similarly:

\mathsf {retractionOf}(s) :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(r:A\to B)}} r\circ s\sim 1_B

In both scenarios, such a section-retraction pair is said to witness that B is a retract of A.