Extending knowledge and 'fruitful concepts' : fregean themes in the foundations of mathematics