Generation and presentation of formal mathematical documents by