TITLE: Künneth formula for de Rham cohomology with respect to an integrable connection
QUESTION [6 upvotes]: I am reading through https://stacks.math.columbia.edu/tag/0FM9 which proves that for $X,Y$ schemes over some base $S$ and $X \times _S Y \overset{p}{\rightarrow} X$ resp. $X \times _S Y \overset{q}{\rightarrow} Y$ the projection morphisms,  there is an isomorphism of complexes $$ \mathrm{Tot}(p^{-1} \Omega^{\bullet}_{X/S} \otimes_{f^{-1}\mathcal{O}_S} q^{-1} \Omega^{\bullet}_{Y/S}) \rightarrow \Omega_{X\times_S Y} ^{\bullet},$$ where $f:X \times_S Y \rightarrow S$ is the structure map. Now, I am wondering whether we can show something like this for de Rham complexes with respect to integrable connections, i.e. let $(E, \nabla_E)$ and $(F,\nabla_F)$ be vector bundles over $\mathcal{O}_X$ and $\mathcal{O}_Y$ with integrable connections. We then get an integrable connection $p^{\ast}\nabla_E \otimes q^{\ast}\nabla_F$ on $p^{\ast}E \otimes q^{\ast}F$ do we have an isomorphism of complexes $$\mathrm{Tot}(p^{-1}(E \otimes \Omega^{\bullet}_{X/S}) \otimes_{f^{-1}\mathcal{O}_S} q^{-1}(F \otimes  \Omega^{\bullet}_{Y/S})) \rightarrow  p^{\ast}E \otimes q^{\ast}F \otimes \Omega_{X\times_S Y} ^{\bullet},$$ with the differentials induced by the connections?
EDIT: There seem to be some problems with this StacksPorject section since 0FLS is wrong. Nevertheless, the isomorphism of complexes should still exist if we replace all inverse image functors by pull-backs and tensor over $\mathcal{O}_{X\times_S Y}$ instead of $f^{-1}\mathcal{O}_S$.

REPLY [3 votes]: The corrected formulation of the K"unneth formula in the Stacks project can also be used to given an answer this question. Let me explain.
Observe that the differentials in the de Rham complex $E \otimes \Omega^\bullet_{X/S}$ of $(E, \nabla_E)$ are differential operators of finite order and similarly for $(F, \nabla_F)$. The construction in Section 0G4A therefore produces a complex $T^\bullet$ on $X \times_S Y$ whose terms are
$$
T^n = \left(E \boxtimes F\right) \otimes_{\mathcal{O}_{X \times_S Y}} \left( \bigoplus_{n = a + b} \Omega^a_{X/S} \boxtimes \Omega^b_{Y/S}\right) = (E \boxtimes F) \otimes_{\mathcal{O}_{X \times_S Y}} \Omega^n_{X \times_S Y}
$$
A local calculation shows that the differentials of this complex are coming from the integrable connection $\nabla_{E \boxtimes F}$ we obtain on $E \boxtimes F$ using $\nabla_E$ and $\nabla_F$.
Asssume $S = \text{Spec}(A)$ is affine for simplicity. The discussion in Section 0G4A also constructs a cup product map in the derived category D(A)
$$
R\Gamma(X, E \otimes \Omega^\bullet_{X/S}) \otimes_A^\mathbf{L} R\Gamma(Y, F \otimes \Omega^\bullet_{Y/S}) \longrightarrow R\Gamma(X \times_S Y, (E \boxtimes F) \otimes \Omega_{X \times_S Y/S})
$$
on the (total) de Rham cohomology of the given modules with integrable connections. Of course this won't always be an isomorphism! But Lemma 0FLT shows that is an isomorphism when $X \to S$ and $Y \to S$ are smooth, quasi-compact, and have affine diagonal. If in addition $A$ is a field or more generally if the de Rham cohomology modules $H^i_{dR}(E) = H^i(R\Gamma(X, E \otimes \Omega^\bullet_{X/S}))$ are flat $A$-modules for all $i$, then we obtain the more familiar
$$
H^m_{dR}(E \boxtimes F) = \bigoplus_{m = i + j} H^i_{dR}(E) \otimes_A H^j_{dR}(F)
$$
Hope this helps.