📜 What do the documents say?
There was another mosque here first: a building put up by Melik Gazi of the Danishmendids. When in time it became unusable and was pulled down, a complex was built in its place by Ayas Ağa.1, 3, 6
The complex was founded in AH 900 / AD 1495 and consisted of a school, a madrasa and a mosque.1 In the endowment deed Ayas Ağa is introduced as “the freedman of Sultan Bayezid II”.1
The mosque is square in plan and covered by a dome clad in grooved roof tiles; triangles were used in the transition to the dome. On the north side there is a late-comers' portico in three sections.4 The madrasa has nine cells around the courtyard to the north of the mosque (six on the north, three on the west); its plan, like a typical Ottoman madrasa, is a U with one shorter arm, and in front of the cells there is a portico with marble columns.7
And most important of all: the endowment deed (vakfiye) of this complex has survived.1 The section below comes from that document.