I understand that we can use W-types to encode natural numbers and a wide variety of other inductive types in intensional MLTT. Can we encode W-types using only natural numbers within type theory, potentially giving up some of the judgmental equalities, but keeping the propositional equality the same? I always thought it was the case based on this quote from nLab W-type page:
"In a topos with a natural numbers object (NNO), W-types for any polynomial endofunctor can be constructed as certain sets of well-founded trees; thus every topos with a NNO is a ΠW-pretopos. This applies in particular in the topos Set (unless one is a predicativist, in which case Set is not a topos and W-types in it must be postulated explicitly)."
But I am unsure if this is a correct interpretation of the categorical concepts involved. I think the culprit here is the requirement of a topos with NNO, not just a locally cartesian closed category. Is this the case? Can we construct W-types from natural numbers?
Edit: I have found a construction of W-types from natural numbers in presence of propositional resizing in Strictly Positive Types in Homotopy Type Theory, so I think I should specify that I want to keep the theory as predicative as possible and hopefully free of uses of K or univalence.
Edit 2: To specify what I mean by intensional MLTT, it is the rules for $\Pi$, $\Sigma$, $\mathbb{N}$, Id, 0, 1, 2, plus an infinite predicative hierarchy of universes. $U_0 : U_1$, $U_1 : U_2$ etc.