\section*{Introduction}

Recall that for a vector bundle $E$ over a smooth algebraic variety $X$, one has a natural
class $\operatorname{at}(E)\in \operatorname{Ext}^1(E,\Omega^1_X\otimes E)$, called {\it Atiyah class} of $E$, such that
the Chern character of $E$ is obtained as $\operatorname{tr}(\exp(\operatorname{at}(E)))$ when $X$ is a projective smooth variety over $\mathbb{C}$ (see \cite{Atiyah}).
This construction also generalizes to bounded complexes of vector bundles (see \cite{Huybrechts Lehn}).
Furthermore, it shows up in the formula for the categorical Chern character and more generally, the boundary-bulk
map (see \cite{Caldararu-HKR}, \cite{Ram}).

The goal of this paper is to generalize the construction of the Atiyah class
to the case of (global) matrix factorizations and to give a formula for the categorical boundary-bulk map for matrix factorizations.

Thus, we start with a smooth scheme $X$ over $\mathbb{C}$ equipped with a function
$w$. We refer to \cite{EP}, \cite{LP}, \cite{Pre} for the background on categories of matrix factorizations.

We want to construct an analog of Atiyah class for a matrix factorization $(E,\delta)$ of $w$.
In the case when $X$ is affine the construction of such an Atiyah class is known (see \cite{DM}, \cite{Yu}).

It turns out that in the case when $w\neq 0$ one can still construct a certain class $\hat{\operatorname{at}}(E)$ (see below)
which reduces to $1+\operatorname{at}(E)$ when $w=0$.

