An idealistic critique of truth and logic