The following sentence appears in this video at around 7 min:
教科書の中でキツツキは木に穴をあけるとありましたが、一秒間のうちに何回どんどんどんどんってできるでしょうか?
The follwing sentence appears in this answer:
"メニューには売り切れとある" (menu says [it is] sold out.)
I want to know what do 「と」 and 「ある」 mean in these sentences?
In this Japanese dictionary, 「とある」 got a meaning:
according to; reads; reading; is written; says; states. Abbreviation, See also と書いてある
but, how does it abbreviate from と書いてある?