Below we denote by $\operatorname{Hom}^*_{\operatorname{MF}(w)}(\cdot,\cdot)$ the cohomology of the (${\Bbb Z}/2$-graded)
morphisms spaces in the category of matrix factorizations of $w$. When considering the Hochschild homology/cohomology
of $\operatorname{MF}(w)$,
we work over $k[u,u^{-1}]$, where $\deg(u)=2$ (using the ${\Bbb Z}/2$-grading on the category $\operatorname{MF}(w)$.

\medskip

\noindent
{\bf Main construction} (see Sec.\ \ref{global-atiyah-def-sec}). {\it
For every matrix factorization $E$ of $w$ we construct a natural class
$$\hat{\operatorname{at}}(E)\in \operatorname{Hom}^0_{\operatorname{MF}(w)}(E, [{\cal O}_X\rTo{dw}\Omega^1_X]\otimes E),$$
such that the image
of  $\hat{\operatorname{at}}(E)$ under the natural projection
$\operatorname{Hom}^0_{\operatorname{MF}(w)}(E,[{\cal O}_X\rTo{dw}\Omega^1_X]\otimes E)\to \operatorname{Hom}^0_{\operatorname{MF}(w)}(E,E)$ is the identity element
$\operatorname{id}_E$. The formation of $\hat{\operatorname{at}}(E)$ is functorial and compatible with pull-backs.}

\bigskip

Next, we define the class
$$\exp(\operatorname{at}(E))\in \operatorname{Hom}^0_{\operatorname{MF}(w)}(E,(\Omega_X^\bullet,\wedge dw)\otimes E)$$
as the composition of the iterated map
$$\hat{\operatorname{at}}(E)^{(n)}:E\to [{\cal O}_X\rTo{dw}\Omega^1_X]^{\otimes n}\otimes E\to S^n[{\cal O}_X\rTo{dw}\Omega^1_X]\otimes E,$$
where $n=\dim X$, with the isomorphism
$$S^n[{\cal O}_X\rTo{dw}\Omega^1_X]\otimes E\rTo{\sim} (\Omega_X^\bullet,\wedge dw)\otimes E$$
induced by the isomorphism
\begin{equation}\label{Sn-isom}
S^n[{\cal O}_X\rTo{dw}\Omega^1_X]=[{\cal O}_X\rTo{n dw}\Omega^1\rTo{(n-1)dw}\to\ldots]\to (\Omega_X^\bullet,\wedge dw)
\end{equation}
given by $\a_0\mapsto \a_0$, $\a_i\mapsto \frac{\a_i}{n(n-1)\ldots (n-i+1)}$, where $\a_i\in\Omega_X^i$.

The above definition may look a bit strange, however, it is easily explained by the fact that
when one tries to recover $\exp(x)$ from $(1+x)^n$ in the ring ${\Bbb Q}[x]/(x^{n+1})$,
one has to rescale $x^i$ by the factor $\frac{1}{n(n-1)\ldots (n-i+1)}$.

Below we view $\exp(\operatorname{at}(E))$ as an element of $\H^0$ of the ${\Bbb Z}/2$-graded complex $\underline{\operatorname{Hom}}(E,E)\otimes (\Omega_X^\bullet,\wedge dw)$
and denote by
$$\operatorname{str}: \underline{\operatorname{Hom}}(E,E)\otimes (\Omega_X^\bullet,\wedge dw)\to (\Omega_X^\bullet,\wedge dw)$$
the supertrace morphism.
Here is our main result.

\medskip

\noindent
{\bf Theorem A}. {\it Assume now that $w=0$ on the critical locus of $w$ (set-theoretically).
Under the natural identification
\begin{equation}\label{HKR-w-ThmA-eq}
HH_*(\operatorname{MF}(w))\simeq H^*(X,(\Omega_X^\bullet,\wedge dw)),
\end{equation}
the categorical boundary-bulk map,
$$\operatorname{Hom}^*_{\operatorname{MF}(w)}(E,E)\to HH_*(\operatorname{MF}(w)),$$
for a matrix factorization $E$ of $w$, is equal to the map induced on hypercohomology by the map
$$\underline{\operatorname{Hom}}(E,E)\to (\Omega_X^\bullet,\wedge dw): x\mapsto \operatorname{str}(\exp(\operatorname{at}(E)) \cdot x )$$
in the ${\Bbb Z}/2$-graded derived category of $X$.
}

\medskip

Note that we give two constructions of isomorphism \eqref{HKR-w-ThmA-eq}: an abstract one coming from analogies with  Lie theory described below
and the one given by an explicit chain map (this construction is due to \cite{LP}).

In the case of matrix factorizations over a regular local ring there is a simpler formula for the categorical Chern character
obtained in \cite{PV-Chern}. It can be derived from the above Theorem using a connection on the underlying vector bundle of
$E$ (see Remark \ref{trivial-bun-rem}). In the case of global matrix factorizations a formula similar to the one in Theorem A
was obtained by Platt \cite{Platt}. However, his definition of $\exp(\operatorname{at}(E))$ is much more complicated
(based on some explicit resolutions of the relevant objects in the derived category).

Note that for $w=0$, i.e., in the classical case of vector bundles, we get a new proof of the compatibility of the categorical
Chern character with the classical one, originally proved by Caldararu \cite{Caldararu-HKR}.
Our proof is more conceptual than that in
\cite{Caldararu-HKR}: we check the key techical statement (see Lemma \ref{key-lem} below) without using \v{C}ech representatives.\
\footnote{We were not able to understand Markarian's proof of a similar statement, \cite[Prop.\ 5]{Markarian}.}

The proof of Theorem A uses analogs of some constructions of Markarian \cite{Markarian} for matrix factorizations.
Recall that he used the Atiyah classes to equip the shifted tangent bundle $T_X[-1]$ with a structure of
a Lie algebra in the derived category of $X$ (this construction goes back to Kapranov \cite{Kapranov}),
and showed that in appropriate sense the universal enveloping of
this algebra can be identified with the sheafified Hochschild cohomology $\underline{HH}^*(X)$. Furthermore,
the Hochschild-Kostant-Rosenberg isomorphism can be viewed as an analog of the PBW theorem in this case.

It turns out that there is a similar Lie context for the sheafified Hochschild cohomology of the category of matrix
factorizations, $\underline{HH}^*\operatorname{MF}(X,w)$. The general principle is that the picture for $w\neq 0$ should be a deformation of the picture for $w=0$.
In Lie theory there is a well known way of deforming the universal enveloping algebras $U({\frak g})$ of a Lie algebra starting from
a central extension of Lie algebras
\begin{equation}\label{Lie-central-ext-eq}
0\to k\cdot{\mathbf 1} \to \widetilde{{\frak g}}\to {\frak g}\to 0.
\end{equation}
Namely, one can view ${\mathbf 1}\in \widetilde{{\frak g}}$ as a central element of $U(\widetilde{{\frak g}})$ and consider the quotient $U(\widetilde{{\frak g}})/({\mathbf 1}-1)$, which is a deformation of
$U(\widetilde{{\frak g}})/({\mathbf 1})\simeq U({\frak g})$.

Given a function $w$, we will equip the ${\Bbb Z}/2$-graded complex
$$L_w:=[T_X\rTo{i_{dw}}{\cal O}_X]$$
(where ${\cal O}_X$ is placed in degree $0$) with a structure of a Lie algebra, so that
the exact triangle
$${\cal O}_X\to [T_X\rTo{i_{dw}} {\cal O}_X]\to T_X[1]$$
can be viewed as a central extension of Lie algebras
in $D(X)$, the ${\Bbb Z}/2$-graded derived category of $X$ (see Sec.\ \ref{general-Lie-sec}).
Note that such a construction wouldn't work in the usual ${\Bbb Z}$-graded derived category since it is $T_X[-1]$ that has the Lie algebra structure,
not $T_X[1]$.

Extending the picture of Markarian \cite{Markarian}, we will show that
$\underline{HH}^*\operatorname{MF}(X,w)$ can be viewed
as the corresponding quotient of the universal enveloping algebra,
$U(L_w)/({\mathbf 1}-1)$.

In Section \ref{graded-sec} we consider a version of the above picture for a ${\Bbb Z}$-graded category of matrix factorizations defined in
the presence of a ${\Bbb G}_m$-action. More precisely, we assume that $X$ is equipped with a ${\Bbb G}_m$-action and we have a function $W$ on $X$
satisfying $W(\lambda x)=\lambda W(x)$. In this context one has a natural ${\Bbb Z}$-graded dg-category $\operatorname{MF}_{{\Bbb G}_m}(X,W)$ of {\it ${\Bbb G}_m$-equivariant matrix
factorizations of $W$}. We prove that the analog of Theorem A holds in this context. In the particular case when $W=0$ and the action of
${\Bbb G}_m$ is trivial, the category $\operatorname{MF}_{{\Bbb G}_m}(X,0)$ is equivalent to the usual ${\Bbb Z}$-graded derived category of $X$, so in this
case we recover the classical picture for the latter category as described in  \cite{Caldararu-HKR}, \cite{Ram}.

Note that a more natural context for ${\Bbb Z}$-graded categories of matrix factorizations involves equivariant matrix factorizations with respect
to an algebraic group $\Gamma$ equipped with a surjective homomorphism $\chi:\Gamma\to {\Bbb G}_m$ such that $\ker(\chi)$ is finite. However,
the corresponding picture already has a stacky flavor. We intend to consider it elsewhere, along with a stacky version of
Theorem A.

\medskip

\noindent
{\it Conventions and notation}. We work with matrix factorizations of a regular function $w$ on a smooth scheme
$X$ of dimension $n$ over a field of characteristic $0$. By $\operatorname{MF}(w)=\operatorname{MF}(X,w)$ we denote the corresponding derived category of
matrix factorizations.
Whenever we need to use the HKR-isomorphism for sheafified Hochschild
homology of the category of matrix factorizations of $w$, we assume that $0$ is the only critical value of $w$.
We denote by $D(X)$ the ${\Bbb Z}/2$-graded derived category of $X$, and by $D(X)_{{\Bbb Z}}$ the usual ${\Bbb Z}$-graded derived category.

\medskip

\noindent
{\it Acknowledgments}.
We thank the anonymous referee for useful comments.
B.K. is partially supported by the KIAS individual grant MG016403.
A.P. is partially supported by the NSF grant DMS-1700642 and within the framework of the HSE University Basic Research Program
by the Russian Academic Excellence Project `5-100'.
He also would like to thank the Korea Institute for Advanced Study and Institut des Hautes Etudes Scientifiques, where parts of this work were done, for hospitality
and excellent work conditions.

\section{Definition of the Atiyah class}

\subsection{Global definition}\label{global-atiyah-def-sec}
Recall that the Atiyah class for vector bundles (or bounded complexes thereof) is defined using
the canonical exact sequence
\begin{equation}\label{can-ext-X2-eq}
0\to \Delta_*\Omega^1_X\to {\cal O}_{\Delta^{(2)}}\to {\cal O}_\Delta\to 0.
\end{equation}
Here ${\cal O}_{\Delta^{(2)}}:={\cal O}_{X^2}/I_\Delta^2$, where
$I_\Delta\subset {\cal O}_{X^2}$ is the ideal sheaf of the diagonal $\Delta\subset X^2$.
For a vector bundle $E$ (or any object in $D(X)$), we tensor the above sequence with $p_2^*E$ and apply $p_{1*}$ to
get the extension sequence
$$0\to \Omega^1_X\otimes E\to J(E)\to E\to 0$$
representing $\operatorname{at}(E)$.

Equivalently, we can view $[ \Delta_*\Omega^1_X  \to {\cal O}_{\Delta^{(2)}}]$ (in degrees $-1$ and $0$)
as a complex quasi-isomorphic to ${\cal O}_\Delta$. Then the natural projection to $(\Omega^1_X)_\Delta[1] := \Delta_*\Omega^1_X [1]$ gives a morphism
in $D(X^2)$,
\begin{equation}\label{univ-atiyah-eq}
\operatorname{at}^{\operatorname{univ}}:{\cal O}_\Delta\to(\Omega^1_X)_\Delta[1],
\end{equation}
called the {\it universal Atiyah class}. From this morphism of kernels we get a morphism of functors,
whose value on $E$ is $\operatorname{at}(E)$.

\begin{lem}\label{univ-at-lem}
The universal Atiyah class, $\operatorname{at}^{\operatorname{univ}}$, is equal to the composition
$${\cal O}_\Delta\rTo{\operatorname{at}({\cal O}_\Delta)}  \Omega^1_{X^2}\otimes {\cal O}_\Delta[1]\simeq \Delta_*\Delta^*\Omega^1_{X^2}[1]\to \Delta_*\Omega^1_X[1],$$
where the last arrow is induced by the canonical map $\Delta^*\Omega^1_{X^2}\to \Omega^1_X$.
Equivalently, if we use the decomposition $\Omega^1_{X^2}=p_1^*\Omega^1_X\oplus p_2^*\Omega^1_X$, then
$\operatorname{at}^{\operatorname{univ}}$ is equal to the component
$$\operatorname{at}^1({\cal O}_\Delta)\in \operatorname{Hom}({\cal O}_\Delta,p_1^*\Omega^1_X\otimes {\cal O}_\Delta[1])\simeq \operatorname{Hom}({\cal O}_\Delta,\Delta_*\Omega^1_X[1])$$
of $\operatorname{at}({\cal O}_\Delta)$.
\end{lem}

\noindent {\it Proof} . (See \cite[Sec.\ 5.5]{RW}.) The class $\operatorname{at}({\cal O}_\Delta)$ corresponds to the canonical extension
$$0\to \Omega^1_{X^2}\otimes{\cal O}_{\Delta}\to J({\cal O}_\Delta)\to {\cal O}_\Delta\to 0,$$
where $J(?)$ denotes the sheaf of 1st order jets. By definition, $J({\cal O}_\Delta)$ is obtained as the push-forward
of ${\cal O}_{X^4}/(J_{\Delta_{13}}+J_{\Delta_{24}})^2\otimes {\cal O}_{\Delta_{34}}$ under $p_{12}:X^4\to X^2$, where $\Delta_{ij}\subset X^4$
are partial diagonals. Using the identification of $\Delta_{34}$ with $X^3$ we get
$$J({\cal O}_\Delta)\simeq p_{12*}{\cal O}_{X^3}/(J_{\Delta_{13}}+J_{\Delta_{23}})^2.$$
Hence, we have a natural map
$$J({\cal O}_\Delta)\simeq p_{12*}{\cal O}_{X^3}/(J_{\Delta_{13}}+J_{\Delta_{23}})^2\to p_{12*}{\cal O}_{X^3}/(J_{\Delta_{13}}^2+J_{\Delta_{23}})\simeq {\cal O}_{X^2}/J_{\Delta}^2.$$
One can check that it is compatible with the projection $\Omega^1_{X^2}\otimes{\cal O}_{\Delta}\to p_1^*\Omega^1_X\otimes {\cal O}_\Delta$.
Thus, we get a morphism of exact sequences
\begin{diagram}
0&\rTo{}& \Omega^1_{X^2}\otimes{\cal O}_{\Delta}&\rTo{}&J({\cal O}_\Delta)&\rTo{}&{\cal O}_\Delta&\rTo{}&0\\
&&\dTo{}&&\dTo{}&&\dTo{}\\
0&\rTo{}& p_1^*\Omega^1_X\otimes{\cal O}_{\Delta}&\rTo{}&{\cal O}_{\Delta^{(2)}}&\rTo{}&{\cal O}_\Delta&\rTo{}&0
\end{diagram}
and our assertion follows.
\qed\vspace{3mm}

We observe that the sequence \eqref{can-ext-X2-eq} has the following analog in the category of
(coherent) matrix factorizations $\operatorname{MF}(\widetilde{w})$, where $\widetilde{w}=w\otimes 1-1\otimes w\in H^0(X^2,{\cal O})$.
Note that we have a natural functor
$$\Delta_*:\operatorname{MF}(X,0)\to \operatorname{MF}(X^2,\widetilde{w}),$$
since $\widetilde{w}|_\Delta=0$.
We denote by ${\cal O}_\Delta^{\widetilde{w}}\in  \operatorname{MF}(X^2,\widetilde{w})$ the image of ${\cal O}_X$ under this functor.
Let us
define the matrix factorizaton ${\cal O}^{(2)}_{\Delta,\widetilde{w}}$ of $\widetilde{w}$ as follows:
$${\cal O}^{(2)}_{\Delta,\widetilde{w}}={\cal O}_{X^2}/I_\Delta^2\oplus {\cal O}_\Delta[1]
$$
$$\delta_0=-\widetilde{w}\mod I_{\Delta}^2=-dw:{\cal O}_\Delta\to I_{\Delta}/I_{\Delta}^2\subset {\cal O}_{\Delta^{(2)}}, \ \
\delta_1=-1:{\cal O}_{\Delta^{(2)}}\to{\cal O}_\Delta.$$
Then we have an exact sequence of matrix factorizations
\begin{equation}\label{jet-kernel-mf-ex-seq}
0\to \Delta_*[{\cal O}_X\rTo{dw} \Omega^1_X][1]\to {\cal O}^{(2)}_{\Delta,\widetilde{w}}\to {\cal O}_\Delta^{\widetilde{w}}\to 0
\end{equation}
which can be viewed as a morphism in the derived category of $\operatorname{MF}(X^2, \widetilde{w})$,
$$\hat{\operatorname{at}}^{\operatorname{univ}}:{\cal O}_\Delta^{\widetilde{w}}\to \Delta_*[{\cal O}_X\rTo{dw} \Omega^1_X].$$
Note that by the definition of the shift functor on complexes, the complex $\Delta_*[{\cal O}_X\rTo{dw} \Omega^1_X][1]$ has ${\cal O}_X$ in odd degree,
$\Omega^1_X$ in even degree and the differential is given by $-dw$. This is compatible with the sign in the definition of
the differential on ${\cal O}^{(2)}_{\Delta,\widetilde{w}}$.

Now given a matrix factorization $E\in \operatorname{MF}(X, w)$, we can tensor the exact sequence \eqref{jet-kernel-mf-ex-seq} with $p_2^*E$ and then apply
$Rp_{1*}$. This will produce a class
$$\hat{\operatorname{at}}(E)\in \operatorname{Hom}^0(E,[{\cal O}_X\rTo{dw} \Omega^1_X]\otimes E).$$

Equivalently, we can obtain $\hat{\operatorname{at}}(E)$ from the morphism of kernels
$${\cal O}_\Delta^{\widetilde{w}}\to \Delta_*[{\cal O}_X\rTo{dw} \Omega^1_X]$$
in $\operatorname{MF}(\widetilde{w})$ corresponding to the sequence \eqref{jet-kernel-mf-ex-seq}.
By definition, this morphism in $\operatorname{MF}(\widetilde{w})$ uses the quasi-isomorphism
of the cone of the first arrow in \eqref{jet-kernel-mf-ex-seq} with ${\cal O}_{\Delta}^{\widetilde{w}}$.
It will be convenient to use a slightly more compact resolution of ${\cal O}_{\Delta}^{\widetilde{w}}$,
which should be viewed as a curved analog of the resolution $[(\Omega^1_X)_\Delta\to {\cal O}_{\Delta^{(2)}}]$ of ${\cal O}_\Delta$.
Namely, let us equip ${\cal O}_{\Delta^{(2)}}\oplus (\Omega^1_X)_\Delta[1]$ with the structure of a matrix factorization of $\widetilde{w}$
using the maps
$$\delta_0:(\Omega^1_X)_\Delta\simeq I_\Delta/I_\Delta^2\hookrightarrow {\cal O}_{\Delta^{(2)}}, \ \
\delta_1:{\cal O}_{\Delta^{(2)}}\rTo{1} {\cal O}_{\Delta}\rTo{dw}(\Omega^1_X)_\Delta .$$

\begin{lem}\label{mf-atiyah-basic-lem}
(i) The natural map in $\operatorname{MF}(\widetilde{w})$,
$$q:[{\cal O}_{\Delta^{(2)}}\oplus \Delta_*\Omega^1_X[1],\delta]\to {\cal O}_\Delta^{\widetilde{w}},$$
induced by the projection ${\cal O}_{\Delta^{(2)}}\to {\cal O}_{\Delta}$,
is an isomorphism in the derived category
and $\hat{\operatorname{at}}^{\operatorname{univ}}$ is equal to the composition of $q^{-1}$ with
the natural morphism in $\operatorname{MF}(\widetilde{w})$,
\begin{equation}\label{atiyah-res-map}
[{\cal O}_{\Delta^{(2)}}\oplus \Delta_*\Omega^1_X[1],\delta]\to \Delta_*[{\cal O}_X\rTo{dw}\Omega^1_X],
\end{equation}
which is identity on $\Delta_*\Omega_X^1[1]$ and the natural projection to ${\cal O}_{\Delta}$ on ${\cal O}_{\Delta^{(2)}}$.

\noindent
(ii) The composition
$${\cal O}_{\Delta}^{\widetilde{w}}\to \Delta_*[{\cal O}_X\rTo{dw}\Omega_X^1]\to \Delta_*{\cal O}_X={\cal O}_{\Delta}^{\widetilde{w}}$$
is the identity map. Hence,
the image of $\hat{\operatorname{at}}(E)$ under the natural projection
$\operatorname{Hom}^0(E,E\otimes [{\cal O}_X\rTo{dw}\Omega^1_X])\to \operatorname{Hom}^0(E,E)$ is the identity element
$\operatorname{id}_E$.

\noindent
(iii) The universal Atiyah class $\hat{\operatorname{at}}^{\operatorname{univ}}$ is obtained as the composition of the Atiyah class
$$\hat{\operatorname{at}}({\cal O}_{\Delta}^{\widetilde{w}}):{\cal O}_\Delta^{\widetilde{w}}\to [{\cal O}_{X^2} \rTo{d\widetilde{w}}\Omega^1_{X^2}]\otimes {\cal O}_{\Delta}^{\widetilde{w}}$$
with the projection
$$[{\cal O}_{X^2}\rTo{d\widetilde{w}}\Omega^1_{X^2}]\otimes {\cal O}_{\Delta}^{\widetilde{w}}\to
[{\cal O}_{X^2} \rTo{d(w\otimes 1)}p_1^*\Omega^1_X]\otimes {\cal O}_{\Delta}^{\widetilde{w}}\simeq
\Delta_*[{\cal O}_X\rTo{dw}\Omega^1_X].$$
\end{lem}

\noindent {\it Proof} . (i) Let $f:\Delta_*[{\cal O}_X\rTo{dw} \Omega^1_X][1]\to {\cal O}^{(2)}_{\Delta,\widetilde{w}}$
be the map from the sequence \eqref{jet-kernel-mf-ex-seq} ($f$ is the identity on ${\cal O}_{\Delta}$ and
is the natural embedding into ${\cal O}_{\Delta^{(2)}}$ on $\Delta_*\Omega^1_X$).
We have a natural quasi-isomorphism
$$\operatorname{Cone}(f)\to [{\cal O}_{\Delta^{(2)}}\oplus (\Omega^1_X)_\Delta[1],\delta]$$
which is identical on $\Delta_*\Omega_X^1[1]$ and ${\cal O}_{\Delta^{(2)}}$,
zero on ${\cal O}_\Delta[1]$ and equal to $-dw:{\cal O}_\Delta\to \Delta_*\Omega^1_X$ on ${\cal O}_\Delta$.
One can check that its composition with \eqref{atiyah-res-map} is homotopic
to the canonical projection $\operatorname{Cone}(f)\to \Delta_*[{\cal O}_X\rTo{dw} \Omega^1_X]$
(one uses $\operatorname{id}:{\cal O}_\Delta[1]\to {\cal O}_\Delta[1]$ as a homotopy).
This implies our assertion.

\noindent
(ii) This follows easily from (i): the composition of \eqref{atiyah-res-map} with
the natural projection $\Delta_*[{\cal O}_X\rTo{dw}\Omega^1_X]\to \Delta_*{\cal O}_X={\cal O}_{\Delta}^{\widetilde{w}}$
is exactly the map $q$.

\noindent
(iii) This is proved similarly to Lemma \ref{univ-at-lem}.
\qed\vspace{3mm}

\subsection{\v{C}ech representative}

Let $(U_i)$ be an affine open covering of $X$. Over every $U_i$ we can choose an algebraic connection
$$\nabla_i:E|_{U_i}\to\Omega^1_{U_i}\otimes E_{U_i}$$
which is even, i.e., compatible with the ${\Bbb Z}/2$-grading on $E|_{U_i}$.
Over each intersection $U_{ij}=U_i\cap U_j$ we have a $1$-form with values in $\underline{\operatorname{End}}^0(E)$,
$\a_{ij}\in \Omega^1\otimes \underline{\operatorname{End}}^0(E)|_{U_{ij}}$, such that
$$\nabla_j-\nabla_i=\a_{ij}.$$

Assume for simplicity that $X$ is separated, so all intersections $U_{i_1\ldots i_k}$ are still affine.
Then for any matrix factorizations of $w$, $E$ and $F$, we can calculate the space
$\operatorname{Hom}^0(E,F)$ as the $0$th cohomology of the ${\Bbb Z}/2$-graded complex
$$(C^\bullet(\underline{\operatorname{Hom}}(E,F)),[\delta,?]+d_C)$$
where $C^\bullet(?)$ denotes the \v{C}ech complex and $d_C$ is the \v{C}ech differential.
More precisely, the differential on $\a\in C^p(\underline{\operatorname{Hom}}(E,F))$ is $(-1)^p[\delta,\a]+d_C(\a)$.

\begin{prop}\label{cech-formula-prop}
For a matrix factorization $E\in \operatorname{MF}(X, w)$, the Atiyah class
$\hat{\operatorname{at}}(E)$ is represented by the
cocycle
$$(\operatorname{id}_E,-[\nabla_i,\delta],\a_{ij})\in C^\bullet([{\cal O}\rTo{dw} \Omega^1_X]\otimes \underline{\operatorname{End}}(E)).$$
\end{prop}

\noindent {\it Proof} . We use the following general fact: if
\begin{equation}\label{ex-seq-mf}
0\to E_1\rTo{f} E_2\rTo{g} E_3\to 0
\end{equation}
is an exact sequence of matrix factorizations then the corresponding class in $\operatorname{Hom}^1(E_3,E_1)$ is represented
by the following \v{C}ech cocycle. First, we find local retractions $r_i:E_2\to E_1$ of the embedding $E_1\to E_2$,
which are morphisms of ${\Bbb Z}/2$-graded ${\cal O}$-modules over $U_i$.
Then we consider
$\a_{ij}:E_3\to E_1$ over $U_{ij}$ such that
$\a_{ij}g=r_j|_{U_{ij}}-r_i|_{U_{ij}}$.
On the other hand, we consider $\b_i:E_3\to E_1[1]$ over $U_i$ such that
$\b_ig=[\delta,r_i]=\delta_{E_1}r_i-r_i\delta_{E_2}$. Now we claim that the \v{C}ech cocycle $c=(\b_i,\a_{ij})$ represents the
class corresponding to our extension. Indeed, by definition, this class corresponds to the obvious
projection $\operatorname{Cone}(f)\to E_1[1]$ under the isomorphism
$$\operatorname{Hom}^1(E_3,E_1)\rTo{\sim}\operatorname{Hom}^1(\operatorname{Cone}(f), E_1)$$
induced by $g$. Now the image of $c$ under the morphism
$$C^1(\underline{\operatorname{Hom}}(E_3,E_1))\to C^1(\underline{\operatorname{Hom}}(\operatorname{Cone}(f),E_1))$$
is given by the cocycle
$$(\b_ig,\a_{ij}g)=([\delta,r_i],r_j-r_i).$$
Subtracting the coboundary of the element $(r_i)\in C^0(\underline{\operatorname{Hom}}(\operatorname{Cone}(f),E_1))$, we get
the cocycle given by $(r_if)$, i.e., by $\operatorname{id}_{E_1}$, as claimed.

We apply the above general fact to the sequence
\begin{equation}\label{Jet-mf-seq}
0\to [{\cal O}_X\rTo{dw}\Omega^1_X]\otimes E[1]\to \hat{J}(E)\to E\to 0
\end{equation}
obtained from \eqref{jet-kernel-mf-ex-seq} by tensoring with $p_2^*E$ and taking the push-forward $p_{1*}$.
Note that
$$\hat{J}(E)=J(E)\oplus E[1]$$
as a ${\Bbb Z}/2$-graded vector bundle.
A connection $\nabla_i$ on $E|_{U_i}$ can be viewed as a retraction
$$\nabla_i:J(E)\to \Omega^1_X\otimes E: 1\otimes s\mapsto \nabla_i(s).$$
This leads to the claimed formula.
\qed\vspace{3mm}

\begin{rem}\label{trivial-bun-rem}
In the case when the underlying vector bundle $E$ is trivialized, we can take $\nabla$ to be
the corresponding connection (defined globally). Then $[\nabla,\delta]$ is the matrix of $1$-forms obtained by taking differentials of
the entries of $\delta$ (viewed as a matrix of functions).
Using this one can check that in this case the formula of Theorem A for the Chern character is equivalent to the one
obtained in \cite{PV-Chern} in the case of matrix factorizations over a regular local ring.
\end{rem}

Using \v{C}ech representatives one can easily derive the following compatibility of the Atiyah class construction with
the tensor product of a matrix factorization by a complex of vector bundles.

\begin{lem}\label{atiyah-tensor-prod-lem}
For $E\in\operatorname{MF}(X,w)$ and $F\in D(X)$, let us consider $E\otimes F\in\operatorname{MF}(X,w)$. Then one has
$$\hat{\operatorname{at}}(E\otimes F)=\hat{\operatorname{at}}(E)\otimes \operatorname{id}+\operatorname{id}\otimes \operatorname{at}(F).$$
\end{lem}

\subsection{Dolbeault representative}

In the case when $X$ is a complex manifold and $w$ is a holomorphic function,
the space $\operatorname{Hom}^0(E,F)$ can be calculated using Dolbeault complex,
$$(\Omega^{0,*}(\underline{\operatorname{Hom}}(E,F)),[\delta,?]+\overline{\partial}).$$

In the case $w=0$ it is well known that the Atiyah class is represented by the $(1,1)$-part of the curvature
of any $C^\infty$-connection on $E$, compatible with the holomorphic structure.

We have the following analog for matrix factorizations.

\begin{prop} Let $(E,\delta)$ be a holomorphic matrix factorization of $w$. Let $\nabla$ be an even $C^\infty$-connection
on $E$, compatible with the holomorphic structure, and let $F^{1,1}$ be the $(1,1)$-part of the curvature of $\nabla$.
Then $\hat{\operatorname{at}}(E)$ is represented by the cocycle
$$(\operatorname{id}_E,-[\nabla,\delta],F^{1,1})\in \Omega^{\le 1,*}(\underline{\operatorname{End}}(E,E)),$$
where the differential on the latter complex is given by $[\delta,?]+\wedge dw+\overline{\partial}$.
\end{prop}

\noindent {\it Proof} . The proof is similar to that of Proposition \ref{cech-formula-prop}, with the \v{C}ech resolution replaced
by the Dolbeault resolution. First, one checks that for an exact sequence of matrix factorizations \eqref{ex-seq-mf},
a choice of $C^\infty$-retractions $r:E_2\to E_1$ gives a Dolbeault representative for the corresponding class in $\operatorname{Hom}^1(E_3,E_1)$.
Namely, one should consider
$$(\b,\a)\in\Omega^{0,0}(\underline{\operatorname{Hom}}(E_3,E_1)_1)\oplus \Omega^{(0,1)}(\underline{\operatorname{Hom}}(E_3,E_1)_0),$$
where
$$\a g=\overline{\partial}(r), \ \ \b g=[\delta,r]$$
(the proof uses the Dolbeault complex of $\operatorname{Cone}(f)$, similarly to Proposition \ref{cech-formula-prop}).

Now we apply this for the exact sequence \eqref{Jet-mf-seq}.
We use $\nabla^{1,0}$, the $(1,0)$-part of the connection $\nabla$, to get a $C^\infty$-retraction of
the embedding $\Omega^{1,0}\otimes E\to J(E)$. This leads to
the claimed formula, where the $(1,1)$-curvature $F^{1,1}$ appears as $[\overline{\partial},\nabla^{1,0}]$.
\qed\vspace{3mm}

\section{Lie algebra analogies}

\subsection{Lie bracket in the case $w=0$}
Recall that the Atiyah class $\operatorname{at}(\Omega^1):\Omega^1_X\to \Omega^1_X\otimes \Omega^1_X[1]$
factors through a map $\Omega^1_X\to S^2(\Omega^1_X)[1]$ whose dual can be viewed as a Lie bracket on
$T_X[-1]$ (see \cite{Kapranov}, \cite{Markarian}).

In addition, there is a morphism
\begin{equation}\label{iota-eq}
\iota:T_X[-1]\to \underline{HH}^*(X)=Rp_{1*}\underline{\operatorname{End}}({\cal O}_\Delta)
\end{equation}
obtained by adjunction from the component
$$\operatorname{at}^1({\cal O}_\Delta)\in \operatorname{Hom}({\cal O}_\Delta,p_1^*\Omega_X^1\otimes {\cal O}_\Delta[1])\simeq\operatorname{Hom}(p_1^*T_X[-1],\underline{\operatorname{End}}({\cal O}_\Delta))$$
of the Atiyah class $\operatorname{at}({\cal O}_\Delta)\in \operatorname{Hom}({\cal O}_\Delta,\Omega_{X^2}^1\otimes{\cal O}_\Delta[1])$.

\subsection{HKR-isomorphisms in the case $w=0$}

Recall that in \cite[Theorem 1]{Markarian} Markarian showed that
$\underline{HH}^*(X)$ can be identifed with the universal enveloping algebra $U(T_X[-1])$. By definition, this
means that the above map $\iota$ satisfies the identity
\begin{equation}\label{env-alg-identity}
\iota([x,y])=\iota(x)\iota(y)-\iota(y)\iota(x)
\end{equation}
understood as the equality of morphisms $T_X[-1]\otimes T_X[-1]\to \underline{HH}^*(X)$, and the morphism
\begin{equation}\label{I-coh-abs}
I^{abs}:S^*(T_X[-1])\to T^*(T_X[-1])\to \underline{HH}^*(X),
\end{equation}
induced by $\iota$ and by the multiplication on $\underline{HH}^*(X)$, is an isomorphism
(see \cite[Def.\ 4]{Markarian}).

One of the key tools in the arguments of \cite{Markarian} is the natural duality between
$\underline{HH}_*(X)$ and $\underline{HH}^*(X)$ induced by the canonical functional
$$\varepsilon:\underline{HH}_*(X)=\Delta^*({\cal O}_\Delta)\to {\cal O}_X,$$
and by the canonical action
$${\cal D}_0:\underline{HH}^*(X)\otimes \underline{HH}_*(X)\to  \underline{HH}_*(X) .$$

\begin{lem}\label{pairing-0-lem} The composition
$$\varepsilon\circ{\cal D}_0:\underline{HH}^*(X)\otimes \underline{HH}_*(X)\to {\cal O}_X$$
is a perfect pairing, which corresponds to the natural isomorphism
\begin{align*}
&\underline{\operatorname{Hom}}(\underline{HH}_*(X),{\cal O}_X)=\underline{\operatorname{Hom}}(\Delta^*{\cal O}_\Delta,{\cal O}_X)\simeq
Rp_{1*}\Delta_*\underline{\operatorname{Hom}}(\Delta^*{\cal O}_{\Delta},{\cal O}_X)\\
&\simeq Rp_{1*}\underline{\operatorname{Hom}}({\cal O}_\Delta,{\cal O}_\Delta) .
\end{align*}
\end{lem}

\noindent {\it Proof} . Note that for any morphism $f:X\to Y$ and sheaves $F$ on $Y$ and $G$ on $X$, the composition
of the natural maps
$$\underline{\operatorname{Hom}}(F,f_*G)\rTo{f^*} Rf_*\underline{\operatorname{Hom}}(f^*F,f^*f_*G)\rTo{\operatorname{can}_G} Rf_*\underline{\operatorname{Hom}}(f^*F,G)$$
is precisely the (sheafified) adjunction isomorphism.
Applying this to $f=\Delta$, $F={\cal O}_\Delta$, $G={\cal O}_X$, we obtain that the composition
$$\underline{\operatorname{Hom}}({\cal O}_\Delta,{\cal O}_\Delta)\rTo{\Delta^*}\Delta_*\underline{\operatorname{Hom}}(\Delta^*{\cal O}_\Delta,\Delta^*{\cal O}_\Delta)\rTo{\epsilon}
\Delta_*\underline{\operatorname{Hom}}(\Delta^*{\cal O}_\Delta,{\cal O}_X)$$
is the adjunction isomorphism. Now the assertion follows from the fact that applying $Rp_{1*}$ to the
first arrow we get the map $\underline{HH}^*(X)\to \underline{\operatorname{Hom}}(\Delta^*{\cal O}_\Delta,\Delta^*{\cal O}_\Delta)$ defining ${\cal D}_0$.
\qed\vspace{3mm}

Dualizing the composition
$$S^*(T_X[-1])\otimes\underline{HH}_*(X)\rTo{I^{abs}\otimes\operatorname{id}}\underline{HH}^*(X)\otimes \underline{HH}_*(X)\rTo{\varepsilon\circ {\cal D}_0}{\cal O}_X$$
we get a map
\begin{equation}\label{I-hom-abs}
I_{abs}:\underline{HH}_*(X)\to S^*(T_X[-1])^\vee\simeq S^*(\Omega_X[1]),
\end{equation}
which is an isomorphism (see \cite[Prop.\ 3]{Markarian}).

Note that essentially by definition, our isomorphisms $I^{abs}$ and $I_{abs}$ are compatible with the duality of
Lemma \ref{pairing-0-lem} and the natural duality between $S^*(T_X[-1])$ and $S^*(\Omega_X[1])$.

\begin{thm}\label{HKR-thm}
The isomorphisms $I^{abs}$ and $I_{abs}$ in $D(X)$ coincide with the Hochschild-Kostant-Rosenberg isomorphisms
$I^{HKR}$ and $I_{HKR}$,
given by the explicit chain maps in \cite{Caldararu-HKR}.
\end{thm}

\noindent {\it Proof} .
Recall that the action of $T_X[-1]$ on $\underline{HH}_*(X)$ is obtained by applying
$\Delta^*$ to the map $p_1^*T_X[-1]\otimes {\cal O}_\Delta\to {\cal O}_\Delta$ given by $\operatorname{at}^{\operatorname{univ}}=\operatorname{at}^1({\cal O}_\Delta)$.
We are going to realize the latter map by an explicit chain map of complexes on $X^2$,
replacing ${\cal O}_\Delta$ by its completed bar-resolution ${\cal B}_\bullet$ (see \cite{Yekut}, \cite[Sec.\ 4]{Caldararu-HKR}).
Recall that ${\cal B}_i$ is the push-forward to $X^2$ of the formal completion of $X^{i+2}$ along the small diagonal.
We denote local sections of ${\cal B}_i$ as $[a_0\otimes a_1\otimes\ldots\otimes a_{i+1}]$, where $a_j$ are local functions on $X$.

We claim that the map $\operatorname{at}^{\operatorname{univ}}$ is represented by the chain map
$$p_1^*T_X\otimes {\cal B}_\bullet\to {\cal B}_\bullet[1]:
v\otimes [a_0\otimes a_1\otimes\ldots\otimes a_{i+1}]\mapsto (-1)^{i+1} [a_0 v(a_1)\otimes a_2\otimes\ldots \otimes a_{i+1}].$$
Indeed, it is enough to look at the induced map of complexes
$p_1^*T_X\otimes {\cal B}_\bullet\to {\cal O}_\Delta[1],$
or equivalently, ${\cal B}_\bullet\to \Delta_*\Omega^1_X[1]$
induced by the map $f_1:{\cal B}_1\to \Delta_*\Omega^1: [a_0\otimes a_1\otimes a_2]\mapsto a_2a_0da_1$.
Now we observe that there is a quasi-isomorphism of complexes,
\begin{diagram}
{\cal B}_2&\rTo{}&{\cal B}_1&\rTo{}&{\cal B}_0\\
\dTo{}&&\dTo{f_1}&&\dTo{1}\\
0&\rTo{}&\Delta_*\Omega^1_X&\rTo{}&{\cal O}_{\Delta^{(2)}}
\end{diagram}
Since $\operatorname{at}^{\operatorname{univ}}$ is induced by the exact sequence \eqref{can-ext-X2-eq}, this implies our claim.

It follows that the map
$$(\operatorname{at}^{\operatorname{univ}})^{(i)}:p_1^*{\bigwedge}^i T_X\otimes {\cal O}_\Delta\to {\cal O}_\Delta[i]$$
obtained by iterating $\operatorname{at}^{\operatorname{univ}}$ and restricting to skew-symmetric tensors, is represented by the chain map
$$p_1^*{\bigwedge}^i T_X\otimes {\cal B}_\bullet\to {\cal B}_\bullet[i]:
(v_1\wedge\ldots\wedge v_i)\otimes [a_0\otimes a_1\otimes\ldots\otimes a_m]\mapsto (-1)^{im}[a_0 \langle v_1\wedge\ldots\wedge v_i, da_1\wedge\ldots\wedge da_i\rangle\otimes
a_{i+1}\otimes\ldots \otimes a_m].$$
Composing with the projection ${\cal B}_\bullet[i]\to {\cal O}_\Delta[i]$, we see that
$(\operatorname{at}^{\operatorname{univ}})^{(i)}$ is represented by the chain map
$p_1^*{\bigwedge}^i T_X\otimes {\cal B}_\bullet\to {\cal O}_\Delta[i]$
which corresponds by duality to the map
$${\cal B}^i\to p_1^*\Omega^i_X\otimes {\cal O}_\Delta\simeq \Delta_*\Omega^i_X: [a_0\otimes a_1\otimes\ldots\otimes a_{i+1}]\mapsto
a_{i+1}a_0da_1\wedge\ldots\wedge da_i$$
which is exactly the $i$th component of $I_{HKR}$. This proves the equality $I_{abs}=I_{HKR}$.

Recall (see \cite[Sec.\ 4]{Caldararu-HKR}) that the other HKR-map
$$I^{HKR}:\bigoplus {\bigwedge}^iT_X[-i]\to Rp_{1*}\underline{\operatorname{End}}({\cal O}_\Delta)$$
is essentially the dual of $I_{HKR}$: it is given by the composition
$$\bigoplus {\bigwedge}^iT_X[-i]=\underline{\operatorname{Hom}}(\bigoplus\Omega^i_X[i],{\cal O}_X)\to \underline{\operatorname{Hom}}(\Delta^*{\cal O}_\Delta,{\cal O}_X)\simeq
Rp_{1*}(\underline{\operatorname{Hom}}({\cal O}_\Delta,{\cal O}_\Delta),$$
where the last isomorphism follows from the adjunction of $(\Delta^*,\Delta_*)$.

On the other hand, it is easy to see that the composition
$$\underline{HH}^*\otimes \underline{HH}_*\rTo{{\cal D}_0} \underline{HH}_*\rTo{\varepsilon}{\cal O}_X$$
corresponds to the same duality, so the equality $I^{abs}=I^{HKR}$ follows from the equality $I_{abs}=I_{HKR}$.
\qed\vspace{3mm}

\begin{rem} The above theorem can be easily deduced from the arguments in the proof of \cite[Prop.\ 4.4]{Caldararu-HKR}.
Note that $I^{HKR}$ (and hence $I^{abs}$) is not an algebra homomorphism with respect to the
natural algebra structures on $S^*(T_X[-1])$ and $\underline{HH}^*(X)$; to become one it has to be twisted by the square root
of the Todd class (see \cite{Caldararu-HKR}, \cite{CVdB}).
\end{rem}

\subsection{The general case}\label{general-Lie-sec}

The (usual) Atiyah class of the complex $L_w^\vee=[{\cal O}_X\rTo{dw}\Omega^1_X]$ is an element
$$\operatorname{at}(L_w^\vee): L_w^\vee\to \Omega^1_X[1]\otimes L_w^\vee.$$
In the ${\Bbb Z}/2$-graded derived category we have a natural morphism $\Omega^1_X[1]\to L_w^\vee$.
Thus, composing the map $\operatorname{at}(L_w^\vee)$ with this morphism, we get a map
$$L_w^\vee\to L_w^\vee\otimes L_w^\vee,$$
or dualizing, a map
$$[\cdot,\cdot]: L_w\otimes L_w\to L_w,$$
which factors through $T_X[1]\otimes L_w$.

\begin{lem} The dual of the bracket $[\cdot,\cdot]$ factors in the ${\Bbb Z}/2$-graded derived category as a composition
$$L_w^\vee\to S^2\Omega^1_X\to \Omega^1_X\otimes \Omega^1_X\to L_w^\vee\otimes L_w^{\vee}.$$
Hence, the bracket $[\cdot,\cdot]$ is skew-symmetric and ${\cal O}_X\subset L_w$ is central with respect to it.
\end{lem}

\noindent {\it Proof} . The proof is a slight variation of the proof of \cite[Prop.\ 1.1]{Markarian}.
By definition, the map $\operatorname{at}(L_w^\vee)$ corresponds to an exact sequence
of complexes
$$0\to p_{1*}[I_\Delta/I_\Delta^2\otimes p_2^*L_w^\vee]\to p_{1*}[{\cal O}_{X^2}/I_\Delta^2\otimes p_2^*L_w^\vee]\to p_{1*}[{\cal O}_\Delta\otimes p_2^*L_w^\vee]\to 0.$$
Now we use the natural morphism induced by the canonical differential $d_{X^2}:{\cal O}_{X^2}\to \Omega^1_{X^2}$:
$$I_\Delta/I_\Delta^3\to {\cal O}_{X^2}/I_\Delta^3\rTo{-d_{X^2}} {\cal O}_{X^2}/I_\Delta^2\otimes \Omega^1_{X^2}\to \Omega_{X^2}/I_\Delta^2\otimes p_2^*\Omega^1_X.$$
Note that under this morphism $f\otimes 1-1\otimes f\mod I_\Delta^3$ is sent to $1\otimes p_2^*(df)$.
This morphism extends to a chain map of complexes
$$[{\cal O}_X\rTo{\delta} p_{1*}(I_\Delta/I_\Delta^3)]\to p_{1*}[{\cal O}_{X^2}/I_\Delta^2\otimes p_2^*L_w^\vee],$$
where $\delta(f)=f\cdot (1\otimes w-w\otimes 1)$, and the map ${\cal O}_X\to p_{1*}({\cal O}_{X^2}/I_\Delta^2)$ is given by $f\mapsto f\otimes 1\mod I_\Delta^2$.
Furthemore, this chain map extends naturally to a morphism of exact sequences of complexes
\begin{diagram}
0&\rTo{}&p_{1*}(I_\Delta^2/I_\Delta^3)[-1]&\rTo{}& [{\cal O}_X\to p_{1*}(I_\Delta/I_\Delta^3)]&\rTo{}& [{\cal O}_X\to p_{1*}(I_\Delta/I_\Delta^2)]&\rTo{}&0\\
&&\dTo{}&&\dTo{}&&\dTo{\sim}\\
0&\rTo{}&p_{1*}[I_\Delta/I_\Delta^2\otimes p_2^*L_w^\vee]&\rTo{}&p_{1*}[{\cal O}_{X^2}/I_\Delta^2\otimes p_2^*L_w^\vee]&\rTo{}&p_{1*}[{\cal O}_\Delta\otimes p_2^*L_w^\vee]&\rTo{}&0
\end{diagram}
in which the leftmost vertical arrow can be identified with the natural map $S^2\Omega^1_X[-1]\to \Omega^1_X\otimes L_w^\vee$.
This implies our assertion.
\qed\vspace{3mm}

By analogy with morphism \eqref{iota-eq} we want to define a morphism
\begin{equation}\label{iota-w-eq}
\iota_w:L_w\to \underline{HH}^*(\operatorname{MF}(X,w))=Rp_{1*}\underline{\operatorname{End}}({\cal O}_\Delta^{\widetilde{w}})
\end{equation}
in $D(X)$.
For this we consider the universal Atiyah class
\begin{equation}\label{at1-diag-eq}
\hat{\operatorname{at}}^{\operatorname{univ}}=\hat{\operatorname{at}}^1({\cal O}_\Delta^{\widetilde{w}})\in \operatorname{Hom}({\cal O}_\Delta^{\widetilde{w}},p_1^*L_w^\vee\otimes {\cal O}_\Delta^{\widetilde{w}})
\end{equation}
(see Lemma \ref{mf-atiyah-basic-lem}(iii)). Dualizing it we get a morphism
$$p_1^*L_w\to \underline{\operatorname{End}}({\cal O}_\Delta^{\widetilde{w}})$$
from which $\iota_w$ is obtained by adjunction.

Note that to identify an associative algebra $U$ with the algebra of the form $U(\widetilde{{\frak g}})/({\mathbf 1}-1)$ for a central extension
of Lie algebras \eqref{Lie-central-ext-eq}, one has to provide a linear map $\iota:\widetilde{{\frak g}}\to U$ satisfying
the universal enveloping algebra identity \eqref{env-alg-identity}, such that $\iota({\mathbf 1})=1$ and
the natural map
$$S(\widetilde{{\frak g}})/({\mathbf 1}-1)\to U(\widetilde{{\frak g}})/({\mathbf 1}-1),$$
induced by $\iota$ is an isomorphism. Note the source of this map can be identified with $\varinjlim_i S^i(\widetilde{{\frak g}})$,
which is a better expression for us since it makes sense also in non-abelian categories.

We want to check analogs of these properties for the map \eqref{iota-w-eq} in the derived category.
Similarly to the proof of \cite[Thm.\ 1]{Markarian}, the universal enveloping algebra identity
\eqref{env-alg-identity} for $\iota_w$ is equivalent to the condition that the skew-symmetrization of the composition
$${\cal O}_\Delta^{\widetilde{w}}\rTo{\hat{\operatorname{at}}^1({\cal O}_\Delta^{\widetilde{w}})}p_1^*L_w^\vee\otimes {\cal O}_\Delta^{\widetilde{w}}\rTo{\operatorname{id}\otimes \hat{\operatorname{at}}^1({\cal O}_\Delta^{\widetilde{w}})}
p_1^*L_w^\vee\otimes p_1^*L_w^\vee\otimes {\cal O}_\Delta^{\widetilde{w}}$$
is equal to the composition
$${\cal O}_\Delta^{\widetilde{w}}\rTo{\hat{\operatorname{at}}^1({\cal O}_\Delta^{\widetilde{w}})}p_1^*L_w^\vee\otimes {\cal O}_\Delta^{\widetilde{w}}\rTo{\operatorname{at}^1(p_1^*L_w^\vee)\otimes \operatorname{id}}
p_1^*L_w^\vee\otimes p_1^*L_w^\vee\otimes {\cal O}_\Delta^{\widetilde{w}}.$$
But this follows immediately from the commutative
diagram
\begin{diagram}
{\cal O}_\Delta^{\widetilde{w}} &\rTo{\hat{\operatorname{at}}^1({\cal O}_\Delta^{\widetilde{w}})}&p_1^*L_w^\vee\otimes {\cal O}_\Delta^{\widetilde{w}}\\
\dTo{\hat{\operatorname{at}}^1({\cal O}_\Delta^{\widetilde{w}})} && \dTo{\hat{\operatorname{at}}^1 (p_1^*L_w^\vee\otimes {\cal O}_\Delta^{\widetilde{w}})}\\
p_1^*L_w^\vee\otimes {\cal O}_\Delta^{\widetilde{w}}&\rTo{\operatorname{id}\otimes\hat{\operatorname{at}}^1({\cal O}_\Delta^{\widetilde{w}})}&
p_1^*L_w^\vee\otimes p_1^*L_w^\vee\otimes {\cal O}_\Delta^{\widetilde{w}}
\end{diagram}
by applying Lemma \ref{atiyah-tensor-prod-lem} to the expression $\hat{\operatorname{at}}^1 (p_1^*L_w^\vee\otimes {\cal O}_\Delta^{\widetilde{w}})$.

The fact that $\hat{\operatorname{at}}(E)$ projects to the identity $\operatorname{id}_E$ implies (by taking $E={\cal O}_\Delta^{\widetilde{w}}$)
 that the composition
$${\cal O}_X \rTo{{\mathbf 1}} L_w\rTo{\iota_w} \underline{HH}^*(\operatorname{MF}(X,w))$$
is the natural embeding of a unit.

Lastly, we need to check that the map
\begin{equation}\label{I-abs-coh-w-eq}
I^{abs,w}:\varinjlim_i S^i(L_w)\to \underline{HH}^*(\operatorname{MF}(X,w)),
\end{equation}
induced by $\iota_w$, is an isomorphism.
It is easy to see that the limit here stabilizes and we have
$$\varinjlim_i S^i(L_w)=S^n(L_w)\simeq ({\bigwedge}^\bullet(T_X),i_{dw}),$$
where $n=\dim X$. Here the second isomorphism is dual to \eqref{Sn-isom}.
The fact that the map \eqref{I-abs-coh-w-eq} is an isomorphism can be checked formally locally
using the Koszul resolution of the diagonal matrix factorization (it also follows from Theorem \ref{HKR-w-thm} below
and from the results of \cite{LP}).

Similarly to the case of Lie algebras, where the PBW-theorem can be used to derive the Jacobi identity (see e.g.,
\cite[Ch.\ 5]{PP}), one can show that the properties proved above imply that the bracket $[\cdot,\cdot]$ on $L_w$
satisfies the Jacobi identity (we will not use this fact).

Similarly to the case $w=0$, we have a canonical functional
$$\varepsilon:\underline{HH}_*(\operatorname{MF}(X,w))=\Delta^*({\cal O}_\Delta^{\widetilde{w}})\to {\cal O}_X,$$
coming from the adjoint pair of functors $(\Delta^*,\Delta_*)$ between $\operatorname{MF}(X,0)$ and $\operatorname{MF}(X^2,\widetilde{w})$.
On the other hand, we have the natural action of $\underline{HH}^*(\operatorname{MF}(X,w))=Rp_{1*}\underline{\operatorname{End}}({\cal O}_\Delta^{\widetilde{w}})$ on
$\underline{HH}_*(\operatorname{MF}(X,w))$,
$${\cal D}: \underline{HH}^*(\operatorname{MF}(X,w))\otimes \underline{HH}_*(\operatorname{MF}(X,w))\to \underline{HH}_*(\operatorname{MF}(X,w)).$$

\begin{lem}\label{pairing-lem} The composition
$$\varepsilon\circ{\cal D}:\underline{HH}^*(\operatorname{MF}(X,w))\otimes \underline{HH}_*(\operatorname{MF}(X,w))\to {\cal O}_X$$
is a perfect pairing, which corresponds to the natural isomorphism
\begin{align*}
&\underline{\operatorname{Hom}}(\underline{HH}_*(\operatorname{MF}(X,w)),{\cal O}_X)=\underline{\operatorname{Hom}}(\Delta^*{\cal O}_\Delta^{\widetilde{w}},{\cal O}_X)\simeq
Rp_{1*}\Delta_*\underline{\operatorname{Hom}}(\Delta^*{\cal O}_{\Delta}^{\widetilde{w}},{\cal O}_X)\\
&\simeq Rp_{1*}\underline{\operatorname{Hom}}({\cal O}_\Delta^{\widetilde{w}},{\cal O}_\Delta^{\widetilde{w}}),
\end{align*}
induced by the adjoint pair of functors $(\Delta^*,\Delta_*)$ between $\operatorname{MF}(X,0)$ and $\operatorname{MF}(X^2,\widetilde{w})$.
\end{lem}

\noindent {\it Proof} . The proof is very similar to that of Lemma \ref{pairing-0-lem} and is left to the reader.
\qed\vspace{3mm}

Let us consider the composition
$$S^n(L_w)\otimes \underline{HH}_*(\operatorname{MF}(X,w))\rTo{I^{abs,w}\otimes\operatorname{id}}\underline{HH}^*(\operatorname{MF}(X,w))\otimes \underline{HH}_*(\operatorname{MF}(X,w))
\rTo{\varepsilon\circ{\cal D}} {\cal O}_X.$$
Dually, we get a morphism
\begin{equation}\label{I-abs-hom-w-eq}
I_{abs,w}:\underline{HH}_*(\operatorname{MF}(X,w))\to S^n(L_w)^\vee\simeq [\Omega^\bullet_X,\wedge dw],
\end{equation}
where the last isomorphism is \eqref{Sn-isom}.

\begin{thm}\label{HKR-w-thm}
The maps $I^{abs,w}$ and $I_{abs,w}$ in $D(X)$ coincide with the maps $I_{HKR,w}$ and $I^{HKR,w}$
defined using the completed bar-resolution in \cite{LP} and \cite{Platt}.
\end{thm}

\noindent {\it Proof} .
As in the proof of Theorem \ref{HKR-thm}, to check the equality $I_{abs,w}=I_{HKR,w}$,
we first realize
$$\hat{\operatorname{at}}^{\operatorname{univ}}:p_1^*L_w\otimes {\cal O}_\Delta^{\widetilde{w}}\to {\cal O}_\Delta^{\widetilde{w}}$$
by a closed map of
matrix factorizations.

Recall that the completed bar-resolution $({\cal B}_\bullet,b)$ is equipped with the second differential
$$B_w[a_0\otimes a_1\otimes\ldots\otimes a_{m+1}]=\sum_{i=0}^m (-1)^i a_0\otimes\ldots\otimes a_i\otimes w\otimes a_{i+1}\otimes \ldots\otimes a_{m+1},$$
so that ${\cal B}^{\widetilde{w}}:=({\cal B}_\bullet,b+B_w)$ is a (quasicoherent) matrix factorization of $\widetilde{w}=w\otimes 1-1\otimes w$.

Similarly to the case $w=0$, we define a closed morphism of matrix factorizations
$$p_1^*L_w\otimes {\cal B}^{\widetilde{w}}\to {\cal B}^{\widetilde{w}}: (v+f)\otimes [a_0\otimes a_1\otimes\ldots \otimes a_m]=
(-1)^m[a_0v(a_1)\otimes a_2\otimes\ldots\otimes a_m]+ [fa_0\otimes a_1\otimes\ldots\otimes a_m].$$
We claim that it represents $\hat{\operatorname{at}}^{\operatorname{univ}}$.
Indeed, it is enough to consider the composed map
$$p_1^*L_w\otimes {\cal B}^{\widetilde{w}}\to {\cal O}_\Delta^{\widetilde{w}}$$
and compare its dualization
\begin{equation}\label{at-w-resol}
{\cal B}^{\widetilde{w}}\to p_1^*L_w^\vee\otimes {\cal O}_\Delta^{\widetilde{w}}\simeq \Delta_*[{\cal O}_X\rTo{dw}\Omega_X^1]
\end{equation}
with $\hat{\operatorname{at}}^{\operatorname{univ}}$. It remains to observe that \eqref{at-w-resol}
factors as the composition
$${\cal B}^{\widetilde{w}}\to ({\cal O}_{\Delta^{(2)}}\oplus(\Omega_X^1)_\Delta[1],\delta)\to ({\cal O}_\Delta\oplus (\Omega_X^1)_{\Delta}[1],dw)$$
where the first map is an isomorphism of resolutions of ${\cal O}^{\widetilde{w}}_\Delta$, while the second
map induces $\hat{\operatorname{at}}^{\operatorname{univ}}$ by Lemma \ref{mf-atiyah-basic-lem}(i).

Considering the induced map $p_1^*S^nL_w\otimes {\cal B}^{\widetilde{w}}\to {\cal B}^{\widetilde{w}}\to {\cal O}_\Delta^{\widetilde{w}}$
we deduce that $I_{abs}$ coincides with
the Hochschild-Kostant-Rosenberg isomorphism $I_{HRK,w}$ given by the map
$$\Delta^*{\cal B}^{\widetilde{w}}\to (\Omega^\bullet_X,\wedge dw):[a_0\otimes\ldots \otimes a_{i+1}]\mapsto a_{i+1}a_0da_1\wedge\ldots\wedge da_i.$$

The equality $I^{abs,w}=I^{HKR,w}$ follows by duality as in the case $w=0$.
\qed\vspace{3mm}

\section{Boundary-bulk map}

\subsection{Generalities}

Recall that the diagonal matrix factorization ${\cal O}_\Delta^{\widetilde{w}}\in\operatorname{MF}(X^2,\widetilde{w})$
corresponds to the identity functor on $\operatorname{MF}(X,w)$.
The categorical trace functor can be identified with the composition
$$\operatorname{Tr}: \operatorname{MF}(X^2,\widetilde{w})\rTo{\Delta^*}D(X)\rTo{R\Gamma}D(k).$$

Thus, the Hochschild homology of the category $\operatorname{MF}(X,w)$ can be computed as
$$HH_*(\operatorname{MF}(X,w))=R\Gamma(X,\underline{HH}_*(\operatorname{MF}(X,w)),$$
where
$$\underline{HH}_*(\operatorname{MF}(X,w))=\Delta^*{\cal O}_\Delta^{\widetilde{w}}.$$

Furthermore, we have an isomorphism
$$\underline{HH}_*(\operatorname{MF}(X,w))\simeq [\Omega^\bullet,\wedge dw].$$

The sheafified boundary-bulk map
\begin{equation}\label{sh-bb-map}
\underline{\operatorname{End}}(E)\to \underline{HH}_*(\operatorname{MF}(X, w)),
\end{equation}
which is a map in $D(X)$,
is obtained by applying $\Delta^*$ to the evaluation morphism in $\operatorname{MF}(X^2,\widetilde{w})$,
$$\operatorname{ev}_E: E\boxtimes E^\vee \to {\cal O}_\Delta^{\widetilde{w}}.$$
The latter morphism is obtained by dualization from the morphism
$$\eta_E:p_1^*E\to E_\Delta\simeq p_2^*E\otimes  {\cal O}_\Delta^{\widetilde{w}}$$
in $\operatorname{MF}(X^2,w\otimes 1)$, which corresponds by adjunction to the isomorphism
$E\to Rp_{1*}(p_2^*E\otimes {\cal O}_\Delta^{\widetilde{w}})$.

Since the boundary-bulk map is obtained from $\operatorname{ev}_E$ by applying the categorical trace functor $\operatorname{Tr}$,
it is obtained from the sheafified boundary-bulk map \eqref{sh-bb-map} by passing to derived global sections.

\subsection{Exponentials}

Our exponentials are analogs of the following Lie theoretic construction.
Let ${\frak g}$ be a Lie algebra, $M$ a ${\frak g}$-module.
Then for every $i\ge 0$, we have a morphism given by the iterated action,
$$u_i:{\frak g}^{\otimes i}\otimes M\to M: x_1\otimes\ldots\otimes x_i\otimes m\mapsto x_1\cdot(\ldots \cdot (x_{i-1} \cdot(x_i\cdot m))\ldots).$$
We denote by $s_i:S^i({\frak g})\otimes M\to M$ the restriction of $u_i$ to symmetric tensors.
We can think of $s_i$ as an element of $S^i({\frak g})^*\otimes\operatorname{End}(M)$.
Combining these elements together we get the element
$$\exp_M\in S^\bullet({\frak g})^*\otimes\operatorname{End}(M).$$

Now given an object $E$ in $D(X)$, the Atiyah class of $E$ defines a map
$$T_X[-1]\otimes E\to E$$
which is an action of $T_X[-1]$ (viewed as a Lie algebra) on $E$.
Thus, we get the corresponding element
$$\exp_E\in \operatorname{Hom}(E,S^\bullet(\Omega_X[1])\otimes E)=\operatorname{Hom}(E,\bigoplus_i \Omega^i_X[i]\otimes E).$$
Unraveling the definitions, we see that
$$\exp_E=\exp(\operatorname{at}(E)),$$
where the right-hand side is defined in the standard way (see e.g., \cite[Sec.\ 4]{Caldararu-HKR}).

Similarly, we  can consider ${\cal O}_\Delta$ as a module over $p_1^*T_X[-1]$ using the universal
Atiyah class, $\operatorname{at}^{\operatorname{univ}}:p_1^*T_X[-1]\otimes {\cal O}_\Delta\to {\cal O}_\Delta$. This gives rise to the element
\begin{equation}\label{exp-at-univ-w0-eq}
\exp(\operatorname{at}^{\operatorname{univ}})\in \operatorname{Hom}({\cal O}_\Delta,\bigoplus_i p_1^*\Omega^i_X[i]\otimes {\cal O}_\Delta)=\operatorname{Hom}({\cal O}_\Delta,\Delta_*\bigoplus_i \Omega^i_X[i]).
\end{equation}

It is easy to check that if we view $\exp(\operatorname{at}^{\operatorname{univ}})$ as a morphism of Fourier-Mukai kernels then the induced morphism
of functors $D(X)\to D(X)$,
$$E\mapsto \bigoplus_i \Omega^i_X[i]\otimes E,$$
is precisely $\exp(\operatorname{at}(E))$.

In the same way for a matrix factorization $E\in\operatorname{MF}(X, w)$ we define
$$\exp(\operatorname{at}(E))\in \operatorname{Hom}^0(E,(\Omega_X^\bullet,\wedge dw)\otimes E)$$
using the action of $L_w$ on $E$ given by $\hat{\operatorname{at}}(E)$, passing to the induced map
$$S^n(L_w)\otimes E\to E$$
(where $n=\dim X$), dualizing, and using the isomorphism of $S^n(L_w^\vee)$ with $(\Omega_X^\bullet,\wedge dw)$
(see \eqref{Sn-isom}). This is equivalent to the definition given in Theorem A.

Similarly, the universal Atiyah class,
$$\hat{\operatorname{at}}^{\operatorname{univ}}\in \operatorname{Hom}({\cal O}_{\Delta}^{\widetilde{w}},p_1^*L_w^\vee\otimes{\cal O}_{\Delta}^{\widetilde{w}})$$
gives an action of $p_1^*L_w$ on ${\cal O}_\Delta^{\widetilde{w}}$
which induces an element
$$\exp(\operatorname{at}^{\operatorname{univ}})\in \operatorname{Hom}({\cal O}_{\Delta}^{\widetilde{w}},p_1^*S^n(L_w^\vee)\otimes{\cal O}_{\Delta}^{\widetilde{w}})\simeq
p_1^*(\Omega_X^\bullet,\wedge dw)\otimes {\cal O}_\Delta^{\widetilde{w}}.$$

Again, if we view this as a morphism of Fourier-Mukai kernels then the induced morphism of functors $\operatorname{MF}(X,w)\to \operatorname{MF}(X,w)$
is given by $\exp(\operatorname{at}(E))$ on $E\in \operatorname{MF}(X,w)$.

\subsection{Key lemma}

First, let us formulate the key assertion about the exponential of the universal Atiyah class \eqref{exp-at-univ-w0-eq} in the case $w=0$.

\begin{lem}\label{key-lem}
One has a commutative triangle
\begin{diagram}
{\cal O}_\Delta &\rTo{\operatorname{can}}& \Delta_*\Delta^*{\cal O}_\Delta\\
&\rdTo{\exp(\operatorname{at}^{\operatorname{univ}})}&\dTo_{\Delta_*I_{abs}}\\
&& \Delta_*\bigoplus_i\Omega_X^i[i]
\end{diagram}
\end{lem}

\noindent {\it Proof} . Since the action of $T_X[-1]$ on $\underline{HH}_*(X)=\Delta^*{\cal O}_\Delta$ is obtained by applying $\Delta^*$ to
$\operatorname{at}^{\operatorname{univ}}$, by naturality of $\operatorname{can}$, we get the following commutative diagram
\begin{diagram}
p_1^*T_X[-1]\otimes {\cal O}_\Delta&\rTo{\operatorname{id}\otimes\operatorname{can}}&p_1^*T_X[-1]\otimes \Delta_*\Delta^*{\cal O}_\Delta\\
\dTo{\operatorname{at}^{\operatorname{univ}}}&&\dTo{}\\
{\cal O}_\Delta&\rTo{\operatorname{can}}&\Delta_*\Delta^*{\cal O}_\Delta
\end{diagram}
where the right vertical arrow corresponds to the action of $T_X[-1]$ on $\underline{HH}_*(X)$.
In other words, the map $\operatorname{can}:{\cal O}_\Delta\to \Delta_*\Delta^*{\cal O}_\Delta$ is compatible with the action of $p_1^*T_X[-1]$.
Hence, it is also compatible with the iteration of this action and its restriction to (skew)-symmetric tensors:
\begin{diagram}
p_1^*S^\bullet(T_X[-1])\otimes {\cal O}_\Delta&\rTo{\operatorname{id}\otimes\operatorname{can}}&p_1^*S^\bullet(T_X[-1])\otimes \Delta_*\Delta^*{\cal O}_\Delta\\
\dTo{\exp(\operatorname{at}^{\operatorname{univ}})}&&\dTo{}\\
{\cal O}_\Delta&\rTo{\operatorname{can}}&\Delta_*\Delta^*{\cal O}_\Delta
\end{diagram}
where the left vertical arrow corresponds to $\exp(\operatorname{at}^{\operatorname{univ}})$ by duality.
Composing with the map $\Delta_*\varepsilon:\Delta_*\Delta^*{\cal O}_\Delta\to {\cal O}_\Delta$ (whose composition with $\operatorname{can}$ is
the identity),
we get the commutative triangle
\begin{diagram}
p_1^*S^\bullet(T_X[-1])\otimes {\cal O}_\Delta&\rTo{\operatorname{id}\otimes\operatorname{can}}&p_1^*S^\bullet(T_X[-1])\otimes \Delta_*\Delta^*{\cal O}_\Delta\\
&\rdTo{\exp(\operatorname{at}^{\operatorname{univ}})}&\dTo{}\\
&&{\cal O}_\Delta
\end{diagram}
where the vertical arrow is the push-forward by $\Delta$
of the composition
$$\varepsilon\circ {\cal D}_0\circ (I^{abs}\otimes \operatorname{id}):S^\bullet(T_X[-1])\otimes \Delta^*{\cal O}_\Delta\to {\cal O}_X.$$
Now the assertion follows from the fact that $I_{abs}$ is obtained from
the latter map by dualization.
\qed\vspace{3mm}

\begin{rem} Note that modulo Theorem \ref{HKR-thm} the assertion of Lemma \ref{key-lem}
is equivalent to that of Proposition 4.4 in \cite{Caldararu-HKR} (which refers to the standard HKR-isomorphism
defined using the completed bar-resolution) . Thus, we get a more conceptual proof
of that Proposition.
\end{rem}

Now let us consider the case of matrix factorizations.

\begin{lem}\label{key-w-lem}
One has a commutative triangle
\begin{diagram}
{\cal O}_\Delta^{\widetilde{w}} &\rTo{\operatorname{can}}& \Delta_*\Delta^*{\cal O}_\Delta^{\widetilde{w}}\\
&\rdTo{\exp(\operatorname{at}^{\operatorname{univ}})}&\dTo_{\Delta_*I_{abs,w}}\\
&& \Delta_*(\Omega_X^\bullet,\wedge dw)
\end{diagram}
\end{lem}

\noindent {\it Proof} . The proof is similar to that of Lemma \ref{key-lem}. We use the fact that the dualization of the universal Atiyah class
induces an action of $p_1^*L_w$ on ${\cal O}_\Delta^{\widetilde{w}}$
so we get a commutative diagram
\begin{diagram}
p_1^*L_w\otimes {\cal O}_\Delta^{\widetilde{w}}&\rTo{\operatorname{id}\otimes\operatorname{can}}&p_1^*L_w\otimes \Delta_*\Delta^*{\cal O}_\Delta^{\widetilde{w}}\\
\dTo{\hat{\operatorname{at}}^{\operatorname{univ}}}&&\dTo{}\\
{\cal O}_\Delta^{\widetilde{w}}&\rTo{\operatorname{can}}&\Delta_*\Delta^*{\cal O}_\Delta^{\widetilde{w}}
\end{diagram}
and then use the iteration of this action to get a commutative diagram
\begin{diagram}
p_1^*S^n(L_w)\otimes {\cal O}_\Delta^{\widetilde{w}}&\rTo{\operatorname{id}\otimes\operatorname{can}}&p_1^*S^n(L_w)\otimes \Delta_*\Delta^*{\cal O}_\Delta^{\widetilde{w}}\\
\dTo{\exp(\operatorname{at}^{\operatorname{univ}})}&&\dTo{}\\
{\cal O}_\Delta^{\widetilde{w}}&\rTo{\operatorname{can}}&\Delta_*\Delta^*{\cal O}_\Delta^{\widetilde{w}}
\end{diagram}
Finally, composing with $\Delta_*\varepsilon:\Delta_*\Delta^*{\cal O}_\Delta^{\widetilde{w}}\to {\cal O}_\Delta^{\widetilde{w}}$
and dualizing we get the result.
\qed\vspace{3mm}

\subsection{Proof of Theorem A}
Let us first consider the case $w=0$. We can view the commutative triangle of Lemma \ref{key-lem}
as the triangle of Fourier-Mukai functors from $D(X)$ to $D(X)$ (where to a kernel $K$ in $D(X\times X)$
we associate the functor $Rp_{1*}(K\otimes p_2^*(\cdot))$.
Applying these functors to an object $E\in D(X)$, we get a commutative triangle of the form
\begin{equation}\label{canE-triangle}
\begin{diagram}
E &\rTo{\operatorname{can}_E}& \Delta^*{\cal O}_\Delta\otimes E\\
&\rdTo{\exp(\operatorname{at}(E))}&\dTo_{I_{abs}\otimes \operatorname{id}}\\
&& \Omega_X^\bullet\otimes E
\end{diagram}
\end{equation}
We claim that the morphism $\operatorname{can}_E$ is obtained by applying $\Delta^*$ to the canonical morphism
$$\eta_E:p_1^*E\to \Delta_*E\simeq {\cal O}_\Delta\otimes p_2^*E.$$

Indeed, first let us observe that for any $F,G\in D(X\times X)$ we have a commutative triangle
\begin{diagram}
F\otimes G &\rTo{a_F\otimes \operatorname{id}_G}& \Delta_*\Delta^*F\otimes G\\
&\rdTo{a_{F\otimes G}}&\dTo{\sim}\\
&&\Delta_*\Delta^*(F\otimes G)
\end{diagram}
where $a_F:F\to \Delta_*\Delta^*F$ is the adjunction map, and the vertical arrow is the composition
of the natural isomorphisms
$$\Delta_*\Delta^*F\otimes G\simeq \Delta_*(\Delta^*F\otimes \Delta^*G)\simeq \Delta_*\Delta^*(F\otimes G).$$
Applying this to $F={\cal O}_\Delta$ and $G=p_2^*E$ we get the commutativity of the triangle in
the diagram
\begin{diagram}
p_1^*E&\rTo{\eta_E}&{\cal O}_\Delta\otimes p_2^*E&\rTo{\operatorname{can}\otimes\operatorname{id}}&\Delta_*\Delta^*{\cal O}_\Delta\otimes p_2^*E\\
\dTo{}&&\dTo{}&\ldTo{\sim}\\
\Delta_*\Delta^*p_1^*E&\rTo{\Delta_*\Delta^*\eta_E}&\Delta_*\Delta^*({\cal O}_\Delta\otimes p_2^*E)
\end{diagram}
Note that here the vertical arrows are the adjunction maps, so the square in the above diagram is also
commutative.
Using the adjointness of $(p_1^*,p_1^*)$, we get a commutative diagram
\begin{diagram}
E&\rTo{\sim}&Rp_{1*}({\cal O}_\Delta\otimes p_2^*E)&\rTo{Rp_{1*}(\operatorname{can}\otimes\operatorname{id})}&\Delta^*{\cal O}_\Delta\otimes p_2^*E\\
\dTo{\sim}&&\dTo{}&\ldTo{\sim}\\
\Delta^*p_1^*E&\rTo{\Delta^*\eta_E}&\Delta^*({\cal O}_\Delta\otimes p_2^*E)
\end{diagram}
By definition, the composition of arrows in the first row is $\operatorname{can}_E$, and our claim follows.

This implies that $\operatorname{can}_E$ corresponds by dualization to the sheafified boundary-bulk map
$$E\otimes E^\vee\to \Delta^*{\cal O}_\Delta=\underline{HH}_*(X)$$
(obtained as $\Delta^*$ of the evaluation map $E\boxtimes E^\vee\to {\cal O}_\Delta$).
Composing with $I_{abs}$ and using commutativity of \eqref{canE-triangle}
we get its expression in terms of $\exp(\operatorname{at}(E))$.

Now we can repeat the same argument in the case of matrix factorizations.
For $E\in\operatorname{MF}(X, w)$, using Lemma \ref{key-w-lem}, we get a commutative triangle
\begin{diagram}
E &\rTo{\operatorname{can}_E}& \Delta^*{\cal O}_\Delta^{\widetilde{w}}\otimes E\\
&\rdTo{\exp(\operatorname{at}(E))}&\dTo_{I_{abs,w}\otimes\operatorname{id}}\\
&& (\Omega_X^\bullet,\wedge dw)\otimes E
\end{diagram}
where the morphism $\operatorname{can}_E$ is obtained by applying $\Delta^*$ to $\eta_E$.
Since $\operatorname{ev}_E$ corresponds to $\eta_E$ by dualization,
this implies that the sheafified boundary-bulk map,
$$\Delta^*(\operatorname{ev}_E):\underline{\operatorname{End}}(E)\to \Delta^*({\cal O}_\Delta^{\widetilde{w}}),$$
is given by $x\mapsto \operatorname{str}(\exp(\operatorname{at}(E)) \cdot x )$.
\qed\vspace{3mm}

\section{Graded case}
\label{graded-sec}

\subsection{Basics}

\subsubsection{Category of ${\Bbb G}_m$-equivariant matrix factorizations}

Let $X$ be a smooth scheme equipped with a ${\Bbb G}_m$-action, and let $W$ be a regular function on $X$ satisfying
$$W(\lambda x)=\lambda W(x)$$
for $\lambda\in{\Bbb G}_m$.

Let $\chi$ denote the identity character of ${\Bbb G}_m$.
The category $\operatorname{MF}_{{\Bbb G}_m}(X,W)$ of ${\Bbb G}_m$-equivariant matrix factorizations of $W$ has as objects
${\Bbb G}_m$-equivariant ${\Bbb Z}_2$-graded bundles $E=E_0\oplus E_1$ on $X$ equipped with ${\cal O}_X$-linear maps
$$\delta_1:E_1\to E_0, \ \ \delta_0:E_0\to E_1\otimes \chi,$$
such that $\delta_0\circ \delta_1=\delta_1\circ \delta_0=W$. In order to define morphisms it is more convenient to replace $(E,\delta)$
with the ${\Bbb Z}$-graded bundle equipped with a degree one endomorphism $\delta$ such that $\delta^2=W$,
$$C(E)=C(E,\delta): \ldots E_1\rTo{\delta_1} E_0 \rTo{\delta_0} E_1\otimes \chi \rTo{\delta_1} E_0\otimes \chi \to\ldots$$
where the ${\Bbb Z}$-grading on $C(E)$ is determined by $C(E)_0=E_0$.
This complex is equipped with a chain {\it $2$-quasi-periodicity} isomorphism
$$\a_E:C(E)\simeq C(E)\otimes\chi[-2].$$
Now for a pair of matrix factorizations $E,F$ we define the ${\Bbb Z}$-graded complex of ${\Bbb G}_m$-equivariant bundles,
$\underline{\operatorname{Hom}}(E,F)$ as a subcomplex in the sheafified internal $\operatorname{Hom}$-complex of the corresponding $2$-quasi-periodic complexes,
$\underline{\operatorname{Hom}}(C(E),C(F))$, consisting of morphisms
respecting isomorphism $\a_E$ and $\a_F$.

Then the morphisms from $E$ to $F$ are defined as
$$\operatorname{Hom}(E,F):=R\Gamma(X,\underline{\operatorname{Hom}}(E,F))^{{\Bbb G}_m}.$$
More precisely, here $R\Gamma$ should be replaced by some functorial multiplicative resolution.
The resulting category $\operatorname{MF}_{{\Bbb G}_m}(X,W)$ is a ${\Bbb Z}$-graded dg-category, unlike the usual category of matrix factorizations
which is only ${\Bbb Z}_2$-graded (see \cite[Sec.\ 1]{PV-cohFT} for more details).

Note that the complex $\underline{\operatorname{Hom}}(E,F)$ is still $2$-quasi-periodic, so in fact we have
$$\underline{\operatorname{Hom}}(E,F)=C(\underline{\operatorname{Hom}}^{mf}(E,F)),$$
where $\underline{\operatorname{Hom}}^{mf}(E,F)$ is a ${\Bbb G}_m$-equivariant matrix factorization of $0$ on $X$.

Note that in the case $W=0$ we can associated with every bounded ${\Bbb Z}$-graded complex of ${\Bbb G}_m$-equivariant vector bundles $(V^\bullet,d)$,
a ${\Bbb G}_m$-equivariant matrix factorization $\operatorname{mf}(V^\bullet)$ of $0$, given by
$$\operatorname{mf}(V^\bullet)_0=\bigoplus_{n\in {\Bbb Z}} V^{2n}\otimes \chi^{-n}, \ \ \operatorname{mf}(V^\bullet)_1=\bigoplus_{n\in {\Bbb Z}} V^{2n-1}\otimes \chi^{-n}.$$
Note that the corresponding ${\Bbb Z}$-graded complex $C(\operatorname{mf}(V^\bullet))$ is simply
$$C(\operatorname{mf}(V^\bullet))=\bigoplus_{n\in{\Bbb Z}} V\otimes \chi^n[-2n].$$

\begin{ex}\label{D(X)-Gm-mf-ex}
In the case when the action of ${\Bbb G}_m$ on $X$ is trivial, one can easily see that the composed functor from
$D(X)_{{\Bbb Z}}$, the usual ${\Bbb Z}$-graded derived category of coherent sheaves on $X$,
$$D(X)_{{\Bbb Z}}\to D_{{\Bbb G}_m}(X)_{\Bbb Z}\rTo{\operatorname{mf}} \operatorname{MF}_{{\Bbb G}_m}(X,0),$$
where the first functor equips a complex in $D(X)_{{\Bbb Z}}$ with the trivial ${\Bbb G}_m$-action,
is an equivalence (see \cite[Sec.\ 1.2]{PV-cohFT}).
\end{ex}

The above definitions also make sense for more general categories of quasicoherent (resp., coherent)
matrix factorizations.

\subsubsection{Tensor product of graded matrix factorizations}

If $W$ and $W'$ are functions satisfying $W(\lambda x)=\lambda W(x)$, $W'(\lambda x)=\lambda W'(x)$,
then we have a natural operation of tensor product
$$\otimes: \operatorname{MF}_{{\Bbb G}_m}(X,W)\times \operatorname{MF}_{{\Bbb G}_m}(X,W')\to \operatorname{MF}_{{\Bbb G}_m}(X,W+W'),$$
which is uniquely determined by
\begin{diagram}
C(E\otimes F)={\rm equalizer}(C(E)\otimes C(F) & \pile{ \rTo^{\a_E\otimes \operatorname{id}} \\ \rTo_{\operatorname{id}\otimes \a_F}} & C(E)\otimes C(F)\otimes \chi[-2]).
\end{diagram}
More explicitely,
$$(E\otimes F)_0=E_0\otimes F_0\oplus E_1\otimes F_1\otimes\chi, \ \ (E\otimes F)_1=E_0\otimes F_1\oplus E_1\otimes F_0$$
(see \cite[Sec.\ 1.1]{PV-cohFT}).

In the particular case $W=0$ the tensor product gives a structure of a symmetric monoidal category on $\operatorname{MF}_{{\Bbb G}_m}(X,0)$.

There is also a natural duality functor
$$\operatorname{MF}_{{\Bbb G}_m}(X,W)^{op}\to \operatorname{MF}_{{\Bbb G}_m}(X,-W): E\mapsto E^\vee,$$
such that
$$C(E^\vee)\simeq C(E)^\vee,$$
with $\a_{E^\vee}$ induced by $\a_E$. One has
an isomorphism of ${\Bbb G}_m$-equivariant matrix factorizations of $0$,
$$\underline{\operatorname{Hom}}^{mf}(E,F)\simeq F\otimes E^\vee$$
(see \cite[Lem.\ 1.1.6]{PV-cohFT}).

Note that we have a natural forgetful functor
\begin{equation}\label{Gm-forget-fun}
\operatorname{MF}_{{\Bbb G}_m}(X,0)\to \operatorname{MF}(X,0)=D(X)_{{\Bbb Z}_2}
\end{equation}
where $D(X)_{{\Bbb Z}_2}$ is the ${\Bbb Z}_2$-graded derived category of coherent sheaves on $X$.
It is easy to see that this functor is compatible with tensor products.

\subsection{Atiyah classes}

Let us consider $\widetilde{W}=W\otimes 1-1\otimes W$ as a function on $X^2$. Note that it still satisfies
$\widetilde{W}(\lambda x)=\lambda\widetilde{W}(x)$, where we equip $X^2$ with the diagonal ${\Bbb G}_m$-action.
We can associate with each object $K$ of $\operatorname{MF}_{{\Bbb G}_m}(X^2,\widetilde{W})$, with support proper with respect to $p_1$, a Fourier-Mukai type
functor $Rp_{1*}(K\otimes p_2^*(\cdot)$ from $\operatorname{MF}_{{\Bbb G}_m}(X,W)$ to itself.

Since $\widetilde{W}|_{\Delta(X)}=0$, we have natural functors
\begin{equation}\label{diagonal-Gm-W-functors}
\Delta_*:\operatorname{MF}_{{\Bbb G}_m}(X,0)\to \operatorname{MF}_{{\Bbb G}_m}(X^2,\widetilde{W}), \ \ \Delta^*:\operatorname{MF}_{{\Bbb G}_m}(X^2,\widetilde{W})\to \operatorname{MF}_{{\Bbb G}_m}(X,0).
\end{equation}
We can view ${\cal O}_X$ sitting in degree $0$ as a ${\Bbb G}_m$-equivariant matrix factorization of $0$ via the functor $\operatorname{mf}$.
We denote by ${\cal O}_\Delta^{\widetilde{W}}$ the corresponding object $\Delta_*({\cal O}_X)\in \operatorname{MF}_{{\Bbb G}_m}(X^2,\widetilde{W})$.
Equivalently,
$${\cal O}_\Delta^{\widetilde{W}}=\operatorname{mf}({\cal O}_\Delta).$$

Next, let us define a ${\Bbb G}_m$-equivariant matrix factorization ${\cal O}_{\Delta,\widetilde{W}}^{(2)}$ of $\widetilde{W}$ by
$$C({\cal O}_{\Delta,\widetilde{W}}^{(2)})=[\ldots {\cal O}_{\Delta^{(2)}}\rTo{-1} {\cal O}_\Delta \rTo{-dW} {\cal O}_{\Delta^{(2)}}\otimes \chi\to\ldots],$$
where ${\cal O}_{\Delta^{(2)}}$ sits in degree $0$.

Also, let us define a ${\Bbb G}_m$-equivariant matrix factorization $L^\vee_W$ of $0$, by
$$L^\vee_W=\operatorname{mf}([{\cal O}_X\rTo{dW} \Omega_X^1\otimes\chi]),$$
where the two-complex is placed in degrees $[0,1]$.
Then we have a natural exact sequence of ${\Bbb G}_m$-equivariant matrix factorizations of $\widetilde{W}$,
$$0\to \Delta_*L^\vee_W[-1]\rTo{\phi} {\cal O}_{\Delta,\widetilde{W}}^{(2)} \rTo{\psi} {\cal O}_\Delta^{\widetilde{W}}\to 0,$$
where the map $\phi$ has as components the identity map on ${\cal O}_\Delta$ and
the natural embedding $\Delta_*\Omega^1_X\to {\cal O}_{\Delta^{(2)}}$, while the nontrivial component of $\psi$ is given by
the natural projection ${\cal O}_{\Delta^{(2)}}\to {\cal O}_\Delta$.

From the above exact sequence we get a morphism in $\operatorname{MF}_{{\Bbb G}_m}(X^2,\widetilde{W})$,
$$\hat{\operatorname{at}}^{\operatorname{univ}}: {\cal O}_\Delta^{\widetilde{W}}\to \Delta_*L^\vee_W\simeq p_1^*L^\vee_W\otimes {\cal O}_\Delta^{\widetilde{W}}.$$
Applying the corresponding Fourier-Mukai functors, we get for every ${\Bbb G}_m$-equivariant matrix factorization $E$ of $W$,
a morphism
$$\hat{\operatorname{at}}(E): E\to L^\vee_W\otimes E.$$

\begin{ex}
Assume that the action of ${\Bbb G}_m$ on $X$ is trivial and $W=0$. Then $\operatorname{MF}_{{\Bbb G}_m}(X,0)$ is identified with $D(X)_{{\Bbb Z}}$
(see Example \ref{D(X)-Gm-mf-ex}). It is easy to see that in this case $\hat{\operatorname{at}}(E)=\operatorname{id}_E+\operatorname{at}(E)$, where
$\operatorname{at}(E):E\to \Omega^1_X[1]\otimes E$ is the usual Atiyah class of $E$.
\end{ex}

\subsection{Lie algebra structure, HKR, and the boundary-bulk map}

We are going to equip $L^\vee_W$ with a Lie algebra structure in the symmetric monoidal category $\operatorname{MF}_{{\Bbb G}_m}(X,0)$,
such that the embedding $\operatorname{mf}({\cal O}_X)\to L^\vee_W$ is in the center.

For this we start by applying the construction of the Atiyah class to $L^\vee_W$ viewed as a matrix factorization of $0$:
$$\hat{\operatorname{at}}_{L^\vee_W}: L^\vee_W\to L^\vee_0\otimes L^\vee_W.$$
Next, we observe that there are canonical chain maps of complexes placed in degrees $[0,1]$,
$$[{\cal O}_X\rTo{0}\Omega_X^1]\to [0\to \Omega_X^1\otimes\chi]\to [{\cal O}_X\rTo{dW}\Omega_X^1\otimes\chi].$$
Applying the functor $\operatorname{mf}$ we get a canonical morphism in $\operatorname{MF}_{{\Bbb G}_m}(X,0)$,
$$\varphi_W:L^\vee_0\to L^\vee_W.$$
Now we define the dual of the Lie bracket as the composition
$$L^\vee_W\rTo{\hat{\operatorname{at}}_{L^\vee_W}} L^\vee_0\otimes L^\vee_W\rTo{\varphi_W\otimes\operatorname{id}} L^\vee_W\otimes L^\vee_W.$$

Next, using adjunction, from $\hat{\operatorname{at}}^{\operatorname{univ}}$, we get a morphism in $\operatorname{MF}_{{\Bbb G}_m}(X,0)$,
$$\iota_W: L_W\to Rp_{1*}\underline{\operatorname{End}}^{mf}({\cal O}_\Delta^{\widetilde{W}})=:\underline{HH}^*(\operatorname{MF}_{{\Bbb G}_m}(X,W))$$
(recall that $\underline{\operatorname{End}}^{mf}({\cal O}_\Delta^{\widetilde{W}})$ is a ${\Bbb G}_m$-equivariant matrix factorization of $0$ on $X^2$).
Using the product in $\underline{HH}^*(\operatorname{MF}_{{\Bbb G}_m}(X,W))$ we obtain a map of ${\Bbb G}_m$-equivariant matrix factorizations of $0$
$$I^{abs,{\Bbb G}_m}:S^n(L_W)\to \underline{HH}^*(\operatorname{MF}_{{\Bbb G}_m}(X,W)),$$
where $n=\dim X$.

On the other hand, setting
$$\underline{HH}_*(\operatorname{MF}_{{\Bbb G}_m}(X,W)):=\Delta^*{\cal O}_\Delta^{\widetilde{W}}\in \operatorname{MF}_{{\Bbb G}_m}(X,0),$$
we have a natural action of $\underline{HH}^*(\operatorname{MF}_{{\Bbb G}_m}(X,W))$ on $\underline{HH}^*(\operatorname{MF}_{{\Bbb G}_m}(X,W))$
(understood in terms of the tensor structure on $\operatorname{MF}_{{\Bbb G}_m}(X,0)$), and a canonical functional
$$\varepsilon:\underline{HH}_*(\operatorname{MF}_{{\Bbb G}_m}(X,W))\to \operatorname{mf}({\cal O}_X),$$
coming from the adjunction for the functors \eqref{diagonal-Gm-W-functors}.
Thus, iterating the action of $L_W$ on $\underline{HH}_*(\operatorname{MF}_{{\Bbb G}_m}(X,W))$ and applying $\varepsilon$, we get similarly to the ${\Bbb Z}_2$-graded case
a map
$$I_{abs,{\Bbb G}_m}:\underline{HH}_*(\operatorname{MF}_{{\Bbb G}_m}(X,W))\to S^nL^\vee_W.$$

Since the maps $I^{abs,{\Bbb G}_m}$ and $I_{abs,{\Bbb G}_m}$ lift the previously defined maps $I^{abs}$ and $I_{abs}$ using the
forgetful functor \eqref{Gm-forget-fun}, they are quasi-isomorphisms.

Note that we have an isomorphism defined in the same way as \eqref{Sn-isom},
$$S^nL^\vee_W\simeq \operatorname{mf}(S^n[{\cal O}_X\rTo{dW} \Omega^1_X\otimes\chi])\simeq \operatorname{mf}({\bigwedge}^\bullet(\Omega^1_X\otimes \chi),\wedge dW).$$
Thus, iterating $\hat{\operatorname{at}}(E)$, as in the ${\Bbb Z}_2$-graded case, we get for $E\in\operatorname{MF}_{{\Bbb G}_m}(X,W)$, a map
$$\exp(\operatorname{at}(E)): E\to \operatorname{mf}({\bigwedge}^\bullet(\Omega^1_X\otimes \chi),\wedge dW)\otimes E.$$

Now all the previous arguments generalize immediately to the graded case and give the following analog of Theorem A.

\medskip

\noindent
{\bf Theorem B}. {\it Assume that $W=0$ on the critical locus of $W$ (set-theoretically).
There is a natural identification
\begin{equation}\label{Gm-HKR-eq}
HH_*(\operatorname{MF}_{{\Bbb G}_m}(X,W))\simeq H^*(X,{\bigwedge}^\bullet(\Omega^1_X\otimes \chi),\wedge dW)^{{\Bbb G}_m}.
\end{equation}
Under this identification, the categorical boundary-bulk map for $E\in \operatorname{MF}_{{\Bbb G}_m}(X,W)$,
$$\operatorname{Hom}^*_{\operatorname{MF}_{{\Bbb G}_m}(X,W)}(E,E)\to HH_*(\operatorname{MF}_{{\Bbb G}_m}(X,W)),$$
is equal to the map induced on the ${\Bbb G}_m$-invariant part of hypercohomology by the map
$$\underline{\operatorname{Hom}}^{mf}(E,E)\to \operatorname{mf}({\bigwedge}^\bullet(\Omega^1_X\otimes \chi),\wedge dW): x\mapsto \operatorname{str}(\exp(\operatorname{at}(E)) \cdot x)$$
in $\operatorname{MF}_{{\Bbb G}_m}(X,0)$.
}