I think there are two different issues. First, the TTE if we suspects that a child is above 5 has the power (rarely exercised) to ask for some proof. The other matter relates to declaring the child's detail at the time of booking. If you ask me, it is not compulsory and has only been introduced as ''proof' for insurance in the event of a serious accident.
I am not saying I am correct.