The Epistemology of Ptolemy's "On the Criterion"