Text this: A machine assisted proof of the subject reduction property for small typed functional language. Master Thesis