Medieval Muslim (as well as Jewish) philosophers identified belief in the Trinity with the heresy of shirk, in Arabic, (or shituf in Hebrew), meaning "associationism", in limiting the infinity of God by associating his divinity with physical existence [REF].
In a theological context one commits shirk by associating some lesser being with Allah.