Graded infinitesimal cohomology
Let $K$ be a commutative ring and let $X$ be a scheme over $K$. The graded infinitesimal cohomology of $X$ over $K$ is the family of $K$-modules $H^n_a(X/K)$, for integers $a,n\ge0$, defined below: $H^n_a(X/K)$ is the $n$-th cohomology of the cochains on the category of divided-power thickenings of $X$ with values in the $a$-th graded piece of the divided-power filtration. It has pullbacks along morphisms of schemes over $K$, cup products and a unit.
Two universes $\mathcal U\in\mathcal U'$ are fixed. Rings and schemes, among them $K$, $X$ and the algebras $B$ of the thickenings, are elements of $\mathcal U$. The categories considered have sets of morphisms in $\mathcal U$ and a set of objects in $\mathcal U'$, and the modules of cochains and the modules $H^n_a(X/K)$ are elements of $\mathcal U'$.
Thickenings. A divided-power thickening of $X$ over $K$ is a quadruple $T=(B,J,\delta,y)$ consisting of a commutative $K$-algebra $B$, an ideal $J\subseteq B$ with $J^N=0$ for some $N\ge1$, a divided-power structure $\delta=(\delta_k)_{k\ge0}$ on $J$, and a morphism of $K$-schemes $y:\operatorname{Spec}(B/J)\to X$. A morphism from $(B,J,\delta,y)$ to $(B',J',\delta',y')$ is a homomorphism of $K$-algebras $\varphi:B\to B'$ such that $\varphi(J)\subseteq J'$, such that $\delta'_k(\varphi(x))=\varphi(\delta_k(x))$ for all $x\in J$ and $k\ge0$, and such that $y'=y\circ\operatorname{Spec}(\bar\varphi)$, where $\bar\varphi:B/J\to B'/J'$ is the homomorphism induced by $\varphi$. Divided-power thickenings of $X$ over $K$ and their morphisms form a category $\operatorname{Thick}(X/K)$. For an object $T$ we write $T=(B_T,J_T,\delta_T,y_T)$.
The divided-power filtration. For $T=(B,J,\delta,y)$ and $r\ge0$, let $J^{[r]}$ be the ideal of $B$ generated by the products $$\delta_{k_1}(x_1)\cdots\delta_{k_m}(x_m),\qquad m\ge0,\quad x_1,\dots,x_m\in J,\quad k_1+\dots+k_m\ge r.$$ Thus $J^{[0]}=B$, $J^{[1]}=J$, $J^{[r+1]}\subseteq J^{[r]}$ and $J^{[r]}J^{[s]}\subseteq J^{[r+s]}$. A morphism $\varphi:T\to T'$ maps $J_T^{[r]}$ into $J_{T'}^{[r]}$. For $a\ge0$ put $$\operatorname{gr}^a(T)=J_T^{[a]}/J_T^{[a+1]},$$ a $K$-module. A morphism $\varphi:T\to T'$ induces a $K$-linear map $\varphi_*:\operatorname{gr}^a(T)\to\operatorname{gr}^a(T')$, and multiplication in $B_T$ induces $K$-bilinear maps $\operatorname{gr}^a(T)\times\operatorname{gr}^{a'}(T)\to\operatorname{gr}^{a+a'}(T)$ that commute with the maps $\varphi_*$.
Cohomology. Fix $a\ge0$. For $n\ge0$, an $n$-chain is a sequence $\sigma=(T_0\to T_1\to\dots\to T_n)$ of $n$ composable morphisms of $\operatorname{Thick}(X/K)$, and an $n$-cochain $\alpha$ assigns to every $n$-chain $\sigma$ an element $\alpha(\sigma)\in\operatorname{gr}^a(T_n)$. The $n$-cochains form a $K$-module $C^n_a(X/K)$. For an $(n+1)$-chain $\sigma=(T_0\to\dots\to T_{n+1})$ and $0\le i\le n+1$, let $\partial_i\sigma$ be the $n$-chain obtained by omitting $T_i$; when $0<i<n+1$ the two morphisms at $T_i$ are replaced by their composite. The differential $d:C^n_a(X/K)\to C^{n+1}_a(X/K)$ is $$(d\alpha)(\sigma)=\sum_{i=0}^{n}(-1)^i\alpha(\partial_i\sigma)+(-1)^{n+1}\psi_*\bigl(\alpha(\partial_{n+1}\sigma)\bigr),$$ where $\psi:T_n\to T_{n+1}$ is the last morphism of $\sigma$. It satisfies $d\circ d=0$. Put $$H^n_a(X/K)=\ker\bigl(d:C^n_a(X/K)\to C^{n+1}_a(X/K)\bigr)\big/d\bigl(C^{n-1}_a(X/K)\bigr),$$ where $d(C^{-1}_a(X/K))=0$. It is a $K$-module.
Pullback. Let $g:X\to Z$ be a morphism of schemes over $K$. Sending $(B,J,\delta,y)$ to $(B,J,\delta,g\circ y)$, and every morphism to the same homomorphism of $K$-algebras, is a functor $g_!:\operatorname{Thick}(X/K)\to\operatorname{Thick}(Z/K)$, and $\operatorname{gr}^a(g_!T)=\operatorname{gr}^a(T)$. For a cochain $\alpha\in C^n_a(Z/K)$ put $(g^*\alpha)(\sigma)=\alpha(g_!\sigma)$. This commutes with $d$ and defines a $K$-linear map $$g^*:H^n_a(Z/K)\longrightarrow H^n_a(X/K).$$
Cup product and unit. Let $\alpha\in C^i_a(X/K)$ and $\beta\in C^j_{a'}(X/K)$. For an $(i+j)$-chain $\sigma=(T_0\to\dots\to T_{i+j})$ put $$(\alpha\cup\beta)(\sigma)=\rho_*\bigl(\alpha(T_0\to\dots\to T_i)\bigr)\cdot\beta(T_i\to\dots\to T_{i+j})\in\operatorname{gr}^{a+a'}(T_{i+j}),$$ where $\rho:T_i\to T_{i+j}$ is the composite of the last $j$ morphisms of $\sigma$. For classes $x\in H^i_a(X/K)$ and $x'\in H^j_{a'}(X/K)$, the cup product $x\cup x'\in H^{i+j}_{a+a'}(X/K)$ is the class of $\alpha\cup\beta$ for cocycles $\alpha$ and $\beta$ representing $x$ and $x'$. The unit $1\in H^0_0(X/K)$ is the class of the $0$-cochain whose value at every $T$ is the element $1$ of $\operatorname{gr}^0(T)=B_T/J_T$.