Porting of software foundations to Agda