Paradox and foundation