Pātuhitia tēnei: Foundation of mathematics with application