Fasting is obligatory on the:
- Bāligh (attained physical & cognitive maturity)
- Sane (cognitive maturity & the capacity to understand the obligation, its fulfilment and reward)
- Resident (not travelling or able to fast while in Travel)
- Free of valid Sharʿī excuse(s)
As regards those who do not fall in the above categories…
Fasting is not obligatory and there is no spiritual reward assigned for performing it.
Not obligatory but recommended if able to sustain the fast.
None of the Islamic pillars are obligatory on them with the exception zakāt (according to the majority view) being paid by those financially responsible for their estate.
Permitted to break the fast but is required to make up for it later.