In Andrew Kobin's script on Algebraic Geometry I found on page 355 a comment I would like better understand. It states
Another way to view formal smoothness is as an abstraction of Hensel's Lemma.
Formal smoothness of a scheme $X \to S$ is characterized by the property that for every $S$-scheme $Y$ and every infinitesimal subscheme $Y_0 \subset Y$ (tahtthat is defined by a nilpotent ideal sheaf in $Y$) , the canonical morphism
$$Hom_S(Y,X) \to Hom_S(Y_0, X)$$
is surjective. Well, why can this property can be regarded as abstraction of Hensels lemma? The Hensel's lemma I am familar with on lifting polynomials under certain conditions from $(R/m)[X]$ to $R[X]$, where $A$ is local complete with maxmaximal ideal $m$ not involves any, that doesn't involve any assumptions that $m$ is nilpotent. In which sense can the above can be regarded as an abstraction?
Another question on general properties of Henselian rings. I hearedheard fleetingly (but forgot the concrete context) that schemes over henselian local rings have generally a rich divisor theory that on one hand somehow allows in certain way to "reduce" the analysis of divisors on $R$-scheme $X$ ($R$ local hensel with maxmaximal ideal $m$ and residue field $\kappa=R/m$) to that on the special fiber $X \times_R \kappa$ in the sense that a "lot of information" of of the theory of divisors on $X$ maybe already be extracted onfrom the study of divisors on $X \times_R \kappa$ using formal techniques, by lifting results from $X \times_R R/m^i$ to $X \times_R R/m^{i+1}$ in much more "fruitful way" asthan if we work without Henselian context. On the ozherother hand if that's true, then what I heard then for example in the case of $X$'s surface there is much more "flexibility" in the constructions of divisors with desired intersection behaviour.
At least it seems that henselian assumption "garantees""guarantees" that much more information is conserved by passing to the special fiber as without this assumption. Could somebody give short insight into this correspondence principle and motivate how henselianess cames exactly in fruitful mannerhenselianess enters fruitfully into the game? Or give a recomendable reference where these ideas are made preciselyprecise and explaned in details?
Sorry if the formulation is too vague, I've only heard it once about this ideas, but unfortunately couldn't find anything about it and still quite curious what I can buytake from it.