What do you expect here to pass as argument to the oldfact command?
This works here: \defineenumeration [proof] [closesymbol={\mathematics{\square}}] \starttext \startproof \samplefile{lorem} \stopproof \stoptext