Religious freedom and knowledge