%% ---- preamble.tex ---- \documentclass[11pt,letterpaper]{article} \usepackage{iftex} \ifPDFTeX \usepackage[T1]{fontenc} \usepackage{lmodern} \else \usepackage{fontspec} \fi \usepackage{amsmath,amsthm,amssymb,mathtools} \usepackage[margin=1.05in]{geometry} \usepackage{microtype} \setlength{\emergencystretch}{1em} \usepackage{xcolor} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{arrows.meta,positioning} \definecolor{paperlink}{RGB}{0,0,114} \usepackage{booktabs,array,float} \usepackage{enumitem} \usepackage{needspace} \setlist[itemize]{leftmargin=2em,itemsep=0.25em,topsep=0.35em} \setlist[enumerate]{leftmargin=2.6em,itemsep=0.25em,topsep=0.35em} \setlength{\parindent}{1.25em} \setlength{\parskip}{0pt} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \newcommand{\chapter}[1]{\clearpage\section{#1}} \renewcommand{\sectionmark}[1]{\markboth{\thesection.\ #1}{}} \fancyhead[L]{\small\nouppercase{\leftmark}} \fancyhead[R]{\small\thepage} \setlength{\headheight}{14pt} \fancypagestyle{plain}{\fancyhf{}\renewcommand{\headrulewidth}{0pt}\fancyfoot[C]{\small\thepage}} \usepackage{hyperref} \hypersetup{colorlinks=true,linktoc=all,linkcolor=paperlink,citecolor=paperlink,urlcolor=paperlink, pdftitle={Gradient structures on metric measure spaces}, pdfauthor={Fabrice Baudoin}} \numberwithin{equation}{section} \setcounter{tocdepth}{2} \setcounter{secnumdepth}{2} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{maintheorem}{Theorem} \renewcommand{\themaintheorem}{\Alph{maintheorem}} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{example}[theorem]{Example} \newtheorem*{definition*}{Definition} \newtheorem{problem}[theorem]{Problem} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} % averaged integral \def\Xint#1{\mathchoice{\XXint\displaystyle\textstyle{#1}}{\XXint\textstyle\scriptstyle{#1}}{\XXint\scriptstyle\scriptscriptstyle{#1}}{\XXint\scriptscriptstyle\scriptscriptstyle{#1}}\!\int} \def\XXint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}\vcenter{\hbox{$#2#3$}}\kern-.5\wd0}} \def\fint{\Xint-} \newcommand{\R}{\mathbb{R}} \newcommand{\N}{\mathbb{N}} \newcommand{\cS}{\mathcal{S}} \newcommand{\cH}{\mathsf{H}} \newcommand{\cC}{\mathcal{C}} \newcommand{\cE}{\mathcal{E}} \newcommand{\cF}{\mathcal{F}} \newcommand{\cD}{\mathcal{D}} \newcommand{\Lip}{\operatorname{Lip}} \newcommand{\supp}{\operatorname{supp}} \newcommand{\Dom}{\operatorname{Dom}} \newcommand{\diver}{\operatorname{div}} \newcommand{\spn}{\operatorname{span}} \newcommand{\ind}{\mathbf{1}} % hypotheses \newcommand{\hV}{\ensuremath{\mathrm V(\Phi)}} \newcommand{\hB}{\ensuremath{\mathrm B(\Psi_{C,2})}} \newcommand{\hBplus}{\ensuremath{\mathrm B^+(\Psi_{C,2})}} \newcommand{\hVD}{\ensuremath{\mathrm{VD}}} \newcommand{\hP}[1]{\ensuremath{\mathrm{PI}_{#1}(\Psi_{P,#1})}} \newcommand{\hH}{\textup{(H)}} \newcommand{\hN}[1]{\textup{(N$_{#1}$)}} \newcommand{\HKE}{\textup{HKE}(\Psi_{C,2})} % additional operators \newcommand{\osc}{\operatorname{osc}} \newcommand{\esssup}{\operatorname*{ess\,sup}} \newcommand{\diam}{\operatorname{diam}} \newcommand{\dist}{\operatorname{dist}} \newcommand{\Capa}{\operatorname{Cap}} \newcommand{\Leb}{\mathcal{L}} \newcommand{\Haus}{\mathcal{H}} \newcommand{\rest}{\!\restriction} \newcommand{\rank}{\operatorname{rank}} \newcommand{\length}{\operatorname{length}} \makeatletter \renewcommand*\l@subsection{\@dottedtocline{2}{1.5em}{3.0em}} \makeatother % ---- macros used in the chapters on Harnack inequalities, heat kernels and exponents ---- \newcommand{\E}{\mathcal E} \newcommand{\F}{\mathcal F} \newcommand{\dd}{\,d} \renewcommand{\Cap}{\operatorname{Cap}} \newcommand{\PI}{\operatorname{PI}} \newcommand{\CSA}{\operatorname{CSA}} \newcommand{\T}{\mathbb T} \newcommand{\essinf}{\operatorname*{ess\,inf}} \newcommand{\Var}{\operatorname{Var}} \newcommand{\RCD}{\mathrm{RCD}} \newcommand{\hCap}{\textup{(Cap)}} \newcommand{\hCS}{\textup{(CS)}} \makeatletter\def\toclevel@part{0}\makeatother \hypersetup{bookmarksnumbered=true} % ---- additions for the present version ---- \theoremstyle{definition} \newtheorem{assumption}[theorem]{Assumption} \newtheorem{question}[theorem]{Question} \theoremstyle{plain} \newcommand{\hSL}{\textup{(SL)}} \newcommand{\Liploc}{\operatorname{Lip}_{\mathrm{loc}}} % ---- macros for the chapter on the spectral scale ---- \newcommand{\EHI}{\mathrm{EHI}} \newcommand{\hSG}{\textup{(SG)}} \begin{document} \hypersetup{pageanchor=false} \begin{titlepage} \centering \vspace*{1.8in} {\LARGE\bfseries Gradient structures on metric measure spaces\par} \vspace{0.45in} {\large Sobolev spaces, Heat kernels and Examples\par} \vspace{0.8in} {\Large Fabrice Baudoin\par} \vspace{0.15in} {Department of Mathematics, Aarhus University\par} {\href{mailto:fbaudoin@math.au.dk}{\nolinkurl{fbaudoin@math.au.dk}}\par} \vfill {Version 2, 25 November 2026\par} \end{titlepage} \pagenumbering{roman} \hypersetup{pageanchor=true} \tableofcontents \clearpage \section*{Preface} \addcontentsline{toc}{section}{Preface} \markboth{Preface }{} \subsection*{Motivation} The starting point of this book is my work with Li Chen on the Vicsek set~\cite{BCVicsek23} and with Li Chen and Meng Yang on local trees~\cite{BCY}. In a \emph{real tree}, any two distinct points $x,y$ are joined by a unique arc $[x,y]$, and this arc is isometric to $[0,d(x,y)]$. A \emph{local tree} is a metric space in which every point has a ball that is a real tree with the restricted metric. The \emph{skeleton}~$\cS$ is the union of the interiors of the geodesic arcs in such balls, and its length measure is $\nu=\Haus^1\rest_{\cS}$. Fix a root $o$ in a separable real tree and orient the arcs $[o,y]$ away from $o$. For Lipschitz $u$, we can differentiate $u$ along each arc parametrized by arclength. The oriented parametrizations agree on common initial segments, so the derivatives define a single function $\partial u$ $\nu$-almost everywhere. The fundamental theorem of calculus gives \[ u(y)-u(o)=\int_{(o,y)}\partial u\,d\nu . \] For a continuous $u$, the same identity characterizes the weak derivative whenever there is a density integrable along each rooted arc. On a local tree the construction applies on tree balls. The Vicsek set with its intrinsic metric is a real tree. Its skeleton is, up to endpoints, the union of the increasing cable approximations (Figure~\ref{fig:preface-vicsek}). The natural reference measure $m$ is the Hausdorff measure of dimension $\log 5/\log 3$ and gives zero mass to~$\cS$. \begin{figure}[htbp] \centering \newcommand{\drawVicsekCables}[1]{% \ifnum#1=0\relax \draw (-1,-1) -- (1,1) (-1,1) -- (1,-1); \else \foreach \a/\b in {0/0,-2/-2,-2/2,2/-2,2/2}{% \begin{scope}[scale={1/3},shift={(\a,\b)}] \drawVicsekCables{\the\numexpr#1-1\relax}% \end{scope}% }% \fi } \begin{tikzpicture}[x=2cm,y=2cm,draw=black!70,line width=.32pt,line cap=round] \drawVicsekCables{4} % The plotted sample uses the first 20 digits of a uniform self-similar % address, 03043413344201300102. Digits 0 to 4 correspond to the copies % in the loop above. The sample was selected away from the outer square % and the displayed vertices. The path reduces the walk through the % successive cell centres, with subpixel turns suppressed. \coordinate (vicsek-y) at (0.25742058,-0.20429041); \draw[paperlink,line width=.85pt,line join=round] (-1,-1) -- (0,0) -- (0.22222222,-0.22222222) -- (0.24691358,-0.19753086) -- (0.25514403,-0.20576132) -- (0.25697302,-0.20393233) -- (0.25737946,-0.20433877) -- (vicsek-y); \fill[paperlink] (-1,-1) circle[radius=1.2pt] (vicsek-y) circle[radius=.8pt]; \node[below left,inner sep=2pt] at (-1,-1) {$o$}; \node[above right,inner sep=2pt] at (vicsek-y) {$y$}; \end{tikzpicture} \caption{The level-four Vicsek cable approximation and the arc $[o,y]$ to a point $y$.} \label{fig:preface-vicsek} \end{figure} For local trees with uniform volume growth, the Sobolev theory uses $u\in L^p(X,m)$ and $\partial u\in L^p(\cS,\nu)$. The $BV$ energy is obtained by $L^1(X,m)$-relaxation of $\int_\cS|\partial u|\,d\nu$ on $W^{1,1}(X,m)$~\cite[Section~2.3]{BCY}. Intuitively, a local tree has \emph{rank one} because its derivative is scalar. My aim was to develop a theory which also includes spaces of higher rank. On an $n$-dimensional Riemannian manifold the gradient takes values in $n$-dimensional tangent spaces. A product of trees with mutually singular length and reference measures still has rank one because the measures carrying the partial derivatives on the product are mutually singular. A way to obtain higher rank is to replace the arcs in the tree by cubes, retaining the Euclidean gradient on each cube. Figure~\ref{fig:preface-tree-of-cubes} shows the first stages of a planar example. A new square is attached to its host along a short segment. A function can then be nearly constant on each of the two squares, with different constants, at an energy cost determined by the segment. This cost governs the Poincar\'e inequality in Chapter~\ref{sec:riemannian-gluings}. It also gives an obstruction to elliptic Harnack. Changing the outer radius of an annulus by a fixed factor changes its capacity by an unbounded factor along a sequence of new squares (Corollary~\ref{cor:cube-spectrum-ehi}). \begin{figure}[!htbp] \centering \includegraphics[width=\textwidth]{tree_of_squares_limit.png} \caption{Stages $X_2$, $X_4$ and $X_6$ of the tree of cubes with $n=2$, Hausdorff dimension $Q=\log_2 5$. Each mesh square has four ordinary dyadic children and one new square attached along a segment. The embedding in $\R^3$ compresses the transverse lengths of the new squares.} \label{fig:preface-tree-of-cubes} \end{figure} \Needspace{9\baselineskip} \begin{definition*}[Definition~\ref{def:gradient}] A \emph{gradient structure} on a metric space $(X,d)$ is a triple $(\cS,\nu,\nabla)$, where $\cS\subset X$ is Borel, $\nu$ is a $\sigma$-finite Borel measure carried by~$\cS$, and \begin{equation*} \nabla:\Lip_b(X)\longrightarrow L^\infty(\cS,\cH,\nu) \end{equation*} is a linear map into the measurable sections of a field $\cH=(H_x)_{x\in\cS}$ of nonzero subspaces of a fixed~$\R^N$. It satisfies the Leibniz rule, the bound $|\nabla u|\le\Lip(u)$ and a weak-$*$ continuity condition. Its pointwise rank is $n(x)=\dim H_x$, and its global rank is $n_*=\operatorname*{ess\,sup}_{\nu}n(x)\le N$. \end{definition*} We equip $(X,d)$ with a reference measure~$m$, often a Hausdorff measure. The definition allows the gradient measure~$\nu$ to be singular with respect to~$m$ and infinite on every ball. The Sobolev space $W^{1,p}(X,m)$ is the domain of the closure~$\nabla_p$ of \begin{equation*} \nabla:\cC_p\subset L^p(X,m)\longrightarrow L^p(\cS,\cH,\nu)\,,\qquad\cC_p=\{u\in\Lip_c(X):\nabla u\in L^p(\cS,\cH,\nu)\}\,, \end{equation*} when the structure is $p$-admissible, meaning that the core is uniformly dense in $C_c(X)$ and the operator is closable. The $p$-energy is then $\cE_p(f)=\int_\cS|\nabla_pf|^p\,d\nu$. For $p=2$ one obtains a strongly local regular Dirichlet form on $L^2(X,m)$ with energy measures $|\nabla_2f|^2\nu$. If the core~$\cC_2$ spans the fibres, the pointwise index in the sense of Hino~\cite{Hi10,Hi13} is~$n(x)$, and the index and the martingale dimension of the associated diffusion are both~$n_*$ (Proposition~\ref{prop:dirichlet}). The book develops the theory of these Sobolev spaces and their associated heat kernels. \subsection*{Use of generative AI} This book was generated almost entirely with generative AI. I used approximately 200 prompts and spent about 40 hours working with Astra 6 (standard speed, max or ultra settings), 20 hours with Sol 6.1 (standard speed, various settings), and 20 hours with Fable 5 and Fable 5.2 (Extra effort). I used Astra 6 to develop proofs, Sol 6.1 for editing, proofreading and bibliographical work, and Fable 5 and Fable 5.2 for writing.\footnote{I used the \texttt{math-paper} skill, available at \url{https://github.com/amelieloher/math-paper-skills}.} I started with an informal notion of a gradient structure and looked for examples before formalizing it. In my first prompt to Astra 6, I supplied earlier work, including~\cite{BCY}, and asked whether limits of cubes glued along interfaces could carry a gradient obtained from the ordinary gradients on the cubes. Astra returned an initial example of the construction in Section~\ref{subsec:window-construction}. I next studied its Sobolev spaces and its critical Korevaar--Schoen exponents, a longstanding interest of mine~\cite{Bau24}. I was surprised that weak monotonicity at the critical exponent holds precisely for $p>n$. Its failure at $p=2$ led me to examine the Poincar\'e and capacity scales separately. I then asked for a family in which these scales could be varied. Astra obtained the trees of cubes described in Section~\ref{subsec:window-construction}. The difficulty of finding examples of rank at least two with genuinely sub-Gaussian heat kernels led to the rank theorem in Chapter~\ref{sec:rank-chapter}. When I investigated the case of distinct scales, the dependence of the Harnack constant on the time and radius became the subject of Chapters~\ref{sec:harnack-chapter} and~\ref{sec:hk-chapter}. With these results in hand, I returned to the foundations and developed with Astra and Fable the framework of Chapters~\ref{sec:def} and~\ref{sec:sobolev-chapter}. To test it, I chose to study self-improvement of Poincar\'e inequalities, a classical phenomenon~\cite{KeZh08}. I proposed most of the examples and used the models to check the axioms and establish their properties. The cubical inverse limit of Chapter~\ref{sec:cubical-inverse-limits} came from Astra, which I had asked for a higher-rank version of Laakso's construction. Successive rounds of writing, polishing and editing with Sol and Fable reduced a 350-page draft to the present version. I am entirely responsible for the architecture of the document section by section. \subsection*{Comments on Version 2} The present version benefited from insightful comments by Aobo Chen, who suggested that allowing scale functions to depend on the position of the point $x$ might allow to consider interesting examples of gradient structures. Indeed, one can construct from the inverse cubical limit example for which $\nu$ is singular to $m$, the cutoff scale and Poincar\'e scales coincide, but they have to depend on $x$. This suggested a new broader setup in which the Poincar\'e, cutoff and cutoff Sobolev scales, which were functions $\Psi(r)$ of the radius, are now functions $\Psi(x,r)$ of the centre and of the radius of a ball, and the results of Parts~\ref{part:general} and~\ref{part:heat} are stated in this generality. Second, Chapter~\ref{sec:spectral-chapter} is new. It recovers the scale from the Dirichlet form and the reference measure, as the reciprocal of the bottom of the Dirichlet spectrum of balls, and it characterizes the two-sided heat kernel estimate at this scale under the elliptic Harnack inequality (Theorem~\ref{sp:thm:main}); for power scales on Ahlfors regular spaces this characterization is due to a very recent paper by Mariano and Wang~\cite{MW26}. As a consequence, the heat kernel estimates at matching scales are sharper than in Version~1: they hold at every pair of points, for a continuous kernel, under an upper bound for the capacity. Third, there are two new examples: the cubical inverse limit discussed before with a singular reference measure, in which the Poincar\'e and cutoff scales match only as functions of the point (Section~\ref{subsec:cubical-singular}), and the Dirichlet eigenvalues of balls in the tree of cubes, which have uniform power growth although the elliptic Harnack inequality fails (Corollary~\ref{cor:cube-spectrum-ehi}). Fourth, the foundations have been revised. A structure which was called $p$-admissible is now called closable at~$p$, and this notion includes the condition that the gradients of the core span the fibres (Definition~\ref{def:admissible}); the trace of a Sobolev function is then defined on the whole skeleton, and the index of the Dirichlet form is the rank. The introduction has been rewritten and contains tables of the hypotheses and of the notation. \subsection*{Acknowledgments} This work was supported in part by the Independent Research Fund Denmark (grant 10.46540/4283-00175B), by the Villum Investigator grant \emph{Stochastic Analysis in Aarhus}, and by the European Research Council (ERC) through the European Union's Horizon Europe research and innovation programme (RanGe project, Grant Agreement No. 101199772). \clearpage \section*{Introduction} \addcontentsline{toc}{section}{Introduction} \markboth{Introduction}{} This book develops a first-order calculus on metric measure spaces in which the measure which carries the gradients of functions and the measure which defines the function spaces are independent data. Part~\ref{part:general} defines gradient structures, their Sobolev spaces and their functions of bounded variation, and studies them under three quantitative hypotheses: volume doubling, a cutoff condition and Poincar\'e inequalities. Part~\ref{part:heat} concerns Harnack inequalities and heat kernel estimates for strongly local Dirichlet forms, which include the quadratic energy of a gradient structure. Part~\ref{part:examples} is devoted to examples. This introduction describes the main results; the notions which it uses are defined in the chapters to which it refers. \subsection*{Two measures} Let $(X,d)$ be a metric space. A gradient structure $(\cS,\nu,\nabla)$ consists of a Borel set $\cS\subset X$, a measure~$\nu$ carried by~$\cS$, and a linear map~$\nabla$ which assigns to every bounded Lipschitz function~$u$ on~$X$ a bounded measurable field of vectors $\nabla u(x)\in H_x$ over~$\cS$ (Definition~\ref{def:gradient}). The map~$\nabla$ satisfies the Leibniz rule, a continuity property with respect to bounded pointwise convergence, and \begin{equation*} |\nabla u|\le\Lip(u)\qquad\nu\text{-almost everywhere.} \end{equation*} The spaces~$H_x$ form the smallest measurable field of subspaces of a Euclidean space which contains the gradients of the bounded Lipschitz functions, and the pointwise rank is $n(x)=\dim H_x$. Thus the metric bounds the gradient. The recovery of the metric from the gradient is a further property, formulated in Definition~\ref{def:SL} and verified for the geometric examples of Part~\ref{part:examples}; the general theory does not use it. A second measure~$m$ on~$X$ enters when the gradient is closed. For $1\le p<\infty$ the core is \begin{equation*} \cC_p=\{u\in\Lip_c(X):\nabla u\in L^p(\cS,\nu)\}\,. \end{equation*} The structure is \emph{closable at~$p$} if $\cC_p$ is uniformly dense in $C_c(X)$, the operator $\nabla:\cC_p\subset L^p(X,m)\to L^p(\cS,\nu)$ is closable, and the gradients of~$\cC_p$ span the spaces~$H_x$ (Definition~\ref{def:admissible}). The first and the third conditions hold as soon as small balls have cutoff functions of finite $p$-energy. The domain of its closure~$\nabla_p$ is the Sobolev space $W^{1,p}(X,m)$. Closability is a compatibility condition between the two measures. The simplest example is the interval $X=[0,1]$, with $\nabla u=u'$ and with the Lebesgue measure as~$\nu$ (Section~\ref{sec:interval}). For every finite measure~$m$ of full support the gradient is closable at every exponent, and $W^{1,p}(X,m)$ is the classical Sobolev space of the interval: convergence of the derivatives in $L^p(dx)$ controls the increments of the functions, and convergence in $L^p(m)$ fixes the additive constant. In higher rank the compatibility can depend on~$p$. For Liouville Brownian motion the structure is almost surely closable at~$p$ exactly for $p>\gamma^2/2$ (Proposition~\ref{prop:liouville-p-admissibility}), and for the tree of cubes it is closable at~$p$ exactly for $p\ge p_*$, with $p_*$ given in~\eqref{eq:cube-closed-range}. If $m$ and~$\nu$ are mutually singular, a function of $W^{1,p}(X,m)$, which is an $m$-equivalence class, has no prescribed values on~$\cS$. Proposition~\ref{prop:trace} constructs a trace on~$\cS$, and this trace gives the chain and product rules for the closed gradient. At $p=2$ the energy \begin{equation*} \cE_2(f)=\int_\cS|\nabla_2f|^2\,d\nu \end{equation*} defines a strongly local regular Dirichlet form on $L^2(X,m)$. Its index, in the sense of Hino~\cite{Hi10,Hi13}, is the rank of the structure (Proposition~\ref{prop:dirichlet}). At $p=1$ the gradient need not be closable. The total variation is defined by relaxation of the energy $\int_\cS|\nabla u|\,d\nu$ on the compactly supported core~$\cC_1$, and it satisfies the coarea formula (Theorem~\ref{thm:global-coarea}). \subsection*{Three hypotheses and two scales} The quantitative theory compares the two measures on balls. A \emph{scale} is a positive function $\Psi(x,r)$ of the centre and of the radius of a ball $B=B(x,r)$. Its radial growth bounds are uniform in~$x$, and its values at the radius~$r$ are comparable at centres at distance at most~$r$ (Section~\ref{subsec:scale-functions}). A scale which does not depend on the centre is written $\Psi(r)$. The hypotheses of Chapter~\ref{sec:hyp}, at small radii or at all radii, are the following. \begin{itemize} \item \emph{Volume doubling}~\hVD{} for the reference measure~$m$. \item The \emph{Poincar\'e inequality} $\mathrm{PI}_p(\Psi_{P,p})$: for every $u\in\cC_p$, \begin{equation*} \int_B |u-u_B|^p\,dm\le C\,\Psi_{P,p}(x,r) \int_{\Lambda B\cap\cS}|\nabla u|^p\,d\nu\,. \end{equation*} \item The \emph{cutoff condition} $\mathrm B(\Psi_{C,2})$: each ball~$B$ has a compactly supported Lipschitz cutoff~$\psi_x^r$, equal to one on~$B$ and to zero outside~$2B$, such that \begin{equation*} \Lip(\psi_x^r)\le \frac Cr\,,\qquad \int_\cS|\nabla\psi_x^r|\,d\nu \le C\,\frac{r\,m(B)}{\Psi_{C,2}(x,r)}\,. \end{equation*} \end{itemize} The Poincar\'e inequality bounds an integral against~$m$ by an integral against~$\nu$, and the cutoff condition bounds an integral against~$\nu$ by the $m$-measure of a ball: the two hypotheses compare the measures in opposite directions. The right-hand side of the cutoff condition is $C\,\Theta(B)/r$, where \begin{equation*} \Theta(B)=\frac{r^2\,m(B)}{\Psi_{C,2}(x,r)} \end{equation*} is the \emph{gauge} of the ball; when $\nu$ is doubling and finite on balls one can take $\Theta(B)=\nu(B)$ (Lemma~\ref{lem:distance-cutoff}). Since $|\nabla\psi_x^r|\le C/r$, the cutoff has $p$-energy at most $C\,m(B)/\Psi_{C,p}(x,r)$, where \begin{equation*} \Psi_{C,p}(x,r)=r^{p-2}\,\Psi_{C,2}(x,r)=r^p\,\frac{m(B)}{\Theta(B)}\,. \end{equation*} On a connected space the three hypotheses imply $\Psi_{C,p}(x,r)\le C\,\Psi_{P,p}(x,r)$ at small radii (Proposition~\ref{prop:scaleorder}). The scales \emph{match} at the exponent~$p$ when the reverse bound holds uniformly on these balls. On a complete Riemannian manifold with a lower bound on the Ricci curvature, for instance, they match at $\Psi_{P,p}(r)=\Psi_{C,p}(r)=r^p$ (Proposition~\ref{prop:manifoldhyp}). The two scales are related to averaged difference quotients. For a scale~$S$, the Korevaar--Schoen functional~\eqref{eq:Dp} is \begin{equation*} E_{p,S}(f,r)=\int_X\frac{1}{S(x,r)}\fint_{B(x,r)}|f(x)-f(y)|^p\,dm(y)\,dm(x)\,. \end{equation*} Theorem~\ref{thm:KS} bounds the functional normalized by the Poincar\'e scale in terms of the lower limit of the functional normalized by the cutoff scale: \begin{equation*} \sup_{01$ and the space $BV(X,m)$ for $p=1$. The formulas for the critical exponents of the Korevaar--Schoen spaces and the Gagliardo--Nirenberg inequalities use uniform power bounds on the scales. Chapter~\ref{sec:exponents-chapter} proves that the Poincar\'e inequality at the cutoff scale improves itself in the exponent, as in the theorem of Keith and Zhong~\cite{KeZh08}. The proof uses a comparison of the scale on nested balls~\eqref{me:eq:scale-comparison}, which follows from the other hypotheses when the scale does not depend on the centre. Under these assumptions the set of exponents at which the scales match is open from below (Theorem~\ref{me:thm:self-improvement} and Corollary~\ref{me:cor:M}). \subsection*{The rank obstruction} A common scale for the Poincar\'e inequality and for the energy of cutoffs restricts the rank. Suppose that the gradient structure is closable at~$p$, $10$, \begin{equation*} C^{-1}\Bigl(\frac Rr\Bigr)^a\le\frac{\Psi(x,R)}{\Psi(x,r)}\le C\Bigl(\frac Rr\Bigr)^b\qquad(x\in X\,,\ 0p$, then \begin{equation*} n(x)1$. \end{itemize} Under these conditions $J_2$, $\Psi_\lambda$ and the mean exit time from~$B$ started at its centre, defined by the Green potential as in Corollary~\ref{cor:mean-exit-scale}, are comparable, and the heat kernel is jointly continuous and satisfies \begin{equation*} \frac{c\,e^{-C N_t(x,y)}}{m(B(x,r_t(x)))}\le p_t(x,y)\le \frac{C\,e^{-c N_t(x,y)}}{m(B(x,r_t(x)))}\,. \end{equation*} Here $r_t(x)=\inf\{r>0:\Psi_\lambda(x,r)\ge t\}$ is the generalized inverse in~$r$ of the scale at~$x$, and $N_t(x,y)$ is the least integer $k\ge1$ for which there are points $x=x_0,x_1,\dots,x_k=y$ with \begin{equation*} \max\bigl\{\Psi_\lambda(x_{i-1},d(x_{i-1},x_i)),\,\Psi_\lambda(x_i,d(x_{i-1},x_i))\bigr\}\le\frac tk\qquad(1\le i\le k)\,. \end{equation*} Corollary~\ref{sp:cor:compact} gives the version on compact spaces, at small times. For $\Psi_\lambda(x,r)\asymp r^\beta$ with $\beta>1$, one has $N_t(x,y)\asymp1+(d(x,y)^\beta/t)^{1/(\beta-1)}$, and the estimate is the two-sided sub-Gaussian estimate. For such a power scale on an Ahlfors regular space, the characterization of the two-sided estimate by the elliptic Harnack inequality and the spectral condition $\lambda_1(B(x,r))\asymp r^{-\beta}$ was conjectured by Grigor'yan, Hu and Lau~\cite[Conjecture~4.15]{GHLsurvey}, and it was proved by Mariano and Wang~\cite[Theorem~1.3]{MW26}. The contributions of Theorem~\ref{sp:thm:main} are of a different kind, and there are three of them. \begin{itemize} \item \emph{Volume doubling is recovered.} No hypothesis is made on the volume of balls: the doubling property of~$m$ follows from the elliptic Harnack inequality and the power growth of the spectral scale. \item \emph{One annular dilation suffices.} Under the elliptic Harnack inequality, the growth of the spectral scale is equivalent to volume doubling together with the inequality $J_2(x,Lr)\ge q\,J_2(x,r)$ at a single dilation~$L$, which involves only the measure and the capacities of annuli. \item \emph{The scale may depend on the point.} The heat kernel estimate is then expressed with the radius $r_t(x)$ and the chain count $N_t(x,y)$, which replace the inverse of the scale and the distance. \end{itemize} \subsection*{Two cubical examples} The constructions of Chapters~\ref{sec:cubical-inverse-limits} and~\ref{sec:riemannian-gluings}, both made of Euclidean cubes of dimension~$n$, distinguish two effects of a singular reference measure. In the cubical inverse limit, the gradient is the Euclidean gradient on the cubes and the rank is~$n$. One can replace the Lebesgue measure in one coordinate~$s$ by a doubling measure~$\eta$ on $[0,1]$, which may be singular. For the resulting reference measure, the quadratic Poincar\'e and cutoff scales agree at \begin{equation*} W(x,r)=r\,\eta\bigl((s_x-r,s_x+r)\cap[0,1]\bigr)\,, \end{equation*} where $s_x$ is the coordinate~$s$ of~$x$. For every $1\le p<\infty$ the common scale is $r^{p-2}W(x,r)$, and the difference quotients weighted by this scale characterize $W^{1,p}$ for $p>1$ and $BV$ for $p=1$. The sharp quadratic scales which depend only on the radius, $\sup_xW(x,r)$ for the Poincar\'e inequality and $\inf_xW(x,r)$ for the cutoffs, differ unless $\eta$ is comparable to the Lebesgue measure. The scale~$W$, which depends on the point, gives the elliptic Harnack inequality and a two-sided heat kernel estimate at every pair of points, at small times (Theorem~\ref{thm:cubical-singular}). On the tree of cubes, $n\ge2$ is the dimension of a piece, $Q>n$ is the volume dimension, and $0<\sigma<2$ determines the sizes of the interfaces along which the pieces are attached. Uniformly in the centre, \begin{equation*} \lambda_1(B(x,r))^{-1}\asymp r^{Q+2-n-\sigma} \qquad\text{at small radii.} \end{equation*} Nevertheless the elliptic Harnack inequality fails. For a ball centred in a newly attached cube, a cutoff function which vanishes outside the ball of twice the radius expends an energy of Euclidean order. A cutoff function which is allowed to be equal to one on the entire cube can make its transition at the incoming interface, at a smaller cost. The ratio of these two capacities is unbounded, and this rules out a common regular scale, even depending on the point, for the Poincar\'e inequality and the upper capacity bound (Corollary~\ref{cor:cube-spectrum-ehi}). Thus uniform power growth of the spectral scale alone does not give the heat kernel characterization of Chapter~\ref{sec:spectral-chapter}. Mariano and Wang~\cite[Theorem~1.4]{MW26} give another example of this kind, on the Euclidean plane. Table~\ref{tab:scales} records the matching scales of the geometric examples. Two further examples are the harmonic Sierpi\'nski gasket, where the critical Korevaar--Schoen exponents are determined for every $p\ge1$ although the full range of the Poincar\'e inequalities is open, and Liouville Brownian motion, where the local dimension of the reference measure, at each point where it exists, is the exponent both of the mean exit time and of the spectral scale (Chapters~\ref{sec:harmonic-gasket-chapter} and~\ref{sec:liouville-chapter}). \subsection*{Relation to the literature} \paragraph{First-order calculus.} The framework combines derivations on metric measure spaces~\cite{We,Sc} with the measurable differential calculus of Dirichlet forms~\cite{CS,Hi10,Hi13,HRT13}. Closures of $p$-energies derived from a quadratic gradient are studied in~\cite{HKM20,Kuwae24}, and definitions of Sobolev and $BV$ spaces by derivations are developed in~\cite{DiMarino14}. In the present framework the metric is prescribed and bounds the derivation, and the quantitative estimates relate the two measures. Laakso's construction with cubes~\cite[Remark~3.2]{Laakso} and the cubical inverse systems of Cheeger and Kleiner~\cite[Section~11]{CKInv} provide the geometric setting of Chapter~\ref{sec:cubical-inverse-limits}; the results of Schioppa on these systems identify the coordinate derivations~\cite[Theorem~3.20]{ScCubical}. \paragraph{Approximation, rank and self-improvement.} The arguments of approximation belong to the literature on discrete convolutions and on Korevaar--Schoen energies~\cite{KL02,Bau24,BCY,Shimizu25}. The difference with the construction of a $p$-energy as a limit of metric energies~\cite{ARB25,KajinoShimizuKS} is that here the derivation is prescribed, and its closability must be proved. The proof of the rank theorem uses the methods of image measures and capacities of~\cite{Hi13b,Hi25Rank,CM26Rank}, and the proof of the self-improvement adapts the method of maximal functions of~\cite{KeZh08,KLVZ}. The hypotheses of these works are specified where their arguments enter. \paragraph{Heat kernels.} The theory with one scale is due to the works on Gaussian and sub-Gaussian Harnack inequalities~\cite{Gr92,SC92,Sturm96,BBK,AB,GHL,LierlPHI}. The perturbation method of Davies, Nash inequalities and chaining arguments supply the methods for the upper and lower bounds~\cite{CKS87,MSC,CG97,GrTe12}. Chapter~\ref{sec:spectral-chapter} uses the theory of the elliptic Harnack inequality, of its stability and of its relation to the parabolic one~\cite{BCM,BM18,GH14,KMconf}, the resistance theorem of Eriksson-Bique~\cite{EBRes}, and the estimates of Grigor'yan and Telcs~\cite{GrTe12} and Murugan~\cite{MurChain} in spaces without a chain condition. The spectral characterization of the two-sided sub-Gaussian estimate at a power scale on Ahlfors regular spaces, conjectured in~\cite{GHLsurvey}, is due to Mariano and Wang~\cite{MW26}. \subsection*{How to read this book} Figure~\ref{fig:dependencies} gives the reading order. Chapters~\ref{sec:rank-chapter} and~\ref{sec:exponents-chapter} may be read independently after Chapter~\ref{sec:KS}. Readers interested primarily in Dirichlet spaces may begin with Part~\ref{part:heat}. Chapter~\ref{sec:spectral-chapter} uses the definitions and, for its thin-annulus corollary, the cutoff construction of Chapter~\ref{sec:harnack-chapter} and the rate function of Chapter~\ref{sec:hk-chapter}. Chapter~\ref{sec:gradient-heat} applies these results to the closed gradient. Each chapter in Part~\ref{part:examples} develops its own model. The local trees of Section~\ref{subsec:local-trees-intro} and the manifolds of Chapter~\ref{sec:riemannian-examples} can also be read alongside the definitions in Part~\ref{part:general}. \begin{figure}[htbp] \centering \begin{tikzpicture}[ ch/.style={draw,rounded corners=2pt,minimum width=3.9cm,minimum height=0.8cm,align=center,font=\small}, dep/.style={-{Stealth[length=2.2mm]},semithick}, use/.style={-{Stealth[length=2.2mm]},semithick,dashed}, node distance=0.55cm and 0.9cm] \node[ch] (c1) at (0,0) {\ref{sec:def}. Gradient structures}; \node[ch] (c2) at (0,-1.4) {\ref{sec:sobolev-chapter}. Sobolev spaces, $BV$,\\ energy forms}; \node[ch] (c3) at (0,-2.8) {\ref{sec:hyp}. Doubling, cutoffs,\\ Poincar\'e inequalities}; \node[ch] (c4) at (0,-4.2) {\ref{sec:KS}. Korevaar--Schoen theory}; \node[ch,minimum width=3.4cm] (c5) at (-4.3,-6.4) {\ref{sec:rank-chapter}. Rank theorem}; \node[ch,minimum width=3.4cm] (c6) at (-0.3,-6.4) {\ref{sec:exponents-chapter}. Self-improvement}; \node[ch] (c7) at (6.0,0) {\ref{sec:harnack-chapter}. Harnack inequalities}; \node[ch] (c8) at (6.0,-1.4) {\ref{sec:hk-chapter}. Heat kernel estimates}; \node[ch] (csp) at (6.0,-2.8) {\ref{sec:spectral-chapter}. Spectral scale and\\ elliptic Harnack inequality}; \node[ch] (c9) at (6.0,-4.2) {\ref{sec:gradient-heat}. Applications to\\ gradient structures}; \node[ch,minimum width=4.6cm] (ex) at (6.0,-6.4) {\ref{sec:riemannian-examples}--\ref{sec:riemannian-gluings}. Examples (Part~\ref{part:examples})}; \draw[dep] (c1)--(c2); \draw[dep] (c2)--(c3); \draw[dep] (c3)--(c4); \draw[dep] (c4.south)--(c5.north); \draw[dep] (c4.south)--(c6.north); \draw[dep] (c7)--(c8); \draw[use] (c8)--(csp); \draw[use,rounded corners=4pt] (c7.east)-|([xshift=.33cm]csp.east)--(csp.east); \draw[use] (csp)--(c9); \draw[dep,rounded corners=4pt] (c8.west)-|([xshift=-0.55cm,yshift=5pt]c9.west)--([yshift=5pt]c9.west); \draw[dep] (c4.east)--([yshift=-5pt]c9.west); \draw[dep,rounded corners=4pt] (c3.east)-|(2.6,-6.4)--(ex.west); \draw[use] (c4.south east)--(ex.north west); \draw[use] (c9)--(ex); \draw[use,rounded corners=4pt] (csp.east)-|([xshift=0.55cm]ex.east)--(ex.east); \end{tikzpicture} \caption{Dependencies between the chapters. A solid arrow means that the chapter at its head relies on the chapter at its tail; a dashed arrow means that results are quoted where they are applied.}\label{fig:dependencies} \end{figure} \paragraph{Conventions.} Statements are numbered consecutively within each chapter. The letters $c$ and~$C$ denote positive constants whose value may change from line to line, and $A\asymp B$ means that $c\,B\le A\le C\,B$. The dependence of the constants is specified in each chapter, usually by the phrase \emph{structural constants}. References to the literature are given at the point of use, with the number of the statement which is cited whenever this is possible. Where a proof adapts a known method to the present setting, the source of the method is indicated, and the hypotheses under which the original statement was proved are those of the reference, not those of this book. \paragraph{Hypotheses and notation.} Tables~\ref{tab:hypotheses} and~\ref{tab:notation} list the hypotheses which have a name and the main notation, with the place where each is introduced. \begin{table}[H] \centering\small \renewcommand{\arraystretch}{1.15} \begin{tabular}{@{}lp{.56\textwidth}l@{}} \toprule Name & Hypothesis & Introduced in\\ \midrule \ref{cond:G1}--\ref{cond:G3} & Leibniz rule, Lipschitz bound and weak-$*$ continuity of~$\nabla$; together~\ref{cond:gradient} & Definition~\ref{def:gradient}\\ \hSL & local Sobolev-to-Lipschitz property & Definition~\ref{def:SL}\\ \ref{A1}--\ref{A3} & closability at~$p$: density of the core~$\cC_p$, closability of~$\nabla$ on~$\cC_p$, spanning of the fibres & Definition~\ref{def:admissible}\\ \hVD & volume doubling for~$m$ & \eqref{eq:VD}\\ \hV & uniform volume growth $m(B(x,r))\asymp\Phi(r)$ & \eqref{eq:hV}\\ \hP{p} & Poincar\'e inequality on the core~$\cC_p$ at the scale~$\Psi_{P,p}$ & \eqref{eq:hP}\\ \hB & cutoff condition at the scale~$\Psi_{C,2}$ & \eqref{eq:hB}, \eqref{eq:integrated-bump}\\ \hBplus & localized cutoff condition & Definition~\ref{def:Bplus}\\ matching & $\Psi_{P,p}\le C\,\Psi_{C,p}$ & Definition~\ref{def:matching}\\ \midrule $\PI(\Psi_P)$ & Poincar\'e inequality for a Dirichlet form & \eqref{hk:eq:global-pi}\\ $\mathrm{Cap}_{\le}(\Psi_C)$ & upper bound for the capacity at a scale~$\Psi_C$ & Definition~\ref{def:capacity-scale}\\ $\CSA(\Psi_S)$ & cutoff Sobolev inequality in annuli & Definition~\ref{def:CSA}\\ $\EHI$ & elliptic Harnack inequality & \eqref{sp:eq:EHI}\\ \hSG & two-sided power growth of the spectral scale & Definition~\ref{sp:def:spectral-scale}\\ \ref{sp:R1}--\ref{sp:R3} & regular scale function & Definition~\ref{sp:def:regular}\\ $\mathrm{HK}(\Psi)$ & two-sided heat kernel estimate at a scale $\Psi(x,r)$ & Section~\ref{sp:sec:statements}\\ $\HKE$ & two-sided heat kernel estimate at a scale of the radius & Definition~\ref{def:HKE}\\ \bottomrule \end{tabular} \caption{Named hypotheses. The upper part concerns gradient structures (Part~\ref{part:general}), the lower part Dirichlet forms (Part~\ref{part:heat}).}\label{tab:hypotheses} \end{table} \begin{table}[H] \centering\small \renewcommand{\arraystretch}{1.15} \begin{tabular}{@{}lp{.49\textwidth}l@{}} \toprule Notation & Meaning & Introduced in\\ \midrule $\cS$, $\nu$, $m$ & skeleton, gradient measure, reference measure & Definition~\ref{def:gradient}\\ $H_x$, $n(x)$, $n_*$ & fibre, pointwise rank, rank & Definition~\ref{def:gradient}\\ $\cC_p$ & core at the exponent~$p$ & Definition~\ref{def:core}\\ $\nabla_p$, $W^{1,p}(X,m)$, $\cE_p$ & closed gradient, Sobolev space, $p$-energy & Definition~\ref{def:admissible}\\ $T_p$ & trace on the skeleton & Proposition~\ref{prop:trace}\\ $\overline{\cE}_p$, $\|Df\|(X)$ & relaxed energy, total variation & \eqref{eq:relaxed-core-energy}, Definition~\ref{def:BV}\\ $\Psi_{C,p}$, $\Psi_{P,p}$ & cutoff scale, Poincar\'e scale & Section~\ref{subsec:scale-functions}\\ $\Theta(B)$ & gauge of a ball & \eqref{eq:Theta}\\ $D_p(f,r)$, $E_{p,S}(f,r)$ & averaged difference quotients & \eqref{eq:Dp}\\ $f_\varepsilon$, $G_\varepsilon f$ & discrete convolution, discrete gradient & \eqref{eq:feps}\\ $KS^{\alpha,p}(X)$, $\alpha_p$, $\alpha_p^{\mathrm{dens}}$ & Korevaar--Schoen spaces, critical exponents & \eqref{eq:KS-power-space}, Definition~\ref{def:KS-critical}\\ \midrule $\Gamma(f)$, $\Capa(B,U)$ & energy measure, capacity & Section~\ref{hk:sec:assumptions}, \eqref{eq:capacity-def}\\ $\Psi_P$, $\Psi_S$, $\Psi_C$ & Poincar\'e, cutoff Sobolev and capacity scales & Sections~\ref{hk:sec:assumptions}, \ref{subsec:capacity-csa}\\ $\mathcal A_\Psi(R,t)$ & rate function of a scale~$\Psi$ & \eqref{eq:rate-function}\\ $\Psi_\lambda(x,r)$ & spectral scale $\lambda_1(B(x,r))^{-1}$ & Definition~\ref{sp:def:spectral-scale}\\ $r_t(x)$, $N_t(x,y)$ & radius at the time~$t$, chain count & \eqref{sp:eq:radius-cost}, Section~\ref{sp:sec:scale}\\ $C_A(x,r)$, $J_A(x,r)$ & annular capacity, ratio of volume to capacity & \eqref{sp:eq:CJ}\\ \bottomrule \end{tabular} \caption{Main notation.}\label{tab:notation} \end{table} \clearpage\pagenumbering{arabic} \part{Gradient structures and first-order analysis}\label{part:general} \section{Gradient structures}\label{sec:def} On a Riemannian manifold the energy $\int|\nabla u|^2\,d\mathrm{vol}$ integrates the gradient against the same measure that defines~$L^2$. On singular spaces this coincidence often fails. On a tree whose mass is carried by its boundary, on a self-similar fractal whose energy measures are singular with respect to the Hausdorff measure~\cite{Ku89,Hi05}, or after a time change of a diffusion~\cite[Chapter~5]{ChFu12}, the measure which carries the energy is singular with respect to the measure which defines the function spaces. This chapter sets up a first-order calculus in which the two measures are independent data. The data are a metric measure space $(X,d,m)$, a Borel set $\cS\subset X$ carrying a second measure~$\nu$, and a linear map~$\nabla$ which assigns to every bounded Lipschitz function on~$X$ a bounded field of vectors over~$\cS$. Three axioms are imposed: the Leibniz rule, the bound $|\nabla u|\le\Lip(u)$, and a continuity property with respect to bounded pointwise convergence. They are the axioms of a derivation in the sense of Weaver~\cite{We}, written for a vector-valued map. The measure~$m$ does not appear in them. The chapter is organized as follows. Section~\ref{sec:interval} treats the unit interval with an arbitrary reference measure, where every phenomenon of interest can be computed by hand. Sections~\ref{subsec:setting} and~\ref{sec:definition} fix the notation and give the definition. Section~\ref{sec:calculus} derives locality and the chain rule from the axioms. Section~\ref{subsec:fibres-rank} constructs the measurable field of fibres in which the gradients take their values and defines the rank. Section~\ref{subsec:cores-cutoffs} introduces the cores~$\cC_p$ of Lipschitz functions with $p$-integrable gradient and gives a criterion for these cores to be large. Section~\ref{subsec:metric-recovery} formulates the condition under which the gradient determines the metric. Closures of the gradient in~$L^p(X,m)$ are the subject of Chapter~\ref{sec:sobolev-chapter}. \subsection{A model: two measures on an interval}\label{sec:interval} Let \begin{equation*} X=[0,1]\,,\quad d(x,y)=|x-y|\,,\quad \cS=(0,1)\,,\quad \nu=\Leb^1\rest_{(0,1)}\,,\quad \nabla u=u'\quad(u\in\Lip([0,1]))\,, \end{equation*} and let $m$ be a finite Borel measure on~$[0,1]$ with $\supp m=[0,1]$. Nothing else is assumed on~$m$: it may be singular with respect to the Lebesgue measure, and it may be purely atomic, with atoms at the rational points. For $1\le p<\infty$ and $u\in\Lip([0,1])$ consider the norm \begin{equation*} \|u\|_{W^{1,p}}^p=\int_{[0,1]}|u|^p\,dm+\int_0^1|u'|^p\,dx\,. \end{equation*} The first integral uses~$m$ and the second uses~$\nu$. Recall that the classical Sobolev space $W^{1,p}(0,1)$ consists of the absolutely continuous functions on~$[0,1]$ whose derivative belongs to $L^p((0,1),dx)$. A continuous function on~$[0,1]$ is determined by its $m$-equivalence class, because $m$ has full support; in this sense $W^{1,p}(0,1)\subset L^p([0,1],m)$. \begin{proposition}\label{prop:interval} Let $1\le p<\infty$. The operator \begin{equation*} \Lip([0,1])\subset L^p([0,1],m)\longrightarrow L^p((0,1),dx)\,,\qquad u\longmapsto u'\,, \end{equation*} is closable. The domain of its closure is $W^{1,p}(0,1)$, and on this space $\|\cdot\|_{W^{1,p}}$ is equivalent to the classical norm $\bigl(\int_0^1|u|^p\,dx+\int_0^1|u'|^p\,dx\bigr)^{1/p}$. \end{proposition} \begin{proof} \emph{Step 1: a uniform bound.} Let $u$ be absolutely continuous with $u'\in L^p(0,1)$. For all $x,y\in[0,1]$, H\"older's inequality gives \begin{equation*} |u(y)-u(x)|\le\int_0^1|u'|\,dt\le\|u'\|_{L^p(0,1)}\,. \end{equation*} We average in~$x$ with respect to~$m$ and then apply H\"older's inequality for~$m$: \begin{equation}\label{eq:interval-morrey} \Bigl|u(y)-\fint_{[0,1]}u\,dm\Bigr|\le\|u'\|_{L^p(0,1)}\,, \qquad \|u\|_\infty\le m([0,1])^{-1/p}\|u\|_{L^p(m)}+\|u'\|_{L^p(0,1)}\,. \end{equation} The same argument with the Lebesgue measure in place of~$m$ bounds $\|u\|_\infty$ by the classical Sobolev norm. Since $\|u\|_{L^p(m)}\le m([0,1])^{1/p}\|u\|_\infty$ and $\|u\|_{L^p(dx)}\le\|u\|_\infty$, the two Sobolev norms are equivalent. \emph{Step 2: closability.} Let $(u_k)$ be a sequence in $\Lip([0,1])$ which is Cauchy for $\|\cdot\|_{W^{1,p}}$, and let $g$ be the limit of~$(u_k')$ in $L^p(0,1)$. By~\eqref{eq:interval-morrey}, applied to the differences $u_k-u_l$, the sequence converges uniformly to a continuous function~$u$. Passing to the limit in $u_k(y)-u_k(x)=\int_x^yu_k'\,dt$ gives \begin{equation*} u(y)-u(x)=\int_x^yg(t)\,dt\qquad(x,y\in[0,1])\,. \end{equation*} Thus $u\in W^{1,p}(0,1)$ and $u'=g$. If moreover $u_k\to0$ in $L^p(m)$, then $u=0$ $m$-almost everywhere. Since $u$ is continuous and $m$ has full support, $u=0$ everywhere, and therefore $g=0$. This is closability, and the argument shows that the domain of the closure is contained in $W^{1,p}(0,1)$. \emph{Step 3: the domain.} Conversely, let $u\in W^{1,p}(0,1)$ and let $g_k$ be continuous functions with $g_k\to u'$ in $L^p(0,1)$. The functions $u_k(x)=u(0)+\int_0^xg_k\,dt$ are Lipschitz, converge uniformly to~$u$, and satisfy $u_k'=g_k\to u'$ in $L^p(0,1)$. Hence $u$ belongs to the domain of the closure. \end{proof} The estimate of Step~1 can be localized to a ball $B=B(x,r)$ of the interval, and the result anticipates the quantitative hypotheses of Chapter~\ref{sec:hyp}. For $u\in\Lip([0,1])$, H\"older's inequality on the subintervals of~$B$ gives the Poincar\'e inequality \begin{equation*} \int_B|u-u_B|^p\,dm\le (2r)^{p-1}m(B)\int_B |u'|^p\,dt\,. \end{equation*} In the opposite direction, the function $\psi(y)=(2-|y-x|/r)_+\wedge1$ is equal to one on~$B$, vanishes outside~$2B$, and $|\psi'|=1/r$ on a set of length at most~$2r$, so that \begin{equation*} \int_0^1|\psi'|^p\,dt\le 2r^{1-p}=\frac{2\,m(B)}{r^{p-1}m(B)}\,. \end{equation*} The Poincar\'e inequality and the energy of the cutoff are therefore governed by the same function of the ball, $\Psi_p(x,r)=r^{p-1}m(B(x,r))$. If $m$ is doubling, then $\Psi_p$ is a scale function at small radii in the sense of Section~\ref{subsec:scale-functions}, by doubling and reverse doubling on the interval. For $m=dt$ it is comparable to~$r^p$. Three features of this example recur throughout the book. \paragraph{The source of closability.} Closability came from two facts: the estimate~\eqref{eq:interval-morrey}, which bounds the oscillation of~$u$ by the $L^p(\nu)$ norm of its derivative, and the full support of~$m$. A bound of the oscillation on a ball by the energy on a comparable ball is a Poincar\'e inequality. In Chapter~\ref{sec:KS}, Poincar\'e inequalities at a scale comparable to the energy of cutoff functions are the general source of closability (Theorem~\ref{thm:closability}). \paragraph{The role of the reference measure.} The domain $W^{1,p}(0,1)$ is independent of~$m$, while its norm depends on~$m$. The quadratic form $\int_0^1|u'|^2\,dx$ is the reflecting form on the closed interval. Its generator on $L^2([0,1],m)$ is the Krein--Feller operator $L=\frac{d}{dm}\frac{d}{dx}$, and the associated diffusion is the time change of reflecting Brownian motion with speed measure~$m$~\cite[Chapter~5]{ChFu12}. An atom of~$m$ at an endpoint enters the boundary condition. For instance, if $m=dx+a\delta_0+b\delta_1$ with $a,b>0$, integration by parts in $\int_0^1f'v'\,dx=-\int_{[0,1]} vLf\,dm$ gives \begin{equation*} Lf=f''\quad\text{on }(0,1),\qquad aLf(0)=f'(0+),\qquad bLf(1)=-f'(1-)\,. \end{equation*} In particular $f(x)=x$ belongs to the generator domain. At an endpoint of zero speed mass the boundary condition is zero flux. The quantities which govern the heat kernel in Chapter~\ref{sec:spectral-chapter} can be computed by hand for this diffusion. Let $00$ we write $\lambda B=B(x,\lambda r)$ and $r_B=r$. A ball is always given together with its centre and its radius. \item $\Lip(u)=\sup_{x\ne y}|u(x)-u(y)|/d(x,y)$ is the Lipschitz constant of $u:X\to\R$. The spaces $\Lip_b(X)$ and $\Lip_c(X)$ consist of the bounded Lipschitz functions and of the Lipschitz functions with compact support. \item For a Borel set~$A$ with $00$, hence $\nabla w=0$ $\nu$-almost everywhere on~$U$. \emph{Borel sets.} Suppose now that $w=0$ on a Borel set~$A$. The functions \begin{equation*} w_k=\bigl(w-\tfrac1k\bigr)_+-\bigl(w+\tfrac1k\bigr)_-\,,\qquad k\ge1\,, \end{equation*} belong to $\Lip_b(X)$ and satisfy $\|w_k\|_\infty\le\|w\|_\infty$, $\Lip(w_k)\le\Lip(w)$ and $|w_k-w|\le1/k$. Moreover $w_k=0$ on the open set $\{|w|<1/k\}$, which contains~$A$. By the first case, $\nabla w_k=0$ $\nu$-almost everywhere on~$A$. Since $\nu$ is $\sigma$-finite, there is a Borel function $h:\cS\to(0,1]$ with $\int_\cS h\,d\nu<\infty$. The field $g=h\,\ind_A\nabla w$ belongs to $L^1(\cS,\cH,\nu)$, and~\ref{cond:G3} gives \begin{equation*} \int_Ah\,|\nabla w|^2\,d\nu=\int_\cS\langle\nabla w,g\rangle\,d\nu=\lim_{k\to\infty}\int_\cS\langle\nabla w_k,g\rangle\,d\nu=0\,. \end{equation*} Hence $\nabla w=0$ $\nu$-almost everywhere on~$A$. \ref{calc:lip} Let $L=\Lip(u|_A)$ and $M=\|u\|_\infty$; we may assume $A\ne\varnothing$. The truncated McShane extension~\cite{McShane34} \begin{equation*} \tilde u(y)=\Bigl(\inf_{z\in A}\bigl(u(z)+L\,d(y,z)\bigr)\vee(-M)\Bigr)\wedge M\,,\qquad y\in X\,, \end{equation*} is $L$-Lipschitz, bounded by~$M$, and equal to~$u$ on~$A$. By~\ref{calc:local} and~\ref{cond:G2}, $|\nabla u|=|\nabla\tilde u|\le L$ $\nu$-almost everywhere on~$A$. For the pointwise bound, let $\varepsilon,\rho>0$ and \begin{equation*} A_{\varepsilon,\rho}=\bigl\{y\in X:\ |u(z)-u(y)|\le\varepsilon\,d(y,z)\ \text{for all }z\in B(y,\rho)\bigr\}\,. \end{equation*} This set is closed: if $y_k\in A_{\varepsilon,\rho}$ converges to~$y$ and $z\in B(y,\rho)$, then $z\in B(y_k,\rho)$ for large~$k$, and the inequality passes to the limit because $u$ is continuous. Two points $y,z\in A_{\varepsilon,\rho}$ with $d(y,z)<\rho$ satisfy $|u(z)-u(y)|\le\varepsilon\,d(y,z)$. Hence $\Lip(u|_{A_{\varepsilon,\rho}\cap B(x,\rho/2)})\le\varepsilon$ for every $x\in X$, and the first assertion gives $|\nabla u|\le\varepsilon$ $\nu$-almost everywhere on $A_{\varepsilon,\rho}\cap B(x,\rho/2)$. Since $X$ is separable, countably many of these balls cover~$X$, so that $|\nabla u|\le\varepsilon$ $\nu$-almost everywhere on~$A_{\varepsilon,\rho}$. If $\Lip u(y)<\varepsilon$, then $y\in A_{\varepsilon,\rho}$ for some rational $\rho>0$. Discarding the countably many exceptional null sets which correspond to rational values of $\varepsilon$ and~$\rho$, we obtain, for $\nu$-almost every~$y$, that $|\nabla u(y)|\le\varepsilon$ for every rational $\varepsilon>\Lip u(y)$. This is~\eqref{eq:pointwise-Lip}. \ref{calc:chain} For a monomial $\varphi(t)=t^k$, the formula $\nabla(u^k)=k\,u^{k-1}\nabla u$ follows from the Leibniz rule by induction on~$k\ge1$, and from~\ref{calc:const} for $k=0$. By linearity it holds for polynomials. Let $\varphi\in C^1(\R)$ and $M=\|u\|_\infty$. The function $\varphi\circ u$ is bounded and Lipschitz because $\varphi$ is Lipschitz on $[-M,M]$. By the Weierstrass theorem applied to~$\varphi'$, there are polynomials~$P_k$ with $P_k\to\varphi$ and $P_k'\to\varphi'$ uniformly on $[-M,M]$. The function $(\varphi-P_k)\circ u$ has Lipschitz constant at most $\|\varphi'-P_k'\|_{L^\infty([-M,M])}\Lip(u)$, so~\ref{cond:G2} gives \begin{equation*} \bigl|\nabla(\varphi\circ u)-P_k'(u)\,\nabla u\bigr|=\bigl|\nabla\bigl((\varphi-P_k)\circ u\bigr)\bigr|\le\|\varphi'-P_k'\|_{L^\infty([-M,M])}\Lip(u)\longrightarrow0\,, \end{equation*} while $P_k'(u)\nabla u\to\varphi'(u)\nabla u$ uniformly. This proves the chain rule. For the truncation $w=(u\vee a)\wedge b$, the space~$X$ is the union of the three Borel sets $\{u\le a\}$, $\{u\ge b\}$ and $\{a0$. The space $L^1(\cS,\R^N,\nu')$ is separable and contains~$\mathcal A$, so there is a sequence $(V_k)$ in~$\mathcal A$ which is dense in~$\mathcal A$ for the norm of $L^1(\nu')$. Fix Borel representatives of the fields~$V_k$ and put $H_x=\spn\{V_k(x):k\ge1\}$. For $j\ge1$ let $A_j(x)$ be the $N\times j$ matrix with columns $V_1(x),\dots,V_j(x)$. The orthogonal projection onto the range of~$A_j(x)$ is \begin{equation*} P_j(x)=\lim_{\varepsilon\downarrow0}A_j(x)\bigl(A_j(x)^{\mathsf T}A_j(x)+\varepsilon\bigr)^{-1}A_j(x)^{\mathsf T}\,, \end{equation*} as one sees from the singular value decomposition of~$A_j(x)$; hence $P_j$ has Borel entries. The ranges of the projections $P_j(x)$ increase with~$j$ and their union is~$H_x$. Since $H_x$ has finite dimension, $P_j(x)=\pi_x$ for large~$j$. Thus $\pi_x=\lim_jP_j(x)$ has Borel entries and $(H_x)$ is a measurable field. Let $V\in\mathcal A$. A subsequence of $(V_k)$ converges to~$V$ in $L^1(\nu')$, and a further subsequence converges $\nu$-almost everywhere. Since $H_x$ is closed, $V(x)\in H_x$ for $\nu$-almost every~$x$. Conversely, if $(H'_x)$ is a measurable field which contains every field of~$\mathcal A$ almost everywhere, then for $\nu$-almost every~$x$ it contains $V_k(x)$ for all~$k$, and therefore~$H_x$. This proves the minimality, and the uniqueness follows. \ref{field:compact} Let $\cH^c$ be the field generated by the gradients of~$\Lip_c(X)$. Then $H^c_x\subset H_x$ for $\nu$-almost every~$x$, because $\Lip_c(X)\subset\Lip_b(X)$. Since $X$ is locally compact and separable, it is covered by countably many open sets~$U_i$ for which there are $\chi_i\in\Lip_c(X)$ with $\chi_i=1$ on~$U_i$. Let $u\in\Lip_b(X)$. Then $u\chi_i\in\Lip_c(X)$, and $\nabla u=\nabla(u\chi_i)$ $\nu$-almost everywhere on~$U_i$ by Lemma~\ref{lem:calculus}\ref{calc:local}. Hence $\nabla u(x)\in H^c_x$ for $\nu$-almost every~$x$, and $H_x\subset H^c_x$ by minimality. \end{proof} By~\ref{field:compact}, a gradient structure has a spanning sequence $(\nabla u_k)$ with $u_k\in\Lip_c(X)$. If $\nu$ is finite on compact sets, the gradients of the functions of~$\Lip_c(X)$ are integrable, because they are bounded and vanish outside a compact set. When $\nu$ is infinite on balls this fails, and the existence of spanning sequences with integrable gradients is a genuine condition; Proposition~\ref{prop:qualitative-cutoffs} gives a criterion. \begin{lemma}\label{lem:rank-Gram} Let $(u_k)_{k\ge1}$ be a sequence in~$\Lip_b(X)$ whose gradients span~$H_x$ for $\nu$-almost every~$x$. Then, for $\nu$-almost every~$x$, \begin{equation}\label{eq:rank-Gram} n(x)=\sup_{j\ge1}\rank\bigl(\langle\nabla u_a(x),\nabla u_b(x)\rangle\bigr)_{a,b=1}^{j}\,. \end{equation} In particular $x\mapsto n(x)$ is $\nu$-measurable, and for every integer $k\ge1$, up to a $\nu$-null set, \begin{equation}\label{eq:rank-strata} \{x:n(x)\ge k\} =\bigcup_{j_1,\ldots,j_k\ge1}\Bigl\{x:\det\bigl(\langle\nabla u_{j_a}(x),\nabla u_{j_b}(x)\rangle\bigr)_{a,b=1}^{k}>0\Bigr\}\,. \end{equation} Consequently, if $\nu(\{n\ge k\})>0$, then there are indices $j_1,\dots,j_k$ such that $\nabla u_{j_1},\dots,\nabla u_{j_k}$ are linearly independent on a set of positive $\nu$-measure. \end{lemma} \begin{proof} Fix Borel representatives of the fields~$\nabla u_k$, and let $x$ be a point with $\spn\{\nabla u_k(x):k\ge1\}=H_x$. The rank of the Gram matrix of finitely many vectors of a Euclidean space is the dimension of their span. The subspaces $\spn\{\nabla u_1(x),\dots,\nabla u_j(x)\}$ increase with~$j$ and their union is~$H_x$; since $H_x$ has finite dimension, they are equal to~$H_x$ for large~$j$. This proves~\eqref{eq:rank-Gram}. Moreover $n(x)\ge k$ if and only if $k$ of the vectors $\nabla u_j(x)$ are linearly independent, that is, if and only if their Gram determinant is positive. This is~\eqref{eq:rank-strata}. The sets on its right-hand side are Borel and countably many, which gives the measurability and the last assertion. \end{proof} Thus a set of positive measure on which the rank is at least~$k$ always carries $k$~functions whose gradients are independent on a subset of positive measure. In Chapter~\ref{sec:rank-chapter} this observation replaces any assumption that the rank is locally constant. All pointwise assertions on the rank are understood $\nu$-almost everywhere, not $m$-almost everywhere. \paragraph{Change of frame.} The space~$\R^N$ and the embedding of the fibres into it are auxiliary. Let $\cH'=(H'_x)$ be another measurable field over~$\cS$, possibly in another~$\R^{N'}$, and let $O_x:H_x\to H'_x$ be surjective linear isometries such that $x\mapsto O_x\pi_x$ has Borel matrix entries. Then $\nabla'u(x)=O_x\nabla u(x)$ satisfies~\ref{cond:gradient}: \ref{cond:G1} and~\ref{cond:G2} hold because each~$O_x$ is linear and isometric, and~\ref{cond:G3} follows from $\int\langle\nabla'u_k,g\rangle\,d\nu=\int\langle\nabla u_k,O^*g\rangle\,d\nu$ for $g\in L^1(\cS,\cH',\nu)$. The images of a spanning sequence span the new fibres, so $\cH'$ is the field generated by~$\nabla'$. We identify two structures related by such a change of frame. All quantities considered in this book, such as $|\nabla u|$, $\langle\nabla u,\nabla v\rangle$ and $n(x)$, are invariant. For a structure of constant rank~$n$, a measurable orthonormal frame of~$\cH$ identifies the fibres with~$\R^n$. When $n(x)=1$ almost everywhere, a change of frame is a measurable choice of sign, that is, an orientation of the skeleton. \subsection{Cores, cutoffs and spanning}\label{subsec:cores-cutoffs} The gradient of a bounded Lipschitz function is bounded, but it need not be integrable to any power, because $\nu$ may be infinite on balls. The functions whose gradient is $p$-integrable form the natural domain on which closures will be taken in Chapter~\ref{sec:sobolev-chapter}. \begin{definition}\label{def:core} For $1\le p<\infty$, the \emph{core at the exponent~$p$} is \begin{equation*} \cC_p=\bigl\{u\in\Lip_c(X):\ \nabla u\in L^p(\cS,\cH,\nu)\bigr\}\,. \end{equation*} We say that $\cC_p$ \emph{spans the fibres} if the measurable field generated by $\{\nabla u:u\in\cC_p\}$ is~$\cH$. \end{definition} Since $\nabla u$ is bounded, $\int_\cS|\nabla u|^q\,d\nu\le\|\nabla u\|_\infty^{q-p}\int_\cS|\nabla u|^p\,d\nu$ for $p\le q$, hence \begin{equation}\label{eq:core-inclusions} \cC_1\subset\cC_p\subset\cC_q\qquad(1\le p\le q<\infty)\,. \end{equation} If $\nu$ is finite on compact sets, then $\cC_p=\Lip_c(X)$ for every~$p$. By Lemma~\ref{lem:calculus} and~\eqref{eq:gradient-max}, each~$\cC_p$ is an algebra, and it is stable under $u\mapsto\varphi\circ u$ for $\varphi\in C^1(\R)$ with $\varphi(0)=0$, under the truncations $u\mapsto(u\vee a)\wedge b$ with $a\le0\le b$, and under $(u,v)\mapsto u\vee v$ and $(u,v)\mapsto u\wedge v$. In general the core may be small, and its gradients may fail to span the fibres; an example is given in Example~\ref{ex:zero-closed-gradient}. The next proposition shows that both defects are excluded as soon as balls admit cutoff functions of finite energy. The hypothesis is qualitative: the energy of the cutoffs is finite, but no bound on it is required. \begin{proposition}\label{prop:qualitative-cutoffs} Let $1\le b<\infty$ and $C\ge1$. Suppose that for every compact set $K\subset X$ there is $r_K>0$ such that, for every $x\in K$ and $00$ be its Lipschitz constant, and let $K=\supp f$. We claim that for every sufficiently small $t>0$ there is $f_t\in\cC_b$ with \begin{equation}\label{eq:qc-approx} \|f_t-f\|_\infty\le t\,,\qquad\Lip(f_t)\le8CL\,. \end{equation} Let $r=t/(8L)$ and assume $r0$ such that, for all $u\in\Lip_b(X)$ and all $y,z\in B(x,\iota(x))$, \begin{equation}\label{eq:metric-recovery} |u(y)-u(z)|\le d(y,z)\,\|\nabla u\|_{L^\infty(B(x,3\iota(x))\cap\cS,\nu)}\,. \end{equation} The structure is \emph{uniform} if the radii in~\eqref{eq:metric-recovery} can be chosen with $\inf_{x\in X}\iota(x)>0$. \end{definition} The name refers to the Sobolev-to-Lipschitz property of metric measure spaces, which asserts that a Sobolev function with gradient bounded by one has a $1$-Lipschitz representative; see~\cite[Definition~1.6 and Theorem~1.7]{CreutzSoultanis} for its formulation with minimal weak upper gradients. Here the property is imposed on Lipschitz functions only, and the gradient is measured by~$\nu$. Both properties in Definition~\ref{def:SL} are invariant under a change of frame. In the model of Section~\ref{sec:interval}, \eqref{eq:metric-recovery} holds with $\iota\equiv1$, for every reference measure~$m$. \paragraph{Status of the property.} The property~\hSL{} is verified for the examples of Part~\ref{part:examples}, where it identifies~$d$ as the metric determined by the gradient. It is not a hypothesis of any statement of Parts~\ref{part:general} and~\ref{part:heat}: there the gradient is prevented from degenerating by the Poincar\'e inequality. Two facts delimit what the property contains. It forces~$d$ to be locally a length metric (Proposition~\ref{prop:SL-chains}). It is an inequality between essential suprema, not a pointwise converse of~\eqref{eq:pointwise-Lip}, and it determines neither $|\nabla u|$ nor the rank (Example~\ref{ex:SL-plane}). \begin{lemma}[Localization of the Lipschitz bound]\label{lem:localize-metric} Suppose that $(X,d)$ is a length space and that $\Lip(v)\le\|\nabla v\|_{L^\infty(\nu)}$ for every $v\in\Lip_c(X)$. If $u\in\Lip_b(X)$ and $\gamma$ is a rectifiable curve in an open set $U\subset X$ with endpoints $y,z$, then \begin{equation*} |u(y)-u(z)|\le\operatorname{length}(\gamma)\, \|\nabla u\|_{L^\infty(U\cap\cS,\nu)}\,. \end{equation*} In particular, \eqref{eq:metric-recovery} holds with any constant radius $\iota>0$. \end{lemma} \begin{proof} Let $L>\|\nabla u\|_{L^\infty(U\cap\cS,\nu)}$ and $a\in U$. We may assume that $X$ contains at least two points. By local compactness, choose a proper open neighbourhood $V$ of~$a$ with compact closure in~$U$. Put $\rho=1\wedge d(\cdot,X\setminus V)$ and \begin{equation*} v=\bigl((u-u(a))\wedge L\rho\bigr)\vee(-L\rho)\,. \end{equation*} Then $v\in\Lip_c(X)$ and $v=u-u(a)$ near~$a$. On $V$ its gradient agrees almost everywhere with the gradient of one of the three functions in the formula, by Lemma~\ref{lem:calculus}\ref{calc:local}. Since $|\nabla\rho|\le1$ and $v=0$ outside $V$, locality gives $|\nabla v|\le L$ almost everywhere on~$\cS$. The hypothesis makes $v$ globally $L$-Lipschitz. Thus $u$ is $L$-Lipschitz on a neighbourhood of each point of~$U$. Subdivide $\gamma$ into finitely many arcs contained in these neighbourhoods, sum the bounds and let $L$ decrease to the essential supremum. For $y,z\in B(x,\iota)$ we have $d(y,z)<2\iota$. Curves from $y$ to $z$ with lengths less than $2\iota$ and tending to $d(y,z)$ lie in $B(x,3\iota)$. Applying the first assertion to these curves gives~\eqref{eq:metric-recovery}. \end{proof} \begin{proposition}\label{calc:metric} If~\eqref{eq:metric-recovery} holds and $y,z\in B(x,\iota(x))$, then \begin{equation*} d(y,z)=\max\bigl\{u(y)-u(z):\ u\in\Lip_b(X),\ |\nabla u|\le1\ \nu\text{-almost everywhere on }B(x,3\iota(x))\bigr\}\,. \end{equation*} \end{proposition} \begin{proof} Let $u\in\Lip_b(X)$ with $|\nabla u|\le1$ $\nu$-almost everywhere on $B(x,3\iota(x))$. By~\eqref{eq:metric-recovery}, $u(y)-u(z)\le d(y,z)$. Conversely, the function $u=d(\cdot,z)\wedge2\iota(x)$ belongs to~$\Lip_b(X)$ and has $\Lip(u)\le1$, hence $|\nabla u|\le1$ by~\ref{cond:G2}. Moreover $u(y)-u(z)=d(y,z)$, because $d(y,z)<2\iota(x)$. \end{proof} \begin{proposition}\label{prop:SL-chains} Let the structure satisfy~\hSL, let $x\in X$, and put $\iota=\iota(x)$ and $U=B(x,3\iota)$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{chains:sheaf} Let $u\in\Lip_b(X)$ and $L\ge0$. If every point of~$U$ has a neighbourhood on which $u$ is $L$-Lipschitz, then $|u(y)-u(z)|\le L\,d(y,z)$ for all $y,z\in B(x,\iota)$. \item\label{chains:length} For all $y,z\in B(x,\iota)$ and every $\varepsilon>0$, \begin{equation}\label{eq:SL-chains} d(y,z)=\inf\Bigl\{\sum_{i=1}^kd(y_{i-1},y_i):\ k\ge1\,,\ y_0=z\,,\ y_k=y\,,\ y_i\in U\,,\ d(y_{i-1},y_i)<\varepsilon\Bigr\}\,. \end{equation} \end{enumerate} \end{proposition} \begin{proof} \ref{chains:sheaf} By Lemma~\ref{lem:calculus}\ref{calc:lip}, $|\nabla u|\le L$ $\nu$-almost everywhere on each of these neighbourhoods. Countably many of them cover~$U$, because $X$ is separable. Hence $\|\nabla u\|_{L^\infty(U\cap\cS,\nu)}\le L$, and the assertion is~\eqref{eq:metric-recovery}. \ref{chains:length} Fix $z\in B(x,\iota)$ and $\varepsilon>0$. For $w\in U$ let $\rho(w)\in[0,\infty]$ be the infimum in~\eqref{eq:SL-chains} with $w$ in place of~$y$, with $\rho(w)=\infty$ if there is no such chain. The triangle inequality gives $\rho(w)\ge d(z,w)$, and $\rho(z)=0$. If $w,w'\in U$ and $d(w,w')<\varepsilon$, a chain from~$z$ to~$w'$ can be continued to~$w$, so that $\rho(w)\le\rho(w')+d(w,w')$. The function $u_0=\rho\wedge2\iota$ on~$U$ therefore satisfies $|u_0(w)-u_0(w')|\le d(w,w')$ if $d(w,w')<\varepsilon$, and $|u_0(w)-u_0(w')|\le2\iota\le(2\iota/\varepsilon)\,d(w,w')$ otherwise. It is bounded and Lipschitz on~$U$, and by the McShane extension it is the restriction to~$U$ of some $u\in\Lip_b(X)$. Every $w\in U$ has the neighbourhood $U\cap B(w,\varepsilon/2)$, on which $u$ is $1$-Lipschitz. By~\ref{chains:sheaf}, $u(y)=u(y)-u(z)\le d(y,z)<2\iota$ for every $y\in B(x,\iota)$, that is, $\rho(y)\le d(y,z)$. \end{proof} \paragraph{Length spaces.} Assertion~\ref{chains:sheaf} says that Lipschitz constants are determined locally. Stollmann~\cite{Stollmann10} characterizes length spaces by this property and deduces that the intrinsic metric of a strongly local Dirichlet form is a length metric. Assertion~\ref{chains:length} is the corresponding statement for gradient structures: on $B(x,\iota(x))$, the metric is the infimum of the lengths of the chains of $B(x,3\iota(x))$ with arbitrarily small links. Suppose that $X$ is complete and that the structure is uniform, with $\iota(x)\ge\iota_0>0$ for all~$x$. Applying~\eqref{eq:SL-chains} at the centre~$z$ and choosing a point in the middle of a chain, one obtains, for all $y,z$ with $d(y,z)<\iota_0$ and every $\delta>0$, a point~$w$ with \begin{equation*} \max\{d(z,w),d(w,y)\}\le\tfrac12\,d(y,z)+\delta\,. \end{equation*} The dyadic construction in the proof of~\cite[Theorem~2.4.16]{BBI}, which uses such approximate midpoints only for pairs of points at distance less than~$\iota_0$, then joins $y$ to~$z$ by curves of length arbitrarily close to $d(y,z)$. Thus~\hSL{} contains a local form of the hypothesis of Lemma~\ref{lem:localize-metric} that $X$ is a length space. It does not imply that $X$ is connected, and the hypothesis that $X$ is geodesic, which is made in Chapter~\ref{sec:exponents-chapter} and in Part~\ref{part:heat}, is a separate global assumption. \begin{example}[Two structures on the plane]\label{ex:SL-plane} Let $X=\cS=\R^2$ with the Euclidean distance and $\nu=\Leb^2$, and write $Du$ for the almost everywhere defined gradient of $u\in\Lip_b(\R^2)$. The Euclidean structure of Example~\ref{ex:euclidean} satisfies~\hSL{} with $\iota\equiv1$, because a function with $|Du|\le M$ almost everywhere on a ball is $M$-Lipschitz on this ball. We describe two other gradient structures on $(\R^2,|\cdot|,\Leb^2)$ which satisfy~\hSL{} with $\iota\equiv1$. \emph{Rectangles.} Let $(\sigma_k)_{k\ge1}$ be a sequence of segments with rational endpoints in which every such segment occurs infinitely often. Let $|\sigma_k|>0$ be the length of~$\sigma_k$, let $e_k$ be a unit vector parallel to~$\sigma_k$, with $e_j=e_k$ when $\sigma_j$ and~$\sigma_k$ are parallel, and let $e_k^\perp$ be a unit vector orthogonal to~$e_k$. Let $R_k$ be the open rectangle of the points $q+t\,e_k^\perp$, where $q\in\sigma_k$ is not an endpoint of~$\sigma_k$ and $|t|k$ with $\sigma_j\nparallel\sigma_k$, and by~\eqref{eq:SL-plane-crossing} the set of these points of~$l$ has length at most $\sum_{j>k}2^{-j}|\sigma_k|=2^{-k}|\sigma_k|$. By the theorems of Fubini and Rademacher, for almost every such line~$l$, almost every point~$q$ of $l\cap R_k$ belongs to finitely many rectangles, $u$ is differentiable at~$q$, and $|\langle e_{\kappa(q)},Du(q)\rangle|\le M$. Integrating the derivative $\langle e_k,Du\rangle$ of~$u$ along such a line, and using $|y-a|<2\varepsilon$, $|z-b|<2\varepsilon$ and $|\sigma_k|<3$, we get \begin{equation*} |u(b)-u(a)|\le M\,|\sigma_k|+2^{-k}|\sigma_k|\Lip(u)\,,\qquad |u(y)-u(z)|\le M\,|y-z|+7\varepsilon\,\bigl(M+\Lip(u)\bigr)\,. \end{equation*} Letting $\varepsilon\to0$ gives~\eqref{eq:metric-recovery}. \emph{Conclusions.} The property~\hSL{} excludes the partial gradient of Example~\ref{ex:partial-gradient}. It does not exclude a gradient which ignores, at each point, all directions but one, when the remaining direction varies with the point as in~(b). The structure in~(a) is the analogue, for gradient structures, of the fact that a strongly local Dirichlet form is not determined by its intrinsic metric~\cite{Sturm97}; the relation between energy densities and pointwise Lipschitz constants under doubling and Poincar\'e hypotheses is studied in~\cite{KoZh12}. \end{example} \paragraph{Comparison with the intrinsic metric.} The formula of Proposition~\ref{calc:metric} should not be confused with the intrinsic metric of a strongly local Dirichlet form~\cite{Sturm94}, which is defined by the constraint that the energy measure of~$u$ is bounded by the reference measure. In the notation of Chapter~\ref{sec:sobolev-chapter} this constraint reads $|\nabla_2u|^2\nu\le m$. When $\nu\perp m$ it forces $\nabla_2u=0$, and the intrinsic metric carries no information. In Proposition~\ref{calc:metric} the constraint $|\nabla u|\le1$ is imposed $\nu$-almost everywhere, and the reference measure plays no role. \begin{remark}\label{sec:existence} The axioms of a gradient structure and the Sobolev-to-Lipschitz property concern the metric and the gradient measure; they do not involve the reference measure. In particular they do not imply that the gradient is closable in $L^p(X,m)$. Closability at an exponent~$p$, introduced in Definition~\ref{def:admissible}, is an additional property, which relates the two measures. The examples of Part~\ref{part:examples} verify it directly, or by the criterion of Theorem~\ref{thm:closability}. \end{remark} \chapter{Sobolev spaces, bounded variation and energy forms}\label{sec:sobolev-chapter} A gradient structure defines the gradient of a Lipschitz function. This chapter extends it to larger classes of functions, in two ways. For an exponent $1\le p<\infty$ at which the gradient is closable in~$L^p(X,m)$, the domain of its closure is the Sobolev space~$W^{1,p}(X,m)$. For $p=1$, where closability may fail and the closure is in any case too small, the lower semicontinuous envelope of the energy defines the total variation and the space~$BV(X,m)$. No volume, cutoff or Poincar\'e estimate is used in this chapter. Closability, in the sense of Definition~\ref{def:admissible}, is a hypothesis; Chapter~\ref{sec:KS} proves it under quantitative assumptions. The main results are the following. \begin{itemize} \item \emph{A trace on the skeleton} (Proposition~\ref{prop:trace}). A Sobolev function is an $m$-equivalence class and has, a priori, no values on the skeleton when $m(\cS)=0$. We show that it has a well-defined $\nu$-measurable trace on the skeleton, and that the chain rule holds with this trace. \item \emph{Energy forms} (Propositions~\ref{prop:sobolev}, \ref{prop:p-energy} and~\ref{prop:dirichlet}). For $p>1$ the space $W^{1,p}(X,m)$ is reflexive and $(\cE_p,W^{1,p}(X,m))$ is a regular $p$-energy form with the generalized contraction property of Kajino and Shimizu~\cite{KajinoShimizuGC}. For $p=2$ it is a strongly local regular Dirichlet form with energy measures $|\nabla_2 f|^2\nu$. Its pointwise index in the sense of Hino~\cite{Hi10} is the pointwise rank $n(x)$, and its index is the rank~$n_*$ of the gradient structure. The spanning condition~\ref{A3} is essential here: in Example~\ref{ex:zero-closed-gradient} the structure has rank one, and the closure of the gradient on the core is zero. \item \emph{Bounded variation} (Proposition~\ref{prop:BV-duality} and Theorem~\ref{thm:global-coarea}). The total variation is the support function of the divergences of bounded vector fields, and it satisfies the coarea formula. \end{itemize} \subsection{Closability and Sobolev spaces}\label{sec:sobolev-spaces} Let $(\cS,\nu,\nabla)$ be a gradient structure on $(X,d,m)$. Recall from Definition~\ref{def:core} the core \begin{equation*} \cC_p=\bigl\{u\in\Lip_c(X):\ \nabla u\in L^p(\cS,\cH,\nu)\bigr\}\,,\qquad1\le p<\infty\,. \end{equation*} The Sobolev space at the exponent~$p$ is the domain of the closure of the gradient on this core. \begin{definition}\label{def:admissible} Let $1\le p<\infty$. A gradient structure $(\cS,\nu,\nabla)$ on $(X,d,m)$ is \emph{closable at the exponent~$p$}, or \emph{closable at~$p$}, if \begin{enumerate}[label=\textup{(A\arabic*)},ref=\textup{(A\arabic*)}] \item\label{A1} $\cC_p$ is dense in~$C_c(X)$ for the uniform norm, \item\label{A2} the operator $\nabla:\cC_p\subset L^p(X,m)\to L^p(\cS,\cH,\nu)$ is closable, and \item\label{A3} $\cC_p$ spans the fibres. \end{enumerate} In this case $\nabla_p$ denotes the closure of this operator, and we set \begin{equation*} W^{1,p}(X,m)=\Dom(\nabla_p)\,,\qquad \|f\|_{W^{1,p}}^p=\|f\|_{L^p(X,m)}^p+\|\nabla_pf\|_{L^p(\cS,\nu)}^p\,,\qquad \cE_p(f)=\int_\cS|\nabla_pf|^p\,d\nu\,, \end{equation*} with $\cE_p(f)=+\infty$ for $f\in L^p(X,m)\setminus W^{1,p}(X,m)$. We call $\nabla_p$ the \emph{closed gradient}, $\cE_p$ the \emph{$p$-energy}, and $\|\cdot\|_{W^{1,p}}$ the \emph{graph norm}. \end{definition} Explicitly, $f\in W^{1,p}(X,m)$ and $\nabla_pf=G$ if and only if there are $u_k\in\cC_p$ with $u_k\to f$ in $L^p(X,m)$ and $\nabla u_k\to G$ in $L^p(\cS,\cH,\nu)$. Condition~\ref{A2} says that $G$ is determined by~$f$: \begin{equation}\label{eq:closability-def} u_k\in\cC_p\,,\qquad u_k\to0\ \text{in }L^p(X,m)\,,\qquad\nabla u_k\to G\ \text{in }L^p(\cS,\cH,\nu)\qquad\Longrightarrow\qquad G=0\,. \end{equation} A function $u\in\cC_p$ is identified with its $m$-equivalence class; since $u$ is continuous and $m$ has full support, the class determines~$u$, so that $\cC_p\subset W^{1,p}(X,m)$ and $\nabla_pu=\nabla u$ for $u\in\cC_p$. \paragraph{The three conditions.} Condition~\ref{A2} relates the two measures, and it gives the notion its name. Conditions~\ref{A1} and~\ref{A3} do not involve~$m$. They require the core to be large, and they hold in the following two situations. If $\nu$ is finite on compact sets, then $\cC_p=\Lip_c(X)$, which is uniformly dense in~$C_c(X)$ and spans the fibres by Lemma~\ref{lem:generated-field}\ref{field:compact}. If small balls admit cutoff functions of finite $b$-energy for some $b\le p$, both conditions follow from Proposition~\ref{prop:qualitative-cutoffs}. Example~\ref{ex:zero-closed-gradient} shows that~\ref{A3} is not a consequence of~\ref{A1} and~\ref{A2}, and that without it the closure of the gradient can be the zero operator. \paragraph{Terminology.} In nonlinear potential theory, a weight~$w$ on~$\R^n$ is called $p$-admissible if the measure $w\,dx$ is doubling and supports a $p$-Poincar\'e inequality~\cite[Section~1.1 and Chapter~20]{HKMbook}; to avoid confusion we do not use this word for gradient structures. The original list of axioms of that theory contains a condition of \emph{uniqueness of the gradient}, which is~\ref{A2} for $m=\nu=w\,dx$. Its derivation from the doubling property and the Poincar\'e inequality is the model of Theorem~\ref{thm:closability}. \paragraph{Why closability is a condition.} On~$\R^n$ with $m=\nu=\Leb^n$, closability follows from integration by parts against smooth vector fields. In general no such fields are given. When $m(\cS)=0$, convergence in $L^p(X,m)$ gives no control of the values on~$\cS$. Condition~\eqref{eq:closability-def} requires that if $u_k\to0$ in $L^p(X,m)$ and the gradients converge in $L^p(\nu)$, their limit is zero. Two general criteria for~\ref{A2} are available in this book. Proposition~\ref{prop:sobolev}\ref{sob:div} restates it as the existence of sufficiently many vector fields on~$\cS$ whose divergence is a function on~$X$. Theorem~\ref{thm:closability} derives~\ref{A1}--\ref{A3} from volume, cutoff and Poincar\'e hypotheses. \paragraph{Dependence on the exponent.} Closability depends on~$p$. An exponent at which the structure is closable is called an \emph{exponent of closability}. For the tree of cubes of Chapter~\ref{sec:riemannian-gluings}, the exponents of closability are precisely those at or above the threshold of Theorem~\ref{thm:cube-closed-family-domain}. When the structure is closable at several exponents, the closed gradients $\nabla_p$ and $\nabla_q$ need not agree a priori on $W^{1,p}(X,m)\cap W^{1,q}(X,m)$. Proposition~\ref{prop:compatibility} proves that they agree under Poincar\'e inequalities. \paragraph{Relation to other definitions.} Sobolev spaces defined as the closure of a derivation associated with a Dirichlet form are studied in~\cite[Section~6]{HRT13} and~\cite[Section~2 and Appendix~B]{HKM20}. Kuwae~\cite[Assumption~1 and Definition~1.3]{Kuwae24} distinguishes the reference measure from a minimal energy-dominant measure and assumes closability, as we do. Definition~\ref{def:admissible} is not, without further comparison, a definition by upper gradients as in~\cite{Shan00}, nor is $W^{1,p}(X,m)$ identified with the spaces defined by relaxed slopes in~\cite{Ch,AGS14}. For the examples with $\nu=m$ of Part~\ref{part:examples}, the identification is made in the corresponding chapters. \paragraph{Cutoffs in the core.} Condition~\ref{A1} provides cutoff functions in~$\cC_p$ and implies that $\nabla_p$ is densely defined. By Proposition~\ref{prop:qualitative-cutoffs}, it holds as soon as small balls admit cutoff functions of finite $p$-energy. \begin{lemma}\label{lem:core-cutoff} Let $1\le p<\infty$ and assume~\ref{A1}. Let $K\subset U\subset X$ with $K$ compact and $U$ open. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{core:cutoff} There is $\chi\in\cC_p$ with $0\le\chi\le1$, $\chi=1$ on a neighbourhood of~$K$, and $\supp\chi\subset U$. \item\label{core:dense} $\cC_p$ is dense in~$L^p(X,m)$. \end{enumerate} \end{lemma} \begin{proof} \ref{core:cutoff} Since $X$ is locally compact, there are a compact neighbourhood~$K'$ of~$K$ and $g\in C_c(X)$ with $0\le g\le2$, $g=2$ on~$K'$ and $\supp g\subset U$. Choose $v\in\cC_p$ with $\|v-g\|_\infty\le1/2$, and put \begin{equation*} \chi=\bigl((v\vee\tfrac12)\wedge\tfrac32\bigr)-\tfrac12\,. \end{equation*} Then $\chi$ is Lipschitz, $0\le\chi\le1$, and $\chi=1$ on $\{v\ge\tfrac32\}\supset\{g=2\}\supset K'$. Moreover $\{\chi\ne0\}=\{v>\tfrac12\}\subset\{g>0\}$, so $\supp\chi\subset\supp g$ is a compact subset of~$U$. By Lemma~\ref{lem:calculus}\ref{calc:const},\ref{calc:chain}, $\nabla\chi=\ind_{\{1/20\}\qquad\text{up to a $\nu$-null set.} \end{equation} \paragraph{Convergence in measure.} Let $L^0(\cS,\nu)$ be the space of $\nu$-equivalence classes of Borel functions $\cS\to\R$, with the topology of convergence in measure on sets of finite $\nu$-measure. If $\mu$ is a finite measure with the same null sets as~$\nu$, this topology is defined by the complete translation-invariant metric $\int\min\{1,|f-g|\}\,d\mu$; indeed, a sequence converges for either notion if and only if every subsequence has a further subsequence which converges $\nu$-almost everywhere. \begin{proposition}\label{prop:trace}\label{rem:trace} Let $1\le p<\infty$, and suppose that the gradient structure is closable at~$p$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{trace:exists} \emph{Trace.} The restriction map $\cC_p\to L^0(\cS,\nu)$, $u\mapsto u|_{\cS}$, extends uniquely to a continuous linear map \begin{equation*} T_p:W^{1,p}(X,m)\longrightarrow L^0(\cS,\nu)\,. \end{equation*} \item\label{trace:eid} \emph{Image of the energy.} For every $f\in W^{1,p}(X,m)$, \begin{equation*} (T_pf)_\#\bigl(|\nabla_pf|^p\nu\bigr)\ll\Leb^1\,. \end{equation*} \item\label{trace:chain} \emph{Chain rule.} If $f\in W^{1,p}(X,m)$ and $\varphi:\R\to\R$ is Lipschitz with $\varphi(0)=0$, then $\varphi\circ f\in W^{1,p}(X,m)$ and \begin{equation}\label{eq:trace-chain} T_p(\varphi\circ f)=\varphi(T_pf)\,, \qquad \nabla_p(\varphi\circ f)=\varphi'(T_pf)\,\nabla_pf \qquad\nu\text{-almost everywhere.} \end{equation} \end{enumerate} \end{proposition} In~\eqref{eq:trace-chain} the derivative~$\varphi'$ is defined outside a Lebesgue null set $Z\subset\R$. By~\ref{trace:eid}, $\nabla_pf=0$ $\nu$-almost everywhere on $\{T_pf\in Z\}$, and the product $\varphi'(T_pf)\nabla_pf$ is set equal to zero there. Assertion~\ref{trace:eid} is the analogue, for the closed gradient, of the energy image density property of a single function in a Dirichlet space~\cite[Theorem~4.3.8]{ChFu12}. Applied to a one-point set it gives the locality of the closed gradient: \begin{equation}\label{eq:closed-locality} \nabla_pf=0\qquad\nu\text{-almost everywhere on }\{T_pf=c\}\,,\qquad c\in\R\,. \end{equation} \begin{proof} \emph{Step 1: restriction is continuous on the core.} Let $u_j\in\cC_p$ tend to zero in the graph norm; we show that $u_j|_{\cS}\to0$ in $L^0(\cS,\nu)$. Put $\theta(t)=t^2/(1+t^2)$, so that $0\le\theta\le1$, $\theta(t)\le|t|$, $|\theta'|\le1$ and $\theta(0)=0$. Fix $v\in\cC_p$ and let $\mu_v=|\nabla v|^p\nu$, a finite measure. We claim that \begin{equation}\label{eq:trace-claim} \int_\cS\theta(u_j)\,d\mu_v\longrightarrow0\,. \end{equation} The sequence $\theta(u_j)$ is bounded in $L^\infty(\mu_v)$, and $L^1(\mu_v)$ is separable. It therefore suffices to show that if a subsequence, still denoted by $\theta(u_j)$, converges weak-$*$ in $L^\infty(\mu_v)$ to some~$h$, then $h=0$; the claim then follows by testing against the constant function $1\in L^1(\mu_v)$. Let $V\in L^{p'}(\cS,\cH,\nu)$. The function $\rho=\langle V,\nabla v\rangle|\nabla v|^{-p}\ind_{\{\nabla v\ne0\}}$ satisfies $\langle V,\nabla v\rangle\nu=\rho\,\mu_v$ and $\int|\rho|\,d\mu_v\le\|V\|_{p'}\|\nabla v\|_p<\infty$. Hence \begin{equation*} \int_\cS\langle V,\theta(u_j)\nabla v\rangle\,d\nu=\int_\cS\theta(u_j)\,\rho\,d\mu_v\longrightarrow\int_\cS h\,\rho\,d\mu_v=\int_\cS\langle V,h\nabla v\rangle\,d\nu\,, \end{equation*} that is, $\theta(u_j)\nabla v\rightharpoonup h\nabla v$ weakly in $L^p(\cS,\cH,\nu)$. On the other hand $v\,\theta(u_j)\in\cC_p$, and by Lemma~\ref{lem:calculus}, \begin{equation*} |v\,\theta(u_j)|\le\|v\|_\infty|u_j|\,, \qquad \nabla\bigl(v\,\theta(u_j)\bigr) =\theta(u_j)\nabla v+v\,\theta'(u_j)\nabla u_j\,. \end{equation*} Thus $v\,\theta(u_j)\to0$ in $L^p(X,m)$, and the last term tends to zero in $L^p(\nu)$, because $|v\,\theta'(u_j)\nabla u_j|\le\|v\|_\infty|\nabla u_j|$. The pairs $\bigl(v\,\theta(u_j),\nabla(v\,\theta(u_j))\bigr)$ therefore converge weakly to $(0,h\nabla v)$ in $L^p(X,m)\oplus L^p(\cS,\cH,\nu)$. The graph of~$\nabla_p$ is a closed linear subspace, hence weakly closed, so $h\nabla v=\nabla_p0=0$. Thus $h=0$ $\mu_v$-almost everywhere, and~\eqref{eq:trace-claim} is proved. Since $\inf_{|t|\ge\varepsilon}\theta(t)>0$ for every $\varepsilon>0$, \eqref{eq:trace-claim} shows that $u_j\to0$ in $\mu_v$-measure. Apply this to the functions~$v_k$ of~\eqref{eq:carrier}. The finite measure \begin{equation*} \mu=\sum_{k\ge1}2^{-k}\frac{\mu_{v_k}}{1+\mu_{v_k}(\cS)} \end{equation*} has the same null sets as~$\nu$, by~\eqref{eq:carrier}. For every $k_0$, \begin{equation*} \mu(\{|u_j|>\varepsilon\})\le\sum_{k\le k_0}\mu_{v_k}(\{|u_j|>\varepsilon\})+2^{-k_0}\,. \end{equation*} Letting $j\to\infty$ and then $k_0\to\infty$ gives convergence in $\mu$-measure, hence in $L^0(\cS,\nu)$. \emph{Step 2: extension.} By Step~1, restriction is a linear map from $\cC_p$, with the graph norm, to the complete metrizable topological vector space $L^0(\cS,\nu)$, and it is continuous at zero. It is therefore uniformly continuous, and it extends uniquely by continuity to the closure $W^{1,p}(X,m)$ of~$\cC_p$. This proves~\ref{trace:exists}. \emph{Step 3: the chain rule for $\varphi\in C^1(\R)$ with bounded derivative and $\varphi(0)=0$.} Let $u_j\in\cC_p$ converge to~$f$ in the graph norm. Then $\varphi\circ u_j\in\cC_p$, $\varphi\circ u_j\to\varphi\circ f$ in $L^p(X,m)$, and $\nabla(\varphi\circ u_j)=\varphi'(u_j)\nabla u_j$. We have \begin{equation*} \bigl\|\varphi'(u_j)\nabla u_j-\varphi'(T_pf)\nabla_pf\bigr\|_{L^p(\nu)} \le\|\varphi'\|_\infty\|\nabla u_j-\nabla_pf\|_{L^p(\nu)}+\bigl\|\bigl(\varphi'(u_j)-\varphi'(T_pf)\bigr)\nabla_pf\bigr\|_{L^p(\nu)}\,. \end{equation*} The first term tends to zero. For the second, $u_j\to T_pf$ in $L^0(\cS,\nu)$, hence in measure for the finite measure $|\nabla_pf|^p\nu$, which is absolutely continuous with respect to~$\nu$. Since $\varphi'$ is continuous and bounded, the second term tends to zero by dominated convergence. As $\nabla_p$ is closed, $\varphi\circ f\in W^{1,p}(X,m)$ and $\nabla_p(\varphi\circ f)=\varphi'(T_pf)\nabla_pf$. Moreover $\varphi\circ u_j\to\varphi\circ f$ in the graph norm, so $T_p(\varphi\circ f)=\lim_j\varphi(u_j)|_{\cS}=\varphi(T_pf)$ by the continuity of~$T_p$ and of~$\varphi$. \emph{Step 4: the image of the energy.} Let $K\subset\R$ be a compact set with $\Leb^1(K)=0$. Choose open sets $U_j\supset K$ decreasing to~$K$ with $\Leb^1(U_j)\to0$, and smooth functions $0\le\eta_j\le1$ with $\eta_j=1$ on~$K$ and $\supp\eta_j\subset U_j$. The functions $\varphi_j(t)=\int_0^t\eta_j(s)\,ds$ satisfy $|\varphi_j(t)|\le|t|\wedge\Leb^1(U_j)$. Hence $\varphi_j\circ f\to0$ in $L^p(X,m)$ by dominated convergence, and by Step~3, \begin{equation*} \nabla_p(\varphi_j\circ f)=\eta_j(T_pf)\nabla_pf \longrightarrow\ind_{\{T_pf\in K\}}\nabla_pf \qquad\text{in }L^p(\cS,\cH,\nu)\,. \end{equation*} Since $\nabla_p$ is closed, the limit is zero, that is, $|\nabla_pf|^p\nu(\{T_pf\in K\})=0$. A finite Borel measure on~$\R$ is inner regular, so the image measure vanishes on every Lebesgue null Borel set. This proves~\ref{trace:eid}. \emph{Step 5: the chain rule for Lipschitz~$\varphi$.} Let $(\rho_j)$ be a smooth approximation of the identity on~$\R$ and $\varphi_j=\varphi*\rho_j-(\varphi*\rho_j)(0)$. Then $\varphi_j\in C^1(\R)$, $\varphi_j(0)=0$, $|\varphi_j'|\le\Lip(\varphi)$, $\varphi_j\to\varphi$ uniformly, and $\varphi_j'\to\varphi'$ Lebesgue-almost everywhere. By~\ref{trace:eid}, $\varphi_j'(T_pf)\to\varphi'(T_pf)$ almost everywhere for $|\nabla_pf|^p\nu$, and dominated convergence gives $\varphi_j'(T_pf)\nabla_pf\to\varphi'(T_pf)\nabla_pf$ in $L^p(\nu)$. Since $|\varphi_j\circ f|\le\Lip(\varphi)|f|$, also $\varphi_j\circ f\to\varphi\circ f$ in $L^p(X,m)$. By Step~3 and the closedness of~$\nabla_p$, $\varphi\circ f\in W^{1,p}(X,m)$ with the gradient~\eqref{eq:trace-chain}, and $\varphi_j\circ f\to\varphi\circ f$ in the graph norm. The continuity of~$T_p$ gives $T_p(\varphi\circ f)=\lim_j\varphi_j(T_pf)=\varphi(T_pf)$. \end{proof} At $p=2$ the trace has a classical description: $T_2f$ is the restriction to~$\cS$ of the quasi-continuous representative of~$f$ (Remark~\ref{rem:trace-quasi-continuous}). Section~\ref{subsec:trace-estimates} gives quantitative $L^p$ bounds for the trace with respect to the energy measures of cutoff functions. \begin{lemma}[Products and locality]\label{lem:closed-product} Let $1\le p<\infty$, and let the structure be closable at~$p$. For $f,g\in W^{1,p}(X,m)\cap L^\infty(X,m)$, the product $fg$ belongs to $W^{1,p}(X,m)$, and \begin{equation*} T_p(fg)=(T_pf)(T_pg),\qquad \nabla_p(fg)=(T_pf)\nabla_p g+(T_pg)\nabla_p f \quad \nu\text{-almost everywhere.} \end{equation*} If $f\in W^{1,p}(X,m)$ equals a constant $c$ $m$-almost everywhere on an open set $U$, then $T_pf=c$ and $\nabla_pf=0$ $\nu$-almost everywhere on~$U$. \end{lemma} \begin{proof} Truncation at $\pm\|f\|_{L^\infty(m)}$ in~\eqref{eq:trace-chain} gives $|T_pf|\le\|f\|_{L^\infty(m)}$ $\nu$-almost everywhere. Apply the same chain rule to $f+g$ and $f-g$, using a globally Lipschitz function which agrees with the square on an open interval containing the ranges of these functions and their traces. Subtract the two identities and divide by four. This gives both product formulas. Suppose first that $f=0$ $m$-almost everywhere on~$U$. For any compact $K\subset U$, choose $\chi\in\cC_p$ supported in~$U$ and equal to one near~$K$ by Lemma~\ref{lem:core-cutoff}. Since $\chi\arctan(f)=0$, its trace is $\chi\arctan(T_pf)=0$. Exhausting $U$ by compact sets gives $T_pf=0$ $\nu$-almost everywhere on~$U$. The gradient vanishes there by~\eqref{eq:closed-locality}. For arbitrary $c$, apply this conclusion to $f-c\chi$ on the neighbourhood of $K$ where $\chi=1$, and exhaust $U$ as before. \end{proof} The spanning condition~\ref{A3} cannot be removed from Proposition~\ref{prop:trace}, and it is not a consequence of~\ref{A1} and~\ref{A2}. In the following example these two conditions hold for a trivial reason. \begin{example}[Conditions~\ref{A1} and~\ref{A2} with zero closed gradient]\label{ex:zero-closed-gradient} Let $E\subset(0,1)$ be a compact nowhere dense set of positive Lebesgue measure. On $X=[0,1]^2$ take $m=\Leb^2$, $\cS=E\times(\mathbb Q\cap[0,1])$ and \begin{equation*} \nu=\sum_{q\in\mathbb Q\cap[0,1]}(\Leb^1\rest_E)\otimes\delta_q\,, \qquad \nabla u(x,q)=\partial_xu(x,q)\quad(x\in E)\,. \end{equation*} \emph{This is a gradient structure of constant rank one.} The Leibniz rule and the bound $|\partial_xu|\le\Lip(u)$ hold on each horizontal line. If $u_k\to u$ pointwise with bounded Lipschitz constants, then on each line $\partial_xu_k(\cdot,q)\to\partial_xu(\cdot,q)$ weak-$*$ in $L^\infty(0,1)$, by integration by parts against smooth functions and density, as in Example~\ref{ex:euclidean}. For $g\in L^1(\nu)$ the norms $\|g(\cdot,q)\|_{L^1(E)}$ are summable in~$q$, and dominated convergence for the sum over~$q$ gives~\ref{cond:G3}. The coordinate function $(x,y)\mapsto x$ has gradient one on the skeleton. \emph{Every function of the core has zero gradient.} Let $1\le p<\infty$ and $u\in\cC_p$, so that $\sum_q\|\partial_xu(\cdot,q)\|_{L^p(E)}^p<\infty$. Let $q\in\mathbb Q\cap[0,1]$ and let $q_j\to q$ be distinct rationals; then $\|\partial_xu(\cdot,q_j)\|_{L^p(E)}\to0$. The slices $u(\cdot,q_j)$ converge uniformly to $u(\cdot,q)$ with bounded Lipschitz constants, so their derivatives converge weak-$*$ in $L^\infty(0,1)$ to $\partial_xu(\cdot,q)$. Hence $\partial_xu(\cdot,q)=0$ almost everywhere on~$E$. Thus $\nabla u=0$ for every $u\in\cC_p$. In particular~\ref{A3} fails. \emph{Conditions~\ref{A1} and~\ref{A2} hold.} Since $\nabla$ vanishes on~$\cC_p$, condition~\ref{A2} holds. For~\ref{A1}, let $\varepsilon>0$ and partition $[0,1]$ into finitely many intervals~$I$ of length at most~$\varepsilon$. Since $E$ is nowhere dense, $\Leb^1(I\setminus E)>0$. Let $\tau:[0,1]\to[0,1]$ be the Lipschitz map which fixes the endpoints of each~$I$ and has derivative $|I|\,\ind_{I\setminus E}/\Leb^1(I\setminus E)$ on~$I$. Then $\|\tau-\mathrm{id}\|_\infty\le\varepsilon$ and $\tau'=0$ almost everywhere on~$E$. For a Lipschitz function~$u$ on~$X$, the function $v(x,y)=u(\tau(x),y)$ is Lipschitz, $\|v-u\|_\infty\le\Lip(u)\,\varepsilon$, and \begin{equation*} |v(x+h,y)-v(x,y)|\le\Lip(u)\,|\tau(x+h)-\tau(x)|=o(h)\qquad\text{at every point }x\text{ with }\tau'(x)=0\,. \end{equation*} Hence $\partial_xv(\cdot,y)=0$ almost everywhere on~$E$ for every~$y$, and $v\in\cC_p$. This proves~\ref{A1}. \emph{Conclusions.} The closure of $\nabla$ on~$\cC_p$ is the zero operator, with domain $L^p(X,m)$, at every finite~$p$, although the fibres of the structure are not zero: the core does not span the fibres. Moreover, the restriction to the skeleton admits no continuous extension from~$\cC_p$, with the graph norm, to this domain. Indeed, for a fixed rational~$q$, the functions $(x,y)\mapsto(1-j|y-q|)_+$ belong to~$\cC_p$, tend to zero in the graph norm, and are equal to one on the set $E\times\{q\}$, which has positive finite $\nu$-measure. \end{example} \subsection{Functional-analytic properties}\label{subsec:functional-analytic} The next proposition collects the properties of~$W^{1,p}(X,m)$ for $p>1$. The closed-graph and measurable-field arguments are those of~\cite[Section~3 and Appendix~A]{HKM20}; compare also the uniform convexity and contraction results of~\cite[Theorems~1.8--1.9]{Kuwae24}. \begin{proposition}\label{prop:sobolev} Let $10$ depends only on~$q$. Since $q\le r$, Minkowski's inequality with exponent $r/q\ge1$ gives \begin{align*} c_q\left\|\left(\left|\sum_iA_{ji}v_i\right|\right)_j\right\|_{\ell^r} &\le\left(\mathbb E\left\|A(\langle v_i,Z\rangle)_i\right\|_{\ell^r}^{q}\right)^{1/q}\\ &\le\left(\mathbb E\sum_i|\langle v_i,Z\rangle|^q\right)^{1/q} =c_q\|(|v_i|)_i\|_{\ell^q}\,. \end{align*} For $r=\infty$, the first inequality holds because the maximum of the individual $L^q$ quasi-norms is at most the $L^q$ quasi-norm of the maximum. \emph{Step 2: smooth $T$ and functions of the core.} Suppose that $T$ is smooth and $u_1,\dots,u_k\in\cC_p$. Differentiating the hypothesis on~$T$ shows that $\|DT(a)h\|_{\ell^r}\le\|h\|_{\ell^q}$ for all $a,h\in\R^k$. The chain rule~\eqref{eq:chain-several} and~\eqref{eq:p-energy-Hilbert-contraction} therefore give \begin{equation}\label{eq:p-energy-pointwise-contraction} \|(|\nabla T_j(u)|)_j\|_{\ell^r} \le\|(|\nabla u_i|)_i\|_{\ell^q} \qquad\nu\text{-almost everywhere}\,. \end{equation} The functions $T_j(u)$ are Lipschitz, they have compact support because $T(0)=0$, and~\eqref{eq:p-energy-pointwise-contraction} shows that their gradients are $p$-integrable. Thus $T_j(u)\in\cC_p$. \emph{Step 3: general $T$ and functions of the core.} Let $(\rho_\varepsilon)$ be a smooth approximation of the identity on~$\R^k$ and $T^\varepsilon=T*\rho_\varepsilon-(T*\rho_\varepsilon)(0)$. Since $\|\cdot\|_{\ell^r}$ is a norm, $T^\varepsilon$ satisfies the hypothesis on~$T$, and $T^\varepsilon\to T$ locally uniformly. For $u_1,\dots,u_k\in\cC_p$, the functions $T^\varepsilon_j(u)$ vanish outside $\bigcup_i\supp u_i$ and converge uniformly, hence in $L^p(X,m)$, to $T_j(u)$. By Step~2 their gradients are bounded in $L^p(\nu)$. Since $L^p(\cS,\cH,\nu)$ is reflexive and the graph of~$\nabla_p$ is weakly closed, $T_j(u)\in W^{1,p}(X,m)$, and along a sequence $\varepsilon\to0$ the gradients $\nabla T^\varepsilon_j(u)$ converge weakly to $\nabla_pT_j(u)$ for every~$j$. The set of $l$-tuples of fields $(W_j)$ with $\|(|W_j|)_j\|_{\ell^r}\le\|(|\nabla u_i|)_i\|_{\ell^q}$ almost everywhere is convex and closed in $L^p(\nu)^l$, hence weakly closed. Therefore~\eqref{eq:p-energy-pointwise-contraction} holds with $\nabla_pT_j(u)$ on the left-hand side. \emph{Step 4: general functions.} Let $f_i\in W^{1,p}(X,m)$ and choose $u_{i,n}\in\cC_p$ converging to~$f_i$ in the graph norm. The hypothesis on~$T$ gives $|T_j(a)-T_j(b)|\le C\sum_i|a_i-b_i|$, so $T_j(u_n)\to T_j(f)$ in $L^p(X,m)$. Set \begin{equation*} h_n=\|(|\nabla u_{i,n}|)_i\|_{\ell^q}\,,\qquad h=\|(|\nabla_pf_i|)_i\|_{\ell^q}\,. \end{equation*} After passing to a subsequence, the gradients $\nabla u_{i,n}$ converge $\nu$-almost everywhere and have a common majorant in $L^p(\nu)$; dominated convergence gives $h_n\to h$ in $L^p(\nu)$. By Step~3 the gradients $\nabla_pT_j(u_n)$ are bounded in $L^p(\nu)$ by~$h_n$. Pass to a subsequence along which they converge weakly for every~$j$; since $\nabla_p$ is closed, the limits are $\nabla_pT_j(f)$, and in particular $T_j(f)\in W^{1,p}(X,m)$. By Mazur's lemma, applied simultaneously to these gradients and to~$h_n$, suitable convex combinations converge strongly in $L^p(\nu)$ and, along a further subsequence, almost everywhere. Since $\|\cdot\|_{\ell^r}$ is convex, the bound of Step~3 passes to the limit: \begin{equation}\label{eq:p-energy-pointwise-closed} \|(|\nabla_pT_j(f)|)_j\|_{\ell^r} \le\|(|\nabla_pf_i|)_i\|_{\ell^q} \qquad\nu\text{-almost everywhere}\,. \end{equation} \emph{Step 5: integration.} Let $A\subset X$ be a Borel set. Minkowski's inequality with exponent $r/p\ge1$, then~\eqref{eq:p-energy-pointwise-closed}, then Minkowski's inequality with exponent $p/q\ge1$, give \begin{align*} \bigl\| \bigl(\|\nabla_pT_j(f)\|_{L^p(A,\nu)}\bigr)_j\bigr\|_{\ell^r} &\le\bigl\|\,\|(|\nabla_pT_j(f)|)_j\|_{\ell^r}\bigr\|_{L^p(A,\nu)}\\ &\le\bigl\|\,\|(|\nabla_pf_i|)_i\|_{\ell^q}\bigr\|_{L^p(A,\nu)} \le\bigl\| \bigl(\|\nabla_pf_i\|_{L^p(A,\nu)}\bigr)_i\bigr\|_{\ell^q}\,. \end{align*} This is~\eqref{eq:p-energy-GC}. \end{proof} \paragraph{Related constructions.} Proposition~\ref{prop:p-energy} starts from a prescribed gradient and obtains the energy measures as $|\nabla_pf|^p\nu$. In the literature on fractals the order is usually reversed. Limits of Korevaar--Schoen energies give $p$-energy forms and energy measures in~\cite{ARB25,KajinoShimizuKS}; self-similar constructions are developed in~\cite{MS25}. Sasaya~\cite{Sasaya26} constructs canonical energy measures for strongly local $p$-energy forms under his axioms, and~\cite{Sasaya26NL} extends the construction beyond homogeneous energies. Identifying the measures $\Gamma_p(f)$ with the canonical measures of those theories requires checking the corresponding locality and calculus assumptions, and is not claimed here. \paragraph{One measure for all exponents.} In a gradient structure, the single measure~$\nu$ dominates the energy measures $\Gamma_p(f)$ at every exponent of closability. This is additional structure, which a family of $p$-energy forms need not have: in the self-similar examples of~\cite{AES25}, the domains of the energy forms at two different exponents can intersect only in the constants. Such examples are compatible with Proposition~\ref{prop:compatibility}, which assumes one gradient structure and Poincar\'e inequalities at both exponents. \subsection{The Dirichlet form}\label{sec:dirichlet-form} At the exponent $p=2$ the closed gradient defines a quadratic form, and the theory of Dirichlet forms~\cite{FOT} applies. We recall the notions needed to state the result. Let $(\cE,\cF)$ be a strongly local regular Dirichlet form on $L^2(X,m)$. The \emph{energy measure} $\Gamma(f)$ of $f\in\cF$ is normalized by $\Gamma(f)(X)=\cE(f,f)$; for bounded~$f$ it is characterized by \begin{equation}\label{eq:energy-measure-def} \int_X\varphi\,d\Gamma(f)=\cE(\varphi f,f)-\tfrac12\,\cE(f^2,\varphi)\qquad\bigl(\varphi\in\cF\cap C_c(X)\bigr)\,, \end{equation} and $\Gamma(f,g)$ is defined by polarization; see~\cite[Section~3.2]{FOT}, where the measure $\mu_{\langle f\rangle}=2\Gamma(f)$ is used. The following two notions are due to Hino~\cite{Hi10,Hi13}. \begin{itemize} \item A $\sigma$-finite Borel measure~$\mu$ is \emph{minimal energy-dominant} if $\Gamma(f)\ll\mu$ for every $f\in\cF$, and if $\mu(A)=0$ for every Borel set~$A$ such that $\Gamma(f)(A)=0$ for all $f\in\cF$. \item The \emph{pointwise index} is the smallest measurable function, up to $\mu$-null sets, which bounds the rank of the matrix $\bigl(d\Gamma(f_i,f_j)/d\mu\bigr)_{i,j\le k}$ $\mu$-almost everywhere, for every finite family $f_1,\dots,f_k\in\cF$. Its $\mu$-essential supremum is the \emph{index} of the form. \end{itemize} The index is equal to the martingale dimension of the associated diffusion process~\cite[Theorem~3.4]{Hi10}. \begin{proposition}\label{prop:dirichlet} Let $(\cS,\nu,\nabla)$ be a gradient structure closable at $p=2$, and let \begin{equation*} \cF=W^{1,2}(X,m)\,,\qquad\cE(f,g)=\int_\cS\langle\nabla_2f,\nabla_2g\rangle\,d\nu\,. \end{equation*} \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{dir:form} $(\cE,\cF)$ is a regular, strongly local Dirichlet form on~$L^2(X,m)$ with core~$\cC_2$. \item\label{dir:energy} The energy measure of $f\in\cF$ is $d\Gamma(f)=|\nabla_2f|^2\,d\nu$. In particular, if $f\in\cF$ is $m$-almost everywhere constant on an open set~$U$, then $\nabla_2f=0$ $\nu$-almost everywhere on~$U$. \item\label{dir:index} The measure~$\nu$ is minimal energy-dominant, the pointwise index is $n(x)$, and the index and the martingale dimension of the associated diffusion are equal to the rank~$n_*$. \end{enumerate} \end{proposition} \begin{proof} \ref{dir:form} The form is closed by the definition of~$\nabla_2$, and it is Markovian by Proposition~\ref{prop:sobolev}\ref{sob:contr} applied to $\varphi(t)=(t\vee0)\wedge1$. By construction $\cC_2$ is dense in~$\cF$, and by~\ref{A1} it is dense in~$C_c(X)$; hence the form is regular with core~$\cC_2$. Let $u,v\in\cF\cap C_c(X)$, and suppose that $u$ is constant on an open neighbourhood $U$ of $\supp v$. By Lemma~\ref{lem:closed-product}, $\nabla_2u=0$ on $U$ and $\nabla_2v=0$ on $X\setminus\supp v$, up to $\nu$-null sets. Hence $\cE(u,v)=0$, which proves strong locality. \ref{dir:energy} For $f,\varphi\in\cC_2$, the Leibniz rule gives $\nabla(\varphi f)=\varphi\,\nabla f+f\,\nabla\varphi$ and $\nabla(f^2)=2f\,\nabla f$, hence \begin{equation*} \cE(\varphi f,f)-\tfrac12\,\cE(f^2,\varphi)=\int_\cS\bigl(\varphi\,|\nabla f|^2+f\langle\nabla\varphi,\nabla f\rangle-f\langle\nabla f,\nabla\varphi\rangle\bigr)\,d\nu=\int_\cS\varphi\,|\nabla f|^2\,d\nu\,. \end{equation*} By~\eqref{eq:energy-measure-def}, the two finite measures $\Gamma(f)$ and $|\nabla f|^2\nu$ have the same integral against every $\varphi\in\cC_2$. Since $\cC_2$ is uniformly dense in~$C_c(X)$, they are equal. For a general $f\in\cF$, let $u_k\in\cC_2$ with $u_k\to f$ in~$\cF$. For every Borel set~$A$, \begin{equation*} \bigl|\Gamma(f)(A)^{1/2}-\Gamma(u_k)(A)^{1/2}\bigr|\le\cE(f-u_k,f-u_k)^{1/2}\,, \end{equation*} by~\cite[Section~3.2]{FOT}, and the same inequality holds for the measures $|\nabla_2f|^2\nu$ and $|\nabla u_k|^2\nu$, by the triangle inequality in $L^2(A,\nu)$. Letting $k\to\infty$ gives $\Gamma(f)(A)=\int_A|\nabla_2f|^2\,d\nu$. The assertion on open sets is Lemma~\ref{lem:closed-product}. By polarization, the identity in~\ref{dir:energy} gives \begin{equation}\label{eq:energy-density} \frac{d\Gamma(f,g)}{d\nu}(x)=\langle\nabla_2f(x),\nabla_2g(x)\rangle\qquad(f,g\in\cF)\,. \end{equation} \ref{dir:index} Every energy measure is absolutely continuous with respect to~$\nu$, by~\ref{dir:energy}. If a Borel set~$A$ has $\Gamma(f)(A)=0$ for all $f\in\cF$, then the functions $v_k$ of~\eqref{eq:carrier} have zero gradient almost everywhere on~$A$, so $\nu(A)=0$. Thus $\nu$ is minimal energy-dominant. By~\eqref{eq:energy-density}, the matrices $(d\Gamma(f_i,f_j)/d\nu)$ are Gram matrices of vectors of the fibres~$H_x$. Their ranks are bounded by $n(x)$, and the family $(v_k)$ attains this bound, by~\eqref{eq:rank-Gram}; compare~\cite[Lemma~2.3 and Proposition~2.10]{Hi10}. Hence the pointwise index is $n(x)$ and the index is~$n_*$. The index is equal to the martingale dimension by~\cite[Theorem~3.4]{Hi10}; compare~\cite[Definition~2.2 and Theorem~3.4]{Hi13}. \end{proof} \begin{remark}[The trace at $p=2$]\label{rem:trace-quasi-continuous} For a structure closable at $p=2$, the trace $T_2f$ of Proposition~\ref{prop:trace} is the restriction to~$\cS$ of a quasi-continuous representative~$\tilde f$ of~$f$. Indeed, let $u_j\in\cC_2$ converge to~$f$ in~$\cF$. A subsequence converges to~$\tilde f$ quasi-everywhere~\cite[Theorem~2.1.4]{FOT}. Energy measures do not charge sets of zero capacity~\cite[Lemma~3.2.4]{FOT}, and by the proof of Proposition~\ref{prop:trace} the measure~$\nu$ has the same null sets as a countable combination of energy measures. Hence the subsequence converges to~$\tilde f$ $\nu$-almost everywhere, and its limit in $L^0(\cS,\nu)$ is~$T_2f$. \end{remark} \paragraph{From Dirichlet forms to gradients.} Conversely, every strongly local regular Dirichlet form admits a first-order calculus with values in a measurable field of Hilbert spaces whose fibre dimensions are given by the pointwise index~\cite{Hi13}; see also~\cite{CS,IRT12,HRT13}. A gradient structure contains more information: it is defined on all bounded Lipschitz functions of a specified metric, and it is bounded by the Lipschitz constant. Under the additional condition~\hSL{}, Proposition~\ref{calc:metric} recovers that metric locally. \paragraph{Generator and semigroup.} The operator $L=\diver\nabla_2$, with domain $\{f\in\cF:\nabla_2f\in\cD_2\}$, is the generator of $(\cE,\cF)$, by~\eqref{eq:div-sobolev}. We denote by $P_t=e^{tL}$, $t\ge0$, the associated \emph{heat semigroup} on $L^2(X,m)$. Part~\ref{part:heat} studies~$P_t$ and its kernel. \paragraph{Singular energy measures.} When $\nu\perp m$, Proposition~\ref{prop:dirichlet}\ref{dir:energy} shows that every energy measure is singular with respect to~$m$. On self-similar fractals this singularity is a theorem~\cite{Ku89,BST99,Hi05}. Kajino and Murugan~\cite{KM} proved it for symmetric diffusions with full off-diagonal sub-Gaussian heat kernel estimates, under a condition on the space-time scale function which is satisfied by $\Psi(r)=r^\beta$ with $\beta>2$. Gradient structures with $\nu\perp m$ are a framework in which this singularity is built into the data. \subsection{Relaxation and bounded variation}\label{subsec:BV} Closure requires closability and produces a closed operator. Relaxation requires nothing and produces a lower semicontinuous functional. For $1\le p<\infty$, the \emph{relaxed energy} of $f\in L^p(X,m)$ is \begin{equation}\label{eq:relaxed-core-energy} \overline{\cE}_p(f)= \inf\Bigl\{\liminf_{k\to\infty}\int_\cS|\nabla u_k|^p\,d\nu:\ u_k\in\cC_p\,,\ u_k\to f\text{ in }L^p(X,m)\Bigr\}\,, \end{equation} with the convention $\inf\varnothing=+\infty$. It is the largest lower semicontinuous functional on $L^p(X,m)$ which is bounded by $\int_\cS|\nabla u|^p\,d\nu$ on~$\cC_p$. For a structure closable at~$p$ with $p>1$, the lower semicontinuity of~$\cE_p$ (Proposition~\ref{prop:sobolev}\ref{sob:lsc}) and the density of~$\cC_p$ in the graph norm give $\overline{\cE}_p=\cE_p$. The relaxed energy is defined without any closability assumption, and Chapter~\ref{sec:KS} compares it with averaged difference quotients. At $p=1$ we define the total variation by relaxing the gradient on the compactly supported core~$\cC_1$. This follows the relaxation method of~\cite{Miranda03,ADM14} on metric measure spaces and~\cite[Definition~2.17]{BCY} on local trees. The choice of approximating functions determines the boundary convention. \begin{definition}\label{def:BV} For $f\in L^1(X,m)$, the \emph{total variation} of~$f$ is \begin{equation*} \|Df\|(X)=\overline{\cE}_1(f)=\inf\Bigl\{\liminf_{k\to\infty}\int_\cS|\nabla u_k|\,d\nu:\ u_k\in\cC_1\,,\ u_k\to f\text{ in }L^1(X,m)\Bigr\}\,, \end{equation*} and $BV(X,m)=\{f\in L^1(X,m):\|Df\|(X)<\infty\}$ is the space of \emph{functions of bounded variation}. The \emph{perimeter} of a Borel set~$E$ with $m(E)<\infty$ is $P(E)=\|D\ind_E\|(X)$. \end{definition} The functional $f\mapsto\|Df\|(X)$ is convex, even, positively homogeneous of degree one, and lower semicontinuous on~$L^1(X,m)$. Consequently it is a seminorm on~$BV(X,m)$, and $BV(X,m)$ is a Banach space for the norm $\|f\|_{L^1}+\|Df\|(X)$. The definition requires neither closability at $p=1$ nor any quantitative hypothesis. In this book $\|Df\|(X)$ is a number; we do not show that it is the total mass of a measure~$\|Df\|$ on~$X$, and the notation is chosen only for its familiarity. For example, let $X=(0,1)$, $m=\nu=dx$ and $\nabla u=u'$. Every $u\in\Lip_c(0,1)$ satisfies $\int_0^1|u'|\,dx\ge2\|u\|_\infty\ge2|\int_0^1u\,dx|$. Piecewise linear cutoffs which tend to one in $L^1(0,1)$ and have variation two give the reverse bound. Thus $\|D1\|(X)=P(X)=2$. The interior variation of the constant is zero when locally Lipschitz approximants are allowed, as in~\cite[formula~(5.1)]{ADM14}. \subsection{Divergence duality and coarea}\label{subsec:coarea} We prove two structural properties of the total variation: it is the support function of the divergences of the bounded vector fields, and it satisfies the coarea formula. The divergence representation is analogous to~\cite[Theorem~3.4]{DiMarino14}; relaxation and coarea follow the approach to~$BV$ on metric measure spaces of~\cite{Miranda03,ADM14}. Both statements follow from the calculus of Lemma~\ref{lem:calculus} and from the definition by relaxation. Throughout this section we write \begin{equation*} J(f)=\|Df\|(X)\,,\qquad f\in L^1(X,m)\,. \end{equation*} \paragraph{Duality.} A bounded field $V\in L^\infty(\cS,\cH,\nu)$ has a \emph{bounded divergence} if there is $h\in L^\infty(X,m)$ such that \begin{equation}\label{eq:div-bounded} \int_\cS\langle\nabla u,V\rangle\,d\nu =-\int_Xu\,h\,dm\qquad\text{for all }u\in\cC_1\,; \end{equation} we then write $h=\diver V$. When $\cC_1$ is dense in $L^1(X,m)$ the function~$h$ is determined by~$V$. In general, the supremum in the next statement is taken over the pairs $(V,h)$ satisfying~\eqref{eq:div-bounded}. \begin{proposition}\label{prop:BV-duality} Let $(\cS,\nu,\nabla)$ be a gradient structure. For every $f\in L^1(X,m)$, \begin{equation}\label{eq:BV-duality} \|Df\|(X)=\sup\Bigl\{\Bigl|\int_X f\,\diver V\,dm\Bigr|:\ V\in L^\infty(\cS,\cH,\nu)\,,\ \|V\|_\infty\le1\,, \ \diver V\in L^\infty(X,m)\Bigr\}\,. \end{equation} \end{proposition} On~$\R^n$, with $m=\nu=\Leb^n$ and the Euclidean gradient, this is the classical definition of the total variation by duality with vector fields; see~\cite[Chapter~3]{AFP00}. In the present setting the fields are sections over the skeleton, bounded with respect to~$\nu$, and their divergences are functions on~$X$, bounded with respect to~$m$. \begin{proof} \emph{Step 1: the polar set.} The functional~$J$ is the lower semicontinuous envelope on $L^1(X,m)$ of the functional which is equal to $\|\nabla u\|_{L^1(\nu)}$ on~$\cC_1$ and to~$+\infty$ elsewhere, and the latter is convex and positively homogeneous. Hence $J$ is convex, lower semicontinuous and positively homogeneous. By the Hahn--Banach theorem, applied to its closed convex epigraph, it is the support function of a subset of the dual space $L^\infty(X,m)$: \begin{equation}\label{eq:BV-polar} J(f)=\sup_{h\in\mathcal K}\int_Xf\,h\,dm\,,\qquad\mathcal K=\Bigl\{h\in L^\infty(X,m):\ \int_Xv\,h\,dm\le J(v)\text{ for all }v\in L^1(X,m)\Bigr\}\,. \end{equation} Moreover $h\in\mathcal K$ if and only if \begin{equation}\label{eq:BV-polar-core} \Bigl|\int_Xu\,h\,dm\Bigr|\le\|\nabla u\|_{L^1(\nu)}\qquad\text{for every }u\in\cC_1\,. \end{equation} Indeed, $J(u)\le\|\nabla u\|_{L^1(\nu)}$ on~$\cC_1$, and $\cC_1$ is stable under $u\mapsto-u$. Conversely, if~\eqref{eq:BV-polar-core} holds and $u_k\in\cC_1$ converges to~$v$ in $L^1(X,m)$, then $\int_Xv\,h\,dm=\lim_k\int_Xu_k\,h\,dm\le\liminf_k\|\nabla u_k\|_{L^1(\nu)}$. \emph{Step 2: representation by a field.} Let $h\in\mathcal K$. By~\eqref{eq:BV-polar-core}, the map $\nabla u\mapsto\int_Xu\,h\,dm$ is well defined on the linear subspace $\{\nabla u:u\in\cC_1\}$ of $L^1(\cS,\cH,\nu)$, and it has norm at most one. By the Hahn--Banach theorem it extends to a linear form of norm at most one on $L^1(\cS,\cH,\nu)$, which by the duality of Section~\ref{subsec:setting} is represented by a field $W\in L^\infty(\cS,\cH,\nu)$ with $\|W\|_\infty\le1$. Thus $V=-W$ satisfies~\eqref{eq:div-bounded}, that is, $h=\diver V$. \emph{Step 3: conclusion.} Conversely, if $\|V\|_\infty\le1$ and $(V,h)$ satisfies~\eqref{eq:div-bounded}, then $h$ satisfies~\eqref{eq:BV-polar-core}, so $h\in\mathcal K$ and $-h\in\mathcal K$. Formula~\eqref{eq:BV-duality} is therefore~\eqref{eq:BV-polar}. \end{proof} \paragraph{The coarea formula.} The classical coarea formula for functions of bounded variation~\cite[Theorem~3.40]{AFP00} expresses the total variation as the integral of the perimeters of the superlevel sets. \begin{theorem}\label{thm:global-coarea} For every $f\in L^1(X,m)$, \begin{equation}\label{eq:global-coarea} \|Df\|(X)=\int_0^\infty \bigl(P(\{f>t\})+P(\{f<-t\})\bigr)\,dt\,, \end{equation} where the equality holds in $[0,\infty]$. In particular, for a function of $BV(X,m)$ and almost every $t>0$, the sets $\{f>t\}$ and $\{f<-t\}$ have finite perimeter. For Borel sets $E,F$ of finite $m$-measure, \begin{equation}\label{eq:perimeter-submodular} P(E\cup F)+P(E\cap F)\le P(E)+P(F)\,. \end{equation} \end{theorem} The proof adapts the truncation and relaxation argument of~\cite[Proposition~4.2]{Miranda03}. The inequality ``$\ge$'' is proved by truncating a recovery sequence; the inequality ``$\le$'' follows from the duality formula~\eqref{eq:BV-polar}. Only the global functional~$J$ is used. \begin{proof} For $f\in L^1(X,m)$, both maps $t\mapsto\ind_{\{f>t\}}$ and $t\mapsto\ind_{\{f<-t\}}$ are right-continuous from $(0,\infty)$ to $L^1(X,m)$. Their compositions with the lower semicontinuous functional~$J$ are therefore Borel measurable, and the integral in~\eqref{eq:global-coarea} is defined. \emph{Step 1: the core.} For $u\in\cC_1$, $t\ge0$ and $\varepsilon>0$, the functions \begin{equation*} u_{t,\varepsilon}^{\pm}=\min\Bigl\{1,\frac{(\pm u-t)_+}{\varepsilon}\Bigr\} \end{equation*} belong to~$\cC_1$ and converge in $L^1(X,m)$ to $\ind_{\{\pm u>t\}}$ as $\varepsilon\downarrow0$. The chain rule of Lemma~\ref{lem:calculus}\ref{calc:chain} gives \begin{equation*} |\nabla u_{t,\varepsilon}^{\pm}| =\varepsilon^{-1}\,\ind_{\{t<\pm u0:t<\pm u(x)t\}})+J(\ind_{\{u<-t\}})\bigr)\,dt \le\liminf_{\varepsilon\downarrow0}\int_0^\infty\!\!\int_\cS\bigl(|\nabla u_{t,\varepsilon}^{+}|+|\nabla u_{t,\varepsilon}^{-}|\bigr)\,d\nu\,dt \le\int_\cS|\nabla u|\,d\nu\,. \end{equation} \emph{Step 2: passage to the relaxation.} If $J(f)<\infty$, choose $u_k\in\cC_1$ with $u_k\to f$ in $L^1(X,m)$ and $\|\nabla u_k\|_{L^1(\nu)}\to J(f)$. The identity $|a-b|=\int_0^\infty\bigl(|\ind_{\{a>t\}}-\ind_{\{b>t\}}|+|\ind_{\{a<-t\}}-\ind_{\{b<-t\}}|\bigr)\,dt$ for real numbers $a,b$ gives \begin{equation*} \int_0^\infty\Bigl( \|\ind_{\{u_k>t\}}-\ind_{\{f>t\}}\|_{L^1(m)} +\|\ind_{\{u_k<-t\}}-\ind_{\{f<-t\}}\|_{L^1(m)}\Bigr)\,dt =\|u_k-f\|_{L^1(m)}\longrightarrow0\,. \end{equation*} Along a subsequence both families of indicators converge in $L^1(X,m)$ for almost every~$t$. The lower semicontinuity of~$J$, Fatou's lemma and~\eqref{eq:coarea-core} therefore yield \begin{equation*} \int_0^\infty\bigl(P(\{f>t\})+P(\{f<-t\})\bigr)\,dt\le\liminf_{k\to\infty}\int_\cS|\nabla u_k|\,d\nu=J(f)\,. \end{equation*} This inequality is trivial if $J(f)=\infty$. \emph{Step 3: the reverse inequality.} Let $h\in\mathcal K$, with $\mathcal K$ as in~\eqref{eq:BV-polar}; recall that $-h\in\mathcal K$, because $J$ is even. The identity $f=\int_0^\infty(\ind_{\{f>t\}}-\ind_{\{f<-t\}})\,dt$ and Fubini's theorem give \begin{align*} \int_Xf\,h\,dm &=\int_0^\infty\Bigl(\int_{\{f>t\}}h\,dm-\int_{\{f<-t\}}h\,dm\Bigr)\,dt\\ &\le\int_0^\infty\bigl(P(\{f>t\})+P(\{f<-t\})\bigr)\,dt\,. \end{align*} Taking the supremum over~$h$ proves~\eqref{eq:global-coarea}. \emph{Step 4: the perimeter.} Let $P(E)+P(F)<\infty$, and let $u_k,v_k\in\cC_1$ with $u_k\to\ind_E$, $v_k\to\ind_F$ in $L^1(X,m)$, $\|\nabla u_k\|_{L^1(\nu)}\to P(E)$ and $\|\nabla v_k\|_{L^1(\nu)}\to P(F)$. Then $u_k\vee v_k\to\ind_{E\cup F}$ and $u_k\wedge v_k\to\ind_{E\cap F}$ in $L^1(X,m)$, and by~\eqref{eq:gradient-max-min}, \begin{equation*} |\nabla(u_k\vee v_k)|+|\nabla(u_k\wedge v_k)| =|\nabla u_k|+|\nabla v_k|\qquad\nu\text{-almost everywhere.} \end{equation*} The lower semicontinuity of~$J$ proves~\eqref{eq:perimeter-submodular}. \end{proof} Applying~\eqref{eq:global-coarea} to $f_+$ and~$f_-$ gives the additivity \begin{equation}\label{eq:BV-positive-negative} \|Df\|(X)=\|Df_+\|(X)+\|Df_-\|(X)\qquad\bigl(f\in L^1(X,m)\bigr)\,. \end{equation} \paragraph{Compact spaces.} Formula~\eqref{eq:global-coarea} is written with two families of level sets of finite measure because $m(X)$ may be infinite. If $X$ is compact, constants belong to~$\cC_1$ and have zero gradient; then $\|D(f+c)\|(X)=\|Df\|(X)$ and $P(X\setminus E)=P(E)$. Since $m(\{f=t\})>0$ for at most countably many~$t$, \eqref{eq:global-coarea} takes the usual form \begin{equation*} \|Df\|(X)=\int_{\R}P(\{f>t\})\,dt\,. \end{equation*} \chapter{Doubling, cutoffs and Poincar\'e inequalities}\label{sec:hyp} Chapter~\ref{sec:sobolev-chapter} constructs Sobolev spaces when the gradient is closable and defines the relaxed energy at every exponent. The quantitative theory rests on three hypotheses, which are introduced in this chapter: \begin{itemize} \item volume doubling~\hVD{} for the reference measure~$m$; \item a cutoff condition~\hB, which bounds the gradient of a cutoff function of a ball, integrated against~$\nu$, by the $m$-measure of the ball; \item a Poincar\'e inequality~\hP{p}, which bounds the oscillation of a function, integrated against~$m$, by its energy, integrated against~$\nu$. \end{itemize} The cutoff and Poincar\'e inequalities compare the two measures in opposite directions. Their scales $\Psi_{C,2}(x,r)$ and $\Psi_{P,p}(x,r)$ may depend on the centre and the radius of the ball. A single scale governs both inequalities in the cubical inverse limit with singular reference measure (Theorem~\ref{thm:cubical-singular}). The tree of cubes requires two distinct quadratic scales even when the centre is allowed to vary (Corollary~\ref{cor:cube-spectrum-ehi}). The technical tool of the chapter is the discrete convolution of Lemma~\ref{lem:energy-cutoff-approximation}, which replaces a function by a combination of its averages on balls of radius~$\varepsilon$ and bounds the energy of the result by averaged difference quotients of the function. It plays the role of mollification, and all later approximation arguments rely on it. Two first applications are given in Section~\ref{subsec:scale-relations}: the cutoff bound constrains $\inf_x\Psi_{C,2}(x,r)$, and on a connected space $\Psi_{C,p}(x,r)\le C\Psi_{P,p}(x,r)$ at each centre. \subsection{Scale functions}\label{subsec:scale-functions} \paragraph{Range of radii.} Fix $r_0\in(0,\infty]$. All hypotheses are imposed for radii below a fixed multiple of~$r_0$, with constants which do not depend on the centre of the ball. A statement which holds \emph{at small radii} holds for $r0$ depends only on the constants of the hypotheses; reducing~$r_0$ by a fixed factor accommodates the dilations of balls which occur in the proofs. The hypotheses are \emph{global} if $r_0=\infty$. A restriction involving $\diam X$, as in Proposition~\ref{prop:scaleorder}, still applies on a bounded space. \paragraph{Growth and comparison of centres.} Write $S(x,r)=S(B)$ for a positive Borel function on $X\times(0,r_0)$, where $B=B(x,r)$. If $S$ is independent of $x$ we write $S(r)$. The scale has \emph{weak scaling} if for some $00$, \begin{equation}\label{eq:scale} c\Bigl(\frac Rr\Bigr)^a\le\frac{S(x,R)}{S(x,r)}\le C\Bigl(\frac Rr\Bigr)^b \qquad(x\in X,\ 00$ such that \begin{equation}\label{eq:VD-power} \frac{m(B(x,R))}{m(B(x,r))}\le C\Bigl(\frac Rr\Bigr)^{Q_D}\qquad(x\in X,\ 00$ such that every $u\in\cC_p$ and every ball $B=B(x,r)$ with $00\}\bigr) \le C\,\frac{r^2}{\Psi_{C,2}(x,r)}\,m(B(x,r))\,, \end{equation} by the bound $|\nabla\psi_x^r|\le C_B/r$; in terms of the gauge, \eqref{eq:active-volume} reads $\nu(\{|\nabla\psi_x^r|>0\})\le C\,\Theta(B(x,r))$. The gauge is comparable on nearby balls of comparable radii, by~\hVD{} and~\eqref{eq:fixed-dilation-scale}--\eqref{eq:nearby-scale}. If $\nu\le C_0\,m$ and \hVD{} holds, the distance cutoffs satisfy~\eqref{eq:active-volume} with $\Psi_{C,2}(r)=r^2$. They have compact support when the closed balls at the radii in question are compact (Lemma~\ref{lem:distance-cutoff}). When $\nu\perp m$, \eqref{eq:active-volume} says that the cutoff varies only on a part of the skeleton whose $\nu$-measure is controlled; on a tree, for instance, this part consists of boundedly many segments of length~$r$. \begin{lemma}\label{lem:B-complete} Let $r_1>0$, and suppose that for every $x\in X$ and $00$. A maximal $\varepsilon$-separated set $\{x_i\}$ is countable, and the balls $B(x_i,\varepsilon)$ cover~$X$. Under~\hVD, for each $\lambda\ge1$ every point of~$X$ belongs to at most $N(\lambda)=C(1+\lambda)^{Q_D}$ of the balls $B(x_i,\lambda\varepsilon)$, provided $2(\lambda+1)\varepsilon2$, depending only on~$C_D$, such that \begin{equation}\label{eq:reverse-doubling} m(B(x,Mr))\ge2\,m(B(x,2r)) \end{equation} for every $x\in X$ and every $r>0$ with $Mr<\min\{r_0,\diam X\}/8$. On an unbounded connected space with global doubling,~\eqref{eq:reverse-doubling} holds at every radius. \end{lemma} \begin{proof} Let $8\rho<\min\{r_0,\diam X\}$. Since $X$ is connected and contains a point at distance greater than $3\rho$ from~$x$, the continuous function $d(x,\cdot)$ takes the value~$3\rho$ at some point~$y$. The ball $B(y,\rho/2)$ lies in $B(x,4\rho)\setminus B(x,2\rho)$, and $B(x,2\rho)\subset B(y,8\rho)$, so $m(B(y,\rho/2))\ge C_D^{-4}m(B(x,2\rho))$ by doubling. Hence $m(B(x,4\rho))\ge(1+C_D^{-4})\,m(B(x,2\rho))$. Iterating $k$ times, with $(1+C_D^{-4})^k\ge2$, gives~\eqref{eq:reverse-doubling} with $M=2^{k+1}$. \end{proof} \paragraph{Lower semicontinuity.} The weak-$*$ continuity of the gradient gives the lower semicontinuity of the energy on Borel sets, along bounded sequences of Lipschitz functions. \begin{lemma}\label{lem:weak-star-lsc} Let $u_k,u\in\Lip_b(X)$ with $u_k\to u$ pointwise and $\sup_k(\|u_k\|_\infty+\Lip(u_k))<\infty$. Then, for every Borel set~$A$ and $1\le p<\infty$, \begin{equation}\label{eq:weak-star-lsc} \int_A|\nabla u|^p\,d\nu\le\liminf_{k\to\infty}\int_A|\nabla u_k|^p\,d\nu\,. \end{equation} \end{lemma} \begin{proof} Let $g$ be a bounded field which vanishes outside a subset of~$A$ of finite $\nu$-measure, with $\|g\|_{L^{p'}(\nu)}\le1$. Then $g\in L^1(\cS,\cH,\nu)$, and~\ref{cond:G3} and H\"older's inequality give \begin{equation*} \int_\cS\langle\nabla u,g\rangle\,d\nu=\lim_{k\to\infty}\int_\cS\langle\nabla u_k,g\rangle\,d\nu\le\liminf_{k\to\infty}\Bigl(\int_A|\nabla u_k|^p\,d\nu\Bigr)^{1/p}\,. \end{equation*} Since $\nu$ is $\sigma$-finite, the supremum of the left-hand side over all such~$g$ is $\|\nabla u\|_{L^p(A,\nu)}$, also for $p=1$. \end{proof} \subsection{Discrete convolution}\label{subsec:pou} On~$\R^n$ a function is regularized by convolution with a mollifier. On a metric measure space the substitute is the \emph{discrete convolution}: one fixes a partition of unity subordinate to a cover by balls of radius~$\varepsilon$ and replaces~$f$ by the combination of its averages on these balls. For Sobolev functions on metric spaces the construction is used in~\cite[Section~3]{KL02}. Versions with control of the energy appear in~\cite[Theorem~5.2]{Bau24},~\cite[Theorem~3.5 and Proposition~3.6]{BCY} and~\cite[Lemmas~3.10--3.11]{Shimizu25}. The estimates below follow the same argument, with the gradients integrated against~$\nu$ and the oscillations against~$m$. \paragraph{Averaged difference quotients.} For $f\in L^p(X,m)$ and a positive Borel scale $S$, put \begin{equation}\label{eq:Dp} \begin{aligned} D_p(f,r)&=\int_X\fint_{B(x,r)}|f(x)-f(y)|^p\,dm(y)\,dm(x),\\ E_{p,S}(f,r)&=\int_X\frac{1}{S(x,r)} \fint_{B(x,r)}|f(x)-f(y)|^p\,dm(y)\,dm(x). \end{aligned} \end{equation} For a scale independent of the centre, $E_{p,S}(f,r)=D_p(f,r)/S(r)$. The choice $S(r)=r^p$ gives the approximate energy of Korevaar and Schoen~\cite{KoSc93}. At fixed $r$, Fatou's lemma applied to a subsequence converging $m$-almost everywhere gives lower semicontinuity of $E_{p,S}(\cdot,r)$ on $L^p(X,m)$, allowing the value $+\infty$. Under volume doubling, $D_p(\cdot,r)^{1/p}$ is a continuous seminorm and, uniformly at small radii, \begin{equation}\label{eq:Dp-bound} D_p(f,r)\le C\,\|f\|_{L^p(X,m)}^p\,. \end{equation} Indeed, $|f(x)-f(y)|^p\le2^{p-1}(|f(x)|^p+|f(y)|^p)$, and in the term involving $|f(y)|^p$ one interchanges the order of integration and uses $m(B(x,r))\ge c\,m(B(y,r))$ for $d(x,y)0 \qquad\text{for each sufficiently small fixed }r>0\,. \end{equation} The lower bound is allowed to depend on $r$. On a compact space it follows from~\eqref{eq:nearby-scale} by a finite covering, and for a positive scale independent of the centre it is automatic. \paragraph{The lemma.} The approximation requires an energy bound for cutoffs at one exponent only. We state it in this generality; this is the form used in the rank theorem of Chapter~\ref{sec:rank-chapter}. In the next lemma, $\Psi_{C,p}$ may be any positive function satisfying~\eqref{eq:fixed-dilation-scale} and~\eqref{eq:nearby-scale}. Under~\hVD{} and~\hB{} the hypothesis~\eqref{eq:energy-cutoff-assumption} holds with the cutoff scale~\eqref{eq:Psi} and the cutoffs $\chi_{B(x,r)}=\psi_x^r$, by~\eqref{eq:bumpenergy}. \begin{lemma}\label{lem:energy-cutoff-approximation}\label{lem:pou}\label{lem:discrete} Let $1\le p<\infty$. Assume that $m$ is doubling at small radii and that $\Psi_{C,p}$ satisfies~\eqref{eq:fixed-dilation-scale} and~\eqref{eq:nearby-scale}. Suppose that each ball $B=B(x,r)$ of sufficiently small radius admits $\chi_B\in\cC_p$ with \begin{equation}\label{eq:energy-cutoff-assumption} \ind_B\le\chi_B\le\ind_{2B}\,,\qquad \Lip(\chi_B)\le \frac Cr\,,\qquad \int_\cS|\nabla\chi_B|^p\,d\nu \le C\,\frac{m(B)}{\Psi_{C,p}(x,r)}\,. \end{equation} Then $\cC_p$ is uniformly dense in~$C_c(X)$. Given a maximal $\varepsilon$-separated set $\{x_i\}$, put \begin{equation*} B_i=B(x_i,\varepsilon)\,,\qquad\varphi_i=\frac{\chi_{B_i}}{\sum_j\chi_{B_j}}\,. \end{equation*} For sufficiently small~$\varepsilon$, the functions~$\varphi_i$ form a locally finite partition of unity in~$\cC_p$, with $\Lip(\varphi_i)\le C/\varepsilon$ and $\supp\varphi_i\subset\overline{2B_i}$. For $f\in L^p(X,m)$ write \begin{equation}\label{eq:feps} f_\varepsilon=\sum_i f_{B_i}\,\varphi_i\,,\qquad G_\varepsilon f=\sum_i f_{B_i}\,\nabla\varphi_i\,,\qquad F_N=\sum_{i\le N}f_{B_i}\,\varphi_i\,. \end{equation} For every $f\in L^p(X,m)$ and every sufficiently small~$\varepsilon$ the following hold. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{eca:conv}\label{disc:conv} $F_N\in\cC_p$ and $F_N\to f_\varepsilon$ in $L^p(m)$. If $\int_X |f(x)|^p/\Psi_{C,p}(x,\varepsilon)\,dm(x)<\infty$, then $\nabla F_N\to G_\varepsilon f$ in $L^p(\nu)$. This integrability holds for all $f\in L^p(m)$ under~\eqref{eq:scale-nondegenerate}, and for functions with compact support under~\eqref{eq:nearby-scale}. \item\label{eca:est}\label{disc:Lp}\label{disc:energy} One has \begin{equation}\label{eq:energy-cutoff-approximation} \|f-f_\varepsilon\|_{L^p(m)}^p\le C\, D_p(f,5\varepsilon)\,, \qquad \|G_\varepsilon f\|_{L^p(\nu)}^p \le C\,E_{p,\Psi_{C,p}}(f,5\varepsilon)\,. \end{equation} Moreover $D_p(f,r)\to0$ as $r\downarrow0$. \item\label{eca:lip}\label{disc:lip} If $f\in\Lip_c(X)$, then $f_\varepsilon\in\cC_p$, $\nabla f_\varepsilon=G_\varepsilon f$, and \begin{equation*} \|f_\varepsilon\|_\infty\le\|f\|_\infty\,,\qquad \|f-f_\varepsilon\|_\infty\le3\varepsilon\Lip(f)\,,\qquad \Lip(f_\varepsilon)\le C\Lip(f)\,. \end{equation*} \end{enumerate} When all the hypotheses hold at every radius, the estimates hold for every $\varepsilon>0$. \end{lemma} We write $G_\varepsilon$ for $G_\varepsilon f$ when the function is clear. The function~$f_\varepsilon$ is the \emph{discrete convolution} of~$f$ at the scale~$\varepsilon$, and the field~$G_\varepsilon f$ is its \emph{discrete gradient}. Both are defined for every $f\in L^p(X,m)$. Under the integrability hypothesis of~\ref{eca:conv}, the pair $(f_\varepsilon,G_\varepsilon f)$ belongs to the closure of the graph of $(\nabla,\cC_p)$; if the structure is closable at~$p$, this means $f_\varepsilon\in W^{1,p}(X,m)$ and $\nabla_pf_\varepsilon=G_\varepsilon f$. By~\ref{eca:est}, the energy of the discrete convolution is bounded by an averaged difference quotient of~$f$ at the scale~$5\varepsilon$, normalized by the cutoff scale. This is the estimate from which the closability theorem and the Korevaar--Schoen characterizations of Chapter~\ref{sec:KS} are derived. \begin{proof} We denote by $N(\lambda)$ the overlap constant of Lemma~\ref{lem:cover}. \emph{Step 1: density.} The set~$\cC_p$ is a subalgebra of the algebra~$C_0(X)$ of continuous functions vanishing at infinity. It separates points and vanishes nowhere: for $x\ne y$, the cutoff of a ball $B(x,r)$ with $2rN}f_{B_i}\varphi_i\Bigr\|_{L^p(m)}^p&\le C\sum_{i>N}|f_{B_i}|^p\,m(2B_i)\le C\sum_{i>N}\int_{B_i}|f|^p\,dm\,,\\ \Bigl\|\sum_{i>N}f_{B_i}\nabla\varphi_i\Bigr\|_{L^p(\nu)}^p&\le C\sum_{i>N}|f_{B_i}|^p\int_\cS|\nabla\varphi_i|^p\,d\nu\le C\sum_{i>N}\int_{B_i}\frac{|f(x)|^p}{\Psi_{C,p}(x,\varepsilon)}\,dm(x)\,. \end{align*} The first tail tends to zero by bounded overlap. The second has the same property when the weighted integral in~\ref{eca:conv} is finite, by~\eqref{eq:nearby-scale} and bounded overlap. \emph{Step 4: proof of~\ref{eca:est}.} If $\varphi_i(x)\ne0$, then $x\in2B_i$, hence $B_i\subset B(x,5\varepsilon)$ and $m(B(x,5\varepsilon))\le C\,m(B_i)$. Jensen's inequality gives \begin{equation*} |f(x)-f_{B_i}|^p\le\fint_{B_i}|f(x)-f(y)|^p\,dm(y)\le C\fint_{B(x,5\varepsilon)}|f(x)-f(y)|^p\,dm(y)\,. \end{equation*} Since $f(x)-f_\varepsilon(x)=\sum_i(f(x)-f_{B_i})\varphi_i(x)$ is a convex combination, integrating in~$x$ gives the first inequality in~\eqref{eq:energy-cutoff-approximation}. The second inequality uses the cancellation~\eqref{eq:partition-cancellation}, as in~\cite[proof of Theorem~3.12, equations~(3.23)--(3.25)]{Shimizu25}. Fix~$j$. Since $\nabla\varphi_i=0$ almost everywhere on~$B_j$ unless $d(x_i,x_j)<3\varepsilon$, \eqref{eq:partition-cancellation} gives, $\nu$-almost everywhere on~$B_j$, \begin{equation*} G_\varepsilon f=\sum_{d(x_i,x_j)<3\varepsilon} (f_{B_i}-f_{B_j})\,\nabla\varphi_i\,. \end{equation*} For these indices $B_i\subset B(x,5\varepsilon)$ whenever $x\in B_j$, and Jensen's inequality and doubling give \begin{equation*} |f_{B_i}-f_{B_j}|^p\le\fint_{B_j}\fint_{B_i}|f(x)-f(y)|^p\,dm(y)\,dm(x)\le \frac{C}{m(B_j)}\int_{B_j}\fint_{B(x,5\varepsilon)} |f(x)-f(y)|^p\,dm(y)\,dm(x)\,. \end{equation*} For $x\in B_j$ and the indices in the sum, $m(B_i)\asymp m(B_j)$ and $\Psi_{C,p}(x_i,\varepsilon)\asymp\Psi_{C,p}(x,5\varepsilon)$. Thus~\eqref{eq:energy-partition} and the bound $N(3)$ on the number of indices give \begin{equation*} \int_{B_j\cap\cS}|G_\varepsilon f|^p\,d\nu\le C\int_{B_j}\frac{1}{\Psi_{C,p}(x,5\varepsilon)}\fint_{B(x,5\varepsilon)}|f(x)-f(y)|^p\,dm(y)\,dm(x)\,. \end{equation*} Summing over~$j$, with the bounded overlap of the balls~$B_j$, gives the second inequality. Finally, for $f\in C_c(X)$ the uniform continuity gives $D_p(f,r)\to0$, since the $r$-neighbourhood of~$\supp f$ lies in a fixed compact set for small~$r$. The general case follows from~\eqref{eq:Dp-bound} and the density of~$C_c(X)$ in~$L^p(X,m)$. \emph{Step 5: proof of~\ref{eca:lip}.} Only finitely many balls~$B_i$ meet the compact support of~$f$, so $f_\varepsilon$ is a finite sum, $f_\varepsilon\in\cC_p$ and $\nabla f_\varepsilon=G_\varepsilon f$. The bound $\|f_\varepsilon\|_\infty\le\|f\|_\infty$ holds because $f_\varepsilon(x)$ is a convex combination of the averages~$f_{B_i}$. If $x\in\supp\varphi_i$, every point of~$B_i$ is at distance at most~$3\varepsilon$ from~$x$, so $|f(x)-f_{B_i}|\le3\varepsilon\Lip(f)$, and the second estimate follows. Let $d(x,y)<\varepsilon$. Since $\sum_i(\varphi_i(x)-\varphi_i(y))=0$, \begin{equation*} f_\varepsilon(x)-f_\varepsilon(y)=\sum_i\bigl(f_{B_i}-f(x)\bigr)\bigl(\varphi_i(x)-\varphi_i(y)\bigr)\,. \end{equation*} A term is nonzero only if $x$ or~$y$ belongs to~$\supp\varphi_i$, in which case $|f_{B_i}-f(x)|\le4\varepsilon\Lip(f)$. There are at most $2N(2)$ such terms and $|\varphi_i(x)-\varphi_i(y)|\le Cd(x,y)/\varepsilon$, hence $|f_\varepsilon(x)-f_\varepsilon(y)|\le C\Lip(f)\,d(x,y)$. For $d(x,y)\ge\varepsilon$ the same bound follows from $\|f-f_\varepsilon\|_\infty\le3\varepsilon\Lip(f)$. \end{proof} \paragraph{One partition for all exponents.} Under~\hVD{} and~\hB{} the cutoffs~$\psi_x^r$ satisfy~\eqref{eq:energy-cutoff-assumption} at every exponent, by~\eqref{eq:bumpenergy}. The resulting partition of unity does not depend on~$p$, and for it Lemma~\ref{lem:energy-cutoff-approximation} gives, for every $1\le p<\infty$, \begin{equation}\label{eq:pou} \int_\cS|\nabla\varphi_i|^p\,d\nu\le C\frac{m(B_i)}{\Psi_{C,p}(x_i,\varepsilon)}\,,\qquad \sum_i\nabla\varphi_i=0\quad\nu\text{-almost everywhere.} \end{equation} In particular the discrete convolutions of compactly supported Lipschitz functions belong to~$\cC_1$, and the discrete gradient~$G_\varepsilon f$ is the same field at every exponent. This is what allows the comparison of the closed gradients at different exponents in Proposition~\ref{prop:compatibility}. \subsection{Comparison of the scales}\label{subsec:scale-relations} The cutoff condition constrains the cutoff scale in two ways. First, since $\nu\ne0$, the lower envelope $\inf_x\Psi_{C,2}(x,r)$ is at most of order~$r^2$; for a scale independent of the centre this reads $\Psi_{C,2}(r)\le Cr^2$. Second, if $\Psi_{C,2}(x,r)\ge c\,r^2$ uniformly in~$x$ along a sequence of radii tending to zero, then $\nu\ll m$. The second conclusion may be compared with the dichotomy for energy measures under sub-Gaussian and Gaussian heat kernel estimates~\cite{KM,KoZh12}. \begin{proposition}\label{prop:cutoffrestriction} Assume~\hVD{} and~\hB, with $\nu\ne0$, and put \begin{equation*} \ell=\liminf_{r\downarrow0}\sup_{x\in X}\frac{r^2}{\Psi_{C,2}(x,r)}\,. \end{equation*} \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{cr:quadratic} $\inf_{x\in X}\Psi_{C,2}(x,r)\le Cr^2$ at sufficiently small radii. \item\label{cr:ac} If $\ell<\infty$, then $\nu\ll m$, and for every $u\in\Lip_b(X)$ \begin{equation}\label{eq:gradient-measure-bound} |\nabla u|\,\nu\le C\,\ell\,\Lip(u)\,m\,. \end{equation} \item\label{cr:gauge} Under~\hV, if $\Theta(B(x,r))\asymp\Theta(r)$ uniformly in $x$, then $\Theta(r)\ge c\,\Phi(r)$ at small radii. If $\Phi(r)\asymp r^Q$ and $\Theta(r)\asymp r^s$, then $s\le Q$, with $s0$, including the possibility $\ell=\infty$, and \ref{cr:quadratic} follows. Under the assumptions of \ref{cr:gauge}, $\Theta(r)/\Phi(r)\asymp r^2/\Psi_{C,2}(x,r)$ uniformly in $x$. Assertions \ref{cr:quadratic} and \ref{cr:ac} now give the two claims about the gauge. \end{proof} The proof also gives $\nu|_U\ll m|_U$ on any open $U$ for which $\liminf_{r\downarrow0}\sup_{y\in U}r^2/\Psi_{C,2}(y,r)<\infty$, by taking compact $K\subset U$. The centre in Proposition~\ref{prop:cutoffrestriction}\ref{cr:quadratic} must be allowed to vary. Indeed, in Example~\ref{ex:cubical-ternary}, above the coordinate $1/2$, the sharp quadratic scale is comparable to $r^{1+\log 2/\log 3}$, whose ratio to $r^2$ tends to infinity. On a connected space, inserting a cutoff into the Poincar\'e inequality shows that the cutoff scale is dominated by the Poincar\'e scale. Together with Definition~\ref{def:matching}, this shows that matching scales are comparable: $\Psi_{P,p}(x,r)\asymp\Psi_{C,p}(x,r)$ at small radii. \begin{proposition}\label{prop:scaleorder} Assume~\hVD, \hB{} and~\hP{p}, and suppose that $X$ is connected with positive diameter. Then $\Psi_{C,p}(x,r)\le C\Psi_{P,p}(x,r)$ at sufficiently small radii. Under global hypotheses on an unbounded connected space this holds at every radius. \end{proposition} \begin{proof} Let $M>2$ be the constant of Lemma~\ref{lem:reverse-doubling}, let $B=B(x,r)$, and let $\psi=\psi_x^r$. Since $\psi\le\ind_{B(x,2r)}$, the mean of~$\psi$ on $MB$ is at most $m(B(x,2r))/m(MB)\le1/2$, while $\psi=1$ on~$B$. The Poincar\'e inequality on the ball~$MB$ and~\eqref{eq:bumpenergy} give \begin{equation*} 2^{-p}\,m(B)\le\int_{MB}|\psi-\psi_{MB}|^p\,dm \le C_P\,\Psi_{P,p}(x,Mr)\int_\cS|\nabla\psi|^p\,d\nu \le C\,\frac{\Psi_{P,p}(x,Mr)}{\Psi_{C,p}(x,r)}\,m(B)\,. \end{equation*} We cancel $m(B)$ and compare $\Psi_{P,p}(x,Mr)$ with $\Psi_{P,p}(x,r)$ by~\eqref{eq:scale}. \end{proof} \paragraph{Rigidity in the exponent.} The cutoff scales at two exponents are tied by~\eqref{eq:Psi}: $\Psi_{C,p}(x,r)=r^{p-q}\,\Psi_{C,q}(x,r)$. Assume~\hVD, \hB{} and the Poincar\'e inequalities at two exponents $p$ and~$q$ at which the scales match, on a connected space. Proposition~\ref{prop:scaleorder} then gives, at small radii, \begin{equation}\label{eq:rigidity-exponent} \Psi_{P,p}(x,r)\asymp r^{p-q}\,\Psi_{P,q}(x,r)\,. \end{equation} For power scales $\Psi_{P,p}(r)\asymp r^{\beta_p}$, the number $\beta_p-p$ is thus the same at all matching exponents. Under~\hV{} with $\Phi(r)=r^Q$ and a gauge $\Theta(r)\asymp r^s$, \begin{equation*} \beta_p=p+Q-s\,,\qquad\frac{\beta_p}{p}=1+\frac{Q-s}{p}\,,\qquad\frac{\beta_p-Q}{p-1}=1-\frac{s-1}{p-1}\quad(p>1)\,. \end{equation*} This is a restriction on the families of $p$-energies which come from one gradient structure with matching scales: such a family has one gauge, and its Poincar\'e exponents form an affine function of~$p$ with slope one. On uniform local trees $s=1$ and $\beta_p=p+Q-1$ (Proposition~\ref{prop:tree}). The restriction is consistent with the dichotomies of Yang~\cite{YangDichotomyII} for families of $p$-energies on a doubling space which satisfy Poincar\'e inequalities and capacity upper bounds with exponents~$\beta_p$, for $p$ in an open interval: either $\beta_p=p$ throughout, or $p\mapsto\beta_p/p$ is strictly decreasing with values greater than one; and, on an Ahlfors $Q$-regular space, either $\beta_p=Q+p-1$ throughout, or $p\mapsto(\beta_p-Q)/(p-1)$ is strictly increasing with values less than one. For a gradient structure the first alternatives are $s=Q$ and $s=1$, and the second ones are $s1$; recall that $1\le n_*\le s\le Q$ when $\nu\ne0$ (Corollary~\ref{cor:rank-p-power}, where the cases $s=Q$ and $s0$, the \emph{distance cutoff} is \begin{equation}\label{eq:examples-distance-cutoff} \psi_x^r(y)=\bigl(3-2d(x,y)/r\bigr)_+\wedge1\,. \end{equation} It is equal to one on $B(x,r)$, its support lies in $\overline B(x,3r/2)\subset B(x,2r)$, and $\Lip(\psi_x^r)\le2/r$. \begin{lemma}\label{lem:distance-cutoff} Let $(\cS,\nu,\nabla)$ be a gradient structure on $(X,d,m)$, and suppose that the closed balls of radius less than~$r_0$ are compact. Then, for $00)\,. \end{equation} If $m$ and $\nu$ are doubling at small radii and both assign positive finite mass to small balls, the distance cutoffs satisfy~\eqref{eq:integrated-bump} with \begin{equation*} \Psi_{C,2}(x,r)=r^2\frac{m(B(x,r))}{\nu(B(x,r))}\,,\qquad\text{that is, with the gauge}\quad\Theta(B)=\nu(B)\,. \end{equation*} This choice satisfies~\eqref{eq:fixed-dilation-scale} and~\eqref{eq:nearby-scale}. In particular, if $m$ is doubling and $\nu\le C_0\,m$, then the distance cutoffs satisfy \hB{} with $\Psi_{C,2}(r)=r^2$, and $\Psi_{C,p}(r)=r^p$ for every $1\le p<\infty$. \end{lemma} \begin{proof} By~\ref{cond:G2}, $|\nabla\psi_x^r|\le2/r$ $\nu$-almost everywhere, which gives~\eqref{eq:distance-cutoff-bound}. By locality, $\nabla\psi_x^r=0$ $\nu$-almost everywhere outside $B(x,2r)$. If $\nu$ is doubling, the total cutoff gradient has integral at most $2\nu(B(x,2r))/r\le C\nu(B(x,r))/r$, as required. The comparisons for the displayed scale follow from doubling of the two measures. Now suppose $\nu\le C_0m$. Taking $y=x$ and $s=2r$ in~\eqref{eq:distance-cutoff-bound} and applying doubling, \begin{equation*} \int_\cS|\nabla\psi_x^r|\,d\nu\le\frac{2C_0}{r}\,m(B(x,2r))\le\frac{2C_0C_D}{r}\,m(B(x,r))\,, \end{equation*} which is~\eqref{eq:integrated-bump} with $\Psi_{C,2}(r)=r^2$. \end{proof} The compactness hypothesis matters even on an interval. On $X=(0,1)$ with $m=\nu=dx$, the ball $B(r/2,r)$ contains points arbitrarily close to zero. A function equal to one on this ball cannot have compact support in~$X$, although the measure is doubling. \subsection{Overview of the examples}\label{sec:examples}\label{subsec:ex-comparison} The examples are constructed in Part~\ref{part:examples}. Table~\ref{tab:scales} lists those which satisfy~\hVD, the cutoff condition~\hB{} and Poincar\'e inequalities at matching scales, with estimates which are uniform in the centre at sufficiently small radii. The column ``Exponents'' gives the range of~$p$ for which \hP{p} is proved at the matching scale $\Psi_{P,p}=\Psi_{C,p}$; the structure is closable at all these exponents. The last column records a uniform volume function when there is one; it is not required for the other columns. \begin{table}[htbp] \centering\small \setlength{\tabcolsep}{3pt}\renewcommand{\arraystretch}{1.2} \begin{tabular}{@{}p{.27\textwidth}cp{.12\textwidth}ccp{.16\textwidth}@{}} \toprule Space & Rank & Exponents & $\Psi_{C,2}$ & $\Psi_{P,p}$ & $\Phi(r)$\\ \midrule Smooth or measurable Riemannian metric & $n$ & $p\ge1$ & $r^2$ & $r^p$ & $r^n$ under noncollapsing\\ Compact equiregular sub-Riemannian manifold & $k$ & $p\ge1$ & $r^2$ & $r^p$ & $r^Q$\\ $\RCD(K,N)$ space, $N<\infty$ & $k$ & $p\ge1$ & $r^2$ & $r^p$ & not required\\ Cubical inverse limit, $m=\nu$ & $n$ & $p\ge1$ & $r^2$ & $r^p$ & $r^Q$, $Q>n$\\ Cubical inverse limit, $m=m_\eta$ singular & $n$ & $p\ge1$ & $W$ & $r^{p-2}W$ & none\\ Harmonic Sierpi\'nski gasket & $1$ & $p>2-\varepsilon$ & $r^2$ & $r^p$ & none\\ Finite Riemannian gluing & $n$ & $p\ge1$ & $r^2$ & $r^p$ & $r^n$\\ Uniform local tree & $1$ & $p\ge1$ & $r\,m(B)$ & $r^{p-1}m(B)$ & optional\\ Tree of cubes & $n$ & $p>n$ & $r^{Q+2-n}$ & $r^{Q+p-n}$ & $r^Q$\\ \bottomrule \end{tabular} \caption{Examples with volume doubling and matching scales. Here $B=B(x,r)$ and $W=r\,\eta(I(s_x,r))$.}\label{tab:scales} \end{table} \paragraph{The two cubical examples.} In the inverse limit of Chapter~\ref{sec:cubical-inverse-limits} in which the Lebesgue measure of the first coordinate is replaced by a singular doubling measure~$\eta$, put $I(s,r)=(s-r,s+r)\cap[0,1]$. The sharp scales match for every $1\le p<\infty$ and satisfy \begin{equation*} W(x,r)=r\,\eta(I(s_x,r)),\qquad \Psi_{P,p}(x,r)=\Psi_{C,p}(x,r)=r^{p-2}W(x,r)\,. \end{equation*} Here $s_x$ is the first coordinate of $x$. The sharp envelopes of the radius alone match precisely when $\eta$ is comparable to Lebesgue measure. Theorem~\ref{thm:cubical-singular} gives two-sided heat kernel bounds at the common scale $W$. Although the rank is $n$, $W(x,r)=o(r^2)$ at $\nu$-almost every $x$ for singular $\eta$ (Example~\ref{ex:cubical-ternary}). This is consistent with the rank theorem (Theorem~\ref{thm:rank-p}), whose hypothesis~\eqref{eq:rank-one-scale} requires a lower exponent $a>p$ which is uniform in the centre and in both radii. On the tree of cubes the sharp quadratic scales depending only on the radius are $\Psi_{P,2}(r)=r^{Q+2-n-\sigma}$ and $\Psi_{C,2}(r)=r^{Q+2-n}$. The first is comparable to the inverse bottom of the Dirichlet spectrum on balls. Failure of the elliptic Harnack inequality excludes a common regular quadratic scale depending on the centre (Corollary~\ref{cor:cube-spectrum-ehi}). \paragraph{Comments on the table.} \begin{itemize} \item \emph{Riemannian metrics} (Chapter~\ref{sec:riemannian-examples}). Completeness and a lower bound on the Ricci curvature give the three hypotheses. The measurable case assumes uniform ellipticity relative to such a background metric. A uniform lower bound for the volume of unit balls is needed only for $\mathrm V(r^n)$. \item \emph{Sub-Riemannian manifolds} (Section~\ref{subsec:ex-subriemannian}). A Carnot group satisfies the estimates globally. Proposition~\ref{prop:sr-global-CD} gives further global examples under a nonnegative generalized curvature-dimension bound, including the complete Sasakian manifolds and totally geodesic foliations described there, with Poincar\'e inequalities for $p>2-\varepsilon$. The sub-Laplacian comparison criterion of Proposition~\ref{prop:sr-MCP-PI} gives all $p\ge1$ in the Sasakian and H-type classes specified there, through the measure contraction property. \item \emph{$\RCD$ spaces} (Chapter~\ref{sec:metric-examples}). Every finite-dimensional $\RCD$ space has the stated local properties; compact noncollapsed $\RCD(K,n)$ spaces satisfy in addition $\mathrm V(r^n)$. \item \emph{Cubical inverse limits} (Chapter~\ref{sec:cubical-inverse-limits}). The inverse limits of Theorem~\ref{thm:cubical-limit} realize every integer rank $n\ge1$ and every real volume exponent $Q>n$, with $m=\nu$. \item \emph{The harmonic gasket} (Chapter~\ref{sec:harmonic-gasket-chapter}). The structure is closable at every finite $p\ge1$ and has no uniform volume function. The table records the range of exponents for which matching Poincar\'e inequalities are proved in this book. \item \emph{Gluings and trees} (Chapter~\ref{sec:riemannian-gluings}). The finite gluing has the pieces and the interface of Proposition~\ref{prop:finite-riemannian-gluing}. For the local trees of Proposition~\ref{prop:tree}, $\nu$ is the length measure and $\Theta(B)\asymp r$. Under $\mathrm V(\Phi)$ the common scale is $r^{p-1}\Phi(r)$, as in~\cite{BCY}. \item \emph{The tree of cubes} (Chapter~\ref{sec:riemannian-gluings}). Here $n\ge2$, $Q>n$, and the construction depends on a parameter $0<\sigma<2$. The gauge is $\Theta(r)=r^n$. The structure is closable at~$p$ exactly for \begin{equation*} p\ge p_*:=\frac{n\sigma}{n-2+\sigma}\,,\qquad 1\le p<\infty\,; \end{equation*} for $n=2$ this threshold is $p_*=2$. The scale $r^{Q+p-n}$ gives matching precisely for $p>n$. Proposition~\ref{prop:cube-two-scales} gives the sharp uniform scales at the smaller exponents of closability. In particular the structure is closable at $p=2$, although its quadratic scales do not match. \end{itemize} \paragraph{An example without doubling.} Liouville Brownian motion (Chapter~\ref{sec:liouville-chapter}) has a Euclidean gradient structure of rank two with $m=M_\gamma$, the Gaussian multiplicative chaos measure, and $\nu=dx$. For each fixed $0<\gamma<2$, almost surely, it is closable at~$p$ precisely when $p>\gamma^2/2$, among finite $p\ge1$. For $1\le p\le\gamma^2/2$ the relaxed energy is identically zero; in particular the total variation vanishes identically when $\gamma\ge\sqrt2$ (Proposition~\ref{prop:liouville-p-admissibility}). On each fixed compact set the structure satisfies $\mathrm{PI}_2(r^a)$, the cutoff condition $\mathrm B(r^b)$ and the cutoff Sobolev inequality $\mathrm{CSA}(r^b)$ for $0(2+\gamma)^2/2$. Global volume doubling fails. \chapter{Korevaar--Schoen theory}\label{sec:KS} Korevaar and Schoen~\cite{KoSc93} defined the Sobolev energy of a map on a Riemannian domain through the behaviour, as $r\to0$, of averaged difference quotients of the type \begin{equation*} \frac{1}{r^p}\int_X\fint_{B(x,r)}|f(x)-f(y)|^p\,dm(y)\,dm(x)\,, \end{equation*} with a normalization independent of the centre; see also~\cite{BBM01,KoMa98,KST04} for related characterizations. In this chapter the power~$r^p$ is replaced by a scale function $S(x,r)$, and the factor $1/S(x,r)$ is placed inside the integral in~$x$. This is the functional $E_{p,S}(f,r)$ of~\eqref{eq:Dp}, a form of the variable regularity considered in~\cite[after Theorem~7.1]{Bau24}. The chapter rests on two inequalities for the functions~$u$ of the core, valid at small radii (Lemmas~\ref{lem:forwardPI} and~\ref{lem:relaxed-KS}): \begin{equation*} E_{p,\Psi_{P,p}}(u,r)\le C\int_\cS|\nabla u|^p\,d\nu\,,\qquad \int_\cS|\nabla u|^p\,d\nu\le C\liminf_{r\downarrow0}E_{p,\Psi_{C,p}}(u,r)\,. \end{equation*} The first follows from the Poincar\'e inequality by a covering argument, and the second from the discrete convolution of Lemma~\ref{lem:energy-cutoff-approximation}. They have three consequences. If the two scales are uniformly comparable along one sequence of radii, the gradient is closable (Theorem~\ref{thm:closability}). If the scales match, the difference quotients are weakly monotone: their supremum over the small radii is bounded by a multiple of their lower limit~\eqref{eq:KS-matching}. Finally, the difference quotients characterize $W^{1,p}(X,m)$ for $p>1$ and $BV(X,m)$ for $p=1$ (Theorems~\ref{thm:KS} and~\ref{thm:BV}). This characterization concerns the relaxation from compactly supported functions on the whole space, and it uses the fixed-radius lower bound~\eqref{eq:scale-nondegenerate} for $\Psi_{C,p}$, which holds on compact spaces and for scales independent of the centre. Example~\ref{ex:KS-infinity} shows that this lower bound cannot be omitted. Sections~\ref{sec:KS-critical} and~\ref{subsec:KS-GN} treat the critical exponents of the spaces defined by the power scales $r^{p\alpha}$, and Gagliardo--Nirenberg inequalities, under uniform power bounds on the scales. The proofs by controlled cutoffs are close to~\cite[Theorem~5.2]{Bau24}, \cite[Theorems~3.7--3.8]{BCY} and~\cite[Section~3]{Shimizu25}. Two features are specific to the present setting: the Poincar\'e and cutoff scales are kept separate, and closability is a conclusion, whereas in those references a closed form or a Sobolev space is given in advance. \subsection{The two basic inequalities}\label{subsec:KS-basic} \begin{lemma}\label{lem:forwardPI} If $m$ is doubling at small radii and \hP{p} holds with $\Psi_{P,p}$ satisfying~\eqref{eq:fixed-dilation-scale} and~\eqref{eq:nearby-scale}, then \begin{equation}\label{eq:forwardPI} E_{p,\Psi_{P,p}}(u,r)\le C\int_\cS|\nabla u|^p\,d\nu \qquad(u\in\cC_p) \end{equation} for sufficiently small~$r$, or for all $r>0$ under global hypotheses. For a structure closable at~$p$ the inequality extends to $f\in W^{1,p}(X,m)$, with $\nabla_pf$ in place of~$\nabla u$. \end{lemma} \begin{proof} This is the covering argument of~\cite[proof of Theorem~5.1]{Bau24}, also used in~\cite[Propositions~3.3 and~3.5]{Shimizu25}. Cover~$X$ by the balls $B_i=B(x_i,r)$ of Lemma~\ref{lem:cover}. For $x\in B_i$ one has $B(x,r)\subset2B_i$ and $m(2B_i)\le C\,m(B(x,r))$. Writing $u(x)-u(y)=(u(x)-u_{2B_i})-(u(y)-u_{2B_i})$ and integrating first in $y\in B(x,r)$ and then in $x\in B_i$, we get \begin{equation*} \int_{B_i}\fint_{B(x,r)}|u(x)-u(y)|^p\,dm(y)\,dm(x)\le C\int_{2B_i}|u-u_{2B_i}|^p\,dm\le C\,\Psi_{P,p}(x_i,2r)\int_{2\Lambda B_i\cap\cS}|\nabla u|^p\,d\nu\,, \end{equation*} by the Poincar\'e inequality on $2B_i$. For $x\in B_i$ we have $\Psi_{P,p}(x,r)\asymp\Psi_{P,p}(x_i,2r)$. Dividing the integrand on the left by $\Psi_{P,p}(x,r)$ and summing over $i$ gives~\eqref{eq:forwardPI} by bounded overlap. For fixed $r$, $E_{p,S}(\cdot,r)$ is lower semicontinuous in $L^p(m)$ by subsequence extraction and Fatou's lemma for the measure $\ind_{\{d(x,y)0$, or $r_1=\infty$ under global hypotheses, \begin{equation*} \sup_{00$ be sufficiently small, or let $r_1=\infty$ if all the hypotheses hold at every radius. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{KS:two} For every $f\in L^p(X,m)$, \begin{equation}\label{eq:KS} \sup_{01$ and the structure is closable at~$p$, then $\overline{\cE}_p=\cE_p$ on $L^p(X,m)$. \item\label{KS:sequence} Assume~\eqref{eq:scale-nondegenerate} for $\Psi_{C,p}$ and~\eqref{eq:sequential-matching}, and let $r_j\downarrow0$ be any sequence in $(0,r_1]$ on which $\sup_x\Psi_{P,p}(x,r_j)/\Psi_{C,p}(x,r_j)$ is bounded. Then, for every $f\in L^p(X,m)$, \begin{equation}\label{eq:KS-sequence} \sup_j E_{p,\Psi_{C,p}}(f,r_j) \le C\,\overline{\cE}_p(f) \le C'\liminf_{r\downarrow0} E_{p,\Psi_{C,p}}(f,r) \le C'\liminf_{j\to\infty} E_{p,\Psi_{C,p}}(f,r_j)\,. \end{equation} For $p>1$, the finiteness of any of these quantities characterizes $W^{1,p}(X,m)$. For $p=1$, it characterizes $BV(X,m)$. \end{enumerate} \end{theorem} \begin{proof} \ref{KS:two} The estimates involving the relaxed energy follow from Lemma~\ref{lem:relaxed-KS}. To compare the two difference quotients directly, choose $5\varepsilon_k\downarrow0$ realizing the lower limit in~\eqref{eq:KS}, which may be assumed finite. Fix $r$ in the stated range. On each $2\Lambda B_i$ in the proof of Lemma~\ref{lem:forwardPI}, $f_{\varepsilon_k}$ coincides with a finite sum of core functions on a neighbourhood of the ball: the number of $\varepsilon_k$-separated centres meeting its fixed enlargement is finite by doubling. By locality its gradient there is $G_{\varepsilon_k}f$. The covering proof therefore gives \begin{equation*} E_{p,\Psi_{P,p}}(f_{\varepsilon_k},r) \le C\|G_{\varepsilon_k}f\|_{L^p(\nu)}^p \le C' E_{p,\Psi_{C,p}}(f,5\varepsilon_k)\,. \end{equation*} Now $f_{\varepsilon_k}\to f$ in $L^p(m)$. Lower semicontinuity at each fixed $r$ gives~\eqref{eq:KS}. \ref{KS:closed} Approximation in the graph norm gives $\overline{\cE}_p\le\cE_p$, and the lower semicontinuity of $\cE_p$ (Proposition~\ref{prop:sobolev}\ref{sob:lsc}) gives the reverse inequality. \ref{KS:sequence} The inequality~\eqref{eq:KS}, the reverse estimate under~\eqref{eq:scale-nondegenerate}, and the uniform scale comparison on $(r_j)$ give~\eqref{eq:KS-sequence}. By Theorem~\ref{thm:closability} the structure is closable at~$p$, so that for $p>1$ the middle term is $\cE_p(f)$, which is finite exactly on $W^{1,p}(X,m)$. At $p=1$, $\overline{\cE}_1(f)=\|Df\|(X)$ by definition. \end{proof} \paragraph{Matching scales and weak monotonicity.} Under matching at $p$, \eqref{eq:KS} gives \begin{equation}\label{eq:KS-matching} \sup_{01$ and $BV$ for $p=1$. \begin{example}[Approximation at infinity]\label{ex:KS-infinity} Let $X=[0,\infty)$ with its usual distance, $dm=e^{-x}\,dx$, $d\nu=e^x\,dx$, and $\nabla u=u'$. For $r<1$, both densities are comparable on $B(x,2r)$ to their values at $x$, uniformly in $x$ and $r$. The interval Poincar\'e inequality and the linear distance cutoff therefore give doubling and matching scales $\Psi_{P,p}(x,r)=\Psi_{C,p}(x,r)=r^p e^{-2x}$. The function $1$ belongs to $L^p(m)$ and its difference quotients vanish. Its relaxed energy from $\cC_p$ is infinite. Indeed, every compactly supported Lipschitz function $u$ satisfies \begin{equation*} \int_x^\infty |u'(t)|^p e^t\,dt\ge c_p e^x |u(x)|^p\qquad(x\ge0)\,. \end{equation*} For $p>1$ this follows by applying H\"older's inequality to $u(x)=-\int_x^\infty u'(t)\,dt$ with $\int_x^\infty e^{-t/(p-1)}\,dt=(p-1)e^{-x/(p-1)}$. For $p=1$ use $e^t\ge e^x$ for $t\ge x$. If $u_j\to1$ in $L^p(m)$, then for every $R>0$ and all sufficiently large $j$ some $x_j\in[R,R+1]$ satisfies $|u_j(x_j)|\ge1/2$. Consequently $\liminf_j\int|u'_j|^p\,d\nu\ge 2^{-p}c_p e^R$ for every $R$. \end{example} \begin{corollary}\label{cor:density} Let $11$ satisfying~\eqref{eq:sequential-matching}. \subsection{Discrete gradients and compatibility of the exponents}\label{subsec:compatibility} The discrete gradient $G_\varepsilon f$ of~\eqref{eq:feps}, defined by the partition of unity~\eqref{eq:pou}, is independent of the exponent. Its limits at two exponents can therefore be compared along a common sequence. \begin{lemma}\label{lem:discrete-gradient-convergence} Let $1\le p<\infty$ and assume \hVD, \hB{} and \hP{p}. Suppose that $\sup_x\Psi_{P,p}(x,r_j)/\Psi_{C,p}(x,r_j)$ is bounded along a sequence $r_j\downarrow0$, and put $\varepsilon_j=r_j/5$. For $f\in W^{1,p}(X,m)$ and all sufficiently large $j$, \begin{equation}\label{eq:discrete-gradient-bound} \|G_{\varepsilon_j}f\|_{L^p(\nu)}\le C\,\|\nabla_pf\|_{L^p(\nu)}\,. \end{equation} For every bounded section~$g$ of~$\cH$ supported on a set of finite $\nu$-measure, \begin{equation}\label{eq:discrete-gradient-convergence} \lim_{j\to\infty}\int_\cS\langle G_{\varepsilon_j}f,g\rangle\,d\nu =\int_\cS\langle\nabla_pf,g\rangle\,d\nu\,. \end{equation} For $p>1$, $G_{\varepsilon_j}f\rightharpoonup\nabla_pf$ in $L^p(\cS,\cH,\nu)$. Under~\eqref{eq:matching} these estimates and limits hold for all sufficiently small $\varepsilon$ as $\varepsilon\downarrow0$. \end{lemma} \begin{proof} Theorem~\ref{thm:closability} gives closability at~$p$. Apply Lemma~\ref{lem:discrete}\ref{disc:energy} at $\varepsilon_j$ and Lemma~\ref{lem:forwardPI} at $5\varepsilon_j=r_j$, extending the latter inequality to $W^{1,p}$ by graph-norm density. This gives \begin{equation*} \|G_{\varepsilon_j}f\|_{L^p(\nu)}^p \le C E_{p,\Psi_{C,p}}(f,r_j) \le C\left(\sup_x\frac{\Psi_{P,p}(x,r_j)}{\Psi_{C,p}(x,r_j)}\right)\|\nabla_pf\|_{L^p(\nu)}^p \end{equation*} by~\eqref{eq:fixed-dilation-scale}. For $u\in\cC_p$ the discrete convolutions $u_{\varepsilon_j}$ converge uniformly to $u$ with a common Lipschitz bound, and $\nabla u_{\varepsilon_j}=G_{\varepsilon_j}u$. Since $g\in L^1(\nu)$, axiom~\ref{cond:G3} gives~\eqref{eq:discrete-gradient-convergence} for $u$. For $f\in W^{1,p}$ choose $u_k\in\cC_p$ converging to $f$ in the graph norm. Since $g\in L^{p'}(\nu)$, linearity and~\eqref{eq:discrete-gradient-bound} give \begin{equation*} \limsup_{j\to\infty}\left|\int_\cS\langle G_{\varepsilon_j}f-\nabla_pf,g\rangle\,d\nu\right| \le (C+1)\|\nabla_p(f-u_k)\|_{L^p(\nu)}\,\|g\|_{L^{p'}(\nu)}\,. \end{equation*} Let $k\to\infty$. For $p>1$ the stated test sections are dense in $L^{p'}(\cS,\cH,\nu)$, so~\eqref{eq:discrete-gradient-bound} also gives weak convergence. Under~\eqref{eq:matching} the scale ratio is bounded at every sufficiently small radius, and the argument applies to every sequence. \end{proof} \begin{proposition}\label{prop:compatibility} Assume \hVD, \hB{} and the Poincar\'e inequalities at $p,q\in[1,\infty)$. Suppose that there is a sequence $r_j\downarrow0$ such that $\sup_x\Psi_{P,h}(x,r_j)/\Psi_{C,h}(x,r_j)$ is bounded for both $h=p$ and $h=q$. Then $\nabla_pf=\nabla_qf$ $\nu$-almost everywhere for every $f\in W^{1,p}(X,m)\cap W^{1,q}(X,m)$. If moreover $p,q>1$, then $T_pf=T_qf$ $\nu$-almost everywhere. \end{proposition} \begin{proof} Use the same partitions of unity at $\varepsilon_j=r_j/5$ for both exponents. By Lemma~\ref{lem:discrete-gradient-convergence}, the pairings of $G_{\varepsilon_j}f$ with each bounded section $g$ of finite-measure support converge both to the pairing with $\nabla_pf$ and to the pairing with $\nabla_qf$. Since $\nu$ is $\sigma$-finite, the two gradients agree $\nu$-almost everywhere. Let now $p,q>1$. By Theorem~\ref{thm:closability} the structure is closable at both exponents, and the traces $T_p$ and~$T_q$ take their values in the same space $L^0(\cS,\nu)$. \emph{Bounded functions with compact support.} Suppose first that $f$ is bounded and vanishes $m$-almost everywhere outside a compact set. Only finitely many of the balls~$B_i$ meet this set, so the discrete convolution $f_{\varepsilon_j}$ is a finite sum; by~\eqref{eq:pou} it belongs to~$\cC_1$, and $\nabla f_{\varepsilon_j}=G_{\varepsilon_j}f$. By Lemma~\ref{lem:discrete}\ref{disc:Lp}, $f_{\varepsilon_j}\to f$ in $L^p(m)$ and in $L^q(m)$, and by~\eqref{eq:discrete-gradient-bound} the sequence is bounded in $W^{1,p}(X,m)$ and in $W^{1,q}(X,m)$. These spaces are reflexive (Proposition~\ref{prop:sobolev}\ref{sob:banach}). Hence a subsequence of the pairs $(f_{\varepsilon_j},f_{\varepsilon_j})$ converges weakly in $W^{1,p}(X,m)\times W^{1,q}(X,m)$, necessarily to $(f,f)$. By Mazur's lemma, there are convex combinations $w_k\in\cC_1$ of the functions $f_{\varepsilon_j}$ which converge to~$f$ in both graph norms. Since $T_pw_k=w_k|_\cS=T_qw_k$, the continuity of the traces (Proposition~\ref{prop:trace}\ref{trace:exists}) gives $T_pf=T_qf$. \emph{The general case.} For $n\ge1$ put $f^{(n)}=(f\wedge n)\vee(-n)$, and let $\chi\in\cC_1$ be equal to one on a neighbourhood of a compact set~$K$ (Lemma~\ref{lem:core-cutoff} at the exponent one). By Proposition~\ref{prop:trace}\ref{trace:chain} and Lemma~\ref{lem:closed-product}, the function $\chi f^{(n)}$ belongs to both Sobolev spaces, and \begin{equation*} T_h\bigl(\chi f^{(n)}\bigr)=\chi\,\bigl((T_hf\wedge n)\vee(-n)\bigr)\qquad(h=p,q)\,. \end{equation*} It is bounded and vanishes outside a compact set, so the first case gives $(T_pf\wedge n)\vee(-n)=(T_qf\wedge n)\vee(-n)$ $\nu$-almost everywhere on~$K$. Since $n$ and~$K$ are arbitrary, $T_pf=T_qf$ $\nu$-almost everywhere. \end{proof} Proposition~\ref{prop:compatibility} identifies the gradients and, for exponents greater than one, the traces on the intersection of two Sobolev spaces; it does not say when a function of $W^{1,p}(X,m)$ belongs to $W^{1,q}(X,m)$. \subsection{The endpoint \texorpdfstring{$p=1$}{p=1}}\label{subsec:KS-BV} At $p=1$ two spaces must be distinguished: the domain $W^{1,1}(X,m)$ of the closed gradient, and the space $BV(X,m)$ defined by relaxation. Under matching and~\eqref{eq:scale-nondegenerate}, difference quotients characterize $BV$. The comparison follows the relaxation method of~\cite{Miranda03,ADM14} and its version for trees~\cite[Theorem~3.8]{BCY}. For $BV$ energies obtained as $\Gamma$-limits of metric difference quotients, see~\cite{ARB25}. \begin{theorem}\label{thm:BV} Assume \hVD, \hB{} and~\hP{1}. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{BV:KS} For every $f\in L^1(X,m)$, \begin{equation*} \sup_{00$. For $1\le p<\infty$ and $\alpha\ge0$, the \emph{Korevaar--Schoen space} of order~$\alpha$ is \begin{equation}\label{eq:KS-power-space} KS^{\alpha,p}(X)=\left\{f\in L^p(X,m): [f]_{KS^{\alpha,p}}^p:=\sup_{00$, then \begin{equation}\label{eq:KS-critical-bracket} \max\left\{1,\frac{\beta_P}{p}\right\} \le\alpha_p^{\mathrm{dens}}\le\alpha_p\le\frac{\beta_C}{p}\,. \end{equation} \end{proposition} \begin{proof} \ref{kcs:dense} By Lemma~\ref{lem:forwardPI}, the class contains~$\cC_p$, which is dense in $L^p(X,m)$ by Lemmas~\ref{lem:energy-cutoff-approximation} and~\ref{lem:core-cutoff}. \ref{kcs:trivial} The hypothesis gives \begin{equation*} \liminf_{r\downarrow0}E_{p,\Psi_{C,p}}(f,r)=0\,. \end{equation*} By~\eqref{eq:KS}, $E_{p,\Psi_{P,p}}(f,r)=0$, and hence $D_p(f,r)=0$ for every sufficiently small~$r$. Fix such an~$r$. For $m$-almost every~$x$, $f=f(x)$ almost everywhere on $B(x,r)$; hence $f$ is almost everywhere equal to a constant~$c_z$ on each ball $B(z,r/2)$. Two such balls which intersect have an intersection of positive measure, because $m$ has full support, and therefore the same constant. Thus $z\mapsto c_z$ is locally constant, and constant because $X$ is connected. This is the argument of~\cite[Lemma~4.7]{Bau24}, with the two scales used separately. Taking $S(r)=r^{\beta_P}$ in~\ref{kcs:dense} and $S(r)=r^{p\alpha}$ with $p\alpha>\beta_C$ in~\ref{kcs:trivial} proves~\eqref{eq:KS-critical-bracket}, together with~\eqref{eq:KS-critical-basic}. \end{proof} Connectedness is essential in~\ref{kcs:trivial}. If $X$ has a component of finite measure at positive distance from its complement, the indicator of this component has zero oscillation at every sufficiently small radius without being constant. \begin{remark}\label{rem:KS-zero-gradient} Let $1\le p<\infty$ and suppose that the structure is closable at~$p$ and satisfies the hypotheses of Lemma~\ref{lem:energy-cutoff-approximation}, with~\eqref{eq:scale-nondegenerate} for $\Psi_{C,p}$. The cutoff approximation gives \begin{equation*} f\in L^p(X,m),\quad \liminf_{r\downarrow0}E_{p,\Psi_{C,p}}(f,r)=0 \quad\Longrightarrow\quad f\in W^{1,p}(X,m),\quad\nabla_p f=0\,. \end{equation*} Indeed, Lemma~\ref{lem:relaxed-KS}\ref{rks:upper} gives $\overline{\cE}_p(f)=0$. Thus there are $u_j\in\cC_p$ with $u_j\to f$ in $L^p(m)$ and $\nabla u_j\to0$ in $L^p(\nu)$. The pair $(f,0)$ belongs to the closed graph, including at $p=1$. In particular, if $\Psi_{C,p}(x,r)\asymp r^p$ uniformly in $x$ and the kernel of $\nabla_p$ consists of constants, every member of $KS^{\alpha,p}(X)$ with $\alpha>1$ is constant. By~\eqref{eq:KS-critical-basic}, $\alpha_p^{\mathrm{dens}}=\alpha_p=1$. \end{remark} \begin{theorem}\label{thm:KS-critical-matching} Assume the scale hypotheses of Theorem~\ref{thm:KS}, together with~\hB, \hP{p} and matching at~$p$. If \begin{equation*} \Psi_{C,p}(x,r)\asymp r^\beta\qquad(r\downarrow0)\quad\text{uniformly in }x\,, \end{equation*} then \begin{equation}\label{eq:KS-critical-matching} \alpha_p^{\mathrm{dens}}=\alpha_p=\frac\beta p\,. \end{equation} Both thresholds are attained: $KS^{\beta/p,p}(X)$ is dense in~$L^p(X,m)$ and contains nonconstant functions. Moreover, \begin{equation}\label{eq:KS-critical-domain} KS^{\beta/p,p}(X)= \begin{cases} W^{1,p}(X,m)\,,&p>1\,,\\ BV(X,m)\,,&p=1\,, \end{cases} \end{equation} and, for every $f\in L^p(X,m)$, \begin{equation}\label{eq:KS-critical-energy} \sup_{01$ and $\overline{\cE}_1(f)=\|Df\|(X)$. \end{theorem} \begin{proof} Matching gives $\Psi_{P,p}(x,r)\le Cr^\beta$ uniformly in $x$, and the lower bound on $\Psi_{C,p}$ gives~\eqref{eq:scale-nondegenerate}. By Proposition~\ref{prop:KS-critical-scales}, the dense core~$\cC_p$ lies in~$KS^{\beta/p,p}(X)$, and every~$KS^{\alpha,p}(X)$ with $\alpha>\beta/p$ consists of constants. This proves~\eqref{eq:KS-critical-matching} and the attainment. Theorems~\ref{thm:closability},~\ref{thm:KS} and~\ref{thm:BV} give~\eqref{eq:KS-critical-domain} and~\eqref{eq:KS-critical-energy}. No closability assumption is needed beyond matching and the stated hypotheses. \end{proof} At $p=1$, \eqref{eq:KS-critical-domain} identifies the space~$BV(X,m)$ defined by relaxation, not the domain of the closed gradient. The latter is~$W^{1,1}(X,m)$, which is a subspace of~$BV(X,m)$ by Theorem~\ref{thm:BV}. \paragraph{Power volume growth.} In the case of scales depending only on the radius, assume~\hV{} and the power bounds \begin{equation*} \Phi(r)\asymp r^Q\,,\qquad \Theta(r)\asymp r^s\,. \end{equation*} By~\eqref{eq:Theta}, $\Psi_{C,p}(r)\asymp r^{p+Q-s}$. At every matching exponent~$p$, Theorem~\ref{thm:KS-critical-matching} gives \begin{equation}\label{eq:KS-critical-dimensions} \alpha_p^{\mathrm{dens}}=\alpha_p=1+\frac{Q-s}{p}\,. \end{equation} By Proposition~\ref{prop:cutoffrestriction}, $s\le Q$, so that $\alpha_p\ge1$, with $\alpha_p>1$ exactly when $s1$ and~$BV$ for $p=1$, as in~\cite[Theorems~3.7--3.8]{BCY}. \item For the tree of $n$-dimensional cubes of Chapter~\ref{sec:riemannian-gluings}, Theorem~\ref{thm:cube-KS} gives \begin{equation*} \alpha_p^{\mathrm{dens}}=\alpha_p=1+\frac{Q-n}{p} \qquad(1\le p<\infty)\,, \end{equation*} with both thresholds attained, although the scales match only for $p>n$. Weak monotonicity at the critical exponent holds precisely for $p>n$, and the critical space is then $W^{1,p}$. For exponents of closability $11$, at an exponent of closability, $\overline{\cE}_p=\cE_p$ by Theorem~\ref{thm:KS}. \begin{theorem}\label{thm:KS-GN} Let $1\le p<\infty$, $\alpha,Q>0$ and $01$, assume $a<\infty$. Then \begin{equation}\label{eq:KS-GN} \|f\|_{L^a(m)} \le C\left(\overline{\cE}_p(f)+R^{-p\alpha}\|f\|_{L^p(m)}^p\right)^{\theta/p} \|f\|_{L^b(m)}^{1-\theta} \end{equation} for every $f\in L^p(m)\cap L^b(m)$ of finite relaxed energy. Here $R^{-p\alpha}=0$ when $R=\infty$. If $\theta=1$, the $L^b$ assumption and factor are omitted. The constant depends on $p,\alpha,Q,a,b,\theta,c_V,C_P$, and not on~$f$ or~$R$. \end{theorem} \begin{proof} We verify the hypotheses of~\cite[Section~2 and Theorem~9.1]{BCLS95}. \emph{Step 1: the averaging estimates.} The first assumption in~\eqref{eq:GN-inputs} and Jensen's inequality give, for $01$ and $j\in\mathbb Z$, set $f_j=(f-\rho^j)_+\wedge(\rho^{j+1}-\rho^j)$. We claim that \begin{equation}\label{eq:GN-truncation} \sum_{j\in\mathbb Z}\overline{\cE}_p(f_j)\le\overline{\cE}_p(f)\,,\qquad \sum_{j\in\mathbb Z}\|f_j\|_p^p\le\|f\|_p^p\,. \end{equation} The second inequality follows pointwise from $\sum_jf_j=f$. For the first, let $u\in\cC_p$ be nonnegative. By Lemma~\ref{lem:calculus}\ref{calc:chain}, $u_j\in\cC_p$ and $|\nabla u_j|=\ind_{\{\rho^j1$, irrespective of the sign of $Q-p\alpha$, the choice $a=p$, $b=1$ gives~\eqref{eq:KS-GN} with $\theta=(p-1)Q/(p\alpha+(p-1)Q)$. In the quadratic case this is the Nash inequality \begin{equation}\label{eq:KS-Nash} \|f\|_2^{2+4\alpha/Q} \le C\left(\overline{\cE}_2(f)+R^{-2\alpha}\|f\|_2^2\right) \|f\|_1^{4\alpha/Q}\,. \end{equation} The term involving $\|f\|_p$ disappears under global hypotheses. On a compact space it is necessary, since nonzero constants have zero energy. \paragraph{Critical and supercritical ranges.} If $p\alpha=Q$ and $p>1$, every finite $a>b\ge1$ is allowed, with $\theta=1-b/a$. The constants need not remain bounded as $a\to\infty$, and there is no general $L^\infty$ conclusion. The critical case $p=1$, $\alpha=Q$ is different: \begin{equation}\label{eq:KS-critical-BV} \|f\|_\infty\le C\bigl(\|Df\|(X)+R^{-\alpha}\|f\|_1\bigr)\,. \end{equation} The distinction is the endpoint in~\cite[Theorem~3.4]{BCLS95}. It can also be seen from the coarea formula, as follows. Let $u\in L^p(X,m)$ with $\sigma=m(\{u\ne0\})<\infty$. If $m(B(x,r))\ge2\sigma$ for every~$x$, then at least half of each ball $B(x,r)$ lies in $\{u=0\}$, so $D_p(u,r)\ge\frac12\|u\|_p^p$. Choosing~$r$ with $c_Vr^Q=2\sigma$ when this radius is less than~$R$, and otherwise using the lower-order term, gives \begin{equation}\label{eq:KS-support} \|u\|_p\le C\,\sigma^{\alpha/Q} \left(\overline{\cE}_p(u)+R^{-p\alpha}\|u\|_p^p\right)^{1/p}\,. \end{equation} At $p=1$ and $\alpha=Q$, applying this to the indicator of a set~$E$ of positive finite measure yields $P(E)+R^{-\alpha}m(E)\ge C^{-1}$. For $0t\}$ and $\{f<-t\}$ has positive measure. Integrating the last inequality in~$t$ and using Theorem~\ref{thm:global-coarea} proves~\eqref{eq:KS-critical-BV}. If $p\alpha>Q$, then for every $1\le b<\infty$ the inequality~\eqref{eq:KS-GN} holds with $a=\infty$ and \begin{equation*} \theta=\frac{pQ}{pQ+b(p\alpha-Q)}\,. \end{equation*} Interpolation gives the finite target exponents in~\eqref{eq:GN-exponents}. These are estimates of the essential supremum; the existence of a continuous representative is a separate question. \paragraph{Relation with the critical exponent.} Suppose that $X$ is connected and has at least two points, that the hypotheses of Theorem~\ref{thm:KS} hold, and that $\Psi_{P,p}(x,r)\asymp\Psi_{C,p}(x,r)\asymp r^{p\alpha}$ uniformly in $x$ at small radii. Then $\alpha=\alpha_p$ by Theorem~\ref{thm:KS-critical-matching}, and the relaxed energy in~\eqref{eq:KS-GN} is comparable to \begin{equation*} \liminf_{r\downarrow0}r^{-p\alpha_p}D_p(f,r)\,. \end{equation*} For $p>1$ it is also the energy of the closed gradient, and for $p=1$ it is the total variation. This is the intrinsic Korevaar--Schoen form of the inequalities. The truncation property~\eqref{eq:GN-truncation} cannot be obtained for the functional $\sup_rr^{-p\alpha}D_p(f,r)$ by interchanging a supremum over the radii and a sum over the truncations. In an abstract formulation with difference quotients, weak monotonicity supplies the passage from the supremum to the lower limit~\cite[Theorem~4.3]{Bau24}; compare the weak and strong inequalities for heat-kernel Besov spaces in~\cite[Theorems~6.3 and~6.9]{ABCRST1}. For scales independent of the centre, under the additional power laws $\Phi(r)\asymp r^Q$ and $\Theta(r)\asymp r^s$, matching at~$p$ gives $p\,\alpha_p=p+Q-s$. The Sobolev exponent in the subcritical range is therefore $pQ/(s-p)$; the critical condition is $p=s$, and the supercritical condition is $p>s$. Thus the threshold between the subcritical and the supercritical range is the exponent~$s$ of the gauge, not the volume exponent~$Q$. These statements require matching at the exponent under consideration. When the two scales differ, \eqref{eq:KS-GN} still uses the Poincar\'e exponent, but that exponent is not thereby identified with~$\alpha_p$. \chapter{The rank theorem}\label{sec:rank-chapter} The rank $n(x)=\dim H_x$ counts the gradients which are linearly independent at a point of the skeleton. If the structure is closable at $p=2$, it is the pointwise index of the Dirichlet form, and its essential supremum~$n_*$ is the martingale dimension of the associated diffusion (Proposition~\ref{prop:dirichlet}). This chapter proves that a common scale for the Poincar\'e inequality and the cutoff energy bound restricts the rank. The scale may depend on the centre of the ball. If its lower radial scaling exponent is uniformly greater than $p>1$, then $n_*1$. It uses the bound of the gradient by the Lipschitz constant, and not only a representation of energy measures; the references above supply the methods which we adapt, under different hypotheses. The chapter is organized as follows. Section~\ref{subsec:rank-p} states the results and explains the idea of the proof. Section~\ref{subsec:rank-metric} contains the metric input: a Lipschitz function oscillates linearly near almost every point where its gradient does not vanish, and $k$~independent gradients push the gradient measure forward to a measure on~$\R^k$ which is absolutely continuous. Section~\ref{subsec:rank-volume} deduces elementary bounds of the rank by the volume growth and the Poincar\'e scale. Section~\ref{subsec:rank-tools} proves two auxiliary lemmas, and Section~\ref{subsec:rank-proof} proves the rank theorem. \subsection{Statements}\label{subsec:rank-p}\label{subsec:rank-one} All assertions concern a rank which may vary from point to point. A lower radial scaling exponent~$a$ means that $\Psi(x,R)/\Psi(x,r)\ge c(R/r)^a$ for all $x\in X$ and $00$. \begin{theorem}\label{thm:rank-scales} Let $1p$ in~\eqref{eq:scale}, then \begin{equation*} n_*p$ and $C_\Psi\ge1$, \begin{equation}\label{eq:rank-one-scale} C_\Psi^{-1}\Bigl(\frac Rr\Bigr)^a \le\frac{\Psi(x,R)}{\Psi(x,r)} \le C_\Psi\Bigl(\frac Rr\Bigr)^b \qquad(x\in X,\ 01$. \end{corollary} The corollary is proved at the end of Section~\ref{subsec:rank-volume}. It gives a dichotomy for these uniform powers. Either the scale is the Euclidean one, $\Psi_{C,p}(r)=r^p$, and the gradient measure is absolutely continuous; or the scale is of higher order, and the rank is smaller than the exponent. For the tree of cubes of Chapter~\ref{sec:riemannian-gluings}, which has rank~$n$ and $s=nn$ (Proposition~\ref{prop:cube-two-scales}), in accordance with the corollary; this shows that the bound $n_*2$. Assume that, for fixed $\Lambda\ge2$ and $C<\infty$, each sufficiently small ball $B=B(x,r)$ admits $\chi\in\cF$ with $\ind_B\le\chi\le\ind_{\Lambda B}$ $m$-almost everywhere, and that \begin{align} \int_B|u-u_B|^2\,dm&\le C\,\Psi(x,r)\int_{\Lambda B}d\Gamma(u)\qquad(u\in\cF)\,,\label{eq:rank-one-PI}\\ \cE(\chi,\chi)&\le C\,\frac{m(B)}{\Psi(x,r)}\,.\label{eq:rank-one-Theta} \end{align} Then $n(x)=1$ for $\nu$-almost every~$x$. Equivalently, the Dirichlet form has index one, and the associated diffusion has martingale dimension one. \end{theorem} \begin{proof} By Proposition~\ref{prop:dirichlet}\ref{dir:energy}, \eqref{eq:rank-one-PI} restricted to $u\in\cC_2$ is~\eqref{eq:rank-p-PI}, and~\eqref{eq:rank-one-Theta} is the energy bound in~\eqref{eq:rank-p-cutoff}. Theorem~\ref{thm:rank-p}, with $p=2$ and cutoff functions in~$\cF$, gives $n_*<2$. Since $1\le n(x)\le n_*$ $\nu$-almost everywhere, $n(x)=1$ $\nu$-almost everywhere. The last assertion is Proposition~\ref{prop:dirichlet}\ref{dir:index}. \end{proof} \paragraph{Idea of the proof of Theorem~\ref{thm:rank-p}.} In~$\R^N$ with the Lebesgue measure, a point has zero $p$-capacity if and only if $N\ge p$. The proof transports this fact to the skeleton. Suppose that $n_*\ge p$, and let $N=\lceil p\rceil$. One chooses $N$ functions of the core with independent gradients, uses them as coordinates near a suitable point~$x$ of the skeleton, and rescales at a sequence of radii $r_j\to0$. The reference measure and the energy measure of the coordinates are pushed forward to~$\R^N$ by the rescaled coordinates, and one passes to weak limits $\eta$ and~$\kappa$. \begin{itemize} \item On a compact set of positive energy measure a coordinate has linear oscillation. This gives a lower bound for its energy on small balls and compares the scales at nearby centres. Since $a>p$, a packing estimate leaves, inside each rescaled ball, a ball of comparable radius with negligible coordinate energy. The Poincar\'e inequality makes the coordinates almost constant there. Thus \emph{$\eta$ has an atom.} The linear oscillation also gives $\eta$ positive mass away from the atom. \item The image~$\kappa$ of the energy measure satisfies an integration by parts inequality, inherited from the closability of the gradient in its dual form (Proposition~\ref{prop:sobolev}\ref{sob:div}). When $N\ge p$ this inequality implies that \emph{every point of~$\R^N$ has zero $p$-capacity with respect to~$\kappa$} (Lemma~\ref{lem:p-Hardy}). \item The Poincar\'e inequality passes to the pair $(\eta,\kappa)$. Applied to functions which approximate the indicator of the atom with vanishing energy, it gives a contradiction. \end{itemize} \begin{remark}\label{rem:rank-one-scope} \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item The proof of Theorem~\ref{thm:rank-p} uses the Poincar\'e inequality and the energy bound for the cutoff functions at the same scale~$\Psi$. It uses neither heat kernel estimates nor a cutoff Sobolev inequality. \item The Lipschitz bound~\ref{cond:G2} and the weak-$*$ continuity~\ref{cond:G3} enter through Lemma~\ref{lem:lower-oscillation}. Together with the Poincar\'e inequality, this lemma yields the lower bound~\eqref{eq:rank-p-lower} and the uniform Lipschitz bound~\eqref{eq:rank-p-Lip} at the rescaled radii. The result therefore concerns the specified gradient structure on the metric space $(X,d)$, rather than an arbitrary first-order calculus representing a Dirichlet form. \item The restriction on the rank uses the behaviour of the scale at small radii only. No restriction on the exponents at large radii is inferred from it. \item The conclusions concern gradients defined $\nu$-almost everywhere. They do not assert that $(X,d,m)$ is a Lipschitz differentiability space. In the setting of doubling Dirichlet spaces of~\cite[Theorem~4.1]{EM26Dim}, a common Poincar\'e and capacity scale of order strictly higher than~$r^2$ excludes this property. This distinction must be kept in mind when comparing the theorem with the identification of the analytic and martingale dimensions under Gaussian heat kernel bounds~\cite[Theorem~3.2]{Mur25Dim}. \end{enumerate} \end{remark} \subsection{The metric input: oscillation and Euclidean images}\label{subsec:rank-metric} The bound $|\nabla u|\le\Lip(u)$ has a pointwise converse at small scales: near almost every point where its gradient does not vanish, a Lipschitz function oscillates at least linearly at all small radii. This is the property of the metric which the rank theorem uses. Its proof relies on Schioppa's correspondence between derivations and Alberti representations, which we first recall. \paragraph{Alberti representations.} We use the formulation with curve fragments of~\cite[Section~2]{Bate15} and~\cite[Section~2]{Sc}. Let $(K,d)$ be a compact metric space and let $\mu$ be a finite Borel measure on~$K$. A \emph{fragment} in~$K$ is a bi-Lipschitz map $\gamma:T_\gamma\to K$ defined on a compact set $T_\gamma\subset\R$ of positive Lebesgue measure. An \emph{Alberti representation} of~$\mu$ is a probability measure~$P$ on the set of fragments, together with Borel measures $\mu_\gamma\ll\Haus^1\rest_{\gamma(T_\gamma)}$, such that \begin{equation*} \mu(E)=\int\mu_\gamma(E)\,dP(\gamma)\qquad\text{for every Borel set }E\subset K\,. \end{equation*} If $f:K\to\R$ is Lipschitz and $\gamma$ is a fragment, then $f\circ\gamma$ is a Lipschitz function on~$T_\gamma$, and its derivative $(f\circ\gamma)'(t)$ along~$T_\gamma$ exists at almost every $t\in T_\gamma$. Schioppa's theorem~\cite[Theorem~3.60]{Sc} asserts that if $D$ is a derivation of~$\Lip(K)$ with respect to~$\mu$, in the sense of Weaver, and if $Df\ge\delta>0$ $\mu$-almost everywhere for some Lipschitz function~$f$, then $\mu$ has an Alberti representation along whose fragments $f$ has speed bounded from below. \begin{lemma}[Lower oscillation]\label{lem:lower-oscillation} Let $(\cS,\nu,\nabla)$ satisfy~\ref{cond:gradient}, and let $f\in\Lip_b(X)$. For $\nu$-almost every $y\in\{\nabla f\ne0\}$ there are $c_y>0$ and $\rho_y>0$ such that \begin{equation*} \osc_{B(y,r)}f\ge c_y\,r\,,\qquad 00$ and $K_0\subset\{|\nabla f|\ge c\}$ is compact, then the conclusion of the lemma holds for $\nu$-almost every $y\in K_0$. \emph{Step 2: a derivation on~$K_0$.} Let $\mu_0=(h\nu)\rest_{K_0}$, a finite Borel measure on the compact metric space $(K_0,d)$. For a Lipschitz function~$v$ on~$K_0$, with Lipschitz constant~$L$ and $\|v\|_\infty=M$, the truncated McShane extension~\cite{McShane34} \begin{equation*} \tilde v(y)=\Bigl(\inf_{z\in K_0}\bigl(v(z)+L\,d(y,z)\bigr)\vee(-M)\Bigr)\wedge M\,,\qquad y\in X\,, \end{equation*} belongs to~$\Lip_b(X)$, is equal to~$v$ on~$K_0$, and satisfies $\Lip(\tilde v)\le L$. Define \begin{equation*} Dv=\frac{\langle\nabla f,\nabla\tilde v\rangle}{|\nabla f|^2}\qquad\text{on }K_0\,. \end{equation*} By Lemma~\ref{lem:calculus}\ref{calc:local}, $\nabla u=\nabla\tilde v$ $\nu$-almost everywhere on~$K_0$ for every $u\in\Lip_b(X)$ which is equal to~$v$ on~$K_0$. Hence $D$ is linear, $D(vw)=v\,Dw+w\,Dv$ by the Leibniz rule, $|Dv|\le c^{-1}\Lip(v)$ by~\ref{cond:G2}, and $D(f|_{K_0})=1$. For the weak-$*$ continuity, let $v_k\to v$ pointwise on~$K_0$ with $\sup_k(\|v_k\|_\infty+\Lip(v_k))<\infty$. Since $K_0$ is compact and the functions are equi-Lipschitz, the convergence is uniform. With common constants $L$ and~$M$ in the extension formula, the extensions~$u_k$ of~$v_k$ converge uniformly on~$X$ to the extension~$u$ of~$v$, and they are bounded in~$\Lip_b(X)$. For $g_0\in L^1(K_0,\mu_0)$, the field $g=g_0\,h\,\ind_{K_0}\nabla f/|\nabla f|^2$ belongs to $L^1(\cS,\cH,\nu)$, and~\ref{cond:G3} gives \begin{equation*} \int_{K_0}g_0\,Dv_k\,d\mu_0=\int_\cS\langle\nabla u_k,g\rangle\,d\nu\longrightarrow\int_\cS\langle\nabla u,g\rangle\,d\nu=\int_{K_0}g_0\,Dv\,d\mu_0\,. \end{equation*} Thus $D$ is a derivation of the Lipschitz algebra of~$K_0$ with respect to~$\mu_0$. \emph{Step 3: an Alberti representation.} By Schioppa's theorem~\cite[Theorem~3.60]{Sc}, applied on~$K_0$ to the derivation~$D$ and to the function $f|_{K_0}$, for which $D(f|_{K_0})=1$, there are $\delta_0>0$ and an Alberti representation $(P,(\mu_\gamma))$ of~$\mu_0$ such that, for $P$-almost every fragment~$\gamma$, \begin{equation*} |t-t'|\le d(\gamma(t),\gamma(t'))\le2\,|t-t'|\quad(t,t'\in T_\gamma)\,,\qquad(f\circ\gamma)'(t)\ge\delta_0\quad\text{for almost every }t\in T_\gamma\,. \end{equation*} \emph{Step 4: oscillation along a fragment.} Let \begin{equation*} G=\bigl\{y\in K_0:\ \text{there is }\rho>0\text{ such that }\osc_{B(y,r)}f\ge\tfrac{\delta_0}{12}\,r\text{ for all }00$, the set $T_\gamma\cap[t+\ell/2,t+\ell]$ is nonempty, and each of its points~$t'$ satisfies \begin{equation*} f(\gamma(t'))-f(\gamma(t))\ge\frac{\delta_0}{2}(t'-t)\ge\frac{\delta_0\ell}{4}\,,\qquad d(\gamma(t'),\gamma(t))\le2\ell\,. \end{equation*} Hence $\osc_{B(\gamma(t),3\ell)}f\ge\delta_0\ell/4$ for all small~$\ell$, that is, $\gamma(t)\in G$. Almost every point of~$T_\gamma$ has these two properties and $\gamma$ is Lipschitz, so $\Haus^1(\gamma(T_\gamma)\setminus G)=0$ and therefore $\mu_\gamma(K_0\setminus G)=0$. \emph{Step 5: conclusion.} Integrating with respect to~$P$ gives $\mu_0(K_0\setminus G)=\int\mu_\gamma(K_0\setminus G)\,dP(\gamma)=0$. Since $h>0$, we get $\nu(K_0\setminus G)=0$, which is the statement of Step~1 with $c_y=\delta_0/12$. \end{proof} The proof shows that the sets $\{y:\osc_{B(y,r)}f\ge r/i\text{ for all }00$, inner regularity gives a compact set~$K$ with $\mu(K)>0$ and constants $c_0,\rho_0>0$ such that \begin{equation}\label{eq:uniform-lower-oscillation} \osc_{B(y,r)}f\ge c_0\,r\qquad(y\in K,\ 00$ implies $\Haus^k(K)>0$. \end{lemma} \begin{proof} The inverse of the Gram matrix defines bounded measurable sections $V_1,\dots,V_k$ of~$\cH$ over~$K$, which are linear combinations of $\nabla f_1,\dots,\nabla f_k$ and satisfy $\langle V_i,\nabla f_j\rangle=\delta_{ij}$. For a Lipschitz function~$v$ on~$K$, let $\tilde v$ be a bounded Lipschitz extension of~$v$ to~$X$, and set $D_iv=\langle V_i,\nabla\tilde v\rangle$ on~$K$. By locality this does not depend on the extension. As in Step~2 of the proof of Lemma~\ref{lem:lower-oscillation}, $D_i$ is a derivation of the Lipschitz algebra of~$K$ with respect to $\mu\rest_K$: its weak-$*$ continuity follows from~\ref{cond:G3}, applied to extensions with common Lipschitz and supremum bounds and to the integrable field $g_0\,V_i\,(d\mu/d\nu)\,\ind_K$ for $g_0\in L^1(\mu\rest_K)$. Moreover $D_i(f_j|_K)=\delta_{ij}$. Schioppa's theorem~\cite[Theorem~3.60]{Sc}, applied to small cones about the coordinate directions of~$\R^k$, gives $k$ $F$-independent Alberti representations of~$\mu\rest_K$. By the theorem of De~Philippis, Marchese and Rindler~\cite[Lemmas~3.2--3.3]{DPMR}, in the form~\cite[Theorem~2.16]{Bate20}, $F_\#(\mu\rest_K)\ll\Leb^k$. Finally, if $\Haus^k(K)=0$, then $\Leb^k(F(K))=0$ because $F$ is Lipschitz, which is incompatible with $F_\#(\mu\rest_K)(F(K))=\mu(K)>0$. \end{proof} For strongly local regular Dirichlet forms, the corresponding absolute continuity on the set where the energy matrix is nondegenerate is the energy image density theorem of Eriksson-Bique and Murugan~\cite[Theorem~2.65]{EM25EID}. Lemma~\ref{xp:lem:derivations} uses the axioms of a derivation on the metric space and does not assume closability. \subsection{The rank, the volume and the Poincar\'e scale}\label{subsec:rank-volume} Lemma~\ref{xp:lem:derivations} bounds the rank by the Hausdorff dimension of the sets which carry the gradient measure. A lower bound for the volume of balls and a Poincar\'e inequality control this dimension. The comparison of independent directions with the Hausdorff measure follows~\cite[Theorem~2.17 and Corollary~2.20]{Bate20}. \begin{proposition}\label{prop:rank-Poincare} Let $(\cS,\nu,\nabla)$ be a gradient structure with $\nu\ne0$. Suppose that $\cC_p$ spans the fibres for some $1\le p<\infty$ and that, for some $Q>0$, $a>0$, $c,C>0$ and $\Lambda\ge1$, all sufficiently small balls satisfy \begin{equation*} m(B(x,r))\ge c\,r^Q\,,\qquad \int_{B(x,r)}|u-u_{B(x,r)}|^p\,dm \le C\,r^a\int_{B(x,\Lambda r)\cap\cS}|\nabla u|^p\,d\nu \quad(u\in\cC_p)\,. \end{equation*} Then \begin{equation}\label{eq:rank-Poincare} n_*\le Q+p-a\,. \end{equation} More generally, suppose that $m$ is doubling at small radii, $\mathrm{PI}_p(\Psi_{P,p})$ holds with uniform fixed-dilation comparison, and for some $s>0$, \begin{equation}\label{eq:rank-volume-scale} \frac{r^p m(B(x,r))}{\Psi_{P,p}(x,r)}\ge c r^s \qquad(x\in X,\ 00$. \emph{Step 1: independent gradients.} By Lemma~\ref{lem:rank-Gram}, applied to a spanning sequence in~$\cC_p$, there are $f_1,\ldots,f_N\in\cC_p$ whose gradients are linearly independent on a set of positive $\nu$-measure. Put $F=(f_1,\ldots,f_N)$ and \begin{equation*} w=\sum_{i=1}^N|\nabla f_i|^2\,,\qquad\mu=w^{p/2}\,\nu\,. \end{equation*} The measure~$\mu$ is finite because $\nabla f_i\in L^p(\nu)$. We fix Borel representatives of the gradients. On the set of independence $\nabla f_1\ne0$. By~\eqref{eq:uniform-lower-oscillation} and the inner regularity of~$\mu$, there are a compact set~$K$ with $\mu(K)>0$ and constants $c_0,r_K>0$ such that the Gram matrix $(\langle\nabla f_i,\nabla f_j\rangle)_{i,j}$ is uniformly positive definite on~$K$ and \begin{equation*} \osc_{B(y,r)}f_1\ge c_0\,r\qquad(y\in K,\ 0Q+p-a$, then $\Haus^N(K)\le\liminf_{r\to0}C\,r^{N-(Q+p-a)}=0$. \emph{Step 4: conclusion.} By Lemma~\ref{xp:lem:derivations}, applied to~$F$, $\mu$ and~$K$, one has $\Haus^N(K)>0$. By Step~3 this excludes $N>Q+p-a$, which proves~\eqref{eq:rank-Poincare}. With~\eqref{eq:rank-volume-scale} the same covering gives $N\le s$. Under~\hB, Proposition~\ref{prop:qualitative-cutoffs} gives spanning by~$\cC_p$. At matching power scales, \hP{p} holds with the scale $\Psi_{C,p}(r)=r^{Q+p-s}$, so $a=Q+p-s$ and $n_*\le s$. \end{proof} \begin{remark}[The rank and the volume]\label{rem:rank-volume} The lower bound $m(B(x,r))\ge c\,r^Q$ alone gives $n_*\le Q$. Indeed, if $N=n_*>0$, choose $N$ functions of~$\Lip_c(X)$ with independent gradients on a set of positive $\nu$-measure. With a finite measure equivalent to~$\nu$, extract a compact set~$K$ of positive measure on which their Gram matrix is uniformly positive definite. Lemma~\ref{xp:lem:derivations} gives $\Haus^N(K)>0$. The disjoint balls of radius $r/2$ centred at a maximal $r$-separated subset of~$K$ lie in a neighbourhood of~$K$ of finite $m$-measure, and each has measure at least $c\,r^Q$, so there are at most $C\,r^{-Q}$ centres. The balls of radius~$r$ cover~$K$, which gives $\Haus^Q(K)<\infty$ and $N\le Q$. For the related bound of the martingale dimension by the Hausdorff dimension under Gaussian heat kernel estimates, see~\cite[Theorem~3.2 and Corollary~3.3]{Mur25Dim}. The rank can be strictly smaller than the volume exponent even when $m=\nu$: Theorem~\ref{thm:cubical-limit} realizes $n_*=nn$, and Kleiner and Schioppa construct spaces with a Poincar\'e inequality, of arbitrary topological dimension, whose measurable tangent bundle is one-dimensional~\cite[Theorem~1.1]{KleinerSchioppa}. \end{remark} \begin{proof}[Proof of Corollary~\ref{cor:rank-p-power}] Hypothesis~\hV{} excludes isolated points, since $\Phi(r)\to0$ as $r\downarrow0$. We first show that $\nu\ne0$. If $\nu=0$, the Poincar\'e inequality and the full support of~$m$ make every function of~$\cC_p=\Lip_c(X)$ constant on each sufficiently small ball. Applied to $u=(1-d(x,\cdot)/\varepsilon)_+$, for small $\varepsilon$, this shows that every point~$x$ is isolated, a contradiction. Proposition~\ref{prop:rank-Poincare} gives $n_*\le s$. Proposition~\ref{prop:cutoffrestriction} gives $s\le Q$, and $\nu\ll m$ when $s=Q$; in that case $\Psi_{C,p}(r)=r^{p+Q-s}=r^p$. For $s0$ such that $m(B(y,5Rr))\le D\,m(B(y,r))$ for $y\in X$ and $0<5RrC_R\,\lambda(B(x,r))$ for all $00$. For $x\in Z\cap B(x_0,\rho_0)$ choose $r_x\in(0,\rho_0)$ with $\lambda(B(x,5r_x))\le\varepsilon\,m(B(x,r_x))$; this is possible because $m(B(x,5r))\le D\,m(B(x,r))$. The covering theorem gives pairwise disjoint balls $B(x_i,r_i)$, $r_i=r_{x_i}$, such that the balls $B(x_i,5r_i)$ cover $Z\cap B(x_0,\rho_0)$. These balls are contained in $B(x_0,2\rho_0)$ and have positive $m$-measure, so the family is countable, and \begin{equation*} \lambda^*\bigl(Z\cap B(x_0,\rho_0)\bigr)\le\sum_i\lambda(B(x_i,5r_i))\le\varepsilon\sum_im(B(x_i,r_i))\le\varepsilon\,m(B(x_0,2\rho_0))\,. \end{equation*} Letting $\varepsilon\to0$ and covering~$X$ by countably many balls $B(x_0,\rho_0)$ gives $\lambda^*(Z)=0$. \ref{dr:diff} \emph{Step 3: a maximal inequality.} We use the maximal operator with enlarged denominator of~\cite[Proposition~3.5]{Hy10}. For $g\in L^1(X,\lambda)$ and $x$ in the support of~$\lambda$, let \begin{equation*} \mathcal Mg(x)=\sup_{00$. Every point~$x$ with $\mathcal Mg(x)>t$ is the centre of a ball $B(x,r_x)$, $r_x<1$, with $\int_{B(x,r_x)}|g|\,d\lambda>t\,\lambda(B(x,5r_x))$. The covering theorem gives pairwise disjoint balls $B(x_i,r_i)$ of this type such that the balls $B(x_i,5r_i)$ cover $\{\mathcal Mg>t\}$; the family is countable because $\int_{B(x_i,r_i)}|g|\,d\lambda>0$. Hence \begin{equation}\label{eq:weak-type} \lambda^*\bigl(\{\mathcal Mg>t\}\bigr)\le\sum_i\lambda(B(x_i,5r_i))\le\frac1t\sum_i\int_{B(x_i,r_i)}|g|\,d\lambda\le\frac1t\,\|g\|_{L^1(\lambda)}\,. \end{equation} \emph{Step 4: differentiation.} Let $x$ be a point of the support of~$\lambda$, let $(r_j)$ satisfy~\eqref{eq:doubling-radii}, and let $u\in C_c(X)$. For $Rr_j<1$, the inequality $\lambda(B(x,r_j))\ge C_R^{-1}\lambda(B(x,5Rr_j))$ gives \begin{align*} \frac{1}{\lambda(B(x,r_j))}\int_{B(x,Rr_j)}|g-g(x)|\,d\lambda &\le\frac{C_R}{\lambda(B(x,5Rr_j))}\int_{B(x,Rr_j)}|g-u|\,d\lambda\\ &\quad+C_R\Bigl(\sup_{B(x,Rr_j)}|u-u(x)|+|u(x)-g(x)|\Bigr)\,, \end{align*} so that the upper limit of the left-hand side is at most $C_R\bigl(\mathcal M(g-u)(x)+|g-u|(x)\bigr)$. By~\eqref{eq:weak-type} and Chebyshev's inequality, for every $t>0$ the set of the points~$x$ at which this upper limit exceeds~$2C_Rt$, for some sequence satisfying~\eqref{eq:doubling-radii}, has outer measure at most $2t^{-1}\|g-u\|_{L^1(\lambda)}$. Since $\lambda$ is a finite Borel measure on a locally compact separable metric space, $C_c(X)$ is dense in $L^1(X,\lambda)$. Hence this set is $\lambda$-null for every~$t$, which proves~\ref{dr:diff}. \end{proof} \paragraph{Points of zero capacity.} In the Euclidean space~$\R^N$ with the Lebesgue measure, a point has zero $p$-capacity if and only if $N\ge p$. The next lemma gives the same sufficient condition for finite measures $\kappa$ satisfying the integration-by-parts bound~\eqref{eq:rank-p-ibp}. For example, if $d\kappa=|h|^p\,dx$ with $h\in C_c^\infty(\R^N)$, integration by parts and H\"older's inequality give~\eqref{eq:rank-p-ibp} with $C_0=p\|\nabla h\|_{L^p(dx)}$. The proof first derives, from the integration by parts, a Hardy inequality for~$\kappa$, by testing with the radial vector fields of the classical Hardy inequalities~\cite{Maz11}; the capacity estimate then follows with the usual cutoffs, which are logarithmic in the critical case $N=p$. The use of logarithmic cutoffs to exclude higher rank is present in~\cite[Section~3]{Hi13b} and~\cite[proof of Theorem~3.3]{Hi25Rank}. \begin{lemma}\label{lem:p-Hardy} Let $1p$, set \begin{equation*} V(w)=\frac{w}{|w|^p}\,,\qquad\text{so that}\qquad \diver V(w)=\frac{N-p}{|w|^p}\,,\qquad |V(w)|^{p'}=\frac{1}{|w|^p}\,. \end{equation*} If $N=p$, set instead \begin{equation*} V(w)=\frac{w}{|w|^p\,\ell(w)^{p-1}}\,,\qquad\text{so that}\qquad \diver V(w)=\frac{p-1}{|w|^p\,\ell(w)^p}\,,\qquad |V(w)|^{p'}=\frac{1}{|w|^p\,\ell(w)^p}\,. \end{equation*} In both cases $\diver V=c\,|V|^{p'}$ on $\{0<|w|<1\}$, where $c=N-p>0$ in the first case and $c=p-1>0$ in the second, and $\langle\nabla\ell,V\rangle<0$. \emph{Step 2: a Hardy inequality for~$\kappa$.} Choose $\chi\in C_c^\infty(B(0,3/4))$ with $0\le\chi\le1$ and $\chi=1$ on~$B(0,1/2)$, and a nonincreasing function $\theta\in C^\infty(\R)$ with $0\le\theta\le1$, $\theta=1$ on $(-\infty,1]$ and $\theta=0$ on $[2,\infty)$. For $\varepsilon>0$, the field \begin{equation*} \varphi_\varepsilon(w)=\chi(w)\,\theta(\varepsilon\ell(w))\,V(w) \end{equation*} vanishes for $|w|\le e^{-2/\varepsilon}$, and it extends by zero to a smooth compactly supported field on~$\R^N$. Its divergence is \begin{equation*} \diver\varphi_\varepsilon=\chi\,\theta(\varepsilon\ell)\,\diver V+\theta(\varepsilon\ell)\,\langle\nabla\chi,V\rangle+\varepsilon\,\chi\,\theta'(\varepsilon\ell)\,\langle\nabla\ell,V\rangle\,. \end{equation*} The last term is nonnegative, and the second is bounded by a constant~$C$ independent of~$\varepsilon$, because $\nabla\chi$ is supported in $\{1/2\le|w|\le3/4\}$. With \begin{equation*} I_\varepsilon=\int\chi\,\theta(\varepsilon\ell)\,|V|^{p'}\,d\kappa<\infty\,, \end{equation*} the hypothesis~\eqref{eq:rank-p-ibp} and the inequality $|\varphi_\varepsilon|^{p'}\le\chi\,\theta(\varepsilon\ell)\,|V|^{p'}$ give \begin{equation*} c\,I_\varepsilon-C\,\kappa(\R^N) \le\int\diver\varphi_\varepsilon\,d\kappa \le C_0\,I_\varepsilon^{1/p'}\,. \end{equation*} By Young's inequality, $I_\varepsilon$ is bounded independently of~$\varepsilon$. As $\varepsilon\downarrow0$, $\theta(\varepsilon\ell)$ increases to~$1$ on $\{0<|w|<1\}$, and the monotone convergence theorem gives \begin{equation}\label{eq:rank-p-Hardy} \int_{\{0<|w|<1/2\}}\frac{d\kappa(w)}{|w|^p}<\infty\quad(N>p)\,,\qquad \int_{\{0<|w|<1/2\}}\frac{d\kappa(w)}{|w|^p\log^p(1/|w|)}<\infty\quad(N=p)\,. \end{equation} \emph{Step 3: the case $N>p$.} Let $\phi_k$ be a smooth radial function which is equal to one on $B(0,2^{-k-1})$, vanishes outside $B(0,2^{-k})$, and satisfies $0\le\phi_k\le1$ and $|\nabla\phi_k|\le C2^k$. Then $\phi_k\to\ind_{\{0\}}$ pointwise, and by~\eqref{eq:rank-p-Hardy} \begin{equation*} \int|\nabla\phi_k|^p\,d\kappa\le C\int_{\{2^{-k-1}\le|w|\le2^{-k}\}}\frac{d\kappa(w)}{|w|^{p}}\longrightarrow0\,. \end{equation*} \emph{Step 4: the case $N=p$.} Choose a nondecreasing function $\tau\in C^\infty(\R)$ with $0\le\tau\le1$, $\tau=0$ on $(-\infty,1]$ and $\tau=1$ on $[2,\infty)$, and put $\phi_k(w)=\tau(\ell(w)/k)$ for $0<|w|<1$, $\phi_k(0)=1$, and $\phi_k=0$ outside the unit ball. Then $\phi_k\in C_c^\infty(\R^N)$, $\phi_k\to\ind_{\{0\}}$ pointwise, and $\nabla\phi_k$ is supported in $\{e^{-2k}\le|w|\le e^{-k}\}$, where $k\le\ell\le2k$ and \begin{equation*} |\nabla\phi_k(w)|^p\le\frac{C}{k^p\,|w|^p}\le\frac{C}{|w|^p\,\ell(w)^p}\,. \end{equation*} By the second part of~\eqref{eq:rank-p-Hardy} and dominated convergence, $\int|\nabla\phi_k|^p\,d\kappa$ tends to zero. \end{proof} \subsection{Proof of the rank theorem}\label{subsec:rank-proof} We prove Theorem~\ref{thm:rank-p} by contradiction. Throughout this section the hypotheses of the theorem are in force, and we suppose that $n_*\ge p$. Let $N=\lceil p\rceil$, so that $N\ge p$ and $\nu(\{n\ge N\})>0$. The argument adapts the approach by Euclidean images of~\cite[Section~3]{Hi13b} and~\cite[Proposition~4.3]{Hi25Rank}; compare also~\cite[Proposition~2.6 and Lemmas~3.4--3.5]{CM26Rank}. Two points differ from these references. In place of harmonic coordinates, whose energy flux is divergence-free, we use arbitrary functions of the core and approximate their flux by fields which have a divergence; such fields are dense because the gradient is closable. Second, the atom which produces the final contradiction comes from the bound of the gradient by the Lipschitz constant, through Lemma~\ref{lem:lower-oscillation}. \paragraph{Plan.} The proof has eight steps. \begin{itemize} \item Steps~1 to~3 choose $N$ coordinate functions, a base point~$x$ and radii $r_j\to0$, and normalize the coordinates, the reference measure and the energy measure at the scale~$r_j$. \item Steps~4 and~5 use the dual form of closability to show that the normalized coordinates have oscillation of order one on the ball $B(x,r_j)$. \item Step~6, the only one which uses $a>p$, produces a ball of radius comparable to~$r_j$ on which the normalized coordinates become constant. \item Steps~7 and~8 pass to the image measures on~$\R^N$ and conclude. \end{itemize} Constants denoted by $C$ and~$c$ do not depend on the index~$j$, and the estimates hold for $j$ large enough. \begin{proof}[Proof of Theorem~\ref{thm:rank-p}] \emph{Step 1: coordinates, and a lower bound for their energy measure.} By Lemma~\ref{lem:rank-Gram}, applied to a spanning sequence in~$\cC_p$, there are $f_1,\ldots,f_N\in\cC_p$ whose gradients are linearly independent on a Borel subset of $\{n\ge N\}$ of positive $\nu$-measure. Let \begin{equation*} F=(f_1,\ldots,f_N)\,,\qquad w=\sum_{i=1}^N|\nabla f_i|^2\,,\qquad \mu=w^{p/2}\,\nu\,,\qquad M_{il}=\frac{\langle\nabla f_i,\nabla f_l\rangle}{w}\,\ind_{\{w>0\}}\,. \end{equation*} The measure~$\mu$ is finite because $\nabla f_i\in L^p(\nu)$; it plays the role of the $p$-energy measure of the map~$F$. The matrix~$M$ is symmetric and nonnegative, with trace one on $\{w>0\}$, so $|M|\le1$, and it is positive definite on the set where the gradients are independent. As in Step~1 of the proof of Proposition~\ref{prop:rank-Poincare}, \eqref{eq:uniform-lower-oscillation} and inner regularity give a compact subset~$K$ of this set, with $\mu(K)>0$, and constants $c_0,\rho_0>0$ such that \begin{equation*} \osc_{B(y,r)}f_1\ge c_0\,r \qquad(y\in K,\ 00$ such that \begin{equation}\label{eq:rank-p-lower} \mu(B(y,r))\ge c\,\frac{r^p\,m(B(y,r))}{\Psi(y,r)} \qquad(y\in K,\ 04\Lip(f_1)(\Lambda+3)/c_0$ and let $r$ be sufficiently small that $Tr<\rho_0$ and the estimates below apply. There is a point $z\in B(x,Tr)$ with $d(x,z)>(\Lambda+3)r$, since otherwise the oscillation of $f_1$ on $B(x,Tr)$ would be at most $2\Lip(f_1)(\Lambda+3)r0\}\,,\qquad T_i=0\quad\text{on }\{w=0\}\,. \end{equation*} These fields are the components of the flux of the $p$-energy of~$F$: they satisfy $\langle T_i,\nabla f_l\rangle=M_{il}\,w^{p/2}$. Since $|T_i|^{p'}\le w^{(p-1)p'/2}=w^{p/2}$, they belong to $L^{p'}(\cS,\cH,\nu)$. The structure is closable at~$p$, so by Proposition~\ref{prop:sobolev}\ref{sob:div}, for all $i$ and $k\ge1$ there is $V_{ik}\in\cD_{p'}$, with $h_{ik}=\diver V_{ik}\in L^{p'}(X,m)$, such that \begin{equation*} \int_\cS|T_i-V_{ik}|^{p'}\,d\nu\le4^{-k}\,. \end{equation*} Choose $a_{ik}>0$ such that $\sum_{i,k}a_{ik}\|h_{ik}\|_{L^{p'}(m)}^{p'}<\infty$, and put \begin{equation*} \lambda=\mu+\sum_{i=1}^N\sum_{k\ge1}2^k\,|T_i-V_{ik}|^{p'}\,\nu +\sum_{i=1}^N\sum_{k\ge1}a_{ik}\,|h_{ik}|^{p'}\,m\,. \end{equation*} This is a finite measure, and for every Borel set~$E$, \begin{equation}\label{eq:rank-p-local-approx} \int_E|T_i-V_{ik}|^{p'}\,d\nu\le2^{-k}\lambda(E)\,,\qquad \int_E|h_{ik}|^{p'}\,dm\le a_{ik}^{-1}\lambda(E)\,. \end{equation} Thus the single measure~$\lambda$ controls~$\mu$ and the quality of all the approximations on every set. Let $R=3\Lambda^3$ and $\varrho=d\mu/d\lambda\in[0,1]$. We apply Lemma~\ref{lem:doubling-radii} to~$\lambda$ and to the bounded functions $\varrho$, $\varrho\,\ind_K$ and $\varrho\,M_{il}$. Since $\varrho>0$ $\mu$-almost everywhere and $\mu(K)>0$, we may choose $x\in K$, with $\varrho(x)>0$, and radii $r_j\downarrow0$ satisfying~\eqref{eq:doubling-radii}, for which the conclusion of Lemma~\ref{lem:doubling-radii}\ref{dr:diff} holds for these finitely many functions. We write \begin{equation*} B_j(b)=B(x,b\,r_j)\,,\qquad B_j=B_j(1)\,. \end{equation*} The differentiation gives \begin{align*} \mu(B_j)&=\varrho(x)\,\lambda(B_j)+o(\lambda(B_j))\,,\\ \mu(B_j(R)\setminus K)&=\int_{B_j(R)}(\varrho-\varrho\,\ind_K)\,d\lambda=o(\lambda(B_j))\,,\\ \int_{B_j(R)}|M-M(x)|\,d\mu&\le\int_{B_j(R)}\bigl(|\varrho M-\varrho(x)M(x)|+|\varrho-\varrho(x)|\bigr)\,d\lambda=o(\lambda(B_j))\,. \end{align*} Together with $\lambda(B_j(R))\le C_R\lambda(B_j)$, this implies \begin{gather}\label{eq:rank-p-density} \lambda(B_j(R))\le C\,\mu(B_j)\,,\qquad \mu(B_j(R)\setminus K)+\int_{B_j(R)}|M-M(x)|\,d\mu=o(\mu(B_j))\,. \end{gather} In words: at the scales~$r_j$, the measure~$\mu$ is doubling at~$x$, it is almost entirely carried by~$K$, and the matrix~$M$ is almost constant. In particular, the two bounds in~\eqref{eq:rank-p-local-approx} hold on $E=B_j(R)$ with $\lambda(E)$ replaced by $C\mu(B_j)$. \smallskip \emph{Step 3: normalization.} We normalize the Gram matrix as in the quadratic construction of~\cite[Proposition~2.6]{CM26Rank}. Let $A$ be the symmetric positive definite matrix with $A\,M(x)\,A=I$, and set \begin{equation*} \vartheta_j=\Bigl(\frac{\Psi(x,r_j)\,\mu(B_j)}{m(B_j)}\Bigr)^{1/p}\,,\qquad H_j=\frac{A\,(F-F(x))}{\vartheta_j}\,,\qquad m_j=\frac{m}{m(B_j)}\,,\qquad \mu_j=\frac{\mu}{\mu(B_j)}\,. \end{equation*} For $v\in\cC_p+\R$ define \begin{equation*} \cE_j(v)=\frac{\Psi(x,r_j)}{m(B_j)}\int_\cS|\nabla v|^p\,d\nu\,,\qquad T_{j,i}=\vartheta_j^{1-p}\sum_{l=1}^NA_{il}\,T_l\,. \end{equation*} The map $H_j:X\to\R^N$ is the rescaled coordinate map, $m_j$ and $\mu_j$ are the measures normalized to have mass one on~$B_j$, $\cE_j$ is the energy in the units in which a cutoff of~$B_j$ has energy of order one, and $T_{j,i}$ is the rescaled flux. The number~$\vartheta_j$ is chosen so that the rescaled energy measure of~$H_j$ is~$\mu_j$. Indeed, $\nabla H_j^l=\vartheta_j^{-1}\sum_kA_{lk}\nabla f_k$, and the definitions of~$T_l$ and~$M$ give \begin{equation}\label{eq:rank-p-matrix} \frac{\Psi(x,r_j)}{m(B_j)}\,\langle T_{j,i},\nabla H_j^l\rangle\,\nu =\frac{\Psi(x,r_j)}{m(B_j)\,\vartheta_j^p}\,(AMA)_{il}\,w^{p/2}\,\nu =(AMA)_{il}\,\mu_j\,. \end{equation} In the same way, using $|T_l|^{p'}\le w^{p/2}$ and $(p-1)p'=p$, \begin{equation}\label{eq:rank-p-field-bounds} \frac{\Psi(x,r_j)}{m(B_j)}\,|T_{j,i}|^{p'}\,\nu\le C\,\mu_j\,,\qquad \frac{\Psi(x,r_j)}{m(B_j)}\,|\nabla H_j^i|^p\,\nu\le C\,\mu_j\,. \end{equation} We record five further properties of the normalized objects. \begin{itemize} \item \emph{Mass and Gram matrix.} By~\eqref{eq:rank-p-density}, \begin{equation}\label{eq:rank-p-identity} \mu_j(B_j(R))\le C\,,\qquad \int_{B_j(R)}|AMA-I|\,d\mu_j\longrightarrow0\,. \end{equation} \item \emph{Lipschitz bound.} By~\eqref{eq:rank-p-lower}, applied at $y=x\in K$, $\vartheta_j\ge c\,r_j$. Since $F$ is Lipschitz, \begin{equation}\label{eq:rank-p-Lip} H_j(x)=0\,,\qquad |H_j(y)-H_j(y')|\le C\,\frac{d(y,y')}{r_j}\,,\qquad \sup_{B_j(b)}|H_j|\le C\,b\,. \end{equation} \item \emph{Volume.} Doubling gives, for every fixed $b\in(0,R]$, \begin{equation}\label{eq:rank-p-volume} 0p$. The lower bound~\eqref{eq:rank-p-lower} holds at every point of~$K$ and at every small scale, whereas the upper bound~\eqref{eq:rank-p-upper} holds at the scale~$r_j$. Comparing them at the scales $\delta r_j$ and~$r_j$ shows that $K$ occupies a small part of~$B_j$. Fix $0<\delta<1/(4\Lambda)$, and choose a maximal $\delta r_j$-separated family $(y_i)$ in $K\cap B_j$. The balls $B(y_i,\delta r_j/2)$ are pairwise disjoint and lie in~$B_j(2)$. Let $W_j=\bigcup_iB(y_i,(\Lambda+2)\delta r_j)$. By~\eqref{eq:rank-one-scale} at $y_i$ and~\eqref{eq:rank-centre-comparison} at $x$, \begin{equation*} \Psi(y_i,\delta r_j/2)\le C\delta^a\,\Psi(y_i,r_j) \le C\delta^a\,\Psi(x,r_j)\,. \end{equation*} Doubling, the lower bound~\eqref{eq:rank-p-lower} on the disjoint balls, and~\eqref{eq:rank-p-upper} now give \begin{align} m(W_j)&\le C\sum_i m(B(y_i,\delta r_j/2))\notag\\ &\le C\,\frac{\delta^a\Psi(x,r_j)}{\delta^p r_j^p}\,\mu(B_j(2)) \le C\,\delta^{a-p}\,m(B_j)\,,\label{eq:rank-one-packing} \end{align} with $C$ independent of $\delta$. Since $a>p$, we may fix~$\delta$ so small that $m(W_j)0\,. \end{equation} \smallskip \emph{Step 7: image measures.} Define finite measures on~$\R^N$ by \begin{equation*} \eta_j=(H_j)_\#\bigl(m_j\rest_{B_j(2\Lambda)}\bigr)\,,\qquad \kappa_j=(H_j)_\#(\zeta_j^p\,\mu_j)\,. \end{equation*} By~\eqref{eq:rank-p-Lip}, \eqref{eq:rank-p-volume} and~\eqref{eq:rank-p-identity}, their supports lie in a fixed compact ball and their masses are bounded. Along a subsequence they converge weakly to finite measures~$\eta$ and~$\kappa$. We prove three properties of the limits. \emph{(a) The measure~$\eta$ has an atom at~$z$ and is not concentrated at~$z$:} \begin{equation}\label{eq:rank-p-atom} 0<\eta(\{z\})<\eta(\R^N)\,. \end{equation} Indeed, \eqref{eq:rank-p-hole} and Chebyshev's inequality give, for every $\varepsilon>0$, \begin{equation*} \eta_j(\overline B(z,\varepsilon))\ge m_j(U_j)- \varepsilon^{-p}\int_{U_j}|H_j-z|^p\,dm_j\ge c_\delta-o(1)\,. \end{equation*} Since $\limsup_j\eta_j(E)\le\eta(E)$ for every closed set~$E$, letting $\varepsilon\downarrow0$ gives $\eta(\{z\})\ge c_\delta$. To show that~$\eta$ is not a point mass, put $\ell(w)=(A^{-1}w)_1$, so that $\ell(H_j)=(f_1-f_1(x))/\vartheta_j$. The lower oscillation of~$f_1$ on~$B_j$ and its Lipschitz bound give, as in Step~1, two balls of radius $\varepsilon r_j$ in~$B_j(2)$ on which the values of~$f_1$ are separated by $cr_j$, with fixed $c,\varepsilon>0$. Since $\vartheta_j\asymp r_j$ and each ball has $m_j$-measure bounded below by~\eqref{eq:rank-p-volume}, \begin{equation*} \inf_{b\in\R}\int|\ell(w)-b|^p\,d\eta_j(w)\ge c'>0\,. \end{equation*} Taking $b=\ell(z)$ and passing to the weak limit on the common compact support gives $\int|\ell(w)-\ell(z)|^p\,d\eta(w)\ge c'$. This proves~\eqref{eq:rank-p-atom}. \emph{(b) The measure~$\kappa$ satisfies the integration by parts inequality~\eqref{eq:rank-p-ibp}.} We adapt the integration by parts for image measures of~\cite[Section~3]{Hi13b} and~\cite[Lemma~3.4\textup{(2)}]{CM26Rank}. Fix $\varphi=(\varphi_1,\ldots,\varphi_N)\in C_c^\infty(\R^N,\R^N)$ and test~\eqref{eq:rank-p-pairing} with $v_i=\zeta_j^p\,\varphi_i(H_j)$. By~\eqref{eq:rank-p-field-bounds} and~\eqref{eq:rank-p-cutoffs-j}, $\cE_j(v_i)$ and $\|v_i\|_{L^p(m_j)}$ are bounded uniformly in~$j$, so the pairings tend to zero. Expanding the gradients by the chain rule~\eqref{eq:chain-several} and using~\eqref{eq:rank-p-matrix}, \begin{equation*} o(1)=\sum_{i,l}\int\zeta_j^p\,\partial_l\varphi_i(H_j)\,(AMA)_{il}\,d\mu_j +\frac{p\,\Psi(x,r_j)}{m(B_j)}\sum_i\int\zeta_j^{p-1}\varphi_i(H_j)\, \langle T_{j,i},\nabla\zeta_j\rangle\,d\nu\,. \end{equation*} By~\eqref{eq:rank-p-identity}, the first term is $\int\diver\varphi\,d\kappa_j+o(1)$. By H\"older's inequality, \eqref{eq:rank-p-field-bounds} and~\eqref{eq:rank-p-cutoffs-j}, the absolute value of the second term is at most \begin{equation*} C\sum_i\Bigl(\int\zeta_j^p\,|\varphi_i(H_j)|^{p'}\,d\mu_j\Bigr)^{1/p'} \cE_j(\zeta_j)^{1/p} \le C\Bigl(\int|\varphi|^{p'}\,d\kappa_j\Bigr)^{1/p'}\,. \end{equation*} Passing to the limit proves~\eqref{eq:rank-p-ibp} for~$\kappa$, with a constant independent of~$\varphi$. \emph{(c) The pair $(\eta,\kappa)$ satisfies a Poincar\'e inequality:} \begin{equation}\label{eq:rank-p-image-PI} \int_{\R^N}|\phi-\phi_\eta|^p\,d\eta \le C\int_{\R^N}|\nabla\phi|^p\,d\kappa \qquad\bigl(\phi\in C_c^\infty(\R^N)\bigr)\,, \end{equation} where $\phi_\eta=\int\phi\,d\eta/\eta(\R^N)$. As in~\cite[proof of Lemma~3.5]{CM26Rank}, apply~\eqref{eq:rank-p-PI} to $u=\phi(H_j)\in\cC_p+\R$ on $B_j(2\Lambda)$. The chain rule and the uniform bound on $AMA$ give \begin{equation*} \frac{\Psi(x,r_j)}{m(B_j)}\,|\nabla u|^p\,\nu =\langle\nabla\phi(H_j),AMA\,\nabla\phi(H_j)\rangle^{p/2}\mu_j \le C|\nabla\phi(H_j)|^p\,\mu_j\,. \end{equation*} Since $\Psi(x,2\Lambda r_j)\le C\Psi(x,r_j)$ and $\zeta_j=1$ on $B_j(2\Lambda^2)$, it follows that \begin{equation*} \int|\phi-\phi_{\eta_j}|^p\,d\eta_j\le C\int|\nabla\phi|^p\,d\kappa_j\,. \end{equation*} The masses $\eta_j(\R^N)$ converge to $\eta(\R^N)>0$ on the common compact support, so $\phi_{\eta_j}\to\phi_\eta$. Passing to the limit proves~\eqref{eq:rank-p-image-PI}. \smallskip \emph{Step 8: the contradiction.} Lemma~\ref{lem:p-Hardy} gives $0\le\phi_k\le1$ tending pointwise to $\ind_{\{z\}}$ with $\int|\nabla\phi_k|^p\,d\kappa\to0$. Apply~\eqref{eq:rank-p-image-PI} and pass to the limit by dominated convergence. The indicator $\ind_{\{z\}}$ has zero $L^p(\eta)$ oscillation about its mean, contradicting~\eqref{eq:rank-p-atom}. Thus $n_*1$ implies a $(1,q)$-Poincar\'e inequality for some $qp$, $0<\varepsilon_01$, then $\inf M\notin M$. \end{corollary} \begin{proof} If $p=\inf M>1$ belonged to~$M$, the theorem, with $b=1$, would give a matching exponent strictly below~$p$. \end{proof} For the tree of cubes of Chapter~\ref{sec:riemannian-gluings}, $M=(n,\infty)$, and every ball has infinite gradient measure (Propositions~\ref{prop:cube-geometry} and~\ref{prop:cube-two-scales}). Thus the set of matching exponents can be an open half-line with an endpoint larger than one, and the theorem does not extend to the endpoint. \paragraph{Strategy of the proof.} The proof has four parts, which occupy the next four sections. \begin{itemize} \item \emph{Scales and chains} (Section~\ref{me:sec:scale}). For scales independent of the centre, testing the Poincar\'e inequality gives~\eqref{me:eq:scale-comparison}. This comparison and a chaining argument along geodesics raise the exponent of the oscillation and remove the dilation of the ball. \item \emph{Cutoff modification} (Section~\ref{me:sec:modification}). A Lipschitz function is modified on a family of balls, with a gradient on these balls whose $L^b(\nu)$ norm is bounded by the sum of the gauges of the balls. \item \emph{The compact case} (Section~\ref{me:sec:compact}). On a compact space, the exponent of the gradient is lowered in a Poincar\'e inequality on the whole space. This is the core of the proof: the stopping-time argument of Keith and Zhong, with the gauge in place of the measure. \item \emph{Localization} (Section~\ref{me:sec:localization}). Each ball is enclosed in a uniform domain, whose completion is a compact space to which the compact case applies. \end{itemize} \subsection{Scale comparison and chains}\label{me:sec:scale} A cutoff at radius $R$, regularized at radius $r$, gives an averaged comparison for an arbitrary cutoff scale. \begin{lemma}\label{me:lem:ratio} Let $1\le b\le p<\infty$ and assume~\eqref{me:eq:B-b} and~\eqref{me:eq:matching-1p} at~$p$. For $00$, and that~\eqref{me:eq:matching-1p} holds with exponent $e$ for $v\in\cC_e$. If $D_m$ is a doubling exponent in~\eqref{eq:VD-power} and \begin{equation}\label{me:eq:summability} D_m\left(\frac1e-\frac1s\right)<\frac a e\,, \end{equation} then for every $u\in\cC_e$ and all sufficiently small balls $B=B(o,R)$, \begin{equation}\label{me:eq:sameball} \Bigl(\fint_B|u-u_B|^s\,dm\Bigr)^{1/s} \le C\,R\,\Bigl(\frac1{\Theta(B)}\int_{B\cap\cS}|\nabla u|^e\,d\nu\Bigr)^{1/e}\,. \end{equation} \end{lemma} \begin{proof} \emph{Step 1: a chain of balls.} Fix $0<\kappa<1/(2\Lambda)$. For $y\in B$ let $\gamma_y$ be a geodesic from~$y$ to~$o$, parametrized by arc length. Put $t_j=2^{-j}R$ and \begin{equation*} D_j(y)=B\bigl(\gamma_y(\min\{t_j,d(y,o)\}),\kappa\,t_j\bigr)\,,\qquad j\ge0\,. \end{equation*} Then $D_0(y)=B(o,\kappa R)=:D_0$ does not depend on~$y$, and the centres of the balls $D_j(y)$ converge to~$y$. Between $D_j(y)$ and $D_{j+1}(y)$ insert at most $C/\kappa$ balls of radius $\kappa\,t_{j+1}$ whose consecutive centres are at distance at most $\kappa\,t_{j+1}/2$ on~$\gamma_y$. Two consecutive balls of the resulting chain contain a common ball of comparable volume. If $\beta$ is a ball of the chain between the indices $j$ and~$j+1$, then \begin{equation*} \Lambda\beta\subset B\cap B(y,2t_j)\,, \end{equation*} because the distance from $\gamma_y(t)$ to $X\setminus B$ is at least~$t$ and $\Lambda\kappa<1/2$. \emph{Step 2: the chain estimate.} Apply~\eqref{me:eq:matching-1p}, with the exponent~$e$, to each ball of the chain, in order to bound the difference of the averages of~$u$ on two consecutive balls. Each ball of the chain between indices $j$ and~$j+1$ has radius comparable to $t_j$ and centre within $2t_j$ of $y$. Its measure is comparable to $m(B(y,t_j))$, and its scale is comparable to $\Psi_{C,e}(y,t_j)$ by~\eqref{eq:fixed-dilation-scale} and~\eqref{eq:nearby-scale}. Since $u$ is continuous, the averages along the chain converge to~$u(y)$. With the measure $\eta=\ind_{B\cap\cS}|\nabla u|^e\,\nu$, we obtain \begin{equation}\label{me:eq:chain} |u(y)-u_{D_0}| \le C\sum_{j\ge0} \Psi_{C,e}(y,t_j)^{1/e} \left(\frac{\eta(B(y,2t_j))}{m(B(y,t_j))}\right)^{1/e}\qquad(y\in B)\,. \end{equation} \emph{Step 3: integration.} For $00$, $m$ is a finite Borel measure on~$X$ with full support, $\nu$ is a $\sigma$-finite Borel measure carried by a Borel set~$\cS$, $\cH$ is a measurable field over~$\cS$, and $\nabla:\Lip(X)\to L^\infty(\cS,\cH,\nu)$ is a linear map which satisfies~\ref{cond:gradient}. \item $1\le bt\}$ is covered by stopping balls, and its size is measured by the number $\Theta_u(t)$, the largest sum of the gauges of disjoint stopping balls. The Poincar\'e inequality gives the weak-type bound \begin{equation*} t^p\,\Theta_u(t)\le C\int_\cS g^p\,d\nu\,. \end{equation*} The goal is to improve the exponent~$p$ in this bound to some $qt\}\quad(t>0)\,. \end{equation} The supremum is over the balls of radius at most~$D$ which contain~$x$. Whenever a ball of radius larger than~$D$ occurs in an argument, it is replaced by~$X$, with $r_X=D$. The function~$u^\sharp$ is lower semicontinuous, because the balls are open, so the sets~$U_t$ are open, and \begin{equation*} \lambda_0\le u^\sharp\le2\Lip(u)\,. \end{equation*} If $\lambda_0=0$, then $u$ is constant, because it is continuous and $m$ has full support, and~\eqref{me:eq:compact} holds. We assume $\lambda_0>0$. We shall use repeatedly that, by~\ref{me:C1}, if $B\subset B'$ and $r_{B'}\le Cr_B$, where $B'$ may be~$X$, then \begin{equation}\label{me:eq:omega-comparison} \omega(B)\le C\,\omega(B')\,. \end{equation} The first lemma says that $u$ is Lipschitz on the set where $u^\sharp$ is bounded. It is the Lipschitz case of the telescoping argument in~\cite[Lemma~4.12]{KLVZ}. \begin{lemma}\label{me:lem:good-lip} For every $t\ge\lambda_0$, \begin{equation}\label{me:eq:good-lip} |u(x)-u(y)|\le C\,t\,d(x,y)\qquad(x,y\in X\setminus U_t)\,, \end{equation} and there is $v_t\in\Lip(X)$ with $\Lip(v_t)\le Ct$, $\inf u\le v_t\le\sup u$ and $v_t=u$ on $X\setminus U_t$. Moreover \begin{equation}\label{me:eq:grad-sharp} g\le C\,u^\sharp\qquad\nu\text{-almost everywhere.} \end{equation} \end{lemma} \begin{proof} Let $x,y\in X\setminus U_t$ and $\rho=d(x,y)$. The balls $B(x,2^{-j}\rho)$, $j\ge0$, contain~$x$, so $\omega\le t$ on them, and \begin{equation*} |u_{B(x,2^{-j-1}\rho)}-u_{B(x,2^{-j}\rho)}|\le C\fint_{B(x,2^{-j}\rho)}|u-u_{B(x,2^{-j}\rho)}|\,dm\le C\,t\,2^{-j}\rho\,. \end{equation*} Summing over~$j$ gives $|u(x)-u_{B(x,\rho)}|\le Ct\rho$, and similarly at~$y$. The balls $B(x,\rho)$ and $B(y,\rho)$ are contained in $B(x,2\rho)$, on which $\omega\le t$. Hence $|u_{B(x,\rho)}-u_{B(y,\rho)}|\le Ct\rho$. This proves~\eqref{me:eq:good-lip}. If $X\setminus U_t\ne\varnothing$, let~$v_t$ be the McShane extension~\cite[pp.~43--44]{Hei01} of $u|_{X\setminus U_t}$ with the constant~$Ct$, truncated at $\inf u$ and $\sup u$. When $X\setminus U_t$ is empty, take~$v_t$ constant. By Lemma~\ref{lem:calculus}\ref{calc:local} and~\ref{cond:G2}, $g=|\nabla v_t|\le Ct$ $\nu$-almost everywhere on $\{u^\sharp\le t\}$. Applying this to the rational numbers $t\ge\lambda_0$ gives~\eqref{me:eq:grad-sharp}. \end{proof} \subsubsection{Stopping balls} The set~$U_t$ is covered by balls on which the oscillation exceeds~$t$ and which are maximal for this property. The stopping rule follows~\cite[Section~4.4]{KLVZ}. The difference with the classical argument is the way in which the size of~$U_t$ is measured: by the gauges of the stopping balls, and not by the measure of~$U_t$. \begin{definition}\label{me:def:stopping} Let $t\ge\lambda_0$. A ball~$B$ is a \emph{stopping ball at the level~$t$} if $\omega(B)>t$ and if there is a point $x\in B$ such that $\omega(B')\le t$ for every ball $B'\ni x$ with $r_{B'}\ge2r_B$. We put \begin{equation}\label{me:eq:Thetau} \Theta_u(t)=\sup\Bigl\{\sum_{B\in\mathcal B}\Theta(B):\ \mathcal B\text{ is a finite family of disjoint stopping balls at the level }t\Bigr\}\quad(t\ge\lambda_0)\,, \end{equation} and $\Theta_u(t)=\Theta(X)$ for $0t$. Since $x\in U_t$ and $t\ge\lambda_0$, we have $0<\rho_x\le D$. Choose such a ball with $r_B>\rho_x/2$. Every ball $B'\ni x$ with $r_{B'}\ge2r_B$ has $\omega(B')\le t$, and so has~$X$. Thus $B$ is a stopping ball. If $B$ is a stopping ball with the point~$x$, then $B\subset U_t$ by~\eqref{me:eq:sharp}, and the concentric ball~$2B$ contains~$x$, so that $\omega(B)\le C\omega(2B)\le Ct$ by~\eqref{me:eq:omega-comparison}. \ref{me:st:radius} If $r_B\ge D/12$, then $\omega(B)\le C\omega(X)=C\lambda_0$ by~\eqref{me:eq:omega-comparison}. Taking $L_0>C$ excludes such a stopping ball. \ref{me:st:weak} By~\ref{me:C4} and~\eqref{me:eq:ball-gauge}, a stopping ball satisfies $t^p<\omega(B)^p\le C\,\Theta(B)^{-1}\int_{B\cap\cS}g^p\,d\nu$. Sum over a disjoint family, and use $B\subset U_t$. \ref{me:st:cover} Apply the $5r$-covering theorem~\cite[Theorem~1.2]{Hei01} to the family of all stopping balls at the level~$t$, whose radii are at most~$D$ and which cover~$U_t$ by~\ref{me:st:exist}. The family $(b_i)$ is countable because $X$ is separable, and the bound on the sum follows from~\eqref{me:eq:Thetau} applied to its finite subfamilies. \end{proof} The next lemma compares the size of~$U_t$ inside stopping balls of a much lower level~$\lambda$ with the number~$\Theta_u(t)$. It is the only place where the scale comparison~\ref{me:C3} is used: it converts the reference measure of $B\cap U_t$, weighted by the gauge of the larger ball~$B$, into gauges of the smaller balls which cover~$U_t$. \begin{lemma}\label{me:lem:overlap} There is $H_0<\infty$ such that the following holds for $\lambda>\lambda_0/2$ and $t\ge H_0\lambda$. If $\lambda\ge\lambda_0$ and $\mathcal B$ is a finite family of disjoint stopping balls at the level~$\lambda$, then \begin{equation}\label{me:eq:overlap} \sum_{B\in\mathcal B}\frac{\Theta(B)}{m(B)}\,m(B\cap U_t)\le C\,\Theta_u(t)\,. \end{equation} If $\lambda_0/2<\lambda<\lambda_0$, the same inequality holds for $\mathcal B=\{X\}$. \end{lemma} \begin{proof} Let $(b_i)$ be the family of Lemma~\ref{me:lem:stopping}\ref{me:st:cover} at the level~$t$. By Lemma~\ref{me:lem:stopping}\ref{me:st:radius}, $r_{b_i}c\,t\ge c\,H_0\lambda$ by~\eqref{me:eq:omega-comparison}. This is impossible if $H_0$ is large. Thus $r_{b_i}ct$ by~\eqref{me:eq:omega-comparison}. Thus $\bigcup_i10b_i\subset U_{ct}$. Outside~$U_{ct}$ both the cutoff modification and the Lipschitz extension agree with~$u$, which proves the equality in~\eqref{me:eq:level-identity}. The last assertion follows from $F_t^p\le(Ct)^{p-b}F_t^b$ and from $g\in L^p(\nu)$. \end{proof} \subsubsection{The oscillation on the bad part of a ball} The next lemma bounds the oscillation of~$u$ on the part~$E$ of a ball which lies in~$U_t$ by the oscillation on the complementary part~$G$, up to a term which is small when the level~$t$ is much larger than the oscillation on the whole ball. It adapts the argument with balanced balls of~\cite[Lemma~4.15]{KLVZ}, whose predecessor is~\cite[Lemma~3.1.2]{KeZh08}. Its estimates use only the reference measure~$m$ and the oscillation of~$u$. \begin{lemma}\label{me:lem:retained} Let $C_0<\infty$. There are $\alpha\in(0,p)$ and $C<\infty$, depending also on~$C_0$, with the following property. Let $\lambda>0$, let $k\ge1$ be an integer with $t=2^k\lambda\ge\lambda_0$, and let $B$ be a ball, or~$X$, with $\omega(B)\le C_0\lambda$. Put $E=B\cap U_t$ and $G=B\setminus U_t$. If $m(E)D$, use~$X$ with $r_X=D$ and $m(X)\le C\,m(B'_j)$. Comparing the means on~$Q_j$ and~$O_j$ with the mean on~$5B'_j$, or on~$X$, gives \begin{equation*} \fint_{Q_j}|u-u_{O_j}|^p\,dm\le C\,t^p\,(r'_j)^p=C\,t^p\,R^p\,\rho_j^p\,. \end{equation*} On the other hand $Q_j\cup O_j\subset B$ and $\omega(B)\le C_0\lambda=C_02^{-k}t$, so that, by doubling, \begin{equation*} \fint_{Q_j}|u-u_{O_j}|^p\,dm\le C\,\frac{m(B)}{m(B'_j)}\,\lambda^p\,R^p\le C\,2^{-kp}\,t^p\,R^p\,\rho_j^{-d_D}\,. \end{equation*} The first bound is good for small balls and the second for large ones. Since $\min\{\rho^p,2^{-kp}\rho^{-d_D}\}\le2^{-kp^2/(p+d_D)}$ for every $\rho>0$, we obtain, with $\alpha=p^2/(p+d_D)\lambda_0/2$ and an integer $k\ge1$ with $2^k\ge H_0$, where $H_0$ is the constant of Lemma~\ref{me:lem:overlap}, we put \begin{equation}\label{me:eq:average} t_i=A_1\,2^i\,\lambda\quad(k\le i\le2k-1)\,,\qquad\bar w=\frac1k\sum_{i=k}^{2k-1}w_{t_i}\,. \end{equation} Since $U_{ct_i}\subset U_{2^k\lambda}$ and $t_i\le A_14^k\lambda$, Lemma~\ref{me:lem:level} gives \begin{equation}\label{me:eq:wbar} \bar w=u\quad\text{on }X\setminus U_{2^k\lambda}\,,\qquad|\nabla\bar w|\le g\,\ind_{\{u^\sharp\le A_14^k\lambda\}}+\frac1k\sum_{i=k}^{2k-1}F_{t_i}\,. \end{equation} The upper bounds $F_{t_i}\le Ct_i$ are geometrically spaced. Since $b0$. Since the numbers $t_i$ are geometrically spaced, the indices with $t_i1$, H\"older's inequality gives \begin{equation*} \frac S2\le \Bigl(\sum_i t_i^{p-b}\beta_i^b\Bigr)^{1/b} \Bigl(\sum_{t_i\ge S/(4C')}t_i^{-(p-b)/(b-1)}\Bigr)^{1-1/b} \le C\Bigl(\sum_i t_i^{p-b}\beta_i^b\Bigr)^{1/b}S^{-(p-b)/b}\,, \end{equation*} which is~\eqref{me:eq:geometric-sum}. For $b=1$, use $t_i^{p-1}\ge(S/(4C'))^{p-1}$ on the remaining indices. Apply~\eqref{me:eq:geometric-sum} to $\beta_i=F_{t_i}$ at each point, integrate using~\eqref{me:eq:level-estimates}, and divide by~$k^p$. \end{proof} The following recurrence corresponds to~\cite[equation~(4.24)]{KLVZ}, with the gauge of the stopping balls in place of the measure of the level sets. \begin{lemma}\label{me:lem:recurrence} Let $\lambda>\lambda_0/2$ and let $k\ge1$ be an integer with $2^k\ge H_0$. Then, with the constant~$\alpha$ of Lemma~\ref{me:lem:retained} for a suitable~$C_0$, \begin{equation}\label{me:eq:recurrence} \lambda^p\,\Theta_u(\lambda)\le C\,2^{-k\alpha}\,(2^k\lambda)^p\,\Theta_u(2^k\lambda)+\frac C{k^p}\sum_{i=k}^{2k-1}t_i^p\,\Theta_u(t_i)+C\int_{\{\lambda\lambda$, \begin{equation*} \lambda^p\,r_B^p\,m(B)<\int_B|u-u_B|^p\,dm\le2^p\int_B|u-u_G|^p\,dm=2^p\int_E|u-u_G|^p\,dm+2^p\int_G|u-u_G|^p\,dm\,. \end{equation*} By~\eqref{me:eq:wbar}, $\bar w=u$ on~$G$. Applying~\ref{me:C4} to~$\bar w$ gives \begin{equation*} \int_G|u-u_G|^p\,dm=\int_G|\bar w-\bar w_G|^p\,dm\le2^p\int_B|\bar w-\bar w_B|^p\,dm\le C\,\frac{r_B^p\,m(B)}{\Theta(B)}\int_{B\cap\cS}|\nabla\bar w|^p\,d\nu\,. \end{equation*} With Lemma~\ref{me:lem:retained} this gives \begin{equation*} \lambda^p\,\Theta(B)\le C\,2^{-k\alpha}\,t^p\,\frac{\Theta(B)}{m(B)}\,m(B\cap U_t)+C\int_{B\cap\cS}|\nabla\bar w|^p\,d\nu\,. \end{equation*} \emph{Summation.} We sum over $B\in\mathcal B$. The first terms are bounded by Lemma~\ref{me:lem:overlap}. The balls are disjoint and contained in~$U_\lambda$, so by~\eqref{me:eq:wbar} and Lemma~\ref{me:lem:averaged-energy}, \begin{equation*} \sum_{B\in\mathcal B}\int_{B\cap\cS}|\nabla\bar w|^p\,d\nu\le C\int_{\{\lambda0$. Put \begin{equation*} J=\sup_{\lambda>\lambda_0/2}\lambda^q\,\Theta_u(\lambda)\,. \end{equation*} For $\lambda\ge\lambda_0$, Lemma~\ref{me:lem:stopping}\ref{me:st:weak} gives \begin{equation*} \lambda^q\,\Theta_u(\lambda)\le C\lambda_0^{q-p}\int_\cS g^p\,d\nu\,. \end{equation*} Since $\Theta_u(\lambda)=\Theta(X)$ when $\lambda_0/2<\lambda<\lambda_0$, it follows that \begin{equation}\label{me:eq:I-lower} \Theta(X)\,\lambda_0^q\le J<\infty\,. \end{equation} Multiply~\eqref{me:eq:recurrence} by $\lambda^{q-p}$. Each of the levels $2^k\lambda$ and~$t_i$ belongs to the range of the supremum defining~$J$, so the first two terms are bounded by \begin{equation*} \Bigl(C\,2^{k(p-q-\alpha)}+C\,k^{1-p}A_1^{p-q}4^{k(p-q)}\Bigr)J\,. \end{equation*} On the set of integration in the last term, \eqref{me:eq:grad-sharp} gives $g\le Cu^\sharp\le CA_14^k\lambda$, and hence \begin{equation*} \lambda^{q-p}g^p\le (CA_14^k)^{p-q}g^q\,. \end{equation*} Taking the supremum over $\lambda>\lambda_0/2$, we obtain \begin{equation}\label{me:eq:absorption} J\le\Bigl(C\,2^{k(p-q-\alpha)}+C\,k^{1-p}A_1^{p-q}4^{k(p-q)}\Bigr)J+C_k\int_\cS g^q\,d\nu\,. \end{equation} Since $p>1$ and $\alpha>0$, first choose $k$ so that $2^k\ge H_0$ and $C2^{-k\alpha}+Ck^{1-p}\le1/4$. Then choose $\varepsilon_0\in(0,p-b)$ so small that the coefficient of~$J$ in~\eqref{me:eq:absorption} is at most~$1/2$ whenever $00$ such that, for every ball $B(o,R)$ with $R0$, and that it does not require $\nu(\Omega)$ to be finite. \begin{lemma}\label{me:lem:inheritance} Assume the hypotheses of Theorem~\ref{me:thm:self-improvement} and let~$\Omega$ be the domain of Lemma~\ref{me:lem:envelope} for a ball $B(o,R)$ with $R0$ is a small structural constant, and let $(Y,d_Y)$ be the completion of~$\Omega$ for its inner length metric~$d_\Omega$. Let \begin{equation*} m_Y=m\rest_\Omega\,,\qquad\nu_Y=\nu\rest_\Omega\,,\qquad\cS_Y=\Omega\cap\cS\,,\qquad\nabla_Yv=(\nabla\widetilde v)|_{\Omega\cap\cS}\quad(v\in\Lip(Y))\,, \end{equation*} where $m_Y$ and~$\nu_Y$ give no mass to $Y\setminus\Omega$, the field over~$\cS_Y$ is the restriction of~$\cH$, and $\widetilde v\in\Lip_b(X)$ is an extension of~$v$. Then $(Y,d_Y)$ is a compact geodesic space with $\diam Y\asymp R$, the map~$\nabla_Y$ is well defined and satisfies \ref{cond:gradient}, and $(Y,d_Y,m_Y,\nu_Y,\nabla_Y)$ satisfies \ref{me:C1}--\ref{me:C4} with the restricted scale $\Psi_{C,2}$, the gauge $\Theta_Y(B_Y(z,r))=r^2m_Y(B_Y(z,r))/\Psi_{C,2}(z,r)$, and a structural constant~$C_*$. \end{lemma} \begin{proof} \emph{Step 1: the space.} By~\eqref{me:eq:uniform}, $d\le d_\Omega\le A_2\,d$ on~$\Omega$. Hence $Y$ is identified with the closure of~$\Omega$ in~$X$, which is compact because $X$ is proper, and $d\le d_Y\le A_2\,d$ on~$Y$. The completion of a length space is a length space, and a compact length space is geodesic~\cite[Part~I, Chapter~3]{BH}. Since $R0$ such that for every $z\in Y$ and $0\diam Y/2$, use $Y\subset B(z,2\diam Y)$ and the doubling property of~$m$ to obtain the same conclusion. This is~\ref{me:C1}. Moreover $m_Y(Y)\asymp m(B(o,R))$ and $\diam Y\asymp R$. For the cutoffs, set $\delta_1=1/(8A_2)$ and choose a maximal family $z_1,\ldots,z_N$ in $\Omega\cap B_Y(z,r)$ which is $\delta_1r$-separated for~$d_Y$. The inherited doubling gives $N\le C$. The restriction to~$Y$ of \begin{equation*} \psi=\max_{i\le N}\psi_{z_i}^{2\delta_1r} \end{equation*} is equal to one on $B_Y(z,r)$, vanishes outside $B_Y(z,2r)$, and has Lipschitz constant at most~$C/r$ for~$d_Y$. By~\eqref{eq:gradient-max}, \eqref{me:eq:B-b} and~\eqref{eq:fixed-dilation-scale}, \begin{equation*} \int|\nabla_Y\psi|^b\,d\nu_Y \le C\sum_{i\le N} \frac{(2\delta_1r)^{2-b}\,m(B(z_i,2\delta_1r))} {\Psi_{C,2}(z_i,2\delta_1r)} \le C\,\frac{\Theta_Y(B_Y(z,r))}{r^b}\,. \end{equation*} The last inequality uses $d(z_i,z)\le d_Y(z_i,z)\le r$,~\eqref{eq:nearby-scale} and~\eqref{me:eq:inherited-volume}. This proves~\ref{me:C2}. Since $d\le d_Y$, the ambient comparison~\eqref{me:eq:scale-comparison} also gives~\ref{me:C3} on $Y$. \emph{Step 5: a Poincar\'e inequality on~$Y$.} Following the chain method for John domains~\cite[Theorems~9.3 and~9.10]{HK}, we prove that for $v\in\Lip(Y)$ with $\nabla_Yv\in L^p(\nu_Y)$ and $D'=B_Y(z,r)$, $00$. As in the proof of Lemma~\ref{me:lem:sameball}, $D_0(y)=B(z_r,\kappa C_1r)$ does not depend on~$y$, consecutive balls are joined by boundedly many balls of radius~$\kappa t_{j+1}$ centred on~$\gamma_y$, and by~\eqref{me:eq:john} and~\eqref{me:eq:corkscrew} the closed $\Lambda$-dilates of all these balls are compact subsets of~$\Omega$, contained in $B_Y(z,C_2r)\cap B(y,C_3t_j)$. The inequality~\eqref{me:eq:matching-1p} of~$X$ can be applied to~$v$ on each of these balls~$\beta$, although an extension~$\widetilde v$ may have infinite energy outside~$\Omega$. Indeed, by compactness there is a finite maximum~$\zeta$ of cutoff functions of~\eqref{me:eq:B-b}, with support in~$\Omega$, equal to one on the closure of~$\Lambda\beta$. Then $\zeta\widetilde v\in\cC_p$: in $\nabla(\zeta\widetilde v)=\zeta\nabla\widetilde v+\widetilde v\,\nabla\zeta$ the first term vanishes outside~$\Omega$ and is $p$-integrable on~$\Omega$, and the second is $p$-integrable by~\eqref{me:eq:B-b} and the Lipschitz bound. Moreover $\nabla(\zeta\widetilde v)=\nabla_Yv$ on~$\Lambda\beta$. The telescoping argument gives, for $y\in D'\cap\Omega$, \begin{equation*} |v(y)-v_{D_0}|\le C\sum_{j\ge0} \left(\frac{\Psi_{C,p}(y,t_j)}{m(B(y,t_j))}\, \eta(B(y,C_3t_j))\right)^{1/p}\,, \qquad \eta=\ind_{B_Y(z,C_2r)}|\nabla_Yv|^p\,\nu_Y\,. \end{equation*} The denominator is the volume for~$m$, since the balls of the chain lie in~$\Omega$. Using $m_Y\le m$, Fubini's theorem and the doubling property of~$m$ give \begin{equation*} \int_{D'}\frac{\eta(B(y,C_3t))}{m(B(y,t))}\,dm_Y(y) \le C\int\frac{m(B(w,C_3t))}{m(B(w,t))}\,d\eta(w) \le C\,\eta(Y)\,. \end{equation*} Here $d(y,z)\le r$ and $t_j=2^{-j}C_1r$, so~\eqref{me:eq:decay} at radius $C_1r$ and fixed-dilation comparability give $\Psi_{C,p}(y,t_j)\le C2^{-jp}\Psi_{C,p}(z,r)$. Minkowski's inequality and the preceding integral bound imply \begin{equation*} \|v-v_{D_0}\|_{L^p(D',m_Y)} \le C\,\Psi_{C,p}(z,r)^{1/p}\,\eta(Y)^{1/p}\,. \end{equation*} This proves~\eqref{me:eq:inherited-pi}. \emph{Step 6: removal of the dilation.} Apply the proof of Lemma~\ref{me:lem:sameball}, with $e=s=p$, in the compact geodesic space~$Y$, using the inherited doubling, \eqref{me:eq:inherited-pi}, and the scale comparison~\eqref{me:eq:decay}. The Fubini estimate now has $m_Y(B_Y(y,t))$ in its denominator. The comparison of the volumes of neighbouring balls follows from the inherited doubling, including radii comparable to~$\diam Y$. This gives~\ref{me:C4} on every ball. For $B=Y$, join all points to a fixed centre and use the same chains with $R=\diam Y$; there is no restriction on their dilates. \end{proof} \begin{proof}[Proof of Theorem~\ref{me:thm:self-improvement}] For a sufficiently small ball $B=B(o,R)$, let~$\Omega$ and~$Y$ be as in Lemma~\ref{me:lem:inheritance}. Use $o$ as the centre of $Y$. With $D=\diam Y\asymp R$ we have $\Theta_Y(Y)=D^2 m(\Omega)/\Psi_{C,2}(o,D)\asymp\Theta(B)$, by doubling,~\eqref{eq:fixed-dilation-scale} and $B\subset\Omega\subset2B$. Let $q\in[p-\varepsilon_0,p)$ and $u\in\cC_q$, where $\varepsilon_0$ is given by Proposition~\ref{me:prop:compact} for the constant~$C_*$ of Lemma~\ref{me:lem:inheritance}. We apply Proposition~\ref{me:prop:compact} to the restriction of~$u$ to~$Y$. The norms on~$Y$ are computed with $m\rest_\Omega$ and $\nu\rest_\Omega$, so \begin{equation*} \Bigl(\fint_B|u-u_B|^p\,dm\Bigr)^{1/p} \le C\Bigl(\fint_\Omega|u-u_\Omega|^p\,dm\Bigr)^{1/p} \le C\,R\left(\frac1{\Theta(B)} \int_{2B\cap\cS}|\nabla u|^q\,d\nu\right)^{1/q}\,. \end{equation*} For $q=p$ the same inequality holds by Lemma~\ref{me:lem:sameball} with $e=s=p$. Bounding the $L^1$ oscillation on the left-hand side by the $L^p$ oscillation, we obtain the hypothesis of Lemma~\ref{me:lem:sameball} at the exponent $e=q$, for every $q\in[p-\varepsilon_0,p]$. Choose $s>p$ and decrease $\varepsilon_0$ so that $D_m(1/(p-\varepsilon_0)-1/s)<1$. Then~\eqref{me:eq:sameball} gives~\eqref{me:eq:improved} for every such~$q$. The chain estimate is uniform in~$q$ on this interval, by~\eqref{me:eq:decay} and the strict inequality~\eqref{me:eq:summability}. \end{proof} \clearpage\part{Dirichlet spaces and heat kernels}\label{part:heat} \section{Dirichlet spaces and Harnack inequalities}\label{sec:harnack-chapter} This part of the book studies the heat equation. Its first three chapters are independent of Part~\ref{part:general}: they concern a strongly local regular Dirichlet form on a metric measure space, without assuming that it comes from a gradient structure. The present chapter and Chapter~\ref{sec:hk-chapter} derive Harnack inequalities and heat kernel estimates from a Poincar\'e inequality and a cutoff Sobolev inequality at prescribed scales. Chapter~\ref{sec:spectral-chapter} proceeds in the opposite direction: it starts from the elliptic Harnack inequality, defines the scale by the Dirichlet spectrum of the balls, and characterizes the two-sided estimates of the heat kernel. Chapter~\ref{sec:gradient-heat} returns to gradient structures. \paragraph{Background.} On a complete Riemannian manifold, Grigor'yan~\cite{Gr92} and Saloff-Coste~\cite[Theorem~3.1]{SC92} proved that the parabolic Harnack inequality is equivalent to the conjunction of volume doubling and the Poincar\'e inequality at the scale~$r^2$, and to two-sided Gaussian bounds for the heat kernel; Sturm~\cite{Sturm96} extended this to strongly local Dirichlet spaces. On fractals the natural space-time scale is $\Psi(r)=r^\beta$ with $\beta>2$, and volume doubling and the Poincar\'e inequality $\PI(\Psi)$ no longer suffice. Barlow, Bass and Kumagai~\cite{BBK} showed that the parabolic Harnack inequality at the scale~$\Psi$ is equivalent to volume doubling, $\PI(\Psi)$ and a \emph{cutoff Sobolev inequality} at the same scale, which asserts the existence of cutoff functions with controlled energy measure. Simpler forms of this third condition were given by Andres and Barlow~\cite{AB} and by Grigor'yan, Hu and Lau~\cite{GHL}, and Lierl~\cite{LierlPHI} carried out Moser's iteration~\cite{Moser64,Moser71} in this setting. \paragraph{Two scales.} In all these results one scale function governs both the Poincar\'e inequality and the cutoff Sobolev inequality. For the Dirichlet form of a gradient structure this need not be the case: the Poincar\'e scale and the cutoff scale may differ (Proposition~\ref{prop:cube-two-scales}). The Poincar\'e scale $\Psi_P(x,r)$ and the cutoff Sobolev scale $\Psi_S(x,r)$ may both depend on the centre, with $\Psi_S\lesssim\Psi_P$ (Proposition~\ref{prop:quadratic-scale-order}), and the dependence of the estimates on the two scales is made explicit. The main result of this chapter, Theorem~\ref{hk:thm:h-local-harnack}, is a parabolic Harnack inequality on a cylinder centred at~$x$, of radius~$r$ and time length~$2T$, whose constant is \begin{equation*} \exp\Bigl[C\Bigl(1+\frac{\Psi_P(x,r)}{T}+\frac{T}{\Psi_S(x,r)}\Bigr)\Bigr]\,. \end{equation*} When the two scales are comparable and $T\asymp\Psi_P(x,r)$, this is the usual parabolic Harnack inequality. The proof follows Moser's method in the form of~\cite{LierlPHI}, keeping track of the two coefficients $\Psi_P(x,r)/T$ and $T/\Psi_S(x,r)$ at each step. \subsection{Dirichlet spaces}\label{hk:sec:assumptions} \paragraph{The form.} Throughout Part~\ref{part:heat}, $(X,d)$ is a proper metric space, $m$ is a Radon measure with full support, and $(\cE,\cF)$ is a symmetric, strongly local, regular Dirichlet form on $L^2(X,m)$, with generator~$L$ and semigroup $P_t=e^{tL}$; we refer to~\cite{FOT} for the theory of Dirichlet forms. For the form of a gradient structure which satisfies~\hB{} on a length space, properness is automatic (Lemma~\ref{lem:B-complete}). The energy measure of $f\in\cF$ is denoted by~$\Gamma(f)$, and $\Gamma(f,g)$ is its polarization, with the normalization \begin{equation*} \cE(f,f)=\int_Xd\Gamma(f)\,. \end{equation*} For the form of a gradient structure closable at $p=2$, $d\Gamma(f)=|\nabla_2f|^2\,d\nu$ by Proposition~\ref{prop:dirichlet}. We use the following notation and conventions. \begin{itemize} \item For an open set~$U$, $\cF_{\mathrm{loc}}(U)$ is the space of the functions which coincide on every relatively compact open subset of~$U$ with a function of~$\cF$. The energy measure of a function of $\cF_{\mathrm{loc}}(U)$ is defined on~$U$ by locality. \item $\cF_0(U)$ is the closure in~$\cF$ of the functions of~$\cF$ with compact support in~$U$, that is, the domain of the part of the form on~$U$. \item In integrals with respect to energy measures, functions of~$\cF$ are represented by their quasi-continuous versions, and conditions on functions of~$\cF$ are understood quasi-everywhere. \item We use the Leibniz and chain rules for energy measures~\cite[Section~3.2]{FOT}. \end{itemize} \paragraph{Scale functions.}\label{hk:subsec:global-assumptions} For a positive Borel function $S(x,r)$ on the specified range of radii, the radial weak scaling condition is \begin{equation}\label{hk:eq:global-weak-scaling} c_S\Bigl(\frac Rr\Bigr)^{s_-}\le\frac{S(x,R)}{S(x,r)} \le C_S\Bigl(\frac Rr\Bigr)^{s_+} \qquad(x\in X,\ 00$ is a doubling exponent of~$m$, as in~\eqref{eq:VD-power}, so that $m(B(x,R))/m(B(x,r))\le C(R/r)^{Q_D}$; \item $a_->0$ is a lower scaling exponent of~$\Psi_P$; \item $\beta_+\ge2$ is an upper scaling exponent of~$\Psi_S$. \end{itemize} \paragraph{Volume doubling and Poincar\'e inequality.} For all balls whose radius lies in the range under consideration, \begin{align} m(B(x,2r))&\le C_D\,m(B(x,r))\,,\label{hk:eq:global-volume}\\ \int_{B(x,r)}|f-f_{B(x,r)}|^2\,dm &\le C\,\Psi_P(x,r)\int_{B(x,\Lambda r)}d\Gamma(f)\,, \qquad f\in\cF_{\mathrm{loc}}(X)\,,\label{hk:eq:global-pi} \end{align} for a fixed $\Lambda\ge1$. These are \hVD{} and $\PI(\Psi_P)$. For the form of a gradient structure, the Poincar\'e inequality~\hP{2} of Chapter~\ref{sec:hyp}, stated on the core, extends to~$\cF$ by approximation in the form norm, and to~$\cF_{\mathrm{loc}}(X)$ by locality. The proof of the Harnack inequality uses~\eqref{hk:eq:global-pi} with $\Lambda=1$. On a geodesic space, \eqref{hk:eq:global-volume} and~\eqref{hk:eq:global-pi} imply the inequality with $\Lambda=1$ after reducing the range of radii by a fixed factor. Indeed, on the chains of balls in $B(x,r)$ the coefficients satisfy $\Psi_P(y,s)\le C(s/r)^{a_-}\Psi_P(x,r)$ for $s\le r$ and $y\in B(x,r)$. Apply the chain argument of Lemma~\ref{me:lem:sameball} with both exponents equal to two, summing $\sum_{j\ge0}2^{-ja_-/2}$ and using $d\Gamma(f)$ for the energy measure. Compare~\cite[Remark~3.6]{LierlPHI}. \paragraph{Solutions.} Let $I\subset\R$ be an open interval and $\Omega\subset X$ an open set. A \emph{local weak subsolution} of the heat equation in $I\times\Omega$ is a function $u\in L^2_{\mathrm{loc}}(I;\cF_{\mathrm{loc}}(\Omega))$ which satisfies $\partial_tu\le Lu$ in the variational sense: \begin{equation*} -\int_I\int_Xu\,\partial_t\phi\,dm\,dt+\int_I\cE(u(t),\phi(t))\,dt\le0 \end{equation*} for every nonnegative $\phi\in L^2(I;\cF)$ with $\partial_t\phi\in L^2(I;L^2(X,m))$ and with compact support in $I\times\Omega$. It is a \emph{local weak solution}, and we also say that $u$ is \emph{caloric} in $I\times\Omega$, if equality holds for all such~$\phi$, without sign condition. A function $u\in\cF_{\mathrm{loc}}(\Omega)$ is \emph{weakly harmonic} in~$\Omega$ if $\cE(u,\phi)=0$ for every $\phi\in\cF$ with compact support in~$\Omega$. Energy computations for weak solutions are performed with Steklov averages in time and truncated test functions, and then passed to the limit. This justification is carried out in~\cite[Lemmas~4.4 and~5.1]{LierlPHI}, and we do not repeat it. The computations below specify the coefficients and the boundary terms in time which are needed here. \subsection{Capacity and cutoff Sobolev inequalities}\label{subsec:capacity-csa} In Part~\ref{part:general} cutoff functions were Lipschitz functions with an integral bound on their gradient. For a Dirichlet form the corresponding notions are formulated in the domain of the form. \paragraph{Cutoff functions and capacity.} For $R0$, every nonnegative local weak solution~$u$ of the heat equation in $(t_0-T,t_0+T)\times B(x,r)$ satisfies \begin{equation}\label{hk:eq:h-general-harnack} \esssup_{Q_-}u \le\exp\Bigl[C\Bigl(1+\frac{\Psi_P(x,r)}{T}+\frac{T}{\Psi_S(x,r)}\Bigr)\Bigr] \essinf_{Q_+}u\,, \end{equation} where \begin{equation*} Q_-=\bigl(t_0-\tfrac34T,\,t_0-\tfrac12T\bigr)\times B(x,r/2)\,,\qquad Q_+=\bigl(t_0+\tfrac12T,\,t_0+\tfrac34T\bigr)\times B(x,r/2)\,. \end{equation*} \end{theorem} For a common radius-only scale $\Psi$ with a lower scaling exponent at least two and $T\asymp\Psi(r)$, this is~\cite[Theorem~5.3]{LierlPHI}. The two terms in the exponent have different origins. Heuristically, the term $\Psi_P(x,r)/T$ is large when the time is short compared with the Poincar\'e scale, so that the solution has not had the time to equilibrate over the ball; the term $T/\Psi_S(x,r)$ is large when the time is long compared with the cutoff scale, so that the values of~$u$ near the boundary of the ball, which are not controlled, have had the time to influence the interior. \begin{corollary}[Elliptic Harnack inequality]\label{hk:cor:h-elliptic} Every nonnegative weakly harmonic function~$u$ in $B(x,r)$ satisfies \begin{equation*} \esssup_{B(x,r/2)}u \le\exp\Bigl[C\Bigl(1+\sqrt{\Psi_P(x,r)/\Psi_S(x,r)}\Bigr)\Bigr] \essinf_{B(x,r/2)}u\,. \end{equation*} \end{corollary} \begin{proof} Apply Theorem~\ref{hk:thm:h-local-harnack} to the stationary solution $u(t,\cdot)=u$, with $T=\sqrt{\Psi_P(x,r)\,\Psi_S(x,r)}$, which minimizes $\Psi_P(x,r)/T+T/\Psi_S(x,r)$. \end{proof} \begin{remark}\label{hk:rem:h-scope} When the two scales are comparable, the corollary is the elliptic Harnack inequality with a constant independent of~$r$. In general the constant depends on the ratio $\Psi_P(x,r)/\Psi_S(x,r)$, which may be unbounded as $r\to0$. The inequalities are stated with essential suprema and infima. A pointwise formulation requires a suitable choice of representative, whose continuity is not asserted here. \end{remark} \paragraph{Scale comparisons on a cylinder.} Fix its spatial ball $B(x,r)$. For $y\in B(x,r)$ and $00$ (Lemma~\ref{hk:lem:h-small-powers}). \item \emph{The logarithm} (Section~\ref{hk:sec:h-log}). The mean of $\log u$ on a ball is almost monotone in time, and the measure of the set where $\log u$ deviates from its mean at the time~$t_0$ is controlled (Lemma~\ref{hk:h:cutoff-logarithm}). \item \emph{Conclusion.} A lemma of Bombieri and Giusti (Lemma~\ref{hk:lem:h-bombieri}) combines the mean value inequality for small powers with the logarithmic estimate, and bounds $u$ from above before~$t_0$ and from below after~$t_0$ in terms of the same number. \end{enumerate} The linear dependence of the exponent in~\eqref{hk:eq:h-general-harnack} on $A+B$ comes from two facts: the mean value inequality for the powers $u^{\pm p}$ has a constant independent of $A$ and~$B$ when $p\le c/(1+A+B)$, and the logarithmic estimate has a constant proportional to~$A$ and a drift proportional to~$B$. \subsection{Cutoffs and Sobolev inequalities}\label{hk:sec:h-cutoffs} The first lemma converts the cutoff Sobolev inequality~\eqref{hk:eq:global-csa}, which has a fixed coefficient in front of the energy, into a weighted inequality with an arbitrarily small coefficient. The price is a power of this coefficient in front of the zeroth-order term, determined by the upper scaling exponent~$\beta_+$ of~$\Psi_S$. The construction, which sums cutoff functions of a sequence of thin annuli with geometrically decreasing widths and weights, is due to Andres and Barlow~\cite[Lemma~5.1]{AB}; the quantitative weighted form is~\cite[Lemma~2.3]{LierlPHI}. \begin{lemma}[Weighted cutoff functions]\label{hk:lem:h-weighted-cutoff} For every pair of balls $B(z,R)\subset B(z,R+s)$ with $0n$ are equal to one and those with $j\max\{Q_D,a_-\}$ and $1<\kappa\lambda\}\bigr)\le\frac{C\,E}{\lambda}\,. \end{equation} The distribution function of the second term of the pointwise bound is therefore at most $C\min\{1,(E/t^2)^{D/(D-a_-)}\}$. Since $\kappa1$ and $C<\infty$, depending only on the constants of the volume and Poincar\'e hypotheses and on~$a_-$, such that \begin{equation}\label{hk:eq:h-local-sobolev} \left(\frac1{m(B(z,r))}\int_{B(z,r)}|f|^{2\kappa}\,d m\right)^{1/\kappa} \le \frac{C\,\Psi_P(z,r)}{m(B(z,r))}\,\cE(f,f) \end{equation} for every $f\in\cF$ with compact support in $B(z,r)$. One may choose any $D>\max\{Q_D,a_-\}$ and any $1<\kappa1\,,\qquad \theta=\frac{\sigma}{\sigma-1}=\frac{2\kappa-1}{\kappa-1}\,. \end{equation} In this normalization, Lemma~\ref{hk:lem:h-interior-sobolev} gives, for $1/4\le R'0$ be a local weak solution in $(-1,1)\times B(x,1)$. For $1/2\le\delta\le1$, set \begin{equation}\label{hk:eq:h-nested-cylinders} U_\delta^\pm= \left(\pm\frac58-\frac\delta4,\ \pm\frac58+\frac\delta4\right) \times B\left(x,\frac14+\frac\delta2\right)\,. \end{equation} There are structural constants $c_*,C,\gamma>0$ such that, whenever $00$, with constants independent of $\varepsilon$. \end{lemma} The cylinders $U_\delta^-$ lie in the past, $U_\delta^+$ in the future, and $U^\pm_{1/2}$ are the cylinders $Q_\pm$ of Theorem~\ref{hk:thm:h-local-harnack} in the normalized units, with $t_0=0$. \begin{proof} We first work with a solution which is bounded above and bounded away from zero on the interior cylinders. \emph{Step 1: energy estimates for positive powers.} For $0b'$, with derivative bounded by $C/k$, where $k=b-b'$. Integrating the derivative of the product of this cutoff and of~$F$ from $t$ to~$b$ gives, for $s0$ and $\lambda_0>1$: the coefficients $A$ and~$B$ have disappeared. Raising the successive estimates to the powers $\sigma^{-j-1}$ and multiplying gives \begin{equation}\label{hk:eq:h-finite-iteration-end} J_N(q_N)^{p/q_N}\le C\Delta^{-\gamma_1}J_0(p)\,, \end{equation} since $\sum_{j\ge0}\sigma^{-j-1}$ and $\sum_{j\ge0}j\sigma^{-j-1}$ are finite. \emph{Step 4: from the exponent $q_N$ to the supremum.} The cylinder $V_N$ contains $U_{\delta'}^-$ with a spatial gap at least $(R-R')/2$ and an initial time gap $s'-s=\Delta/4$. Apply Lemma~\ref{hk:lem:h-forward-bound} with the exponent $q_N\in[1/(2\sigma),1/2]$. Its constant is a structural negative power of $\Delta$ times a fixed power of $(1+A)(1+B)$. After raising it to the power $p/q_N$, its dependence on $A$ and~$B$ is bounded, because \begin{equation*} \frac{p}{q_N}\log\bigl((1+A)(1+B)\bigr) \le C\,p\log(1+A+B)\le C\,. \end{equation*} Combining with~\eqref{hk:eq:h-finite-iteration-end} proves the first estimate in~\eqref{hk:eq:h-small-powers}. \emph{Step 5: negative powers.} Put $v=u^{-q/2}$ and $F=\int\psi^2u^{-q}\,d m$. Differentiation and the same cutoff Sobolev inequality give \begin{equation*} F'\le-\frac1q\int\psi^2\,d\Gamma(v) +C\,q\,B\,h^{-\beta}\int u^{-q}\,d m\,. \end{equation*} Now the energy term has a favourable sign in the direction of decreasing time. Use a nondecreasing cutoff in time which vanishes at the initial time. This gives the two estimates in~\eqref{hk:eq:h-reverse-energy}, with $u^{-q}$ in place of $u^q$ and with a gap at the initial time. Keep the final time of $U_\delta^+$ fixed, increase its initial time towards the midpoint between the initial times of $U_\delta^+$ and $U_{\delta'}^+$, and decrease its radius towards the midpoint of the radii. The recurrence~\eqref{hk:eq:h-finite-iteration-step} and the bounds on its coefficients are unchanged. At the final exponent, apply Lemma~\ref{hk:lem:h-forward-bound} to $u^{-1}$, which is a subsolution by the chain rule; a positive gap at the initial time remains. This proves the second estimate. \emph{Step 6: general solutions.} For a nonnegative solution~$u$, apply the calculation to $u+\varepsilon$. By strong locality this is a solution, Lemma~\ref{hk:lem:h-forward-bound} gives its local boundedness from above, and $u+\varepsilon\ge\varepsilon$. The test functions built from powers have bounded derivatives on the relevant compact cylinders; Steklov averaging justifies the identities as in~\cite[Lemmas~4.4 and 5.1]{LierlPHI}. Every constant is independent of $\varepsilon$. For positive $u$, let $\varepsilon\downarrow0$, using monotone convergence for the negative powers; the statement is trivial if the integral on the right-hand side is infinite. \end{proof} \subsection{The logarithm and the proof of the Harnack inequality}\label{hk:sec:h-log} The mean value inequalities of the preceding section bound the suprema of~$u^p$ and~$u^{-p}$ by their integrals. To compare these integrals, Moser's method~\cite{Moser64,Moser71} uses the logarithm of the solution: its weighted mean is almost nondecreasing in time, and the time derivative of the mean controls the variance, by the weighted Poincar\'e inequality. \begin{lemma}[Logarithmic estimate]\label{hk:h:cutoff-logarithm} Let $\Omega\subset X$ be open, and let $0\le\psi\le1$ belong to $\cF$, with compact support in $\Omega$. Put $M=\int\psi^2\,dm>0$ and $d\mu=M^{-1}\psi^2\,dm$. Suppose that, for some $A>0$ and $B\ge0$, \begin{equation*} \int|f-f_\psi|^2\psi^2\,dm \le A\int\psi^2\,d\Gamma(f)\,,\qquad \cE(\psi,\psi)\le BM\,,\qquad f_\psi=\int f\,d\mu \end{equation*} for every $f\in\cF_{\mathrm{loc}}(\Omega)$. If $u\ge0$ is a local weak solution in $(t_0-T,t_0+T)\times\Omega$, then, for $u_\varepsilon=u+\varepsilon$, the function $Y_\varepsilon(t)=\int\log u_\varepsilon(t)\,d\mu$ has a locally absolutely continuous representative satisfying \begin{equation}\label{hk:h:log-variance} Y_\varepsilon'(t) \ge\frac1{2A}\Var_\mu(\log u_\varepsilon(t))-2B\,. \end{equation} Moreover, for every $\ell>0$, \begin{align}\label{hk:h:cutoff-log-tails} \int_{t_0-T}^{t_0}\mu\bigl(\{\log u_\varepsilon(t)>Y_\varepsilon(t_0)+2BT+\ell\}\bigr)\,dt &\le\frac{2A}{\ell}\,,\\ \int_{t_0}^{t_0+T}\mu\bigl(\{\log u_\varepsilon(t)W(t_0)+\ell\}$ one has $Z(t)-W(t)>\ell+\rho(t)$; hence, by Chebyshev's inequality and~\eqref{hk:h:monotone-mean}, \begin{equation*} \mu\bigl(\{Z(t)>W(t_0)+\ell\}\bigr) \le\frac{2A\,W'(t)}{(\ell+\rho(t))^2} =2A\,\frac{d}{dt}\,\frac1{\ell+\rho(t)}\,. \end{equation*} Integration gives \begin{equation}\label{hk:h:upper-tail} \int_{t_0-T}^{t_0}\mu\bigl(\{Z(t)>W(t_0)+\ell\}\bigr)\,dt \le\frac{2A}{\ell}\,. \end{equation} For $t>t_0$, use $\rho(t)=W(t)-W(t_0)$ and the set $\{Z(t)0$ is bounded on $U_1$, that $M,L\ge1$, and that \begin{equation}\label{hk:eq:h-bombieri-input} \esssup_{U_{\delta'}}f^p \le M(\delta-\delta')^{-\gamma}\int_{U_\delta}f^p\,,\qquad |\{\log f>\lambda\}\cap U_1|\le\frac L\lambda \end{equation} for $1/2\le\delta'<\delta\le1$, $00$. Then \begin{equation}\label{hk:eq:h-bombieri-output} \log\bigl(\max\{1,\esssup_{U_{1/2}}f\}\bigr)\le C\,L\,M^2\,, \end{equation} where $C$ depends only on $p_0$ and $\gamma$. \end{lemma} \begin{proof} This is a quantitative form of~\cite[Lemma~5.2]{LierlPHI}. Write $S(\delta)=\log\max\{e,\esssup_{U_\delta}f\}$. Splitting the integral at $\log f=S(\delta)/2$ and using the second hypothesis gives \begin{equation*} \int_{U_\delta}f^p\le\frac{2L}{S(\delta)}\,e^{pS(\delta)} +e^{pS(\delta)/2}\,. \end{equation*} If $S=S(\delta)>2L$, choose $p=2S^{-1}\log(S/(2L))$, for which the two terms are equal. For $S$ above a constant depending only on $p_0$, this number lies in $(0,p_0)$, and the first hypothesis in~\eqref{hk:eq:h-bombieri-input} implies \begin{equation*} \log\esssup_{U_{\delta'}}f \le\frac S2\left[1+ \frac{\log(2M(\delta-\delta')^{-\gamma})}{\log(S/(2L))}\right]\,. \end{equation*} If $S\ge2L[2M(\delta-\delta')^{-\gamma}]^2$, the right-hand side is at most $3S/4$. If this condition or the preceding threshold fails, then $S\le CLM^2(\delta-\delta')^{-2\gamma}$. In all cases, \begin{equation*} S(\delta')\le\frac34\,S(\delta) +C\,L\,M^2(\delta-\delta')^{-2\gamma}\,. \end{equation*} Iterate with $\delta_j=1-[2(j+1)]^{-1}$. The resulting series converges, because $\delta_{j+1}-\delta_j\asymp(j+1)^{-2}$ and $\sum_j(3/4)^j(j+1)^{4\gamma}<\infty$, and the terminal term tends to zero since $f$ is bounded on $U_1$. \end{proof} \begin{proof}[Proof of Theorem~\ref{hk:thm:h-local-harnack}] Normalize as in~\eqref{hk:eq:h-normalization}, with $t_0=0$, and put~$u_\varepsilon=u+\varepsilon$ and~$K=1+A+B$. \emph{Step 1: the logarithmic estimate.} Let $\psi$ be the cutoff function of Lemma~\ref{hk:lem:h-weighted-cutoff} for $B(x,3/4)\subset B(x,1)$, with a fixed value of its parameter. It satisfies~$\int\psi^2\,dm\asymp1$, the weighted Poincar\'e inequality with the coefficient~$CA$, and~$\cE(\psi,\psi)\le CB$, by~\eqref{hk:eq:h-weighted-cs} applied to a function equal to one on the annulus. Lemma~\ref{hk:h:cutoff-logarithm} applies, with $T=1$. Let~$c_\varepsilon=Y_\varepsilon(0)$, and choose~$C_0$ so that~$2\,\cE(\psi,\psi)/\int\psi^2\,dm\le C_0B$. \emph{Step 2: the two functions.} On the families $U^-_\delta$ and $U^+_\delta$ of~\eqref{hk:eq:h-nested-cylinders}, respectively, set \begin{equation*} f_-=(e^{-c_\varepsilon-C_0B}\,u_\varepsilon)^{1/K}\,,\qquad f_+=(e^{c_\varepsilon-C_0B}\,u_\varepsilon^{-1})^{1/K}\,. \end{equation*} Since~$\psi=1$ on the spatial projections of these cylinders, \eqref{hk:h:cutoff-log-tails} with $\ell=K\lambda$ gives \begin{equation*} |\{\log f_\pm>\lambda\}\cap U_1^\pm| \le \frac{CA}{K\lambda}\le\frac C\lambda\,. \end{equation*} For~$00}\left(\frac Rs-\frac t{\Psi(s)}\right)\,. \end{equation} For $\Psi(s)=s^\beta$, differentiation gives \begin{equation*} \mathcal A_\Psi(R,t)=(\beta-1)\beta^{-\beta/(\beta-1)} \left(\frac{R^\beta}{t}\right)^{1/(\beta-1)}\,. \end{equation*} In particular the Gaussian rate is $R^2/(4t)$. \begin{lemma}\label{lem:heatcost} Let $\Psi$ satisfy~\eqref{hk:eq:global-weak-scaling} on $(0,\infty)$ with exponents $1<\beta_-\le\beta_+$. In~\ref{hc:near} and~\ref{hc:far} let $t=\Psi(r_t)$ for $r_t>0$. The rate is finite and nonnegative, with $\mathcal A_\Psi(0,t)=0$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{hc:near} $\mathcal A_\Psi(R,t)\le C$ for $0\le R\le r_t$. \item\label{hc:far} $\mathcal A_\Psi(R,t)\ge c(R/r_t)^{\beta_+/(\beta_+-1)}$ for $R\ge r_t$. \item\label{hc:dilation} For each $a,b>0$, $\mathcal A_\Psi(aR,bt)\asymp_{a,b}\mathcal A_\Psi(R,t)$ for every $R\ge0$ and $t>0$. \end{enumerate} \end{lemma} \begin{proof} These estimates follow the argument of~\cite[Section~3.3]{GrTe12}. In~\eqref{eq:rate-function}, the expression tends to zero as $s\to\infty$ and to $-\infty$ as $s\downarrow0$, by lower scaling. This also gives $\mathcal A_\Psi(0,t)=0$. \ref{hc:near} For $R\le r_t$, the terms with $s\ge r_t$ are at most one. For $s0$. Testing the rate at $Ms$ gives \begin{equation*} \mathcal A_\Psi(aR,bt)\ge\frac{a}{M} \left(\frac Rs-\frac{t}{\Psi(s)}\right)\,. \end{equation*} Take the supremum over $s$. Applying the resulting bound with $1/a$ and $1/b$ gives the other inequality. \end{proof} \paragraph{Conventions.} The assertions on kernels hold for $m\otimes m$-almost every pair of points at each fixed time. On the diagonal we use the value given by the semigroup property, \begin{equation}\label{hk:eq:diagonal-version} p_t(x,x)=\int_Xp_{t/2}(x,z)^2\,dm(z)\,. \end{equation} \paragraph{Results.} Table~\ref{tab:heat-kernel} summarizes the radius-only estimates. In each row the prefactor is multiplied by $\exp[-c\,D]$, where $D$ is the entry in the last column and $c>0$ may differ in the upper and lower bounds. The volume hypothesis for estimates with ball volumes in the prefactor is doubling. Those with a function of the time alone require the uniform volume growth~\hV. When the two scales coincide, the upper and lower bounds match and are the classical two-sided sub-Gaussian estimates (Corollaries~\ref{hk:cor:vd-matching} and~\ref{hk:cor:global-matching}). When they differ, the upper and lower bounds are of different orders, and no claim of optimality is made. \begin{table}[htbp] \centering\small \setlength{\tabcolsep}{4pt}\renewcommand{\arraystretch}{1.35} \begin{tabular}{@{}p{.21\textwidth}p{.24\textwidth}p{.25\textwidth}p{.22\textwidth}@{}} \toprule Statement & Hypotheses & Prefactor & Decay\\ \midrule Theorem~\ref{hk:thm:vd-mixed-upper} (upper) & global \hVD, $\PI(\Psi_P)$, $\CSA(\Psi_S)$ & volumes of balls of an arbitrary radius~$r$, polynomial in $\Psi_P(r)/t$, $t/\Psi_S(r)$ & $\mathcal A_{\Psi_S}((d-8r)_+,t)$\\ Corollary~\ref{hk:cor:vd-matching} (two-sided) & the same, $\Psi_P\asymp\Psi_S=\Psi$ & $m(B(x,\Psi^{-1}(t)))^{-1}$ & $\mathcal A_\Psi$\\ Theorem~\ref{hk:thm:mixed-upper} (upper, small~$t$) & local $\mathrm V(r^Q)$, $\PI(r^a)$, $\CSA(r^\beta)$ & $t^{-Q/a}$ & $(d^\beta/t)^{1/(\beta-1)}$\\ Theorem~\ref{hk:thm:lower-global} (lower, small~$t$) & the same & $t^{-2Q/(a+\beta)}\exp(-Ct^{-q})$ & $(d^{b_-}/t)^{1/(b_--1)}$; for $a<2$ see~\eqref{hk:eq:low-a-distance}\\ Theorem~\ref{hk:thm:global-mixed-upper} (upper) & global \hV, $\PI(\Psi_P)$, $\CSA(\Psi_S)$ & $\Phi(\Psi_P^{-1}(t))^{-1}$ & $\mathcal A_{\Psi_S}$\\ Theorem~\ref{hk:thm:global-lower} (lower) & the same & $\Phi(R_t)^{-1}$ & variational, \eqref{hk:eq:global-variational-lower}\\ Corollary~\ref{hk:cor:global-matching} (two-sided) & the same, $\Psi_P\asymp\Psi_S=\Psi$ & $\Phi(\Psi^{-1}(t))^{-1}$ & $\mathcal A_\Psi$\\ \bottomrule \end{tabular} \caption{Heat kernel estimates with radius-only bounds. Here $d=d(x,y)$, and $q$, $b_-$ and $R_t$ are defined in~\eqref{hk:eq:lower-alpha-q}, \eqref{hk:eq:lower-effective-exponent} and~\eqref{hk:eq:global-confinement-radius}.}\label{tab:heat-kernel} \end{table} \paragraph{Methods.} The upper bounds are obtained by Davies' method~\cite{Davies87}: the semigroup is conjugated by the exponential of a multiple of a cutoff function, and the cost of the conjugation is controlled by the cutoff Sobolev inequality. The lower bounds are obtained by chaining the parabolic Harnack inequality of Theorem~\ref{hk:thm:h-local-harnack} along geodesics, starting from a lower bound on the diagonal which comes either from a cutoff function, by the spectral theorem, or from the confinement of the heat in a ball. These methods are classical; what is specific here is that the two scales are kept separate throughout. \subsection{The heat kernel under volume doubling}\label{hk:sec:vd-kernels} \paragraph{Existence.} The $L^2$ mean value inequality gives a heat kernel without any uniform lower bound for the volumes of balls. \begin{proposition}\label{hk:prop:vd-kernel-existence} Under the local hypotheses of Chapter~\ref{sec:harnack-chapter}, the semigroup has a symmetric measurable heat kernel. For every $t>0$ and every compact set $K\subset X$, the map $P_t:L^2(X,m)\to L^\infty(K,m)$ is bounded. The kernel of the semigroup killed outside an open set has the same properties locally in that set. \end{proposition} \begin{proof} Fix a relatively compact ball $B=B(x,r)$ on which the hypotheses and their required dilations hold, and fix $t>0$. Apply Lemma~\ref{hk:lem:h-forward-bound} to $s\mapsto P_sf$ on a cylinder with the spatial ball~$B$ and a time interval contained in $(t/2,3t/2)$, whose smaller cylinder contains the time~$t$. Since $P_s$ is a contraction of~$L^2$, \begin{equation*} \|P_tf\|_{L^\infty(B(x,r/2))}^2 \le \frac{C_{r,t}}{m(B(x,r))}\|f\|_2^2\,. \end{equation*} For signed $f$, use $|P_sf|\le P_s|f|$. The constant is finite for each fixed $r$ and~$t$, and the continuity of $s\mapsto P_sf$ in~$L^2$ makes the estimate valid at the time~$t$. A finite cover gives the assertion on $K$. The construction of the kernel is the argument of~\cite[Section~6, proof of Proposition~6.3]{LierlPHI}. Since $L^2(X,m)$ is separable, the local boundedness from $L^2$ to~$L^\infty$ and the Riesz representation theorem give a measurable kernel for $P_{t/2}$ whose rows belong to~$L^2$. Composing $P_{t/2}$ with itself gives a nonnegative symmetric measurable kernel for $P_t$, with the semigroup property and~\eqref{hk:eq:diagonal-version}. The same argument applies to the semigroup killed outside an open set: its orbits are caloric in the interior, and it is a contraction of~$L^2$. \end{proof} In particular the rows $p_t(x,\cdot)$ of the kernel belong to $L^2(X,m)$ at positive times, and for $\varepsilon>0$ the function $(t,y)\mapsto p_t(x,y)$ is, for almost every~$x$, a weak solution of the heat equation on $(\varepsilon,\infty)\times X$. The arguments below which apply the Harnack inequality to the kernel use only this fact; no global ultracontractivity is needed. \paragraph{Davies' perturbations.} Let $\psi$ be a bounded function. The kernel of the conjugated operator $e^{\psi}P_te^{-\psi}$ is $e^{\psi(x)-\psi(y)}p_t(x,y)$. A bound on the norm of this operator therefore gives a bound on~$p_t(x,y)$ with the factor $e^{\psi(y)-\psi(x)}$, which is small when $\psi$ is a large multiple of a cutoff function equal to one near~$x$ and vanishing near~$y$. The norm of the conjugated semigroup grows at a rate determined by $\int f^2\,d\Gamma(\psi)$, and this is the quantity which the cutoff Sobolev inequality controls. On a Riemannian manifold one takes $\psi$ Lipschitz, with $d\Gamma(\psi)\le|\nabla\psi|^2\,dm$; when the energy measures are singular this is not possible, and the functions~$\psi$ must be constructed from the cutoff functions of the hypothesis. This construction is due to Andres and Barlow~\cite[Lemma~5.1]{AB} and to Murugan and Saloff-Coste~\cite[Lemmas~2.1--2.2 and Proposition~2.3]{MSC}. We state the construction for a scale function~$S$ satisfying~\eqref{hk:eq:global-weak-scaling}, with an upper exponent $\beta_+\ge2$, and for a range of widths bounded by $r_0\in(0,\infty]$. For every annulus \begin{equation*} A=B(z,R+s)\setminus\overline{B(z,R)}\,, \qquad z\in X\,,\quad R>0\,,\quad 00$, and~$\lambda\ge\max\{1,r/r_0\}$, with~$r/r_0=0$ if~$r_0=\infty$. Let \begin{equation*} \rho(y)=\left(2-\frac{d(z,y)}r\right)_+\wedge1\,. \end{equation*} For every~$p\ge1$ there is a cutoff function~$\varphi_p\in\cF$ for~$B(z,r)\subset B(z,2r)$ such that~$\psi_p=\lambda\varphi_p$ satisfies \begin{align} \|\psi_p-\lambda\rho\|_\infty&\le \frac Cp\,,\label{hk:eq:upper-ramp-approx}\\ \cE(e^{\pm\psi_p}f^{2p-1},e^{\mp\psi_p}f) &\ge\frac1{2p}\,\cE(f^p,f^p) -\frac{Cp^{\beta_+-1}}{S(r/\lambda)}\,\|f\|_{2p}^{2p} \label{hk:eq:upper-perturbation} \end{align} for every bounded nonnegative~$f\in\cF$. The constant depends only on~$C_0$ and on the upper scaling constants of~$S$. \end{lemma} The function~$\lambda\rho$ is the Lipschitz profile which one would use on a manifold. The functions~$\psi_p$ approximate it uniformly, with an error which improves as the exponent~$p$ increases. The inequality~\eqref{hk:eq:upper-perturbation} is the lower bound for the perturbed form which drives the differential inequalities for the $L^{2p}$ norms of the conjugated semigroup. \begin{proof} We use the averaging construction of~\cite[Lemma~2.1]{MSC}. Choose an integer~$N\asymp p\lambda$, with a sufficiently large fixed constant of comparison from below. Subdivide the annulus between the radii~$r$ and~$2r$ into~$N$ annuli of width~$r/N\le r_0$, let~$\theta_i$ be the cutoff functions given by~\eqref{hk:eq:upper-csa-fixed}, and set~$\varphi_p=N^{-1}\sum_{i=1}^N\theta_i$. By strong locality, $\Gamma(\varphi_p)=N^{-2}\sum_i\Gamma(\theta_i)$: the energy measures are carried by disjoint annuli. Summing the inequalities~\eqref{hk:eq:upper-csa-fixed} gives \begin{equation}\label{hk:eq:upper-subdivision} \int_X g^2\,d\Gamma(\varphi_p) \le \frac{C_0}{N^{2}}\,\cE(g,g) +\frac{C_0}{N^2S(r/N)}\,\|g\|_2^2\,, \qquad g\in\cF\,. \end{equation} On each of the $N$ annuli, all but one of the cutoff functions are equal to zero or to one. Thus~$\|\varphi_p-\rho\|_\infty\le N^{-1}$, which proves~\eqref{hk:eq:upper-ramp-approx}. Let $\psi=\psi_p$ and~$u=f^p$. The calculation of~\cite[Lemma~2.2]{MSC}, which uses the chain and Leibniz rules, gives \begin{align*} \cE(e^\psi f^{2p-1},e^{-\psi}f) &=\frac{2p-1}{p^2}\,\cE(u,u) -\frac{2(p-1)}p\int_Xu\,d\Gamma(u,\psi) -\int_Xu^2\,d\Gamma(\psi)\\ &\ge\frac1p\,\cE(u,u)-p\int_Xu^2\,d\Gamma(\psi)\,. \end{align*} Apply~\eqref{hk:eq:upper-subdivision} with~$g=u$ and~$\psi=\lambda\varphi_p$. The choice of~$N$ makes the coefficient $p\lambda^2C_0N^{-2}$ of the energy at most $1/(2p)$. Since~$r/N\le r/\lambda\le r_0$, the upper scaling of~$S$ gives \begin{equation*} \frac{p\lambda^2}{N^2S(r/N)} \le\frac{C}{pS(r/N)} \le\frac{Cp^{\beta_+-1}}{S(r/\lambda)}\,. \end{equation*} This proves~\eqref{hk:eq:upper-perturbation}, for either sign of~$\psi$. The products belong to~$\cF$ because $f$ is bounded and by~\eqref{hk:eq:upper-subdivision}. \end{proof} For $p=1$, \eqref{hk:eq:upper-perturbation} gives $\frac{d}{ds}\|e^{\psi}P_se^{-\psi}f\|_2^2\le\frac{C}{S(r/\lambda)}\|e^{\psi}P_se^{-\psi}f\|_2^2$, with $\psi=\psi_1$, and therefore \begin{equation}\label{hk:eq:upper-L2-twisted} \|e^{\psi_1}P_s\,e^{-\psi_1}\|_{2\to2}\le\exp\Bigl[\frac{Cs}{S(r/\lambda)}\Bigr]\qquad(s>0)\,. \end{equation} This is the quadratic perturbation estimate of~\cite[Proposition~2.3]{AB}. \paragraph{The upper bound.} Applying the mean value inequality in each of the two variables of the kernel bounds its value by an average in space and time, with a polynomial dependence on the two scale coefficients. The estimate~\eqref{hk:eq:upper-L2-twisted} for this average gives the decay away from the diagonal. The prefactor involves the volumes of the averaging balls, whose radius~$r$ can be chosen independently of the time. \begin{theorem}\label{hk:thm:vd-mixed-upper} Suppose that $X$ is unbounded and geodesic, that $\hVD$, $\PI(\Psi_P)$ and the cutoff Sobolev inequality~\eqref{hk:eq:global-csa} hold globally, and that $\Psi_S$ has a lower scaling exponent greater than one. There are structural constants $c,C,\kappa>0$ such that, for every $r,t>0$ and almost every $x,y\in X$, \begin{multline}\label{hk:eq:vd-mixed-upper} p_t(x,y)\le\frac{C}{\sqrt{m(B(x,r))\,m(B(y,r))}} \left(1+\frac{\Psi_P(r)}t\right)^{\kappa} \left(1+\frac{t}{\Psi_S(r)}\right)^{\kappa}\\ \times\exp\left[-c\,\mathcal A_{\Psi_S}\bigl((d(x,y)-8r)_+,t\bigr)\right]\,. \end{multline} \end{theorem} \begin{proof} \emph{Step 1: the kernel is bounded by an average.} By Lemma~\ref{hk:lem:h-forward-bound} with $q=1$, after rescaling, a nonnegative caloric function~$u$ on $(a-T,a)\times B(z,2r)$ satisfies \begin{equation*} \esssup_{B(z,r)}u(a,\cdot) \le\frac{C\,(1+\Psi_P(r)/T)^{\theta-1}(1+T/\Psi_S(r))^\theta} {T\,m(B(z,r))}\int_{a-T}^a\int_{B(z,2r)}u(s,v)\,dm(v)\,ds\,, \end{equation*} where $\theta$ is as in~\eqref{hk:eq:h-nu-theta}; the value at the terminal time is obtained from times tending to~$a$ and from the continuity in~$L^2$. Apply this estimate successively in the two variables of the symmetric kernel: first at the time~$t$ with $T=t/2$, and then at each time $s\in(t/2,t)$ with $T=t/4$. The times which occur lie in $(t/4,t)$, where the rows of the kernel are orbits of the semigroup with initial data in~$L^2$, by Proposition~\ref{hk:prop:vd-kernel-existence}. Doubling and the scaling of $\Psi_P$ and~$\Psi_S$ yield \begin{equation}\label{hk:eq:vd-kernel-average} p_t(x,y)\le \frac{C\,(1+\Psi_P(r)/t)^{2(\theta-1)}(1+t/\Psi_S(r))^{2\theta}} {m(B(x,r))\,m(B(y,r))}\, \sup_{t/4\le s\le t} \langle\ind_{B(x,2r)},P_s\ind_{B(y,2r)}\rangle\,. \end{equation} To obtain this outside one null set for each fixed time, first take the two outer balls in a countable family with dense centres and rational radii, and evaluate at almost every pair of points of the corresponding inner balls. For given $x$, $y$ and~$r$ one can choose such inner balls containing $x$ and~$y$ whose outer balls are contained in $B(x,2r)$ and $B(y,2r)$, with radii comparable to~$r$; the volumes and the scale coefficients change by structural factors. \emph{Step 2: the average.} Write $d=d(x,y)$. For every $d$, the contraction property in~$L^2$ bounds the inner product in~\eqref{hk:eq:vd-kernel-average} by $C\sqrt{m(B(x,r))\,m(B(y,r))}$. For $d>8r$ set $R=d/3$ and apply Lemma~\ref{hk:lem:upper-perturbations} with $p=1$, the centre~$x$, the radius~$R$, the scale $S=\Psi_S$ and $\lambda\ge1$. The function $\psi=\psi_1$ is equal to~$\lambda$ on $B(x,2r)\subset B(x,R)$ and to zero on $B(y,2r)$, which lies outside $B(x,2R)$. By~\eqref{hk:eq:upper-L2-twisted}, for all $s\le t$, \begin{align*} \langle\ind_{B(x,2r)},P_s\ind_{B(y,2r)}\rangle&=e^{-\lambda}\langle\ind_{B(x,2r)},e^{\psi}P_se^{-\psi}\ind_{B(y,2r)}\rangle\\ &\le C\sqrt{m(B(x,r))\,m(B(y,r))}\, \exp\left[-\lambda+\frac{Ct}{\Psi_S(R/\lambda)}\right]\,. \end{align*} \emph{Step 3: optimization.} For $d>8r$, the infimum over $\lambda\ge1$, with $s=R/\lambda$, gives the factor $e^{-A_0}$, where $A_0=\sup_{0R$ contribute at most one to~\eqref{eq:rate-function}, \begin{equation*} \min\{1,e^{-A_0}\}\le e\,\exp[-\mathcal A_{\Psi_S}(R,Ct)]\,. \end{equation*} Lemma~\ref{lem:heatcost}\ref{hc:dilation} gives $\mathcal A_{\Psi_S}(d/3,Ct)\ge c\,\mathcal A_{\Psi_S}(d,t)$. Monotonicity then gives the rate at $(d-8r)_+$. For $d\le8r$ this rate vanishes and contraction suffices. Substitution in~\eqref{hk:eq:vd-kernel-average} proves~\eqref{hk:eq:vd-mixed-upper} with $\kappa=2\theta$. \end{proof} \begin{proposition}[Upper bound at point-dependent scales]\label{hk:prop:variable-upper} Let the global volume, Poincar\'e and annular cutoff Sobolev hypotheses of Chapter~\ref{sec:harnack-chapter} hold on an unbounded geodesic space, at the possibly distinct scales $\Psi_P(x,r)$ and $\Psi_S(x,r)$. For $r,t>0$ put \begin{equation*} H(z)=\left(1+\frac{\Psi_P(z,r)}{t}\right)^{\kappa} \left(1+\frac{t}{\Psi_S(z,r)}\right)^{\kappa}\,, \end{equation*} where $\kappa$ is a structural constant. For almost every $x,y$, \begin{equation*} p_t(x,y)\le \frac{C H(x)H(y)} {\sqrt{m(B(x,r))m(B(y,r))}}\,. \end{equation*} If $d(x,y)>8r$, put $R=d(x,y)/3$. For every $\lambda\ge1$ the right-hand side can be multiplied by \begin{equation*} \min\left\{1,\exp\left[-\lambda+ \frac{Ct}{\inf_{w\in B(x,2R)}\Psi_S(w,R/\lambda)}\right]\right\}\,. \end{equation*} The same estimate holds with $y$ in place of $x$ in the infimum. \end{proposition} \begin{proof} Apply the two mean value estimates in the proof of Theorem~\ref{hk:thm:vd-mixed-upper} on the balls centred at $x$ and $y$. Chapter~\ref{sec:harnack-chapter} bounds their coefficients by $H(x)$ and $H(y)$ for a fixed sufficiently large $\kappa$. Contraction on $L^2$ gives the first assertion. For the second, the perturbation in Lemma~\ref{hk:lem:upper-perturbations} with $p=1$ uses only subannuli of $B(x,2R)\setminus B(x,R)$. On these annuli~\eqref{hk:eq:upper-csa-fixed} holds with $S(s)=\inf_{w\in B(x,2R)}\Psi_S(w,s)$, by~\eqref{hk:eq:global-csa}, in which the scale is evaluated at the point of integration. At each fixed width this infimum is positive by compactness of the closed ball and nearby-centre comparison. It inherits the radial power bounds. Thus~\eqref{hk:eq:upper-L2-twisted} and the separation of the two averaging balls give the displayed factor. Symmetry gives the estimate centred at $y$. For a centre-independent cutoff Sobolev scale with lower exponent greater than one, optimization in $\lambda$ is Step~3 of the proof of Theorem~\ref{hk:thm:vd-mixed-upper}. \end{proof} \paragraph{Matching scales.} Suppose that $\Psi_P\asymp\Psi_S=\Psi$, and choose $r=\Psi^{-1}(t)$ in~\eqref{hk:eq:vd-mixed-upper}. The polynomial factor is bounded. If $d(x,y)\le16r$, the rate $\mathcal A_\Psi(d(x,y),t)$ is bounded by a structural constant; if $d(x,y)>16r$, then $d(x,y)-8r\ge d(x,y)/2$. Lemma~\ref{lem:heatcost}\ref{hc:near} and~\ref{hc:dilation} give the corresponding bounds on the rates. Hence \begin{equation}\label{hk:eq:vd-matching-upper} p_t(x,y)\le \frac{C\exp[-c\,\mathcal A_\Psi(d(x,y),t)]} {\sqrt{m(B(x,\Psi^{-1}(t)))\,m(B(y,\Psi^{-1}(t)))}}\,. \end{equation} This is the upper estimate of the theory with one scale; compare~\cite[Theorem~1.12]{AB} and~\cite[Proposition~5.8]{LierlPHI}. The matching lower estimate is proved in Corollary~\ref{hk:cor:vd-matching}. \subsection{Uniform volume growth and Nash inequalities}\label{hk:sec:functional} This section assumes the uniform volume growth~\hV. Summing the Poincar\'e inequality over a covering by balls of radius~$r$ gives an inequality of Nash type, and hence a bound for the norm of the semigroup from~$L^1$ to~$L^\infty$. This is the method of~\cite[Lemmas~2.3--2.4 and proof of Theorem~2.1]{SC92}, with $r^2$ replaced by~$\Psi_P(r)$. The Poincar\'e inequality may have a dilation $\Lambda\ge1$ here, and neither conservativeness nor irreducibility is needed. \begin{proposition}[Nash inequality]\label{hk:prop:functional-averaging} Suppose that, uniformly in~$x$ and for~$00$ and~$C<\infty$ such that \begin{equation}\label{hk:eq:functional-averaging} \|f\|_2^2\le C\,\Psi_P(r)\,\cE(f,f) +\frac{C}{\Phi(r)}\,\|f\|_1^2\,, \qquad 00$, this implies \begin{equation}\label{hk:eq:functional-nash} \|f\|_2^{2+2a/Q} \le C\bigl(\cE(f,f)+r_*^{-a}\|f\|_2^2\bigr) \|f\|_1^{2a/Q}\,. \end{equation} If the hypotheses hold at every radius on an unbounded space, then~\eqref{hk:eq:functional-averaging} holds for every~$r>0$, and the term $r_*^{-a}\|f\|_2^2$ in~\eqref{hk:eq:functional-nash} can be omitted. \end{proposition} \begin{proof} Choose a maximal~$r$-separated family~$(x_i)$. The balls~$B_i=B(x_i,r)$ cover~$X$, and the balls~$B(x_i,\Lambda r)$ have uniformly bounded overlap, by Lemma~\ref{lem:cover}. Here~$r_*$ is chosen so that all the required dilations have radius at most~$r_0$. Write $\|f\|_2^2\le2\sum_i\int_{B_i}|f-f_{B_i}|^2\,dm+2\sum_im(B_i)|f_{B_i}|^2$. By the Poincar\'e inequality and the bounded overlap, the first sum is at most~$C\Psi_P(r)\cE(f,f)$. For the second, \begin{equation*} \sum_i m(B_i)|f_{B_i}|^2 \le \frac{C}{\Phi(r)} \sum_i\left(\int_{B_i}|f|\,dm\right)^2 \le \frac{C}{\Phi(r)}\,\|f\|_1^2\,. \end{equation*} This proves~\eqref{hk:eq:functional-averaging}. In the power case, choose~$r$ so that~$Cr^{-Q}\|f\|_1^2=\frac12\|f\|_2^2$, whenever this radius is at most~$r_*$. Absorbing the second term gives~\eqref{hk:eq:functional-nash} without the term $r_*^{-a}\|f\|_2^2$. If the selected radius exceeds~$r_*$, then~$\|f\|_2^2\le Cr_*^{-Q}\|f\|_1^2$, and this term alone proves~\eqref{hk:eq:functional-nash}. The same choice is always available when the assumptions hold at every radius. \end{proof} The passage from a Nash inequality to a bound for the semigroup is Nash's argument~\cite{Nash58}; for general profiles, see~\cite[Proposition~3.1 and Theorem~3.4]{CKKW}. We include it because the volume and Poincar\'e functions need not be powers. \begin{proposition}[Ultracontractivity]\label{hk:prop:functional-ultracontractivity} Under the hypotheses of Proposition~\ref{hk:prop:functional-averaging}, the semigroup admits a symmetric measurable heat kernel, and for some~$t_*>0$, \begin{equation}\label{hk:eq:functional-upper} \|P_t\|_{1\to\infty} \le \frac{C}{\Phi(\Psi_P^{-1}(t))}\,, \qquad 00$. In the power case the bound is~$Ct^{-Q/a}$. \end{proposition} \begin{proof} Let~$f\in L^1\cap L^2$ with~$\|f\|_1\le1$, and set~$y(t)=\|P_tf\|_2^2$. Then~$\|P_tf\|_1\le1$, because the semigroup is sub-Markovian and symmetric, and~$y'(t)=-2\cE(P_tf,P_tf)$. For~$y(t)$ above a fixed threshold, insert in~\eqref{hk:eq:functional-averaging} the radius determined by~$\Phi(r)=2C/y(t)$. Then \begin{equation*} -y'(t)\ge \frac{c\,y(t)}{H(y(t))}\,,\qquad H(v)=\Psi_P\bigl(\Phi^{-1}(2C/v)\bigr)\,. \end{equation*} The scaling of $\Phi$ and~$\Psi_P$ gives~$H(2^jv)\le C2^{-j\epsilon}H(v)$ for some~$\epsilon>0$, and hence \begin{equation*} \int_v^\infty \frac{H(s)}s\,ds\le C\,H(v)\,. \end{equation*} Integrating the differential inequality gives $ct\le CH(y(t))$, that is,~$y(t)\le C/\Phi(\Psi_P^{-1}(t))$ for~$00$ and the cutoff Sobolev inequality~\eqref{hk:eq:upper-csa-fixed} with~$S(s)=s^\beta$, where~$\beta\ge2$. There are~$C,c,t_0>0$ such that \begin{equation}\label{hk:eq:mixed-upper} p_t(x,y)\le C\,t^{-D} \exp\left[-c\left(\frac{d(x,y)^\beta}{t}\right)^{1/(\beta-1)}\right]\,, \qquad 00$ and $\lambda\ge\max\{1,r/r_0\}$, and apply Lemma~\ref{hk:lem:upper-perturbations} with~$S(s)=s^\beta$ and~$\beta_+=\beta$. Put~$K=(\lambda/r)^\beta$, $p_k=2^k$, $q_k=2p_k$, and~$\psi_k=\psi_{p_k}$. By~\eqref{hk:eq:upper-ramp-approx}, \begin{equation}\label{hk:eq:upper-adjacent-weights} \|\psi_k-\psi_{k-1}\|_\infty\le \frac C{q_k}\quad(k\ge1)\,, \qquad \psi_k\longrightarrow\lambda\rho\quad\text{in }L^\infty\,. \end{equation} For $f\ge0$ in $L^2\cap L^\infty$, write \begin{equation*} v_k(s)=e^{\psi_k}P_s(e^{-\psi_k}f)\,, \qquad U_k(s)=\|v_k(s)\|_{q_k}\,. \end{equation*} Since $P_s$ preserves positivity, \eqref{hk:eq:upper-adjacent-weights} implies \begin{equation}\label{hk:eq:upper-semigroup-comparison} e^{-C/q_k}\,v_{k-1}(s)\le v_k(s)\le e^{C/q_k}\,v_{k-1}(s)\,. \end{equation} This comparison is what allows the function~$\psi_k$ to depend on~$k$. \emph{Step 2: differential inequalities.} For $k=0$, \eqref{hk:eq:upper-perturbation} gives, as in~\eqref{hk:eq:upper-L2-twisted}, \begin{equation}\label{hk:eq:upper-L2-base} U_0(s)\le e^{CKs}\|f\|_2\,. \end{equation} For $k\ge1$, differentiate $U_k^{q_k}$. The inequality~\eqref{hk:eq:upper-perturbation} and the Nash inequality~\eqref{hk:eq:upper-nash}, applied to $v_k^{q_k/2}$, give \begin{equation*} \frac{d}{ds}U_k^{q_k} \le -c\,U_k^{q_k(1+1/D)}\,\|v_k\|_{q_k/2}^{-q_k/D} +C(1+q_k^\beta K)\,U_k^{q_k}\,, \end{equation*} where the term~$1$ comes from the zeroth-order term of the Nash inequality. If $U_{k-1}(s)\le M$ on an interval, then $\|v_k\|_{q_k/2}\le e^{C/q_k}M$ by~\eqref{hk:eq:upper-semigroup-comparison}, and therefore \begin{equation}\label{hk:eq:upper-iteration-ode} U_k'(s) \le -\frac c{q_k}\,M^{-q_k/D}\,U_k(s)^{1+q_k/D} +C\,q_k^{\beta-1}(1+K)\,U_k(s)\,. \end{equation} The constants are independent of $k$: the factor $e^{C/q_k}$ is raised to the power $q_k/D$ and remains bounded. If $M=0$, then $v_k=0$ on the interval and there is nothing to prove. \emph{Step 3: integration of the differential inequality.} Suppose that \begin{equation*} U'\le-\frac c q\,M^{-q/D}\,U^{1+q/D}+H\,U \end{equation*} on an interval of length $\delta$. Then, at its right endpoint, \begin{equation}\label{hk:eq:upper-ode-bound} U\le \Bigl(\frac C\delta\Bigr)^{D/q}M\,e^{H\delta}\,. \end{equation} Indeed, with $s$ measured from the left endpoint, the function $W=(e^{-Hs}U)^{-q/D}$ satisfies $W'\ge\frac cD\,M^{-q/D}$ on the interval, and $W\ge0$ at the left endpoint; compare~\cite[Lemma~2.4]{MSC}. No bound for~$U$ at the left endpoint is needed. \emph{Step 4: iteration.} Fix $t>0$. Choose \begin{equation*} \delta_k=c_\beta\,t\,2^{-k\beta}\,,\qquad \sum_{k\ge1}\delta_k=\frac t2\,, \qquad t_k=\sum_{i=1}^k\delta_i\,. \end{equation*} Let $M_k=\sup_{t_k\le s\le t}U_k(s)$, and let $M_0=\sup_{0\le s\le t}U_0(s)$. For $s\in[t_k,t]$, apply \eqref{hk:eq:upper-ode-bound} on the interval $[s-\delta_k,s]$, which lies in $[t_{k-1},t]$. We obtain \begin{equation*} M_k\le\Bigl(\frac C{\delta_k}\Bigr)^{D/q_k} \exp\bigl[C\,q_k^{\beta-1}(1+K)\,\delta_k\bigr]\,M_{k-1}\,. \end{equation*} Since \begin{equation*} \sum_{k\ge1}\frac1{q_k}=\frac12\,, \qquad \sum_{k\ge1}\frac{k}{q_k}<\infty\,, \qquad \sum_{k\ge1}q_k^{\beta-1}\delta_k\le C_\beta\,t\,, \end{equation*} iteration and~\eqref{hk:eq:upper-L2-base} give \begin{equation*} \limsup_{k\to\infty}U_k(t) \le C\,t^{-D/2}\,e^{C(1+K)t}\,\|f\|_2\,. \end{equation*} By the uniform convergence of the functions~$\psi_k$ in \eqref{hk:eq:upper-adjacent-weights}, and since a function whose $L^{q_k}$ norms are bounded as $q_k\to\infty$ is bounded by the same constant, this implies \begin{equation}\label{hk:eq:upper-twisted-2infty} \|e^{\lambda\rho}P_t\,e^{-\lambda\rho}\|_{2\to\infty} \le C\,t^{-D/2}\,e^{C(1+K)t}\,. \end{equation} Approximation removes the boundedness of~$f$. The differentiations above are first made for bounded initial data in the domain of the form and for regularized times; multiplication by $e^{\pm\psi_k}$ preserves the domain of the form by~\eqref{hk:eq:upper-subdivision}, and the chain rule gives the differential inequalities. Truncation and approximation by the semigroup extend them to the data used in the iteration, as in~\cite[Section~2.3]{MSC}. \emph{Step 5: the kernel.} Replacing all the functions $\psi_k$ by their negatives gives \eqref{hk:eq:upper-twisted-2infty} with $-\lambda\rho$. By duality, the corresponding estimate from $L^1$ to~$L^2$ holds with $\lambda\rho$. Composition at the time $t/2$ yields \begin{equation*} \|e^{\lambda\rho}P_t\,e^{-\lambda\rho}\|_{1\to\infty} \le C\,t^{-D}\exp\bigl[Ct+Ct(\lambda/r)^\beta\bigr]\,. \end{equation*} In particular, for $x\in B(z,r)$ and $y\notin B(z,2r)$, \begin{equation}\label{hk:eq:upper-separated-balls} p_t(x,y)\le C\,t^{-D} \exp\bigl[Ct+Ct(\lambda/r)^\beta-\lambda\bigr]\,. \end{equation} \emph{Step 6: optimization.} Take $r$ comparable to $d(x,y)$, with $x$ in the inner ball and $y$ outside the outer ball. When $d(x,y)^\beta/t$ is larger than a fixed constant, choose in~\eqref{hk:eq:upper-separated-balls} \begin{equation*} \lambda=c_1\left(\frac{r^\beta}{t}\right)^{1/(\beta-1)} \end{equation*} with a sufficiently small fixed $c_1$, so that $Ct(\lambda/r)^\beta\le\lambda/2$. The constraint $\lambda\ge1$ is satisfied after adjusting the threshold. If $r\le r_0$, this is the only constraint. If $r>r_0$, the additional condition $\lambda\ge r/r_0$ holds once $t\le t_0$, where $t_0>0$ is a sufficiently small fixed multiple of $r_0^\beta$. This proves the exponential bound. In the remaining region $d(x,y)^\beta/t\le C$, use~\eqref{hk:eq:upper-due}. \emph{Step 7: exceptional sets.} Make the construction for a countable dense set of centres, rational radii, and rational values of~$\lambda$ satisfying the constraints above. For each fixed $t$, discard the union of the corresponding null sets. Given distinct $x$ and~$y$, one can choose such a centre near $x$ and a rational radius between fixed multiples of $d(x,y)$ so that $x$ lies in the inner ball and $y$ lies outside the outer ball, and rational values of~$\lambda$ approximate the optimal one. Thus~\eqref{hk:eq:mixed-upper} holds almost everywhere for each $t$. \end{proof} \begin{remark}\label{hk:rem:upper-locality} If cutoff functions are only known for annuli contained in a prescribed open set, the argument gives the corresponding localized estimate, not an upper bound at arbitrary distances in $X$. Cutoff functions of small width at arbitrary inner radii, with uniform constants, are what allows the subdivision argument of Lemma~\ref{hk:lem:upper-perturbations} to handle all distances on an unbounded space. None of the arguments for upper bounds uses conservativeness. \end{remark} \paragraph{Conservativeness.} The semigroup is \emph{conservative} if $P_t1=1$ for every $t>0$. A criterion of Andres and Barlow~\cite[Theorem~1.16(a)]{AB} gives the following consequence of a cutoff Sobolev inequality at small widths. \begin{proposition}\label{hk:prop:conservation} Assume~\eqref{hk:eq:global-csa} at all sufficiently small widths, uniformly in the inner radius, and $\inf_{z\in X}\Psi_S(z,\rho)>0$ for each such fixed width $\rho$. If for some $o\in X$ and some $C,\kappa>0$ \begin{equation}\label{hk:eq:exponential-infinity} m(B(o,R))\le C e^{\kappa R}\qquad(R\ge1)\,, \end{equation} then the semigroup is conservative. If $X$ is geodesic, uniform doubling at small radii implies~\eqref{hk:eq:exponential-infinity}. On a compact space every strongly local regular Dirichlet form is conservative. \end{proposition} \begin{proof} Take a fixed width $\rho>0$ in the range of the hypotheses such that $\kappa\rho<\log4$. For $D_j=B(o,j\rho)$ the construction in Steps~1--2 of Lemma~\ref{hk:lem:h-weighted-cutoff} uses only widths at most $\rho$. Its estimate~\eqref{hk:eq:h-weighted-cs} with coefficient $1/8$ gives the condition $\mathrm{CSD}(D_j,D_{j+1},\theta)$ of~\cite[Definition~1.9]{AB} with $\theta=C/\inf_z\Psi_S(z,\rho)$ independent of $j$. The sets $D_j$ are relatively compact by properness, and \begin{equation*} 4^{-j}\theta\,m(D_{j+1}\setminus D_j) \le C\theta\,e^{\kappa\rho}(e^{\kappa\rho}/4)^j\longrightarrow0\,. \end{equation*} The criterion~\cite[Theorem~1.16(a)]{AB} gives conservativeness. Suppose now that $X$ is geodesic and $m$ is uniformly doubling at small radii. Fix $h>0$ so that $16h$ lies in the doubling range. Choose a maximal $h$-separated set containing $o$, and join centres at distance at most $3h$. Local doubling bounds the number of neighbours of each centre and compares the masses of the radius-$2h$ balls at neighbouring centres. For any centre in $B(o,R+h)$, subdivide a geodesic from $o$ into pieces of length at most $h$ and choose a centre within distance $h$ of each subdivision point. This gives a path of at most $\lceil R/h\rceil+2$ edges. Thus $B(o,R)$ is covered by at most $C^{1+R/h}$ balls of radius $2h$, each of mass at most $C^{1+R/h}m(B(o,2h))$. This proves~\eqref{hk:eq:exponential-infinity}, with constants uniform in $o$ when $\sup_o m(B(o,2h))<\infty$. If~$X$ is compact, the regularity of the form and a normal contraction of a continuous function of~$\cF$ which approximates~$1$ uniformly show that~$1\in\cF$. Strong locality gives~$\cE(1,1)=0$, hence~$P_t1=1$. \end{proof} Example~\ref{ex:KS-infinity} illustrates the fixed-width lower bound in Proposition~\ref{hk:prop:conservation}. On the weighted half-line the distance cutoffs satisfy~\eqref{hk:eq:global-csa} with $\Psi_S(x,r)=r^2e^{-2x}$. The change of variable $s=1-e^{-x}$ takes $m$ to Lebesgue measure and the quadratic energy to $\int_0^1|g'(s)|^2\,ds$. The compactly supported core imposes a zero trace at $s=1$. The semigroup therefore loses mass there. \paragraph{Confinement and diagonal lower bounds.} An upper bound for the heat kernel away from the diagonal implies that, for a conservative semigroup, most of the mass of $p_t(x,\cdot)$ lies in a ball. By the Cauchy--Schwarz inequality this gives a lower bound on the diagonal; this is the argument of Coulhon and Grigor'yan~\cite[Lemma~6.2]{CG97}. When the prefactor and the exponential decay of the upper bound are governed by different scales, the radius of the ball must be enlarged by a logarithmic factor; compare the logarithmic radius in~\cite[Theorem~6.1]{CG97}. \begin{proposition}\label{hk:prop:upper-tail-diagonal} Suppose that~\eqref{hk:eq:mixed-upper} holds with $D=Q/a$, $00$, for some $\kappa\ge0$. For all sufficiently small $t>0$ and every $R\ge t^{1/\beta}$, \begin{equation}\label{hk:eq:upper-integrated-tail} \int_{X\setminus B(x,R)}p_t(x,y)\,dm(y) \le \min\left\{1,\, C\,t^{Q/\beta-Q/a} \exp\left[-c\left(\frac{R^\beta}{t}\right)^{1/(\beta-1)}\right] \right\}\,. \end{equation} If the semigroup is conservative, then \begin{equation}\label{hk:eq:upper-diagonal-lower} p_t(x,x)\ge c\,t^{-Q/\beta}\,[\log(e/t)]^{-Q(\beta-1)/\beta}\,. \end{equation} When $a=\beta$, the logarithm can be omitted. The assertions hold for almost every $x$, with the diagonal values~\eqref{hk:eq:diagonal-version}. In particular, both conclusions hold on a proper geodesic space under uniform small-radius $\mathrm V(r^Q)$, $\PI(r^a)$ and $\CSA(r^\beta)$ at small widths uniformly in the inner radius, for $00$, \begin{equation*} \int_{X\setminus B(x,R)}p_t(x,y)\,dm(y) \le C\,t^{-Q/a}\,R_t^Q \sum_{k\ge0}\Bigl(\frac{2^kR}{R_t}\Bigr)^Q e^{-c(2^kR/R_t)^\eta}\,. \end{equation*} For $R/R_t\ge1$, the sum is at most $C\exp[-c'(R/R_t)^\eta]$. The bound by one holds because the semigroup is sub-Markovian. This proves~\eqref{hk:eq:upper-integrated-tail}. Choose \begin{equation}\label{hk:eq:upper-confinement-radius} R=K\,t^{1/\beta}\,[\log(e/t)]^{(\beta-1)/\beta}\,. \end{equation} For a sufficiently large fixed $K$, the second quantity in \eqref{hk:eq:upper-integrated-tail} is at most $1/2$. Conservativeness gives $\int_{B(x,R)}p_t(x,y)\,dm(y)\ge1/2$, and hence, by the Cauchy--Schwarz inequality, \begin{equation}\label{hk:eq:confinement-diagonal} p_{2t}(x,x)=\int_Xp_t(x,y)^2\,dm(y) \ge\frac{1}{4\,m(B(x,R))}\ge c\,R^{-Q}\,. \end{equation} Substitute~\eqref{hk:eq:upper-confinement-radius} and change the time by a fixed factor. If $a=\beta$, the polynomial factor in \eqref{hk:eq:upper-integrated-tail} is equal to one, and $R=Kt^{1/\beta}$ suffices. In either case $R\to0$, so $m(B(x,R))\le C R^Q$ at the confinement radius. Under the local geometric hypotheses, Theorem~\ref{hk:thm:mixed-upper} gives~\eqref{hk:eq:mixed-upper}. The net estimate in Proposition~\ref{hk:prop:conservation} gives uniform exponential volume growth at large radii, since $m(B(x,2h))\asymp h^Q$ for fixed small $h$. Together with the local volume bound this gives $m(B(x,R))\le C R^Qe^{\kappa R}$ at every radius. The same proposition gives conservativeness. \end{proof} \subsection{Lower bounds}\label{hk:sec:lower} Lower bounds for the heat kernel are obtained in two steps. First, a lower bound on the diagonal, or near the diagonal, at a suitable radius. Second, the propagation of this bound to arbitrary pairs of points by a chain of applications of the Harnack inequality. We begin with the second step, which is common to all the lower bounds of this chapter. \paragraph{Harnack chains.} The following lemma adapts the chaining of~\cite[Proposition~5.2]{BGK12}; for the corresponding chaining of the semigroup property and the optimization for general scale functions, see~\cite[Theorem~6.5 and Corollary~6.11]{GrTe12}. The cost of a chain is the sum of the Harnack constants of its links, and the two scales contribute to it separately. \begin{lemma}[Chain lemma]\label{hk:lem:lower-chain-transfer} Suppose that~$X$ is geodesic and that the Harnack inequality~\eqref{hk:eq:h-general-harnack} holds uniformly for every~$T>0$ and all radii in a specified range. First suppose that the scales are independent of the centre. Assume that~$\Psi_P$ and~$\Psi_S$ satisfy~\eqref{hk:eq:global-weak-scaling} in that range and that~$\Psi_S\le C\Psi_P$. Let~$s0$, \begin{equation}\label{hk:eq:lower-chain-transfer} p_t(x,y)\ge \exp\left[-C\left\{\frac{\Psi_P(r)}t \left(1+\frac{d(x,y)}r\right)^2 +\frac{t}{\Psi_S(r)}\right\}\right]p_{2t/3}(y,y) \end{equation} almost everywhere, and the radius can be optimized on a common set of full measure. For point-dependent scales the caloric comparison holds with factor $e^A$ and the kernel lower bound with factor $e^{-A}$, where \begin{equation}\label{hk:eq:variable-chain-cost} A=C\sum_{i=1}^{N}\left(1+\frac{N\Psi_P(z_i,r)}{\delta} +\frac{\delta}{N\Psi_S(z_i,r)}\right)\,. \end{equation} Here the $z_i$ are midpoints of equal subarcs of a geodesic between the two points, $N=1+\lceil 8d(x,y)/r\rceil$, and $\delta=t/3$ for the kernel estimate. The same argument applies to the semigroup killed outside an open set, if a geodesic from $x$ to~$y$ and all the enlarged balls of the chain lie in this open set. \end{lemma} \begin{proof} \emph{Step 1: the chain.} Choose an integer~$N\asymp1+d(x,y)/r$, with a sufficiently large fixed constant of comparison. Subdivide a geodesic from $x$ to~$y$ into~$N$ links of length at most a fixed small multiple of~$r$, and divide~$\delta$ into~$N$ equal increments. Apply~\eqref{hk:eq:h-general-harnack} on $N$ cylinders of radius comparable to~$r$ and time length comparable to~$\delta/N$, centred at the points of the subdivision. These cylinders lie in~$(s-\delta,v+\delta)\times X$, and the inner balls of consecutive cylinders intersect in balls of radius comparable to~$r$. Multiplying the $N$ inequalities gives a constant whose logarithm is at most \begin{equation*} C\left(N+\frac{N^2\,\Psi_P(r)}\delta+ \frac{\delta}{\Psi_S(r)}\right) \le C\left(\frac{N^2\,\Psi_P(r)}\delta+ \frac{\delta}{\Psi_S(r)}\right)\,, \end{equation*} for radius-only scales, since the sum of the last two terms is at least~$2N\sqrt{\Psi_P(r)/\Psi_S(r)}\ge cN$. For general scales use the Harnack factor on the cylinder centred at $z_i$ before summing. The resulting logarithm is bounded by~\eqref{hk:eq:variable-chain-cost}. In passing to countable approximations of the chain, nearby-centre comparison controls each term. \emph{Step 2: fixed times and exceptional sets.} The Harnack inequality compares essential suprema and infima over cylinders in space and time. For fixed times, approximate by times at which the comparison holds, use the continuity in~$L^2_{\mathrm{loc}}$, and extract subsequences which converge almost everywhere. Choose the balls in a countable family with dense centres and dyadic radii. Consecutive balls intersect in sets of positive measure, so the essential comparisons propagate along the chain without evaluating the solution at prescribed points. Countable unions of null sets, and Fubini's theorem for the rows of the kernel, justify all these comparisons simultaneously. By~\eqref{hk:eq:global-weak-scaling}, an arbitrary radius can be replaced by a dyadic one at the cost of a fixed factor, which allows the optimization in~$r$. \emph{Step 3: the kernel.} The rows of the kernel are weak solutions away from the time zero. Apply~\eqref{hk:eq:lower-caloric-chain} to $u(\tau,\cdot)=p_\tau(\cdot,w)$ between the times~$t/3$ and~$2t/3$, with the two points interchanged. If~$A$ denotes the exponent in~\eqref{hk:eq:lower-caloric-chain}, this gives \begin{equation}\label{hk:eq:lower-row-chain} p_{2t/3}(x,w)\ge e^{-A}\,p_{t/3}(y,w)\,. \end{equation} Multiply by~$p_{t/3}(y,w)$ and integrate in~$w$. The symmetry of the kernel and the semigroup property give~\eqref{hk:eq:lower-chain-transfer}, with the diagonal value~\eqref{hk:eq:diagonal-version}. \end{proof} \paragraph{A near-diagonal lower bound from a cutoff function.} The next lemma gives a lower bound for the heat kernel in a ball, without assuming conservativeness. A cutoff function~$\chi$ of small energy gives a lower bound for the average $\langle P_s\chi,\chi\rangle$, by the spectral theorem~\cite[equation~(2.1) and Proposition~2.1]{CG97}; the Harnack inequality, applied in the two variables of the kernel, converts this average into a pointwise bound. \begin{lemma}\label{hk:lem:general-cutoff-lower} Assume that $X$ is proper and geodesic and that the local hypotheses of Chapter~\ref{sec:harnack-chapter} hold. Then there are structural constants $c,C,K>0$ such that \begin{equation}\label{hk:eq:general-cutoff-lower} p_t(y,z)\ge\frac{c}{m(B(x,r))} \exp\left[-C\left(1+\frac{\Psi_P(x,r)}t+\frac{t}{\Psi_S(x,r)}\right)\right]\,, \qquad y,z\in B(x,r)\,,\quad t>0\,, \end{equation} for $m\otimes m$-almost every pair, whenever all the fixed dilations of the balls which occur are in the range of the hypotheses. The same estimate holds for the kernel of the semigroup killed outside $B(x,Kr)$. With the diagonal values~\eqref{hk:eq:diagonal-version}, the bound holds for $y=z$, for almost every $y\in B(x,r)$, for both kernels. \end{lemma} \begin{proof} \emph{Step 1: the average.} By~\eqref{hk:eq:cutoff-capacity}, there is a cutoff function $\chi\in\cF_0(B(x,2r))$, with $0\le\chi\le1$, equal to one on $B(x,r)$, such that \begin{equation*} \|\chi\|_2^2\asymp m(B(x,r))\,,\qquad \|\chi\|_1\asymp m(B(x,r))\,,\qquad \cE(\chi,\chi)\le C\,\frac{m(B(x,r))}{\Psi_S(x,r)}\,. \end{equation*} Let $D=B(x,Kr)$, where $K$ is a sufficiently large structural constant, and let $P^D_s$ be the semigroup killed outside~$D$, with kernel~$p^D_s$. Jensen's inequality for the spectral measure of $\chi$, as in~\cite[equation~(2.1)]{CG97}, gives \begin{equation}\label{hk:eq:lower-spectral-average} \langle P_s^D\chi,\chi\rangle \ge\|\chi\|_2^2 \exp\left(-s\,\frac{\cE(\chi,\chi)}{\|\chi\|_2^2}\right) \ge c\,m(B(x,r))\exp\Bigl[-\frac{Cs}{\Psi_S(x,r)}\Bigr]\,. \end{equation} \emph{Step 2: the Harnack inequality in each variable.} By Proposition~\ref{hk:prop:vd-kernel-existence}, the rows of the kernels $p_s$ and~$p^D_s$ are weak solutions on $(\varepsilon,\infty)$ for every $\varepsilon>0$, with representatives which are continuous in time with values in~$L^2_{\mathrm{loc}}$. Apply the Harnack inequality successively in the two variables of the symmetric kernel~$p^D$, comparing the times $t/4$, $t/2$ and~$t$. One may use the ball $B(x,4r)$ in both comparisons, with $(t_0,T)=(3t/8,t/5)$ and $(3t/4,2t/5)$ respectively. The inner ball $B(x,2r)$ contains $\supp\chi$ and $B(x,r)$, and both cylinders lie in $(t/8,\infty)$. Choose $K>4$ and restrict $r$ so that these balls and their fixed dilations are in the range of the hypotheses. With \begin{equation*} H=\exp\left[C\left(1+\frac{\Psi_P(x,r)}t+\frac{t}{\Psi_S(x,r)}\right)\right]\,, \end{equation*} \eqref{hk:eq:h-general-harnack} and the scaling of $\Psi_P$ and~$\Psi_S$ give \begin{equation*} p_{t/4}^D(u,v)\le H\,p_{t/2}^D(y,v)\le H^2\,p_t^D(y,z) \end{equation*} for almost every $u,v\in\supp\chi$ and $y,z\in B(x,r)$; the comparisons at fixed times are justified as in Lemma~\ref{hk:lem:lower-chain-transfer}. \emph{Step 3: conclusion.} Integrating against $\chi(u)\chi(v)$ and using~\eqref{hk:eq:lower-spectral-average} at $s=t/4$, \begin{equation*} p_t^D(y,z)\ge \frac{\langle P_{t/4}^D\chi,\chi\rangle}{H^2\,\|\chi\|_1^2} \ge\frac{c}{m(B(x,r))} \exp\left[-C\left(1+\frac{\Psi_P(x,r)}t+\frac{t}{\Psi_S(x,r)}\right)\right]\,. \end{equation*} Since $p_t\ge p^D_t$, the same bound holds for the full semigroup. For the diagonal, apply the bound at the time $t/2$ and integrate its square over $B(x,r)$ in~\eqref{hk:eq:diagonal-version}. This argument applies separately to the two kernels, and it does not evaluate on the diagonal an estimate which holds almost everywhere in the product. \end{proof} \paragraph{Two-sided estimates at matching scales.} When the two scales coincide, the near-diagonal bound and the semigroup property give the lower bound which matches~\eqref{hk:eq:vd-matching-upper}. The result is the classical implication from volume doubling, the Poincar\'e inequality and the cutoff Sobolev inequality at one scale to two-sided sub-Gaussian estimates~\cite{BBK,AB,GHL}; it is recovered here from the estimates with two scales. \begin{corollary}\label{hk:cor:vd-matching} Let $X$ be unbounded, proper and geodesic. Suppose that $\hVD$, $\PI(\Psi)$ and $\CSA(\Psi)$ hold globally, where $\Psi$ is a continuous increasing bijection of $(0,\infty)$ satisfying~\eqref{hk:eq:global-weak-scaling} with a lower exponent greater than one. Then the semigroup is conservative, and its heat kernel satisfies \begin{equation}\label{hk:eq:vd-matching-kernel} \frac{c}{m(B(x,\Psi^{-1}(t)))}\,e^{-C\mathcal A_\Psi(d(x,y),t)} \le p_t(x,y)\le \frac{C}{m(B(x,\Psi^{-1}(t)))}\,e^{-c\mathcal A_\Psi(d(x,y),t)} \qquad(t>0) \end{equation} for almost every pair $(x,y)$, with structural constants. The same statement holds when the Poincar\'e scale and the cutoff Sobolev scale are both comparable to $\Psi$. \end{corollary} \begin{proof} \emph{Conservativeness.} Geodesicity, local doubling and the cutoff inequality at small widths give conservativeness by Proposition~\ref{hk:prop:conservation}. \emph{Upper bound.} Put $r_t=\Psi^{-1}(t)$. By doubling, \begin{equation*} \frac{m(B(x,r_t))}{m(B(y,r_t))} \le C\left(1+\frac{d(x,y)}{r_t}\right)^{Q_D}\,. \end{equation*} Inserting this in~\eqref{hk:eq:vd-matching-upper}, the polynomial factor is absorbed by decreasing the constant in the exponential: the upper scaling of~$\Psi$ gives $\mathcal A_\Psi(d,t)\ge c\,(d/r_t)^{\beta_+/(\beta_+-1)}$ for $d\ge r_t$, while the factor is bounded for $d\le r_t$. \emph{Near-diagonal lower bound.} Lemma~\ref{hk:lem:general-cutoff-lower} at the radius $r_t$ gives \begin{equation*} p_t(x,y)\ge\frac{c}{m(B(x,r_t))} \qquad\text{if }d(x,y)\le\varepsilon\,r_t\,, \end{equation*} for a fixed $\varepsilon>0$. \emph{Chaining.} We extend this bound to arbitrary distances, following~\cite[proof of Theorem~6.5 and Corollary~6.11]{GrTe12}. Fix a sufficiently small $\delta>0$, depending on $\varepsilon$. Let $N$ be the least positive integer such that \begin{equation*} \frac{d(x,y)}N\le\delta\,\Psi^{-1}\Bigl(\frac tN\Bigr)\,. \end{equation*} Such an integer exists because the lower scaling exponent of~$\Psi$ is greater than one. Write $\tau=t/N$ and $\rho=\delta\Psi^{-1}(\tau)$, and divide a geodesic from $x$ to $y$ into $N$ links of length at most $\rho$. In the semigroup property \begin{equation*} p_t(x,y)=\int\!\cdots\!\int p_\tau(x,z_1)\,p_\tau(z_1,z_2)\cdots p_\tau(z_{N-1},y)\,dm(z_1)\cdots dm(z_{N-1})\,, \end{equation*} restrict each variable~$z_i$ to the ball of radius $\rho$ about the $i$-th point of the subdivision. With $\delta$ small enough, each factor is bounded below by the near-diagonal estimate at the time~$\tau$. By doubling, the volume in the denominator of each factor is comparable to the volume of the ball over which the preceding variable is integrated. All the intermediate volumes cancel, leaving \begin{equation*} p_t(x,y)\ge\frac{c^N}{m(B(x,\rho))} \ge\frac{c^N}{m(B(x,r_t))}\,, \qquad 01$, put $n=N-1$. By the minimality of~$N$, $t2$. Moreover, nonnegative local weak solutions satisfy a Harnack inequality of the form~\eqref{hk:eq:h-general-harnack} whose constant, on cylinders of radius~$r$ and time length~$T$, has a logarithm at most \begin{equation}\label{hk:eq:lower-harnack-cost} C\left(1+\frac{r^a}{T}+\frac{T}{r^\beta}\right)\,. \end{equation} Theorem~\ref{hk:thm:h-local-harnack} gives this under $m(B(x,r))\asymp r^Q$, $\PI(r^a)$ and the cutoff Sobolev inequality at the scale~$r^\beta$. All radii below are restricted so that the fixed dilations of the balls remain in the range of the assumptions. The conclusions hold for~$m\otimes m$-almost every pair. \begin{proposition}\label{hk:prop:lower-cutoff-seed} Under~\eqref{hk:eq:lower-local-data} and~\eqref{hk:eq:lower-harnack-cost}, there are constants~$c,C,K>0$ such that \begin{equation}\label{hk:eq:lower-cutoff-seed} p_t(y,z)\ge c\,r^{-Q} \exp\left[-C\left(1+\frac{r^a}{t}+\frac{t}{r^\beta}\right)\right]\,, \qquad y,z\in B(x,r)\,,\quad t>0\,. \end{equation} The estimate also holds for the heat kernel killed outside~$B(x,Kr)$. In particular, with \begin{equation}\label{hk:eq:lower-alpha-q} \alpha=\frac{a+\beta}{2}\,, \qquad q=\frac{\beta-a}{a+\beta}\,, \end{equation} there is~$t_*>0$ such that \begin{equation}\label{hk:eq:lower-near-diagonal} p_t(y,z)\ge c\,t^{-Q/\alpha}\exp(-Ct^{-q})\,, \qquad d(y,z)\le c\,t^{1/\alpha}\,,\quad 01\,. \end{equation} There are~$c,C,t_*>0$ such that, for~$00$ so that its required dilations are admissible. For all sufficiently small $t>0$ and almost every pair, with $d=d(x,y)$, \begin{equation}\label{hk:eq:low-a-distance} p_t(x,y)\ge c\,t^{-Q/\alpha}e^{-Ct^{-q}} \begin{cases} \exp(-C d^a/t),& d\le r_1,\\ \exp(-C r_1^{a-2}d^2/t),& d\ge r_1. \end{cases} \end{equation} Both estimates apply on compact and noncompact spaces. If $a=\beta$, then $\alpha=b_-=a$ and $q=0$, and~\eqref{hk:eq:lower-global} is the usual sub-Gaussian lower bound. \end{theorem} \begin{proof} The bound~\eqref{hk:eq:lower-cutoff-diagonal} for the full semigroup, with~$r\asymp t^{1/\alpha}$ and at the time~$2t/3$, gives \begin{equation}\label{hk:eq:lower-diagonal-seed} p_{2t/3}(y,y)\ge c\,t^{-Q/\alpha}\exp(-Ct^{-q}) \end{equation} for almost every~$y$. Apply Lemma~\ref{hk:lem:lower-chain-transfer} with~$\Psi_P(r)=r^a$ and~$\Psi_S(r)=r^\beta$. Put~$d=d(x,y)$ and choose \begin{equation*} r=c\min\left\{t^{1/\alpha}, \Bigl(\frac td\Bigr)^{1/(\alpha-1)}\right\}\,, \end{equation*} where the second term is~$+\infty$ when~$d=0$. For sufficiently small~$t$, all the enlarged radii are in the range of the assumptions. If~$d\le t^{1/\alpha}$, the exponent in~\eqref{hk:eq:lower-chain-transfer} is at most~$Ct^{-q}$. Otherwise~$r\asymp(t/d)^{1/(\alpha-1)}$ and~$d/r\ge c$, so that this exponent is at most \begin{equation*} C\left(\frac{d^2\,r^{a-2}}t+\frac t{r^\beta}\right) \le C\,d^{2\beta/(a+\beta-2)}\, t^{-(2+\beta-a)/(a+\beta-2)} =C\left(\frac{d^{b_-}}t\right)^{1/(b_--1)}\,. \end{equation*} Combining with~\eqref{hk:eq:lower-diagonal-seed} proves~\eqref{hk:eq:lower-global}. For~\eqref{hk:eq:low-a-distance}, take $t\le r_1^\alpha$. When $d\le t^{1/\alpha}$ the choice $r=t^{1/\alpha}$ costs at most $Ct^{-q}$. When $t^{1/\alpha}0$ the cost in~\eqref{hk:eq:lower-global} is of order $t^{-1/(b_--1)}$, whereas~\eqref{hk:eq:low-a-distance} gives a cost of order $t^{-1}$. When $a=\beta$, the two sub-Gaussian bounds have the same walk dimension. \subsection{Global estimates}\label{hk:sec:global-estimates} In this section $\Psi_P$ and $\Psi_S$ are functions of the radius alone. The hypotheses \eqref{hk:eq:global-volume}, \eqref{hk:eq:global-pi} and~\eqref{hk:eq:global-csa} hold globally, $X$ is unbounded and geodesic, and $\Psi_S$ has a lower scaling exponent $\beta_->1$. All radii and all positive times are allowed. The estimates are expressed with the scale functions themselves, so that the radii selected in a proof may lie on either side of a change of behaviour of these functions. General scale functions, including different powers below and above the radius one, already occur in~\cite[Section~1 and Lemma~1.5]{AB} and~\cite[Section~3.3 and Section~6]{GrTe12}. The distinction made here is between the two scales $\Psi_P$ and~$\Psi_S$ at the same radius. \paragraph{Order of the scales and Harnack inequality.} We first record what the results of Chapter~\ref{sec:harnack-chapter} give under the global hypotheses. \begin{proposition}\label{hk:prop:global-order} The global hypotheses imply \begin{equation}\label{hk:eq:global-order} \Psi_S(r)\le C\,\Psi_P(r)\,,\qquad r>0\,. \end{equation} \end{proposition} \begin{proof} This is Proposition~\ref{prop:quadratic-scale-order}, applied to the capacity scale $\Psi_S$ of~\eqref{hk:eq:cutoff-capacity}. \end{proof} \begin{corollary}\label{hk:thm:global-harnack} For every~$r,T>0$, every~$x\in X$, and every nonnegative local weak solution on~$(t_0-T,t_0+T)\times B(x,r)$, \begin{equation}\label{hk:eq:global-harnack} \esssup_{Q_-}u\le \exp\!\left[C\left(\frac{\Psi_P(r)}T+ \frac{T}{\Psi_S(r)}\right)\right] \essinf_{Q_+}u\,, \end{equation} where \begin{equation*} Q_-=(t_0-3T/4,t_0-T/2)\times B(x,r/2)\,,\qquad Q_+=(t_0+T/2,t_0+3T/4)\times B(x,r/2)\,. \end{equation*} Consequently, nonnegative weakly harmonic functions on~$B(x,r)$ satisfy \begin{equation}\label{hk:eq:global-elliptic} \esssup_{B(x,r/2)}h\le \exp\!\left[C\sqrt{\frac{\Psi_P(r)}{\Psi_S(r)}}\,\right] \essinf_{B(x,r/2)}h\,. \end{equation} Moreover, let~$s0$ and almost every pair $(x,y)$, \begin{equation}\label{hk:eq:global-solution-chain} u(s,x)\le \exp\left[C\left\{ \frac{\Psi_P(r)}\delta\left(1+\frac{d(x,y)}r\right)^2+ \frac{\delta}{\Psi_S(r)}\right\}\right]u(v,y)\,, \end{equation} with the conventions of Lemma~\ref{hk:lem:lower-chain-transfer} for the values at fixed times. The exponent may be minimized over~$r>0$. \end{corollary} \begin{proof} Theorem~\ref{hk:thm:h-local-harnack} applies at every radius, with structural constants. The constant~$1$ in its exponent is absorbed, because $\Psi_P(r)/T+T/\Psi_S(r)\ge2\sqrt{\Psi_P(r)/\Psi_S(r)}\ge c$ by~\eqref{hk:eq:global-order}. This gives~\eqref{hk:eq:global-harnack}. For~\eqref{hk:eq:global-elliptic}, apply it to the stationary solution with~$T=\sqrt{\Psi_P(r)\Psi_S(r)}$. By~\eqref{hk:eq:global-order}, Lemma~\ref{hk:lem:lower-chain-transfer} applies and gives~\eqref{hk:eq:global-solution-chain}. \end{proof} Two remarks on~\eqref{hk:eq:global-solution-chain}. First, the hypothesis requires the solution on the interval $(s-\delta,v+\delta)$. If a solution is only given on~$(0,\infty)\times X$, one may instead choose a chain with~$N\ge C\max\{1+d(x,y)/r,(v-s)/s\}$ links, which ensures that the first cylinder remains at positive times; its cost is~$C(N^2\Psi_P(r)/(v-s)+(v-s)/\Psi_S(r))$. The arguments below use times proportional to the final time and need no such restriction. Second, if $\Psi_P/\Psi_S$ is bounded for $r\ge1$, the Harnack constant at $T=\sqrt{\Psi_P(r)\Psi_S(r)}$ is uniform for $r\ge1$. \paragraph{Upper bound with a uniform prefactor.} From here to the end of the chapter we assume in addition~\hV{} at every radius, with $\Phi$ continuous, strictly increasing and satisfying~\eqref{hk:eq:global-weak-scaling}. The decay is given by the rate~\eqref{eq:rate-function} for $\Psi_S$. \begin{theorem}\label{hk:thm:global-mixed-upper} Under the global hypotheses and~\hV, the heat kernel satisfies, for every $t>0$ and almost every pair $(x,y)$, \begin{equation}\label{hk:eq:global-mixed-upper} p_t(x,y)\le\frac{C}{\Phi(\Psi_P^{-1}(t))}\, \exp\bigl[-c\,\mathcal A_{\Psi_S}(d(x,y),t)\bigr]\,. \end{equation} Conservativeness is not used. \end{theorem} \begin{proof} We reduce to the iteration of Theorem~\ref{hk:thm:mixed-upper} by a normalization which depends on the time. \emph{Step 1: a normalized Nash inequality.} Fix $t>0$, set $r_t=\Psi_P^{-1}(t)$, and normalize the measure and the form by \begin{equation*} m_t=\Phi(r_t)^{-1}m\,,\qquad \cE_t=t\,\Phi(r_t)^{-1}\cE\,. \end{equation*} The semigroup of the normalized form at the time $s$ is $P_{ts}$. Let $Q_+$ be an upper scaling exponent of $\Phi$ and $a_->0$ a lower scaling exponent of $\Psi_P$. The inequality~\eqref{hk:eq:functional-averaging} at the radius $h\,r_t$ gives, for $00$ and~$\lambda\ge1$. Lemma~\ref{hk:lem:upper-perturbations} supplies the perturbations for this scale, with the coefficient~$Cp^{\beta_+-1}t/\Psi_S(r/\lambda)$ in~\eqref{hk:eq:upper-perturbation}. Apply Steps~1 to~5 of the proof of Theorem~\ref{hk:thm:mixed-upper} to~\eqref{hk:eq:global-normalized-nash} at the normalized time one, with~$\beta=\beta_+$ and~$K=t/\Psi_S(r/\lambda)$. The zeroth-order term of the Nash inequality contributes a fixed factor. Returning to the original measure gives \begin{equation*} \|e^{\lambda\rho}P_t\,e^{-\lambda\rho}\|_{1\to\infty} \le\frac{C}{\Phi(r_t)}\, \exp\left[\frac{Ct}{\Psi_S(r/\lambda)}\right]\,. \end{equation*} For $x$ in the inner ball $B(z,r)$ and $y$ outside the outer ball $B(z,2r)$, the kernel is therefore at most \begin{equation*} \frac{C}{\Phi(r_t)}\, \exp\left[-\lambda+\frac{Ct}{\Psi_S(r/\lambda)}\right]\,. \end{equation*} \emph{Step 3: optimization.} Choose $r$ comparable to $d(x,y)$ and optimize over $\lambda\ge1$. With $s=r/\lambda$ this gives the supremum over $s\le r$ in~\eqref{eq:rate-function}. The values $s>r$ contribute at most one to the supremum, and the bound~\eqref{hk:eq:functional-upper} covers the region where the restricted supremum is bounded. Thus \begin{equation*} p_t(x,y)\le\frac{C}{\Phi(r_t)}\, \exp\bigl[-\mathcal A_{\Psi_S}(c_1d(x,y),C_1t)\bigr]\,. \end{equation*} By Lemma~\ref{lem:heatcost}\ref{hc:dilation}, $\mathcal A_{\Psi_S}(c_1d,C_1t)\ge c\,\mathcal A_{\Psi_S}(d,t)$. Countable dense choices of centres and rational radii and parameters give the assertion almost everywhere, as in Theorem~\ref{hk:thm:mixed-upper}. \end{proof} \paragraph{Confinement.} Proposition~\ref{hk:prop:conservation} gives conservativeness under the global hypotheses. The diagonal lower bound follows from confinement, as in Proposition~\ref{hk:prop:upper-tail-diagonal}, with a radius chosen by means of the scale functions. For the rest of this section set \begin{equation}\label{hk:eq:global-confinement-radius} \rho_t=\Psi_S^{-1}(t)\,,\qquad L_t=1+\log^+\frac{\Phi(\rho_t)}{\Phi(\Psi_P^{-1}(t))}\,,\qquad R_t=K\rho_t\,L_t^{(\beta_+-1)/\beta_+}\,, \end{equation} where~$\log^+v=\max\{0,\log v\}$ and~$K$ is a sufficiently large structural constant. By~\eqref{hk:eq:global-order}, $\rho_t\ge c\,\Psi_P^{-1}(t)$; the number~$L_t$ measures the discrepancy between the two scales at the time~$t$, and $L_t=1$, $R_t=K\rho_t$ when they coincide. For each fixed~$c>0$, $R_{ct}\asymp R_t$ uniformly in~$t$, because the inverses of the scale functions change by bounded factors and the logarithm changes by a bounded additive quantity. \begin{proposition}\label{hk:prop:global-confinement} One may choose~$K$ in~\eqref{hk:eq:global-confinement-radius} so that, for every~$t>0$ and almost every~$x$, \begin{equation}\label{hk:eq:global-confinement} \int_{B(x,R_t)}p_t(x,y)\,dm(y)\ge\frac12\,, \qquad p_t(x,x)\ge\frac{c}{\Phi(R_t)}\,. \end{equation} Moreover, for~$R\ge\rho_t$, \begin{equation}\label{hk:eq:global-tail} \int_{X\setminus B(x,R)}p_t(x,y)\,dm(y) \le\min\left\{1,\ C\,\frac{\Phi(\rho_t)}{\Phi(\Psi_P^{-1}(t))}\, \exp\left[-c\Bigl(\frac R{\rho_t}\Bigr)^{\beta_+/(\beta_+-1)}\right]\right\}\,. \end{equation} The diagonal value is~\eqref{hk:eq:diagonal-version}. \end{proposition} \begin{proof} Put~$\gamma=\beta_+/(\beta_+-1)$. For $w=R/\rho_t\ge1$, apply Theorem~\ref{hk:thm:global-mixed-upper} on dyadic annuli. Lemma~\ref{lem:heatcost}\ref{hc:far} gives \begin{align*} \int_{X\setminus B(x,R)}p_t(x,y)\,dm(y) &\le C\,\frac{\Phi(\rho_t)}{\Phi(\Psi_P^{-1}(t))} \sum_{j\ge0}(2^jw)^{Q_+}e^{-c(2^jw)^\gamma}\\ &\le C\,\frac{\Phi(\rho_t)}{\Phi(\Psi_P^{-1}(t))}\,e^{-c'w^\gamma}\,. \end{align*} The bound by one holds because the semigroup is sub-Markovian. At~$R=R_t$, a sufficiently large structural~$K$ makes the last expression at most~$1/2$, by the definition of~$L_t$. Conservativeness gives the first assertion of~\eqref{hk:eq:global-confinement}. Apply the Cauchy--Schwarz estimate~\eqref{hk:eq:confinement-diagonal} at the radius~$R_t$, with~$m(B(x,R_t))\le C\Phi(R_t)$. Replacing~$2t$ by~$t$ and using~$R_{t/2}\asymp R_t$ proves the diagonal bound. \end{proof} \paragraph{Lower bounds.} The chain lemma (Lemma~\ref{hk:lem:lower-chain-transfer}) propagates a lower bound on the diagonal to arbitrary pairs of points. Two diagonal bounds are available, and they give the first two assertions of the next theorem. \begin{theorem}\label{hk:thm:global-lower} Assume the global hypotheses and~\hV. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{gl:variational} For every~$t>0$ and almost every~$(x,y)$, \begin{equation}\label{hk:eq:global-variational-lower} p_t(x,y)\ge\frac{c}{\Phi(R_t)}\, \exp\left[-C\inf_{r>0}\left\{ \frac{\Psi_P(r)}t\left(1+\frac{d(x,y)}r\right)^2+ \frac{t}{\Psi_S(r)}\right\}\right]\,. \end{equation} \item\label{gl:seed} For every~$R,r>0$, \begin{equation}\label{hk:eq:global-capacity-seed-lower} p_t(x,y)\ge\frac{c}{\Phi(R)}\exp\left[-C\left\{ \frac{\Psi_P(R)}t+\frac{t}{\Psi_S(R)} +\frac{\Psi_P(r)}t\left(1+\frac{d(x,y)}r\right)^2 +\frac{t}{\Psi_S(r)}\right\}\right]\,. \end{equation} The proof of this bound uses neither conservativeness nor the upper estimate~\eqref{hk:eq:global-mixed-upper}. \item\label{gl:local} For points in a common ball, \begin{equation}\label{hk:eq:global-local-lower} p_t(y,z)\ge\frac{c}{\Phi(R)}\, \exp\!\left[-C\left(\frac{\Psi_P(R)}t+ \frac{t}{\Psi_S(R)}\right)\right]\,, \qquad y,z\in B(x,R)\,. \end{equation} This estimate holds also for the kernel killed outside~$B(x,KR)$, with a fixed structural~$K$. \end{enumerate} \end{theorem} The bound~\ref{gl:variational} starts from the diagonal bound given by confinement, and~\ref{gl:seed} from the diagonal bound given by a cutoff function at an arbitrary radius~$R$. Neither implies the other in general. \begin{proof} \ref{gl:variational} By Lemma~\ref{hk:lem:lower-chain-transfer}, $p_t(x,y)$ is at least~$p_{2t/3}(y,y)$ times the exponential in~\eqref{hk:eq:lower-chain-transfer}, and Proposition~\ref{hk:prop:global-confinement} gives~$p_{2t/3}(y,y)\ge c/\Phi(R_t)$. Optimizing the radius proves~\eqref{hk:eq:global-variational-lower}. \ref{gl:local} Lemma~\ref{hk:lem:general-cutoff-lower} applies at every radius and gives~\eqref{hk:eq:global-local-lower}, for the full kernel and for the kernel killed outside $B(x,KR)$. The constant term in the exponential is absorbed because $\Psi_S\le C\Psi_P$. \ref{gl:seed} The diagonal conclusion of Lemma~\ref{hk:lem:general-cutoff-lower}, at the time $2t/3$, gives \begin{equation*} p_{2t/3}(y,y)\ge\frac{c}{\Phi(R)}\, \exp\!\left[-C\left(\frac{\Psi_P(R)}t+ \frac{t}{\Psi_S(R)}\right)\right] \end{equation*} for almost every~$y\in B(x,R)$. A countable covering gives this bound almost everywhere on~$X$; taking dyadic values of~$R$ first makes the exceptional set independent of~$R$. Insert it in~\eqref{hk:eq:lower-chain-transfer} to obtain~\eqref{hk:eq:global-capacity-seed-lower}. For a killed semigroup the same propagation applies when the ball of radius~$R$ and all the enlarged balls of the chain lie in the domain. \end{proof} \paragraph{The balanced radius.} Let~$\Xi(r)=\sqrt{\Psi_P(r)\Psi_S(r)}$. At the radius $R=\Xi^{-1}(t)$ the two terms in the exponent of~\eqref{hk:eq:global-local-lower} are equal, and \begin{equation}\label{hk:eq:global-balanced-near} p_t(x,y)\ge\frac{c}{\Phi(\Xi^{-1}(t))}\, \exp\left[-C \sqrt{\frac{\Psi_P(\Xi^{-1}(t))}{\Psi_S(\Xi^{-1}(t))}}\,\right] \qquad\text{when }d(x,y)\le c\,\Xi^{-1}(t)\,. \end{equation} \paragraph{Different powers at small and large radii.}\label{hk:subsec:global-powers} To make the general estimates explicit, assume that the three functions are \begin{equation}\label{hk:eq:global-broken-powers} \begin{aligned} \Phi(r)&=\begin{cases}r^{Q_0}\,,&00$,~$\beta_0\ge2$ and~$\beta_\infty>1$. Multiplicative constants and different transition radii for the three functions are covered by the general theorems without change. Proposition~\ref{hk:prop:global-order} gives the necessary conditions \begin{equation}\label{hk:eq:global-power-order} a_0\le\beta_0\,,\qquad \beta_\infty\le a_\infty\,. \end{equation} In particular, two distinct powers~$r^a$ and~$r^\beta$ cannot be the Poincar\'e and cutoff Sobolev scales at every radius: at small radii the Poincar\'e exponent is the smaller one, and at large radii it is the larger one. The conditions~\eqref{hk:eq:global-power-order} are necessary; we do not assert that every such tuple of exponents is realized. Put~$\alpha_i=(a_i+\beta_i)/2$ for~$i\in\{0,\infty\}$. With the time length which minimizes the exponent in~\eqref{hk:eq:global-harnack}, the logarithm of the Harnack constant is bounded as follows: \begin{center} \begin{tabular}{@{}lll@{}} \toprule Radius & Time length & Bound for the logarithm of the Harnack constant\\ \midrule $00$, \begin{equation}\label{hk:eq:global-power-upper} p_t(x,y)\le C \begin{cases}t^{-Q_0/a_0}\,,&t\le1\,,\\t^{-Q_\infty/a_\infty}\,,&t\ge1\,,\end{cases} \ \times\ \exp\bigl[-c\,\mathcal A_{\Psi_S}(d(x,y),t)\bigr]\,, \end{equation} where, for~$d>0$, \begin{equation}\label{hk:eq:global-power-action} \mathcal A_{\Psi_S}(d,t)\asymp \begin{cases} (d^{\beta_0}/t)^{1/(\beta_0-1)}\,,&t\le d\,,\\ (d^{\beta_\infty}/t)^{1/(\beta_\infty-1)}\,,&t\ge d\,. \end{cases} \end{equation} The diagonal satisfies \begin{equation}\label{hk:eq:global-power-diagonal} p_t(x,x)\ge c \begin{cases} t^{-Q_0/\beta_0}\,[\log(e/t)]^{-Q_0(\beta_0-1)/\beta_0}\,,&01$, the condition~\eqref{hk:eq:global-balanced-chain-condition} holds for all sufficiently large~$N$, so the estimates obtained with this choice of radius can be optimized over one integer, for all times and distances. For~$t\ge1$, choose~$N$ comparable to~$1+(d^{\alpha_\infty}/t)^{1/(\alpha_\infty-1)}$ when~$d\le t$, and to~$1+(d^{\alpha_0}/t)^{1/(\alpha_0-1)}$ when~$d\ge t$, with a sufficiently large fixed multiplier; the first choice has~$N\lesssim t$ and the second~$N\gtrsim t$. Substituting in the table, the exponent in~\eqref{hk:eq:global-balanced-chain} is at most a constant times \begin{equation}\label{hk:eq:global-large-time-cost} \begin{cases} t^{(a_\infty-\beta_\infty)/(a_\infty+\beta_\infty)} +d^{\,2\beta_\infty/(a_\infty+\beta_\infty-2)}\, t^{(a_\infty-\beta_\infty-2)/(a_\infty+\beta_\infty-2)}\,,&d\le t\,,\\ 1+d^{\,2\beta_0/(a_0+\beta_0-2)}\, t^{-(2+\beta_0-a_0)/(a_0+\beta_0-2)}\,,&d\ge t\,. \end{cases} \end{equation} Here $a_i+\beta_i-2>0$. The expression $2+\beta_\infty-a_\infty$ may have either sign or vanish. There are also useful choices of radius outside the table. When $a_0<2$ and $d\ge t\ge1$, taking $r=1$ in~\eqref{hk:eq:global-variational-lower} bounds the cost by $C d^2/t$. When $a_\infty<2$ and $d\le t$ with $t\ge1$, take $r=\max\{t^{1/\alpha_\infty},d\}$. This gives the bound $C(t^{(a_\infty-\beta_\infty)/(a_\infty+\beta_\infty)}+d^{a_\infty}/t)$, since $t/r^{\beta_\infty}\le r^{a_\infty}/t$. \paragraph{Matching scales.} When the two scales are comparable at every radius, the upper bound of Theorem~\ref{hk:thm:global-mixed-upper} and the lower bounds of Corollary~\ref{hk:cor:vd-matching} combine into a two-sided estimate with a prefactor which depends only on the time. \begin{corollary}\label{hk:cor:global-matching} Assume the global hypotheses and~\hV. If~$\Psi_P\asymp\Psi_S=\Psi$ at every radius, then the Harnack constant in~\eqref{hk:eq:global-harnack} is uniform for the time length~$T=\Psi(r)$, and \begin{equation}\label{hk:eq:global-matching-kernel} \frac{c}{\Phi(\Psi^{-1}(t))}\,e^{-C\mathcal A_\Psi(d(x,y),t)} \le p_t(x,y)\le \frac{C}{\Phi(\Psi^{-1}(t))}\,e^{-c\mathcal A_\Psi(d(x,y),t)}\,, \qquad t>0\,. \end{equation} Both~$\Phi$ and~$\Psi$ may have different powers at small and large scales. \end{corollary} \begin{proof} The assertion on the Harnack constant follows from~\eqref{hk:eq:global-harnack}. The estimates are those of Corollary~\ref{hk:cor:vd-matching}, with $m(B(x,\Psi^{-1}(t)))\asymp\Phi(\Psi^{-1}(t))$; the upper bound is also Theorem~\ref{hk:thm:global-mixed-upper}. \end{proof} On a bounded space the hypotheses concern sufficiently small radii and yield estimates at small times: a volume function with a positive lower scaling exponent cannot describe the volume of balls at every radius on a space of finite measure. \chapter{Elliptic Harnack inequalities and the spectral scale}\label{sec:spectral-chapter} Chapters~\ref{sec:harnack-chapter} and~\ref{sec:hk-chapter} derive heat kernel estimates from inequalities at prescribed scales. Here the scale is recovered from the Dirichlet form and the reference measure. One may use the reciprocal of the bottom of the Dirichlet spectrum of each ball or divide its volume by the capacity of a concentric annulus. Under the elliptic Harnack inequality the two quantities are comparable as soon as the spectral scale grows between two positive powers of the radius. Equivalently, one can assume volume doubling and reverse growth of the volume-to-capacity ratio at one fixed dilation. Theorem~\ref{sp:thm:main} characterizes the sharp heat kernel estimate associated with this scale. \paragraph{Background.} The elliptic Harnack inequality is much weaker than the parabolic one, and it does not see the reference measure. A change of the measure~$m$ amounts to a time change of the associated diffusion~\cite[Chapter~5]{ChFu12}; it can preserve the harmonic functions and the capacities, while it changes the heat kernel, the mean exit times from balls and the bottoms of the Dirichlet spectra of balls. The interval of Section~\ref{sec:interval} and the Liouville Brownian motion of Chapter~\ref{sec:liouville-chapter} are examples. A characterization of heat kernel estimates which starts from the elliptic Harnack inequality must therefore contain a second condition, which relates time to space for the given measure. Two such conditions are classical: the mean exit time estimate $\mathbb E_x\tau_{B(x,r)}\asymp r^\beta$, where $\tau_{B(x,r)}$ is the first exit time of the diffusion from the ball, and the resistance estimate $\Capa(B(x,r),B(x,2r))\asymp m(B(x,r))\,r^{-\beta}$. By a theorem of Grigor'yan and Hu~\cite[Theorem~3.14]{GH14}, under volume doubling and reverse volume doubling, the elliptic Harnack inequality together with either of these conditions is equivalent to the sub-Gaussian upper bound and the near-diagonal lower bound for the heat kernel; see also~\cite{GrTe12} and~\cite[Theorem~4.11]{GHLsurvey}. Grigor'yan, Hu and Lau~\cite[Theorem~4.11 and Conjecture~4.15]{GHLsurvey} asked whether, on an Ahlfors regular space satisfying a chain condition and the elliptic Harnack inequality, the mean exit time estimate in their two-sided heat kernel theorem can be replaced by the spectral condition $\lambda_1(B(x,r))\asymp r^{-\beta}$. The reference measure enters the Rayleigh quotient through its denominator. Remark~\ref{sp:rem:exit} compares the reciprocal spectral bottom with mean exit times. Mariano and Wang~\cite[Theorem~1.3]{MW26} answered this question affirmatively: under the elliptic Harnack inequality, the scale of the mean exit times from balls and the scale of the bottoms of their Dirichlet spectra are equivalent. Their Theorem~1.4 gives an example on the Euclidean plane, with volume doubling, a Poincar\'e inequality and $\lambda_1(B(x,r))\asymp r^{-2}$ uniformly, in which the mean exit times from balls do not all have the scale~$r^2$. Hence the elliptic Harnack inequality cannot be omitted. The tree of cubes is another example (Corollary~\ref{cor:cube-spectrum-ehi}). \paragraph{Contributions of this chapter.} The power-scale characterization on Ahlfors regular spaces is thus known. The results of this chapter add the following to it; they are contained in Theorem~\ref{sp:thm:main}. \begin{itemize} \item \emph{Recovery of volume doubling.} The elliptic Harnack inequality and the growth condition~\hSG{} on the spectral scale imply that $m$ is doubling (Proposition~\ref{sp:prop:calibrate}). Neither Ahlfors regularity nor volume doubling is assumed. \item \emph{A criterion with a single annular dilation.} Under the elliptic Harnack inequality, \hSG{} is equivalent to volume doubling together with $J_2(x,Lr)\ge q\,J_2(x,r)$ for one pair $L,q>1$ (Proposition~\ref{caprev:criterion}). This condition is formulated with the measure and the capacities of annuli only. \item \emph{A heat kernel estimate with a chain count.} The scale may depend on the centre of the ball. The estimate $\mathrm{HK}(\Psi_\lambda)$ then holds at every pair of points, with the radius $r_t(x)$ in the volume term and the chain count $N_t(x,y)$ in the exponential term (Proposition~\ref{sp:prop:sharp}). \end{itemize} For scales which depend only on the radius, Corollary~\ref{sp:cor:radial} gives back the power-scale characterization on proper unbounded geodesic spaces, with volume doubling in place of Ahlfors regularity. \paragraph{Relation to the rest of Part~\ref{part:heat}.} In the terminology of Chapter~\ref{sec:harnack-chapter}, this chapter is a theory with one scale: the spectral scale lies between the capacity scale and the Poincar\'e scale (Proposition~\ref{sp:prop:squeeze}), and when these two match it is comparable to both. It differs from the results at matching scales of Corollary~\ref{hk:cor:vd-matching} in three respects. \begin{itemize} \item The scale is a function $\Psi(x,r)$ of the centre and of the radius. The exponential term of the heat kernel estimate is then no longer a function of the distance; it is the minimal number of links of a chain from $x$ to~$y$ whose links are short for the scale at the time under consideration. For a scale which depends only on the radius this number is comparable to the rate function $\mathcal A_\Psi(d(x,y),t)$ of~\eqref{eq:rate-function} (Lemma~\ref{sp:lem:chain-rate}). \item An upper capacity bound suffices in the analytic characterization, by the resistance theorem of Eriksson-Bique~\cite{EBRes}. Corollary~\ref{cor:position-thin-csa} then gives a cutoff Sobolev inequality on arbitrary annuli at the point-dependent scale. \item The statements are equivalences, and the heat kernel is continuous. \end{itemize} The spectral characterization uses the notation of Sections~\ref{hk:sec:assumptions} and~\ref{subsec:capacity-csa} and the rate function~\eqref{eq:rate-function}. The thin-annulus corollary uses the cutoff construction of Chapter~\ref{sec:harnack-chapter}. Unlike those chapters, it relies on several theorems from the literature, which are used as stated: the consequences of the elliptic Harnack inequality for Green functions and capacities of Barlow, Chen and Murugan~\cite{BCM}, the characterization of the parabolic Harnack inequality at a power scale~\cite{BBK,GHL,KMconf}, the resistance theorem~\cite{EBRes}, and the chain estimates of Grigor'yan and Telcs~\cite{GrTe12} and Murugan~\cite{MurChain}. Section~\ref{sp:sec:inputs} states them with precise references. \paragraph{Organization.} Sections~\ref{sp:sec:scale} and~\ref{sp:sec:squeeze} introduce the spectral scale and compare it with the scales of Chapter~\ref{sec:harnack-chapter}. Sections~\ref{sp:sec:statements} and~\ref{sp:sec:inputs} state the main results and the inputs from the literature. Section~\ref{sp:sec:calibrate} relates spectral growth to annular capacity. Sections~\ref{sp:sec:metric}--\ref{sp:sec:hk} construct the adapted metric and compare its chains with those in the original metric, and Section~\ref{sp:sec:proofs} proves the equivalences. The compact case is treated in Section~\ref{sp:sec:compact}. Section~\ref{radrev:section} exhibits every lower growth exponent between zero and one and the failure at zero. Further applications occur in Sections~\ref{subsec:position-scales} and~\ref{subsec:cubical-singular}. Corollary~\ref{cor:cube-spectrum-ehi} gives a compact space with uniform spectral power growth on which the elliptic Harnack inequality fails. \subsection{The spectral scale and regular scale functions}\label{sp:sec:scale} Throughout this chapter, in addition to the standing assumptions of Part~\ref{part:heat} (Section~\ref{hk:sec:assumptions}), the space $(X,d)$ is geodesic and the measure~$m$ has no atoms. We work on unbounded spaces unless a compact or local assertion is explicitly stated. \paragraph{The spectral scale.} For an open set~$U$, let \begin{equation}\label{sp:eq:lambda} \lambda_1(U)=\inf\Bigl\{\frac{\cE(f,f)}{\int_U f^2\,dm}:\ f\in\cF_0(U)\,,\ f\ne0\Bigr\} \end{equation} be the bottom of the spectrum of the part of the form on~$U$, whether or not the infimum is attained. We denote by~$L_U$ the generator of this part, a nonpositive self-adjoint operator on~$L^2(U,m)$. If $\lambda_1(U)>0$, the \emph{Green operator} \begin{equation}\label{sp:eq:GU} G_U=(-L_U)^{-1}\qquad\text{is bounded on }L^2(U,m)\,,\text{ with}\qquad\|G_U\|_{2\to2}=\lambda_1(U)^{-1}\,, \end{equation} by the spectral theorem. If $U\subset U'$ then $\cF_0(U)\subset\cF_0(U')$, and therefore \begin{equation}\label{sp:eq:domain-mono} \lambda_1(U)\ge\lambda_1(U')\qquad\text{for open sets }U\subset U'\,. \end{equation} \begin{definition}\label{sp:def:spectral-scale} The \emph{spectral scale} of $(X,d,m,\cE,\cF)$ is the function \begin{equation*} \Psi_\lambda(x,r)=\lambda_1(B(x,r))^{-1}\in(0,\infty]\,,\qquad x\in X\,,\quad r>0\,. \end{equation*} It satisfies the \emph{growth condition}~\hSG{} if $\Psi_\lambda(x,r)<\infty$ for all $x$ and~$r$ and there are exponents $00$} around~$x$, and the \emph{cost} of a pair of points $v,w\in X$, are \begin{equation}\label{sp:eq:radius-cost} r_t(x)=\inf\{r>0:\ \Psi(x,r)\ge t\}\,,\qquad \Psi^*(v,w)=\max\bigl\{\Psi(v,d(v,w)),\,\Psi(w,d(v,w))\bigr\}\,, \end{equation} with $\Psi^*(v,v)=0$. When $\Psi$ is a continuous increasing function of the radius alone, $r_t(x)=\Psi^{-1}(t)$ is the radius which appears in Corollary~\ref{hk:cor:vd-matching}, and $\Psi^*(v,w)=\Psi(d(v,w))$. A finite sequence $x=x_0,x_1,\ldots,x_k=y$ is a \emph{$t$-admissible chain with $k$ links} from $x$ to~$y$ if \begin{equation*} \Psi^*(x_{i-1},x_i)\le\frac tk\qquad\text{for }1\le i\le k\,. \end{equation*} Repeated points are allowed. The \emph{chain count} $N_t(x,y)$ is the least integer $k\ge1$ for which there is a $t$-admissible chain with $k$ links from $x$ to~$y$. In particular $N_t(x,x)=1$. We put $N_t(x,y)=+\infty$ when no chain is admissible and use $e^{-c\infty}=0$. Finiteness will follow under the equivalent conditions of Theorem~\ref{sp:thm:main}. When the scale has to be specified we write $r^\Psi_t(x)$ and~$N^\Psi_t(x,y)$; without further indication, in the statements about the spectral scale, these quantities are those of $\Psi=\Psi_\lambda$. In words, $N_t(x,y)$ is the least number~$k$ of steps in which one can go from $x$ to~$y$ if each step must stay within the range which the diffusion explores in the time~$t/k$. It is the number of links which appears in the chaining arguments for lower bounds, as in the proof of Corollary~\ref{hk:cor:vd-matching}; here the admissible length of a link depends on its position. \begin{example}[Euclidean space]\label{sp:ex:euclid} Let $X=\R^n$ with the Euclidean distance and the Lebesgue measure, and let $\cE(f,f)=\int_{\R^n}|\nabla f|^2\,dx$ on $\cF=W^{1,2}(\R^n)$, as in Example~\ref{ex:euclidean}. Then $\lambda_1(B(x,r))=j^2r^{-2}$, where $j$ is the first positive zero of the Bessel function $J_{n/2-1}$, and \begin{equation*} \Psi_\lambda(x,r)=\frac{r^2}{j^2}\,,\qquad r_t(x)=j\sqrt t\,,\qquad\Psi_\lambda^*(v,w)=\frac{|v-w|^2}{j^2}\,. \end{equation*} Thus~\eqref{sp:eq:SG} holds with $a=b=2$ and $C_\lambda=1$. A chain with $k$ links is $t$-admissible if and only if each link has length at most $j\sqrt{t/k}$, and such a chain from $x$ to~$y$ exists if and only if $|x-y|\le j\sqrt{kt}$. Hence \begin{equation*} N_t(x,y)=\max\Bigl\{1,\Bigl\lceil\frac{|x-y|^2}{j^2t}\Bigr\rceil\Bigr\}\,, \end{equation*} and, since $m(B(x,r_t(x)))$ is a constant multiple of~$t^{n/2}$, the estimate $\mathrm{HK}(\Psi_\lambda)$ of Theorem~\ref{sp:thm:main} is the Gaussian estimate \begin{equation*} c\,t^{-n/2}\exp\Bigl(-C\,\frac{|x-y|^2}{t}\Bigr)\le p_t(x,y)\le C\,t^{-n/2}\exp\Bigl(-c\,\frac{|x-y|^2}{t}\Bigr)\,, \end{equation*} in agreement with $p_t(x,y)=(4\pi t)^{-n/2}\exp(-|x-y|^2/(4t))$. \end{example} \begin{lemma}\label{sp:lem:basic} Let $\Psi$ be a regular scale function, and let $x,y\in X$, $r>0$ and $t>0$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{sp:basic:limits} $\lim_{r\to0}\Psi(x,r)=0$ and $\lim_{r\to\infty}\Psi(x,r)=\infty$. \item\label{sp:basic:spatial} If $d(x,y)\le Lr$ for some $L\ge1$, then \begin{equation}\label{sp:eq:spatial} \Psi(x,r)\le C_\Psi^2L^b\,\Psi(y,r)\,. \end{equation} In particular $\Psi^*(v,w)\le C_\Psi\,\Psi(v,d(v,w))$ for all $v,w\in X$. \item\label{sp:basic:radius} The radius $R=r_t(x)$ satisfies $0R$. Moreover \begin{equation}\label{sp:eq:TR} C_\Psi^{-1}2^{-b}\,t\le\Psi(x,r_t(x))\le C_\Psi2^{b}\,t\,. \end{equation} \item\label{sp:basic:time} For $\kappa\ge1$, $r_t(x)\le r_{\kappa t}(x)\le(C_\Psi\kappa)^{1/a}\,r_t(x)$. \item\label{sp:basic:inverse} If $t=\Psi(x,r)$, then $r_t(x)\le r$. \end{enumerate} \end{lemma} The proof is given in Section~\ref{sp:sec:metric}, where the inverse radii determine the balls of an adapted metric. \begin{remark}[Spectral scale and mean exit times]\label{sp:rem:exit} Let $U$ be a bounded open set with $\lambda_1(U)>0$. A quasi-continuous version of $E_U=G_U\ind_U$ agrees with the mean exit time $x\mapsto\mathbb E_x\tau_U$ for quasi-every starting point in~$U$. Moreover \begin{equation*} \frac{1}{m(U)}\int_UE_U\,dm\ \le\ \lambda_1(U)^{-1}\ \le\ \esssup_{U}E_U\,. \end{equation*} The first inequality is $\langle G_U\ind_U,\ind_U\rangle\le\|G_U\|_{2\to2}\,m(U)$ together with~\eqref{sp:eq:GU}. The second is the Schur test for the symmetric positivity preserving operator~$G_U$: its norm on~$L^2$ is at most its norm on~$L^\infty$, which is $\esssup_UG_U\ind_U$. The second inequality, in the form~\eqref{sp:eq:schur}, is the starting point of Section~\ref{sp:sec:calibrate}. Corollary~\ref{cor:mean-exit-scale} compares the mean exit time throughout the inner half of each ball with its spectral scale. \end{remark} \subsection{The spectral scale between the capacity scale and the Poincar\'e scale}\label{sp:sec:squeeze} \paragraph{Capacities.} Recall from~\eqref{eq:capacity-def} the capacity $\Capa(B,U)$ of a ball~$B$ in an open set $U\supset\overline B$: it is the infimum of the energies of the cutoff functions $\chi\in\cF$, $0\le\chi\le1$, which are equal to one on a neighbourhood of~$\overline B$ and have compact support in~$U$. Since the form is regular, the infimum is not changed if the cutoff functions are required to be continuous; this follows from the density of $\cF\cap C_c(X)$ in~$\cF$, compare~\cite[Lemma~2.2.7]{FOT}. For $A>1$ we write \begin{equation}\label{sp:eq:CJ} C_A(x,r)=\Capa\bigl(B(x,r),B(x,Ar)\bigr)\,,\qquad J_A(x,r)=\frac{m(B(x,r))}{C_A(x,r)}\,. \end{equation} The ratio $J_A(x,r)$ is the volume of the ball times the resistance of the annulus around it. \begin{lemma}\label{sp:lem:cap-basic} Let $B,B'$ be balls and $U,U'$ be bounded open sets with $\overline B\subset U$ and $\overline{B'}\subset U'$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{sp:cap:mono} If $B\subset B'$ and $U\supset U'$, then $\Capa(B,U)\le\Capa(B',U')$. \item\label{sp:cap:rayleigh} $\Capa(B,U)<\infty$ and $\Capa(B,U)\ge m(B)\,\lambda_1(U)$. In particular \begin{equation}\label{sp:eq:rayleigh} C_A(x,r)\ge m(B(x,r))\,\lambda_1(B(x,Ar))\,,\qquad J_A(x,r)\le\Psi_\lambda(x,Ar)\,. \end{equation} \end{enumerate} \end{lemma} \begin{proof} \ref{sp:cap:mono} Every cutoff function for $B'\subset U'$ is a cutoff function for $B\subset U$. \ref{sp:cap:rayleigh} Since the form is regular and $\overline B$ is a compact subset of~$U$, there is a cutoff function for $B\subset U$~\cite[Section~1.4]{FOT}, so the capacity is finite. Every cutoff function~$\chi$ belongs to~$\cF_0(U)$ and satisfies $\int_U\chi^2\,dm\ge m(B)$, so the definition~\eqref{sp:eq:lambda} gives $\cE(\chi,\chi)\ge\lambda_1(U)\,m(B)$. Take the infimum over~$\chi$. \end{proof} \begin{remark}[Conventions for the capacity]\label{sp:rem:cap-conv} The capacity~\eqref{eq:capacity-def} is the variational $0$-capacity of the closed ball~$\overline B$ in~$U$. It has an equivalent quasi-everywhere formulation, which uses functions of~$\cF_0(U)$ equal to one quasi-everywhere on the same closed set~\cite[Chapter~2]{FOT}. Some of the results quoted in Section~\ref{sp:sec:inputs} are stated for the capacity $\Capa^{\circ}(B,U)$ of the open ball~$B$, defined with functions of~$\cF_0(U)$ which are at least one $m$-almost everywhere on~$B$. For concentric balls and $\theta>1$ with $\overline{B(x,\theta r)}\subset U$, \begin{equation*} \Capa^{\circ}(B(x,r),U)\le\Capa(B(x,r),U)\le\Capa^{\circ}(B(x,\theta r),U)\,. \end{equation*} Hence, whenever capacities at comparable radii are comparable, which is the case under the elliptic Harnack inequality by Proposition~\ref{sp:prop:BCM}\ref{sp:BCM:cap}, results stated for open inner balls give the same comparisons for~\eqref{eq:capacity-def}. \end{remark} \paragraph{Poincar\'e inequality and capacity bound at a scale depending on the point.} Let $\Psi$ be a positive function on $X\times(0,\infty)$. We recall the conditions of Sections~\ref{hk:sec:assumptions} and~\ref{subsec:capacity-csa} and the corresponding two-sided capacity estimate. \begin{itemize} \item $\PI(\Psi)$ holds if there are $C<\infty$ and $\Lambda\ge1$ such that, for every ball $B=B(x,r)$ and every $f\in\cF$, \begin{equation}\label{sp:eq:PI} \int_B|f-f_B|^2\,dm\le C\,\Psi(x,r)\,\Gamma(f)(\Lambda B)\,. \end{equation} \item $\mathrm{Cap}_{\le}(\Psi)$ holds if there is $C<\infty$ such that, for every ball $B=B(x,r)$, \begin{equation}\label{sp:eq:cap-upper} \Capa(B,2B)\le C\,\frac{m(B)}{\Psi(x,r)}\,. \end{equation} \item $\mathrm{Cap}_{\asymp}(\Psi)$ holds if, for each $A>1$, there are constants $00$, \begin{equation}\label{sp:eq:einstein} c\,\frac{m(B(x,r))}{\Psi(x,r)}\le\Capa\bigl(B(x,r),B(x,Ar)\bigr)\le C\,\frac{m(B(x,r))}{\Psi(x,r)}\,, \end{equation} that is, $\Psi(x,r)\asymp J_A(x,r)$ for each $A>1$. \end{itemize} Here $\PI(\Psi)$ is the Poincar\'e inequality~\eqref{hk:eq:global-pi} at the scale $\Psi_P=\Psi$, by locality, and $\mathrm{Cap}_{\le}(\Psi)$ is the capacity bound of Definition~\ref{def:capacity-scale}. With $r^\beta$ in place of~$\Psi(x,r)$, the relation~\eqref{sp:eq:einstein} is the resistance condition of~\cite{GH14}; for random walks on graphs a relation of this type is called an Einstein relation in~\cite{Telcs06}. The next proposition shows that the spectral scale is the only possible common scale for a Poincar\'e inequality and a capacity bound. It refines the order of the scales of Proposition~\ref{prop:quadratic-scale-order}. \begin{proposition}\label{sp:prop:squeeze} Let $\Psi_C$ and $\Psi_P$ be positive functions on $X\times(0,\infty)$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{sp:sq:cap} If $\mathrm{Cap}_{\le}(\Psi_C)$ holds, then $\Psi_\lambda(x,2r)\ge c\,\Psi_C(x,r)$ for all $x\in X$ and $r>0$. \item\label{sp:sq:pi} If~\hVD{} and $\PI(\Psi_P)$ hold, then $\Psi_\lambda(x,r)\le C\,\Psi_P(x,4r)$ for all $x\in X$ and $r>0$. \item\label{sp:sq:match} Suppose that~\hVD, $\PI(\Psi)$ and $\mathrm{Cap}_{\le}(\Psi)$ hold for a function~$\Psi$ with $\Psi(x,2r)\le C\,\Psi(x,r)$. Then \begin{equation*} c\,\Psi(x,r)\le\Psi_\lambda(x,r)\le C\,\Psi(x,r)\,,\qquad x\in X\,,\quad r>0\,. \end{equation*} If moreover $\Psi$ is a regular scale function, then the spectral scale satisfies~\hSG. \end{enumerate} On a bounded geodesic space, \ref{sp:sq:pi} and~\ref{sp:sq:match} hold for the radii with $4r<\diam X$. \end{proposition} In particular, for scales $\Psi_C$ and~$\Psi_P$ which are uniformly comparable at comparable radii with the same centre, volume doubling, $\PI(\Psi_P)$ and $\mathrm{Cap}_{\le}(\Psi_C)$ imply \begin{equation}\label{sp:eq:three-scales} c\,\Psi_C(x,r)\le\Psi_\lambda(x,r)\le C\,\Psi_P(x,r)\,. \end{equation} \begin{proof} \ref{sp:sq:cap} By Lemma~\ref{sp:lem:cap-basic}\ref{sp:cap:rayleigh} and~\eqref{sp:eq:cap-upper}, \begin{equation*} m(B(x,r))\,\lambda_1(B(x,2r))\le\Capa(B(x,r),B(x,2r))\le C\,\frac{m(B(x,r))}{\Psi_C(x,r)}\,. \end{equation*} \ref{sp:sq:pi} Let $f\in\cF_0(B(x,r))$, extended by zero, and put $D=B(x,4r)$. Since $X$ is geodesic, and unbounded or of diameter greater than~$4r$, there is a point~$z$ with $d(x,z)=2r$. Then $B(z,r/2)\subset D\setminus B(x,r)$, and doubling gives $m(B(z,r/2))\ge c\,m(D)$. Since $f=0$ on this ball, \begin{equation*} m(D)\,|f_D|^2\le c^{-1}\int_{B(z,r/2)}|f-f_D|^2\,dm\le c^{-1}\int_D|f-f_D|^2\,dm\,. \end{equation*} Therefore $\|f\|_2^2=\int_D|f-f_D|^2\,dm+m(D)\,|f_D|^2\le(1+c^{-1})\int_D|f-f_D|^2\,dm$, and the Poincar\'e inequality on~$D$ gives $\|f\|_2^2\le C\,\Psi_P(x,4r)\,\cE(f,f)$. By~\eqref{sp:eq:lambda}, $\lambda_1(B(x,r))\ge(C\,\Psi_P(x,4r))^{-1}$. \ref{sp:sq:match} Combine \ref{sp:sq:cap} and~\ref{sp:sq:pi} with the doubling property of~$\Psi$ in the radius. If $\Psi$ is a regular scale function, the two-sided comparison transfers~\ref{sp:R2} to~$\Psi_\lambda$, with the same exponents and another constant. \end{proof} \subsection{Statements}\label{sp:sec:statements} \paragraph{The elliptic Harnack inequality.} We say that the \emph{elliptic Harnack inequality}~$\EHI$ holds if there is a constant~$C_H$ such that, for every ball $B=B(x,r)$, every nonnegative function~$u$ which is weakly harmonic in~$B(x,2r)$ satisfies \begin{equation}\label{sp:eq:EHI} \esssup_{B(x,r)}u\le C_H\essinf_{B(x,r)}u\,. \end{equation} This is the inequality of Corollary~\ref{hk:cor:h-elliptic} with a constant which does not depend on the radius. No scale function appears in it. \paragraph{The heat kernel estimate.} For a positive ball scale $\Psi$ use the radius $r_t(x)$ and chain count $N_t(x,y)$ of Section~\ref{sp:sec:scale}, with $\inf\varnothing=+\infty$. These definitions make sense before a lower power bound is known. When $00$ such that, for all $x,y\in X$ and $t>0$, \begin{equation*}\tag{$\mathrm{HK}(\Psi)$}\label{sp:eq:HK} \frac{c}{m(B(x,r_t(x)))}\,e^{-C\,N_t(x,y)} \le p_t(x,y)\le \frac{C}{m(B(x,r_t(x)))}\,e^{-c\,N_t(x,y)}\,. \end{equation*} \begin{theorem}\label{sp:thm:main} On a proper unbounded geodesic space under the standing measure and form assumptions of this chapter, the following conditions are equivalent. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{sp:main:ehi} The elliptic Harnack inequality holds and the spectral scale $\Psi_\lambda$ satisfies~\hSG. \item\label{sp:main:hk} The spectral scale is finite, $\Psi_\lambda(x,2r)\le D_\lambda\Psi_\lambda(x,r)$ uniformly, and $00$. The heat kernel satisfies $\mathrm{HK}(\Psi_\lambda)$. \item\label{sp:main:pi} Volume doubling holds, and there is a regular scale function $\Psi$ for which $\PI(\Psi)$ and $\mathrm{Cap}_{\le}(\Psi)$ hold. \item\label{eqrev:maincap} The elliptic Harnack inequality and volume doubling hold, $01$ such that $J_2(x,Lr)\ge qJ_2(x,r)$ for every $x\in X$ and $r>0$. \end{enumerate} Under these conditions every scale in~\ref{sp:main:pi} is comparable to $\Psi_\lambda$, and for each fixed $A>1$, \begin{equation}\label{sp:eq:einstein-lambda} \lambda_1(B(x,r))^{-1}\asymp_A \frac{m(B(x,r))}{\Capa(B(x,r),B(x,Ar))}\,,\qquad x\in X\,,\quad r>0\,. \end{equation} The chain count $N_t(x,y)$ is finite. The inverse radii and chain counts computed with $J_A$ are comparable to those of $\Psi_\lambda$, so~\eqref{sp:eq:HK} holds with either choice. \end{theorem} In applications a scale $\Psi$ is often given in advance. A Poincar\'e inequality and an upper capacity bound at this scale identify it with $\Psi_\lambda$ up to constants (Proposition~\ref{sp:prop:squeeze}). \begin{theorem}\label{sp:thm:scale} Let $\Psi$ be a regular scale function. The following conditions are equivalent. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{sp:scale:ehi} $\EHI$ holds, and $c\,\Psi(x,r)\le\lambda_1(B(x,r))^{-1}\le C\,\Psi(x,r)$ for all $x\in X$ and $r>0$. \item\label{sp:scale:hk} The metric space is doubling, and $\mathrm{HK}(\Psi)$ holds. \item\label{sp:scale:pi} \hVD, $\PI(\Psi)$ and $\mathrm{Cap}_{\le}(\Psi)$ hold. \end{enumerate} Under these conditions $\mathrm{Cap}_{\asymp}(\Psi)$ holds. Here metric doubling means that each ball can be covered by a uniformly bounded number of balls of half its radius. If the lower growth exponent of $\Psi$ is greater than one, $\mathrm{HK}(\Psi)$ alone implies volume doubling and hence metric doubling. \end{theorem} For a scale which depends only on the radius and has a lower exponent greater than one, the chain count is comparable to the rate function~\eqref{eq:rate-function} (Lemma~\ref{sp:lem:chain-rate}), and the estimate $\mathrm{HK}(\Psi)$ is the two-sided sub-Gaussian estimate of Chapter~\ref{sec:hk-chapter}. \begin{corollary}[Scales depending only on the radius]\label{sp:cor:radial} Let $\Psi$ be a continuous increasing bijection of~$(0,\infty)$ onto itself which satisfies~\eqref{hk:eq:global-weak-scaling} with a lower exponent greater than one. The following conditions are equivalent. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{sp:rad:ehi} $\EHI$ holds, and $\lambda_1(B(x,r))\asymp\Psi(r)^{-1}$ uniformly in $x\in X$ and $r>0$. \item\label{sp:rad:hk} The semigroup has a jointly continuous density, and there are $c,C>0$ such that, for all $x,y\in X$ and $t>0$, \begin{equation}\label{sp:eq:radial-kernel} \frac{c}{m(B(x,\Psi^{-1}(t)))}\,e^{-C\mathcal A_\Psi(d(x,y),t)} \le p_t(x,y)\le \frac{C}{m(B(x,\Psi^{-1}(t)))}\,e^{-c\mathcal A_\Psi(d(x,y),t)}\,. \end{equation} \item\label{sp:rad:pi} \hVD, the Poincar\'e inequality $\PI(\Psi)$ of~\eqref{hk:eq:global-pi} and the capacity bound $\mathrm{Cap}_{\le}(\Psi)$ of Definition~\ref{def:capacity-scale} hold at all radii. \end{enumerate} In particular, for $\beta>1$, the elliptic Harnack inequality together with $\lambda_1(B(x,r))\asymp r^{-\beta}$ is equivalent to the existence of a jointly continuous heat kernel such that, for all $x,y\in X$ and $t>0$, \begin{equation}\label{sp:eq:power-kernel} c\exp\!\left[-C\left(\frac{d(x,y)^\beta}{t}\right)^{\!\frac{1}{\beta-1}}\right] \le m\bigl(B(x,t^{1/\beta})\bigr)\,p_t(x,y) \le C\exp\!\left[-c\left(\frac{d(x,y)^\beta}{t}\right)^{\!\frac{1}{\beta-1}}\right]\,. \end{equation} \end{corollary} For a continuous increasing scale depending only on the radius, volume doubling, $\PI(\Psi)$ and $\mathrm{Cap}_{\le}(\Psi)$ in fact force $\Psi(R)/\Psi(r)\ge c(R/r)^2$ for $01$. For $01$~\cite[Proposition~7.3]{BCM}. The Poincar\'e inequality and the upper capacity bound transfer to this metric, where the resistance theorem~\cite[Theorem~1.1]{EBRes} gives the parabolic Harnack inequality. Conversely, the parabolic Harnack inequality gives the elliptic Harnack inequality and the spectral scale $s^\beta$ on $\rho$-balls. Nesting each $d$-ball between two $\rho$-balls then identifies its spectral scale. Figure~\ref{fig:sp-proof} records the implications. \emph{The heat kernel} (Sections~\ref{sp:sec:chains} to~\ref{sp:sec:hk}). The metric~$\rho$ need not be geodesic, nor satisfy a chain condition, even though $d$ is geodesic. In such a space the sharp off-diagonal estimate involves the length of chains with small links instead of the distance, by the results of Grigor'yan and Telcs~\cite{GrTe12} and Murugan~\cite[Corollary~2.9 and Remark~2.12]{MurChain}; the estimate applies in the adapted metric at the power scale $s^\beta$. Proposition~\ref{sp:prop:sharp} shows that the resulting exponential term is comparable to the chain count~$N_t(x,y)$, which is defined directly from the scale on the balls of the original metric. \begin{figure}[htbp] \centering \begin{tikzpicture}[ cond/.style={inner sep=3pt,align=center,font=\small}, imp/.style={-{Stealth[length=2.2mm]},semithick}, every node/.style={font=\small}] \node[cond] (i) at (-3.8,1) {\textup{(i)}\quad $\EHI$, $\Psi_\lambda\asymp\Psi$}; \node[cond] (iii) at (3.4,1) {\textup{(iii)}\quad \hVD, $\PI(\Psi)$, $\mathrm{Cap}_{\le}(\Psi)$}; \node[cond] (hub) at (0,-1.3) {$(\mathrm P_\rho)$\quad \hVD, $\mathrm{PHI}_\rho(\beta)$}; \node[cond] (ii) at (0,-3.0) {\textup{(ii)}\quad Metric doubling, $\mathrm{HK}(\Psi)$}; \draw[imp] (i.east) -- node[above] {Prop.~\ref{caprev:criterion}} (iii.west); \draw[imp] (iii.south) -- node[right,font=\footnotesize] {Lemma~\ref{sp:lem:transfer}, \cite{EBRes}} (hub.east); \draw[imp] (hub.west) -- node[left,font=\footnotesize] {Ball spectra} (i.south); \draw[{Stealth[length=2.2mm]}-{Stealth[length=2.2mm]},semithick] (hub.south) -- node[right] {Prop.~\ref{sp:prop:sharp}, Lemma~\ref{sp:lem:hk-vd}} (ii.north); \end{tikzpicture} \caption{The implications in the proof of Theorem~\ref{sp:thm:scale}. The metric~$\rho$ and the exponent $\beta>1$ are those of Proposition~\ref{sp:prop:rho} for the scale~$\Psi$.}\label{fig:sp-proof} \end{figure} \paragraph{Related results.} For weighted graphs with controlled transition probabilities and polynomial volume growth, Grigor'yan~\cite[Theorem~6.2]{GrECM} states the spectral characterization corresponding to the last assertion of Corollary~\ref{sp:cor:radial}. In the Gaussian case, Grigor'yan and Telcs~\cite[Corollary~3.2]{GrTe02} prove that, under volume doubling and the elliptic Harnack inequality, the one-sided estimate $\lambda_1(B(x,r))\gtrsim r^{-2}$ suffices. Telcs~\cite[Theorem~3.1]{Telcs06} compares reciprocal ball eigenvalues, mean exit times, and annular resistance times volume, under volume doubling and a comparison hypothesis for mean exit times. The stability of the elliptic Harnack inequality, and the fact that it is equivalent to the parabolic Harnack inequality after a time change and a quasisymmetric change of the metric, are due to Barlow and Murugan~\cite{BM18}, Barlow, Chen and Murugan~\cite{BCM} and Kajino and Murugan~\cite{KMconf}. In these works the measure is constructed so that the volume-to-capacity ratio has power growth. Here the measure is given. One may test its ball spectra, or compare its volume-to-capacity ratio at the two radii $r$ and $Lr$. Chang and Liu~\cite[Theorem~2.14]{CLinhom} use a scale built from a point-to-point resistance and volume. The annular capacity in~\eqref{sp:eq:CJ} also applies when the reciprocal capacity has a negative power of the radius, as in Section~\ref{subsec:cubical-singular} for $Q>2$. \subsection{Results from the literature}\label{sp:sec:inputs} This section states the results which are used without proof in the rest of the chapter. They concern the consequences of the elliptic Harnack inequality for Green functions and capacities, and the characterization of the parabolic Harnack inequality at a power scale. \paragraph{The dilation in the elliptic Harnack inequality.} In the literature, $\EHI$ is often stated with a constant $\delta\in(0,1)$: every nonnegative function~$u$ which is weakly harmonic in~$B(x,r)$ satisfies $\esssup_{B(x,\delta r)}u\le C\essinf_{B(x,\delta r)}u$. On the geodesic space $(X,d)$ this is equivalent to~\eqref{sp:eq:EHI}, which is the case $\delta=\tfrac12$, with a different constant. Indeed, let $u\ge0$ be weakly harmonic in~$B(x,2r)$. For every $z\in B(x,r)$ the function~$u$ is weakly harmonic in~$B(z,r)$, so $\esssup_{B(z,\delta r)}u\le C\essinf_{B(z,\delta r)}u$. Any two points of~$B(x,r)$ are joined through~$x$ by geodesics contained in~$B(x,r)$, which are covered by at most $N=N(\delta)$ balls $B(z_i,\delta r)$ with $z_i\in B(x,r)$ and $d(z_{i-1},z_i)<\delta r$. Consecutive balls intersect in a nonempty open set, which has positive measure, so the inequalities concatenate and give $\esssup_{B(x,r)}u\le C^{N}\essinf_{B(x,r)}u$. \paragraph{Green functions and capacities.} A metric space is \emph{metric doubling} if there is an integer~$N$ such that every ball of radius~$r$ is covered by $N$ balls of radius~$r/2$. The next proposition collects the results of~\cite[Section~5]{BCM} which we use. None of them requires~$m$ to be volume doubling. \needspace{6\baselineskip} \begin{proposition}[{\cite[Section~5]{BCM}}]\label{sp:prop:BCM} Assume~$\EHI$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{sp:BCM:md} The space $(X,d)$ is metric doubling. \item\label{sp:BCM:green} For every bounded open set~$D$ with $\lambda_1(D)>0$, the Green operator~$G_D$ has a kernel: there is a nonnegative symmetric function $g_D(z,y)$, defined and continuous for $z\ne y$ in~$D$, such that, for each $f\in L^2(D,m)$, $G_Df(z)=\int_Dg_D(z,y)f(y)\,dm(y)$ for $m$-almost every $z\in D$. For each $z\in D$ the function $g_D(z,\cdot)$ is weakly harmonic in~$D\setminus\{z\}$. If $D\subset D'$ are two such sets, then $g_D(z,y)\le g_{D'}(z,y)$ for all $z\ne y$ in~$D$. \item\label{sp:BCM:cap} For $10$. For nested domains, the domination of the semigroups of the parts gives $g_D\le g_{D'}$ almost everywhere on~$D\times D$, and the full support of~$m$ and the continuity off the diagonal extend the inequality to every pair of distinct points. Part~\ref{sp:BCM:cap} is~\cite[Lemmas~5.22 and~5.23]{BCM}, converted to the convention~\eqref{eq:capacity-def} as in Remark~\ref{sp:rem:cap-conv}: for fixed $1<\theta1$. We say that $(X,\rho,m,\cE,\cF)$ satisfies \begin{itemize} \item $\hVD_\rho$ if $m(B_\rho(x,2s))\le C\,m(B_\rho(x,s))$ for all $x\in X$ and $s>0$; \item $\EHI_\rho$ if there are $C$ and $\delta\in(0,1)$ such that, for every ball $B_\rho(x,s)$ and every nonnegative~$u$ weakly harmonic in~$B_\rho(x,s)$, $\esssup_{B_\rho(x,\delta s)}u\le C\essinf_{B_\rho(x,\delta s)}u$; \item $\PI_\rho(\beta)$ if there are $C$ and $\Lambda\ge1$ such that, for all $x\in X$, $s>0$ and $f\in\cF$, with $B=B_\rho(x,s)$, \begin{equation*} \int_{B}|f-f_{B}|^2\,dm\le C\,s^\beta\,\Gamma(f)(B_\rho(x,\Lambda s))\,; \end{equation*} \item $\mathrm{Cap}_\rho(\beta)$ if there are $C,A_1,A_2>1$ such that, for all $x\in X$ and $00$ such that, for all $t>0$ and $m\otimes m$-almost all $(x,y)$, \begin{equation}\label{sp:eq:wupper} p_t(x,y)\le \frac{C}{m(B_\rho(x,t^{1/\beta}))} \exp\left[-c\left(\frac{\rho(x,y)^\beta}{t}\right)^{\frac{1}{\beta-1}}\right]\,, \end{equation} and $p_t(x,y)\ge c\,m(B_\rho(x,t^{1/\beta}))^{-1}$ whenever $\rho(x,y)\le\delta\,t^{1/\beta}$. \end{itemize} The \emph{parabolic Harnack inequality} $\mathrm{PHI}_\rho(\beta)$ compares the essential supremum of a nonnegative caloric function on an earlier cylinder with its essential infimum on a later cylinder, at the time scale~$s^\beta$, as in Theorem~\ref{hk:thm:h-local-harnack} with $\Psi_P(s)=\Psi_S(s)=s^\beta$ and $T\asymp s^\beta$. Precisely, it holds if there are $00$ such that, for every ball $B_\rho(x,s)$, with $B'=B_\rho(x,\delta s)$, every bounded nonnegative caloric function~$u$, in the sense of~\cite[Definition~2.5]{KMconf}, on $(0,c_4s^\beta)\times B_\rho(x,s)$ satisfies \begin{equation*} \esssup_{(c_1s^\beta,c_2s^\beta)\times B'}u \le C\essinf_{(c_3s^\beta,c_4s^\beta)\times B'}u\,, \end{equation*} and the same holds for the translates in time. \begin{theorem}[{\cite[Theorem~4.5]{KMconf}, \cite[Theorem~1.1]{EBRes}}]\label{sp:thm:power} Let $(X,\rho,m,\cE,\cF)$ be as above and $\beta>1$. The following conditions are equivalent. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{sp:pow:phi} $\mathrm{PHI}_\rho(\beta)$. \item\label{sp:pow:ehi} $\hVD_\rho$, $\EHI_\rho$ and $\mathrm{Cap}_\rho(\beta)$. \item\label{sp:pow:hke} $\hVD_\rho$ and $\mathrm{HKE}_\rho(\beta)$. \item\label{sp:pow:pi} $\hVD_\rho$, $\PI_\rho(\beta)$ and $\mathrm{Cap}^{\le}_\rho(\beta)$. \end{enumerate} Under these conditions the heat kernel has a version which is jointly continuous in $(t,x,y)\in(0,\infty)\times X\times X$. \end{theorem} The equivalence of \ref{sp:pow:phi}, \ref{sp:pow:ehi} and~\ref{sp:pow:hke} is~\cite[Theorem~4.5]{KMconf}, which also shows that they are equivalent to~$\hVD_\rho$, $\PI_\rho(\beta)$ and a cutoff Sobolev inequality at the scale~$s^\beta$; this is the theorem of Barlow, Bass and Kumagai~\cite{BBK} and its developments~\cite{AB,BGK12,GHL}. In particular~\ref{sp:pow:phi} implies~$\PI_\rho(\beta)$. The equivalence with~\ref{sp:pow:pi} is the resistance theorem of Eriksson-Bique~\cite[Theorem~1.1]{EBRes}. Its new implication starts from~\ref{sp:pow:pi}: under $\hVD_\rho$ and~$\PI_\rho(\beta)$, the upper bound for the capacity implies the cutoff Sobolev inequality~\cite[Theorem~3.3]{EBRes}; this is the theorem which is applied to gradient structures in Proposition~\ref{prop:CSA}. The continuous version of the heat kernel comes from the H\"older regularity of caloric functions, as in the proof of~\cite[Theorem~4.5]{KMconf}. \subsection{From the Harnack inequality to capacity and doubling}\label{sp:sec:calibrate} In this section we prove that $\EHI$ and~\hSG{} imply the two-sided capacity estimate~\eqref{sp:eq:einstein-lambda} and volume doubling. One half of~\eqref{sp:eq:einstein-lambda} is the inequality $J_A(x,r)\le\Psi_\lambda(x,Ar)$ of~\eqref{sp:eq:rayleigh}. For the other half we bound the spectral scale from above by integrals of Green functions, and these integrals by sums of the ratios~$J_A$ over a geometric sequence of radii. Volume doubling is not available at this stage; it is obtained at the end, as a consequence of~\eqref{sp:eq:einstein-lambda}. \begin{lemma}\label{sp:lem:green} Assume $\EHI$ and $\Psi_\lambda(x,r)<\infty$ for all $x\in X$ and $r>0$. There is $A_0>1$ such that, for every $A\ge A_0$, there is a constant~$C$ with the following property. If $D=B(z,R)$ is a ball, $g_D$ is the Green function of the part of the form on~$D$, and $s_j=RA^{-j}$ for $j\ge0$, then \begin{equation}\label{sp:eq:row} \int_D g_D(z,y)\,dm(y)\le C\sum_{j=0}^{\infty}J_A(z,s_j)\,. \end{equation} The inequality does not require~$m$ to be doubling. \end{lemma} \begin{proof} The Green function exists by Proposition~\ref{sp:prop:BCM}\ref{sp:BCM:green}, since $\lambda_1(D)=\Psi_\lambda(z,R)^{-1}>0$. \emph{Step 1: a pointwise bound on annuli.} We claim that, for $A$ large enough, for every $j\ge0$ and every $y$ with $s_{j+1}\le d(z,y)1$. \end{proposition} \begin{proof} Fix $A\ge A_0$ as in Lemma~\ref{sp:lem:green}, and abbreviate $J_A$ by~$J$. Fix a ball $B(x,r)$ and set \begin{equation*} U=B(x,r/4)\,,\qquad s_j=\frac r2\,A^{-j}\quad(j\ge0)\,. \end{equation*} \emph{Step 1: the Schur test.} Let $z\in U$. Then $U\subset B(z,r/2)$, and Proposition~\ref{sp:prop:BCM}\ref{sp:BCM:green} gives $g_U(z,y)\le g_{B(z,r/2)}(z,y)$ for $y\in U\setminus\{z\}$. Lemma~\ref{sp:lem:green}, applied to the ball $B(z,r/2)$, gives \begin{equation*} \int_Ug_U(z,y)\,dm(y)\le\int_{B(z,r/2)}g_{B(z,r/2)}(z,y)\,dm(y)\le C_1\sum_{j\ge0}J(z,s_j)\,. \end{equation*} This comparison is pointwise off the diagonal, so the outer domain $B(z,r/2)$ can be chosen separately for every~$z$. Since $g_U$ is symmetric, the same bound holds for the integrals in the first variable, and the Schur test bounds the norm of~$G_U$ on~$L^2(U,m)$ by the supremum over~$z$ of these integrals. With~\eqref{sp:eq:GU} we obtain \begin{equation}\label{sp:eq:schur} \Psi_\lambda(x,r/4)=\|G_U\|_{2\to2} \le C_1\sup_{z\in U}\sum_{j\ge0} J(z,s_j)\,. \end{equation} \emph{Step 2: the small radii.} Let $z\in U$ and $j\ge1$. Then $As_j\le r$, and \eqref{sp:eq:rayleigh}, the lower bound in~\eqref{sp:eq:SG} at the centre~$z$, and~\ref{sp:R3} for the regular scale function~$\Psi_\lambda$ (Lemma~\ref{sp:lem:lambda-regular}), with $d(x,z)\le r$, give \begin{equation}\label{sp:eq:tail} J(z,s_j)\le\Psi_\lambda(z,As_j)\le C_\lambda\Bigl(\frac{As_j}{r}\Bigr)^{a}\,\Psi_\lambda(z,r)\le C_2\,A^{-ja}\,\Psi_\lambda(x,r)\,, \end{equation} where $C_2$ depends on~$A$ and on the constants in~\eqref{sp:eq:SG}. \emph{Step 3: the radii comparable to~$r$.} Let $k\ge1$. We claim that there is $C_k'$ such that \begin{equation}\label{sp:eq:head} J(z,s_j)\le C_k'\,J(x,r)\qquad\text{for }z\in U\,,\quad0\le j1$, Proposition~\ref{sp:prop:BCM}\ref{sp:BCM:cap} gives $C_{A'}(x,r)\asymp C_A(x,r)$, hence $J_{A'}(x,r)\asymp J_A(x,r)$. This proves~\eqref{sp:eq:einstein-lambda} for every $A>1$. \emph{Step 6: volume doubling.} By~\eqref{sp:eq:einstein-lambda}, \eqref{sp:eq:SG} and the comparability of $C_A(x,2r)$ and $C_A(x,r)$ from Proposition~\ref{sp:prop:BCM}\ref{sp:BCM:cap}, \begin{equation*} \frac{m(B(x,2r))}{m(B(x,r))}=\frac{J_A(x,2r)}{J_A(x,r)}\cdot\frac{C_A(x,2r)}{C_A(x,r)} \asymp\frac{\Psi_\lambda(x,2r)}{\Psi_\lambda(x,r)}\cdot\frac{C_A(x,2r)}{C_A(x,r)} \le C\,.\qedhere \end{equation*} \end{proof} \begin{corollary}[Mean exit times from balls]\label{cor:mean-exit-scale} Under the equivalent conditions of Theorem~\ref{sp:thm:main}, let $D=B(x,r)$. For every fixed $A>1$, \begin{equation*} \int_D g_D(z,y)\,dm(y)\asymp\Psi_\lambda(x,r)\asymp_A J_A(x,r) \qquad \bigl(z\in B(x,r/2)\bigr)\,. \end{equation*} For the associated diffusion, $\mathbb E_z\tau_D\asymp\Psi_\lambda(x,r)$ for quasi-every $z\in B(x,r/2)$. Under the conditions of Corollary~\ref{sp:cor:compact} the assertions hold uniformly for all sufficiently small $r$. \end{corollary} \begin{proof} First take $z=x$ and fix a sufficiently large $A$. By Lemma~\ref{sp:lem:green}, Proposition~\ref{sp:prop:calibrate} and the lower growth bound in~\eqref{sp:eq:SG}, the integral is at most \begin{equation*} C\sum_{j\ge0}J_A(x,rA^{-j}) \le C'\Psi_\lambda(x,r)\sum_{j\ge0} A^{-ja}\,. \end{equation*} In the opposite direction the minimum principle for the Green function and its lower bound on the sphere of radius $r/A$, from~\cite[(4.3) and Lemma~5.10]{BCM}, give $g_D(x,y)\ge c/C_A(x,r/A)$ on $B(x,r/A)\setminus\{x\}$, using Remark~\ref{sp:rem:cap-conv}. Integration gives $cJ_A(x,r/A)\asymp\Psi_\lambda(x,r)$. The point $x$ has measure zero. For $z\in B(x,r/2)$ one has $B(z,r/2)\subset D\subset B(z,2r)$. Apply domain monotonicity of the Green kernel and the estimates at centre $z$. The two spectral scales at $z$ are comparable to $\Psi_\lambda(x,r)$ by Lemma~\ref{sp:lem:lambda-regular}. The comparison with every fixed $J_A$ is Proposition~\ref{sp:prop:calibrate}. The row integral represents $G_D\ind_D$ almost everywhere. Bounds for this form-domain function on the open inner ball pass to its quasi-continuous version quasi-everywhere by truncation, giving the exit-time assertion by Remark~\ref{sp:rem:exit}. On compact spaces all balls in the proof have radii at most a fixed multiple of $r$, and the local comparisons follow from Proposition~\ref{caprev:criterion}. \end{proof} \begin{remark}\label{sp:rem:calibrate} We record three complements to Proposition~\ref{sp:prop:calibrate}. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item The lower exponent in~\eqref{sp:eq:SG} enters the proof only through the convergence of $\sum_jA^{-ja}$ in Step~4. This is where the strict positivity of $a$ is needed. \item Together, \eqref{sp:eq:einstein-lambda} and~\hSG{} say that the volume-to-capacity ratio~$J_A$ of the measure~$m$ has two-sided power growth, that is, $m$ is a capacity good measure in the sense of~\cite[Definition~6.2]{BCM}. Compare~\cite[Lemma~6.3]{BCM}, where volume doubling is deduced from this property, and~\cite[Theorem~7.8]{BCM}, where Poincar\'e and cutoff Sobolev inequalities are deduced from it. \item The proposition can be read in the contrapositive: if the elliptic Harnack inequality holds and the reference measure is not doubling, then the spectral scale does not have two-sided power growth. The Liouville Brownian motion is an example (Chapter~\ref{sec:liouville-chapter}). \end{enumerate} \end{remark} \paragraph{A criterion at one dilation.} The spectral hypothesis can also be tested using only the measure and the energies of annular cutoffs. Recall that $J_A(x,r)=m(B(x,r))/C_A(x,r)$, where $C_A(x,r)$ is defined in~\eqref{sp:eq:CJ}. \begin{proposition}\label{caprev:criterion} Assume the elliptic Harnack inequality. The following conditions are equivalent. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{caprev:spectral} The spectral scale satisfies~\hSG. \item\label{caprev:lower} The measure is doubling, $01$ and $q>1$ such that \begin{equation}\label{caprev:RD} J_2(x,Lr)\ge q J_2(x,r)\qquad(x\in X,\ r>0)\,. \end{equation} \item\label{caprev:twosided} The ratio $J_2$ is positive and finite, and for some $L>1$ and $10)\,. \end{equation*} \end{enumerate} Under these conditions $J_A\asymp_A\Psi_\lambda$ for every fixed $A>1$, and $\PI(J_2)$ holds. On a compact geodesic space of positive diameter the same equivalences and conclusions hold locally, provided the elliptic Harnack inequality and each ball condition are uniform below some positive radius. In~\eqref{caprev:RD} both $r$ and $Lr$ must lie in this range. The radius in the conclusion may be decreased and may depend on~$A$. \end{proposition} \begin{proof} Assume~\ref{caprev:spectral}. Proposition~\ref{sp:prop:calibrate} gives volume doubling and $J_2\asymp\Psi_\lambda$. Thus the lower power bound in~\eqref{sp:eq:SG} gives $J_2(x,Lr)/J_2(x,r)\ge cL^a$ for all $L\ge1$. Choose $L$ so large that $cL^a>1$. This gives~\ref{caprev:lower}. For each fixed $L>1$, Proposition~\ref{sp:prop:BCM}\ref{sp:BCM:cap} gives $C_2(x,s)\asymp_L C_2(x,r)$ for $r\le s\le Lr$. Under volume doubling the same comparison holds for volumes and hence for $J_2$. This gives the upper bound in~\ref{caprev:twosided} from~\ref{caprev:lower}. Conversely, under~\ref{caprev:twosided}, \begin{equation*} \frac{m(B(x,Lr))}{m(B(x,r))} =\frac{J_2(x,Lr)}{J_2(x,r)}\,\frac{C_2(x,Lr)}{C_2(x,r)}\le C_L Q\,. \end{equation*} Iteration up to the first $k$ with $L^k\ge2$ gives volume doubling. It remains to deduce~\ref{caprev:spectral} from~\ref{caprev:lower}. Given $00\,,\quad b=\frac{\log Q}{\log L}\,. \end{equation*} For each fixed $A>1$ we have $C_A\asymp_A C_2$ by Proposition~\ref{sp:prop:BCM}\ref{sp:BCM:cap}. Hence $J_A$ satisfies the same two power bounds, up to constants. For a fixed sufficiently large $A$ this is precisely the condition on the measure in~\cite[Definition~6.2]{BCM}. The space is complete and metric doubling by Proposition~\ref{sp:prop:BCM}\ref{sp:BCM:md}. The Poincar\'e inequality of~\cite[Theorem~7.8]{BCM} applies to the original form since the measure used for the time change is $m$ itself. Its scale, given by~\cite[(7.9)]{BCM}, is $m(B(x,r))/C_A(x,r/A^5)$, up to the capacity convention in Remark~\ref{sp:rem:cap-conv}. Fixed-ratio comparison of capacities identifies this scale with $J_2$ up to constants. We have therefore proved $\PI(J_2)$. The upper capacity bound $\mathrm{Cap}_{\le}(J_2)$ holds by definition. Proposition~\ref{sp:prop:squeeze}\ref{sp:sq:match} now gives $\Psi_\lambda\asymp J_2$, so the two power bounds give~\hSG. For the compact assertion, write $D=\diam X$. A local elliptic Harnack inequality extends to larger balls by covering the geodesic from the centre to each point of the inner ball by a bounded number of overlapping balls of fixed small radius whose doubles lie in the outer ball. The bound is uniform since $D<\infty$. Full support gives positive measure to the overlaps, and separability gives a countable subcover for the essential bounds. The proof of Proposition~\ref{sp:prop:calibrate} on a small ball uses only balls of at most a fixed multiple of its radius, so the implication from~\ref{caprev:spectral} holds locally. For the converse choose $A$ sufficiently large that $D/A^4$ lies in the range of the local power bounds and below $D/(6\max\{A,9K\})$, where $K$ is the relative ball connectivity constant in~\cite[Lemma~5.22]{BCM}. The condenser comparisons apply on this interval, which is exactly the range required in~\cite[Definition~6.2]{BCM}. The preceding application of~\cite[Theorem~7.8]{BCM} and the local form of Proposition~\ref{sp:prop:squeeze} give $\Psi_\lambda\asymp J_2$ at small radii. All comparisons with another fixed outer factor are valid after reducing the radius once more. \end{proof} \begin{corollary}[Cutoffs on thin annuli]\label{cor:position-thin-csa} Assume the conditions of Theorem~\ref{sp:thm:main}. Let $\Psi=\Psi_\lambda$, or let $\Psi$ be a comparable regular scale measurable in the centre, and let $b$ be its upper scaling exponent. For $R,s>0$, write $U=B(x,R+s)\setminus\overline{B(x,R)}$. For each $0<\varepsilon\le1$ there is a cutoff $\chi\in\cF$ for $B(x,R)\subset B(x,R+s)$ such that for every $f\in\cF_{\rm loc}(X)$, \begin{equation}\label{sp:eq:position-thin-csa} \int_U f^2\,d\Gamma(\chi) \le \varepsilon\int_U\chi^2\,d\Gamma(f) +C\varepsilon^{1-b/2}\int_U\frac{\chi f^2}{\Psi(y,s)}\,dm(y)\,. \end{equation} On compact spaces satisfying Corollary~\ref{sp:cor:compact} the same assertion holds for all sufficiently small widths $s$, uniformly in $x$ and $R$. Conversely, for a measurable regular scale and a doubling measure,~\eqref{sp:eq:position-thin-csa} with one fixed $\varepsilon$ implies $\mathrm{Cap}_{\le}(\Psi)$ on the corresponding balls. \end{corollary} \begin{proof} For fixed $s$, $x\mapsto\Psi_\lambda(x,s)$ is lower semicontinuous: every compactly supported test function in $B(x,s)$ remains admissible at all nearby centres, and the supremum of the inverse Rayleigh quotients over these functions is $\Psi_\lambda(x,s)$. The measure $m$ satisfies the capacity growth condition used in Proposition~\ref{caprev:criterion}. By~\cite[Definition~7.4(ii) and Theorem~7.8]{BCM}, for some fixed $H>1$ there is a cutoff $v$ for each $B(z,u)\subset B(z,Hu)$ such that \begin{equation*} \int f^2\,d\Gamma(v)\le C\Gamma(f)(B(z,Hu)) +\frac C{\Psi(z,u)}\int_{B(z,Hu)} f^2\,dm \end{equation*} for bounded $f\in\cF$. The scale in that theorem is comparable to $\Psi$ by the capacity comparison in the proof of Proposition~\ref{caprev:criterion}. In the compact case its small-ball conclusion suffices. Truncation and locality extend the ball estimate to the local form domain. We give the covering argument for outer dilation $H$, as in Proposition~\ref{hk:prop:ball-to-annular}. Fix $0<\delta<1/(16H)$ and cover $\overline{B(x,R+s/2)}$ by balls $B(z,\delta s)$ with centres in that set, separated by $\delta s/2$. This is a finite cover by properness; the $H$-dilates have bounded overlap by doubling. The maximum $v$ of their cutoffs equals one on $B(x,R+s/2)$ and is supported in $B(x,R+3s/4)$. Only those $H$-dilates which meet the complement of $B(x,R+s/2)$ can contribute to $\Gamma(v)$ there. Each such dilate lies in $U$, since its diameter is at most $2H\delta s$. By strong locality and the lattice inequality $\Gamma(v_1\vee v_2)\le\Gamma(v_1)+\Gamma(v_2)$, summing the ball estimates gives \begin{equation*} \int_U f^2\,d\Gamma(v) \le C\int_U d\Gamma(f)+C\int_U\frac{f^2}{\Psi(y,s)}\,dm(y)\,. \end{equation*} Indeed $\Psi(z,\delta s)\asymp\Psi(y,s)$ on $B(z,H\delta s)$ by radial scaling and nearby-centre comparison. The constants are independent of $R/s$. The layer argument of Lemma~\ref{hk:lem:h-weighted-cutoff} applies for any specified upper exponent $b>0$. At each $y$ it uses only $\Psi(y,s)/\Psi(y,h)\le C(s/h)^b$ for $h\le s$. This gives~\eqref{sp:eq:position-thin-csa} with the stated power of $\varepsilon$. For $s>R$ one may make the transition in the outer half of the annulus, at a comparable width. Conversely, put $R=s$ and test with a function equal to one near $\overline{B(x,2s)}$. Since $\Psi(y,s)\asymp\Psi(x,s)$ on $B(x,2s)$, doubling gives $\cE(\chi,\chi)\lesssim m(B(x,s))/\Psi(x,s)$. \end{proof} The cutoff in Corollary~\ref{cor:position-thin-csa} may depend on $\varepsilon$. For the reference measures~$m_\eta$ of the cubical inverse limits, Proposition~\ref{cubrev:thin} constructs one Lipschitz cutoff serving every $\varepsilon$. \subsection{The adapted metric}\label{sp:sec:metric} The conditions of Theorems~\ref{sp:thm:main} and~\ref{sp:thm:scale} involve a scale $\Psi(x,r)$ which depends on the point. In this section we replace~$d$ by a metric~$\rho$ in which this scale becomes the power~$s^\beta$ of the radius, so that the results of Section~\ref{sp:sec:inputs} can be used, and we compare the chains of the two metrics. \begin{proof}[Proof of Lemma~\ref{sp:lem:basic}] \ref{sp:basic:limits} By~\ref{sp:R2}, $\Psi(x,r)\le C_\Psi r^a\,\Psi(x,1)$ for $r\le1$ and $\Psi(x,r)\ge C_\Psi^{-1}r^a\,\Psi(x,1)$ for $r\ge1$. \ref{sp:basic:spatial} By \ref{sp:R1}, by~\ref{sp:R3} at the radius~$Lr$, and by~\ref{sp:R2}, \begin{equation*} \Psi(x,r)\le\Psi(x,Lr)\le C_\Psi\,\Psi(y,Lr)\le C_\Psi^2L^b\,\Psi(y,r)\,. \end{equation*} The last assertion is~\ref{sp:R3} at the radius $d(v,w)$. \ref{sp:basic:radius} By~\ref{sp:basic:limits} the set $\{r'>0:\Psi(x,r')\ge t\}$ is not empty and does not contain small radii, so $00:\Psi(x,r')\ge\Psi(x,r)\}$. \end{proof} \paragraph{Construction.} Two metrics $d$ and~$\rho$ on~$X$ are \emph{quasisymmetric} if there is a homeomorphism~$\eta$ of $[0,\infty)$ such that \begin{equation*} \frac{\rho(x,y)}{\rho(x,z)}\le\eta\Bigl(\frac{d(x,y)}{d(x,z)}\Bigr)\qquad\text{for all }x,y,z\in X\text{ with }x\ne z\,. \end{equation*} This relation is symmetric in $d$ and~$\rho$, and quasisymmetric metrics induce the same topology~\cite[Chapter~10]{Hei01}. In~\cite[Definition~7.2]{BCM}, a regular scale function is a function $\Psi:X\times[0,\infty)\to[0,\infty)$ with $\Psi(x,0)=0$ for which there are constants $C,\beta_1,\beta_2>0$ such that, for all $x,y\in X$ and $01$ and constants $00$. If $\beta\le1$, replace $\rho$ by~$\rho^\theta$ and $\beta$ by~$\beta/\theta$, for some $0<\theta<\beta$. The function~$\rho^\theta$ is a metric, it is quasisymmetric to~$d$ with $\eta^\theta$ in place of~$\eta$, and~\eqref{sp:eq:rho} is unchanged. \end{proof} From now on $\rho$ and~$\beta$ are fixed as in Proposition~\ref{sp:prop:rho}. We call~$\rho$ an \emph{adapted metric} for the scale~$\Psi$, and write $B_\rho(x,s)=\{y:\rho(x,y)0$, \begin{equation}\label{sp:eq:sandwich} B(x,c\,r_t(x))\subset B_\rho(x,t^{1/\beta})\subset B(x,C\,r_t(x))\,. \end{equation} Moreover $B(x,r)\subset B_\rho(x,s)$ whenever $s^\beta>C_\rho\,\Psi(x,r)$. \item\label{sp:rho:vd} If $m$ is volume doubling on~$(X,d)$, then it is volume doubling on~$(X,\rho)$, and \begin{equation}\label{sp:eq:vol-rho} m\bigl(B_\rho(x,t^{1/\beta})\bigr)\asymp m\bigl(B(x,r_t(x))\bigr)\,,\qquad x\in X\,,\quad t>0\,. \end{equation} \end{enumerate} \end{lemma} \begin{proof} \ref{sp:rho:sandwich} Let $R=r_t(x)$. If $01$, and from the parabolic Harnack inequality in the adapted metric for every $a>0$. The metric itself is constructed from the scale in Proposition~\ref{sp:prop:rho}, independently of the chain estimates. For $h>0$, an \emph{$h$-chain} from $x$ to~$y$ is a finite sequence $x=x_0,\ldots,x_k=y$ with $\Psi^*(x_{i-1},x_i)\le h$ for $1\le i\le k$, and $k$ is its number of links. We denote by $K_h(x,y)$ the least number of links of an $h$-chain from $x$ to~$y$, with $K_h(x,x)=1$. Since $\Psi^*(v,v)=0$, a chain can be lengthened by repeating a point. Hence there is a $t$-admissible chain with $k$ links if and only if $K_{t/k}(x,y)\le k$, and \begin{equation}\label{sp:eq:NK} N_t(x,y)=\inf\{k\ge1:\ K_{t/k}(x,y)\le k\}\,. \end{equation} \begin{lemma}\label{sp:lem:refine} Let $x,y\in X$. For assertions \textup{(ii)}--\textup{(v)} assume either $a>1$, with $\theta=1/a$, or $\mathrm{PHI}_\rho(\beta)$ in an adapted metric as in Proposition~\ref{sp:prop:rho}, with $\theta=1/2$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{sp:refine:finite} $K_h(x,y)$ is finite for every $h>0$ and is nonincreasing in $h$. \item\label{sp:refine:main} There is a constant $C_1\ge1$, depending only on the constants of the applicable hypotheses, such that, for $L\ge1$ and $h>0$, \begin{equation}\label{sp:eq:refine} K_h(x,y)\le K_{h/L}(x,y)\le C_1\,L^\theta\,K_h(x,y)\,. \end{equation} \item\label{sp:refine:sublinear} For $00$ and $K_{t/k}(x,y)\le D\,k$ for an integer $k\ge1$ and a constant $D\ge1$, then $N_t(x,y)\le L\,k$, where $L=\lceil(C_1D)^{1/(1-\theta)}\rceil$. \item\label{sp:refine:N} $N_t(x,y)$ is finite for every $t>0$, and $K_{t/k}(x,y)=k$ for $k=N_t(x,y)$. \end{enumerate} \end{lemma} \begin{proof} We first bound the cost of the links obtained by subdividing a geodesic. Let $v\ne w$, put $s=d(v,w)$, and let $v=z_0,z_1,\ldots,z_q=w$ be points of a geodesic from $v$ to~$w$ with $d(z_{i-1},z_i)=s/q$. Since $d(z_i,v)\le s$, \ref{sp:R3} gives $\Psi(z_i,s)\le C_\Psi\,\Psi(v,s)$, and the lower bound in~\ref{sp:R2} gives $\Psi(z_i,s/q)\le C_\Psi\,q^{-a}\,\Psi(z_i,s)$. Hence \begin{equation}\label{sp:eq:subdivide} \Psi^*(z_{i-1},z_i)\le C_\Psi^2\,q^{-a}\,\Psi(v,s)\le C_\Psi^2\,q^{-a}\,\Psi^*(v,w)\,. \end{equation} \ref{sp:refine:finite} If $x\ne y$, apply~\eqref{sp:eq:subdivide} to $(v,w)=(x,y)$, with $q$ so large that $C_\Psi^2q^{-a}\,\Psi(x,d(x,y))\le h$. This gives an $h$-chain with $q$ links. Monotonicity follows by inclusion of the sets of chains. For~\ref{sp:refine:main} with $a>1$, take an $h$-chain with $K_h(x,y)$ links and replace each link $(v,w)$ with $v\ne w$ by the $q$ links of~\eqref{sp:eq:subdivide}, where $q=\lceil(C_\Psi^2L)^{1/a}\rceil$. The new links have cost at most $C_\Psi^2q^{-a}h\le h/L$. Hence $K_{h/L}\le q\,K_h$, and $q\le2(C_\Psi^2L)^{1/a}$. One can take $C_1=2C_\Psi^{2/a}$. Under $\mathrm{PHI}_\rho(\beta)$ use~\cite[Theorem~1.6, (1.4)]{MurChain}. By Theorem~\ref{sp:thm:power}, volume doubling, the Poincar\'e inequality and the upper capacity bound hold in~$\rho$ at scale $s^\beta$. Thus, for $0<\varepsilon\le\rho(v,w)$, the infimum of the lengths of chains in~$\rho$ from $v$ to $w$ with links shorter than~$\varepsilon$ is at most \begin{equation*} C\varepsilon\left(\frac{\rho(v,w)^\beta}{\varepsilon^\beta}\right)^{1/2}\,. \end{equation*} In any metric, a chain of length $\ell$ with links shorter than $\varepsilon$ can be replaced by one with at most $2+2\ell/\varepsilon$ such links. Group consecutive links maximally while their total length is less than $\varepsilon$ and join the endpoints of each group. Each pair of successive groups has combined length at least $\varepsilon$; see also~\cite[Lemma~6.3]{GrTe12}. For a link of cost at most $h$ take $\varepsilon=c(h/L)^{1/\beta}$. By~\eqref{sp:eq:rho-cost}, $\rho(v,w)^\beta\le C_\rho h$ and, for $c$ small, each new link has cost at most $h/L$. If $\rho(v,w)<\varepsilon$ one link suffices. Otherwise the length bound gives at most $C\sqrt L$ links. Applying this to each link proves~\eqref{sp:eq:refine} with $\theta=1/2$. \ref{sp:refine:sublinear} Apply~\eqref{sp:eq:refine} with $h=v$ and $L=v/u$, and multiply by $u/(v\,K_v)$. \ref{sp:refine:bound} By~\eqref{sp:eq:refine}, $K_{t/(Lk)}\le C_1L^{\theta}K_{t/k}\le C_1D\,L^\theta\,k\le L\,k$, because $C_1D\le L^{1-\theta}$. Now use~\eqref{sp:eq:NK}. \ref{sp:refine:N} Finiteness follows from~\ref{sp:refine:bound} with $k=1$ and $D=K_t(x,y)$. Let $k=N_t(x,y)$. Then $K_{t/k}\le k$. If $k>1$, minimality gives $K_{t/(k-1)}>k-1$, hence $k\le K_{t/(k-1)}\le K_{t/k}\le k$. If $k=1$, then $K_t\le1$, and $K_t\ge1$ by definition. \end{proof} The heat kernel will first be estimated for almost every pair of points. To pass to all pairs we use that the chain count changes by at most a bounded factor under small perturbations of the endpoints. \begin{lemma}\label{sp:lem:stable} Under either refinement hypothesis of Lemma~\ref{sp:lem:refine} there is a uniform constant $C_0\ge1$ such that every $(x,y)\in X\times X$ and $t>0$ admit a neighbourhood~$\mathcal N$ of~$(x,y)$ in~$X\times X$ with \begin{equation*} C_0^{-1}\,N_t(x,y)\le N_t(x',y')\le C_0\,N_t(x,y)\qquad\text{for all }(x',y')\in\mathcal N\,. \end{equation*} \end{lemma} \begin{proof} Let $C_0=\lceil(3C_1)^{1/(1-\theta)}\rceil$ and $k=N_t(x,y)$. By Lemma~\ref{sp:lem:basic}\ref{sp:basic:limits} and~\ref{sp:basic:spatial}, $\Psi^*(v,w)\le C_\Psi\,\Psi(v,d(v,w))$ tends to zero as $w\to v$. Hence there is $\delta_0>0$ such that \begin{equation*} \Psi^*(x,x')\le\frac{t}{C_0k}\quad\text{and}\quad\Psi^*(y,y')\le\frac{t}{C_0k}\qquad\text{for }x'\in B(x,\delta_0)\,,\ y'\in B(y,\delta_0)\,, \end{equation*} and we take $\mathcal N=B(x,\delta_0)\times B(y,\delta_0)$. Let $(x',y')\in\mathcal N$. Adding the links $(x',x)$ and $(y,y')$ to a $(t/k)$-chain with $k$ links from $x$ to~$y$ gives $K_{t/k}(x',y')\le k+2\le3k$, and Lemma~\ref{sp:lem:refine}\ref{sp:refine:bound} gives $k':=N_t(x',y')\le C_0k$. Conversely, $t/k'\ge t/(C_0k)$, so $(x,x')$ and $(y',y)$ are $(t/k')$-links. Adding them to a $(t/k')$-chain with $k'$ links from $x'$ to~$y'$ gives $K_{t/k'}(x,y)\le k'+2\le3k'$, and the same lemma gives $k\le C_0k'$. \end{proof} \paragraph{Comparable scales.} Comparison of two scales gives comparison of their inverse radii. For chain counts one also uses refinement. \begin{lemma}\label{sp:lem:comparable} Let $\Psi$ be a regular scale and let $c_0\Psi\le\Psi'\le C_0\Psi$ for a positive function $\Psi'$, where $01$. Then $\Psi$ is a regular scale function, with $r_t(x)=\Psi^{-1}(t)$ and $\Psi^*(v,w)=\Psi(d(v,w))$. For all $x,y\in X$ and $t>0$, $N_t(x,y)$ is the least integer $k\ge1$ with \begin{equation}\label{sp:eq:radial-N} d(x,y)\le k\,\Psi^{-1}\Bigl(\frac tk\Bigr)\,, \end{equation} and there is a constant $C\ge1$, depending only on the constants in~\eqref{hk:eq:global-weak-scaling}, such that \begin{equation}\label{sp:eq:N-rate} C^{-1}\bigl(1+\mathcal A_\Psi(d(x,y),t)\bigr)\le N_t(x,y)\le1+C\,\mathcal A_\Psi(d(x,y),t)\,, \end{equation} where $\mathcal A_\Psi$ is the rate function~\eqref{eq:rate-function}. In particular, if $c_1r^\beta\le\Psi(r)\le c_2r^\beta$ for some $\beta>1$, then \begin{equation}\label{sp:eq:power-N} N_t(x,y)\asymp1+\left(\frac{d(x,y)^\beta}{t}\right)^{\frac1{\beta-1}}\,. \end{equation} \end{lemma} \begin{proof} Conditions \ref{sp:R1} and~\ref{sp:R3} hold because $\Psi$ is increasing and does not depend on the centre, and \ref{sp:R2} is~\eqref{hk:eq:global-weak-scaling}. Write $R=d(x,y)$. \emph{Step 1: the formula for the chain count.} If there is a $t$-admissible chain with $k$ links, each link has length at most $\Psi^{-1}(t/k)$, and the triangle inequality gives~\eqref{sp:eq:radial-N}. Conversely, if~\eqref{sp:eq:radial-N} holds, the points which divide a geodesic from $x$ to~$y$ into $k$ equal parts form a chain whose links have the cost $\Psi(R/k)\le t/k$. \emph{Step 2: the rate function is at most a multiple of the chain count.} Let $k=N_t(x,y)$, so that $\Psi(R/k)\le t/k$. If $s\ge R/k$, then $R/s-t/\Psi(s)\le k$. If $s1$. The lower bound in~\eqref{hk:eq:global-weak-scaling} gives $\Psi(s)\le\Psi(R/k)/(c_S\lambda^{s_-})\le t/(k\,c_S\lambda^{s_-})$, hence \begin{equation*} \frac Rs-\frac{t}{\Psi(s)}\le k\,\bigl(\lambda-c_S\lambda^{s_-}\bigr)\le k\,\sup_{\lambda\ge1}\bigl(\lambda-c_S\lambda^{s_-}\bigr)\,, \end{equation*} and the supremum is finite because $s_->1$. Thus $\mathcal A_\Psi(R,t)\le C\,k$. \emph{Step 3: the chain count is at most a multiple of the rate function.} Letting $s\to\infty$ in~\eqref{eq:rate-function} shows that $\mathcal A_\Psi\ge0$, so we may assume that $k=N_t(x,y)\ge2$. By Step~1, \eqref{sp:eq:radial-N} fails for $k-1$, that is, $\Psi(R/(k-1))>t/(k-1)$. Fix $A\ge1$ with $c_SA^{s_--1}\ge2$, and take $s=AR/(k-1)$ in~\eqref{eq:rate-function}. Since $\Psi(s)\ge c_SA^{s_-}\,\Psi(R/(k-1))$, \begin{equation*} \mathcal A_\Psi(R,t)\ge\frac{k-1}{A}-\frac{k-1}{c_SA^{s_-}}\ge\frac{k-1}{2A}\,. \end{equation*} \emph{Step 4: powers.} By Lemma~\ref{sp:lem:comparable} we may assume that $\Psi(r)=r^\beta$, and then $\mathcal A_\Psi(R,t)=c_\beta\,(R^\beta/t)^{1/(\beta-1)}$, as recalled after~\eqref{eq:rate-function}. \end{proof} \paragraph{Chains in the adapted metric.} For the next three lemmas assume one of the two refinement hypotheses of Lemma~\ref{sp:lem:refine}, and let $\theta<1$ be its exponent. The sharp heat kernel estimates of~\cite{GrTe12,MurChain}, which are recalled in Theorem~\ref{sp:thm:chain}, are expressed with chains whose links are short for the metric in which the scale is a power. Let $x\ne y$ and $u>0$. A \emph{$u$-chain in~$\rho$} from $x$ to~$y$ is a finite sequence $x=x_0,\ldots,x_k=y$ with $\rho(x_{i-1},x_i)0$, we denote by $Q_h(x,y)$ the least number of links of an $h^{1/\beta}$-chain in~$\rho$ from $x$ to~$y$. In~\cite{GrTe12,MurChain} the metric is denoted by~$d$ and the quantity~$\rho_u$ by~$d_u$. By the triangle inequality $\rho_u(x,y)\ge\rho(x,y)$, and $u\mapsto\rho_u(x,y)$ is nonincreasing. \begin{lemma}\label{sp:lem:costlen} For all $x\ne y$ in~$X$ and $u>0$, the quantities $Q_{u^\beta}(x,y)$ and $\rho_u(x,y)$ are finite, and \begin{equation}\label{sp:eq:costlen} K_{u^\beta}(x,y)\asymp Q_{u^\beta}(x,y)\asymp1+\frac{\rho_u(x,y)}{u}\,. \end{equation} \end{lemma} \begin{proof} \emph{Step 1: the two numbers of links.} Let $h>0$. By~\eqref{sp:eq:rho-cost}, a pair with $\Psi^*(v,w)\le h/(2C_\rho)$ satisfies $\rho(v,w)^\beta\le h/20$, and define \begin{equation}\label{sp:eq:critical} \varepsilon=\varepsilon(t,x,y)=\sup\{u>0:\ u^{\beta-1}\rho_u(x,y)\le t\}\,. \end{equation} Then $0<\varepsilon<\infty$ and $\varepsilon^{\beta-1}\rho_\varepsilon(x,y)=t$. \end{lemma} \begin{proof} Write $\rho_u=\rho_u(x,y)$ and $\phi(u)=u^{\beta-1}\rho_u$. \emph{Step 1: the limits of~$\phi$.} For $u\le1$, Lemma~\ref{sp:lem:costlen} and~\eqref{sp:eq:refine} with $h=1$ and $L=u^{-\beta}$ give $\rho_u\le u\,Q_{u^\beta}\le Cu\,K_{u^\beta}\le C'u^{1-\beta\theta}K_1(x,y)$. Hence $\phi(u)\le C'u^{\beta(1-\theta)}K_1(x,y)$, which tends to zero as $u\to0$ because $\theta<1$. On the other hand $\phi(u)\ge u^{\beta-1}\rho(x,y)$, which tends to infinity as $u\to\infty$ because $\beta>1$. Therefore $0<\varepsilon<\infty$. \emph{Step 2: left continuity.} A given $u$-chain in~$\rho$ is a $u'$-chain for some $u'\varepsilon$ we have $\phi(u)>t$, and monotonicity gives $\rho_\varepsilon\ge\rho_u>t\,u^{1-\beta}$; letting $u\downarrow\varepsilon$ gives $\phi(\varepsilon)\ge t$. The strict inequality for the links is the convention of~\cite[Lemma~6.4]{GrTe12}. \end{proof} \begin{lemma}\label{sp:lem:N-theta} Let $x\ne y$ and $t>0$, let $\varepsilon=\varepsilon(t,x,y)$ be as in~\eqref{sp:eq:critical}, and set \begin{equation}\label{sp:eq:theta} \vartheta_t(x,y)=\frac{\rho_\varepsilon(x,y)}{\varepsilon}=\left(\frac{\rho_\varepsilon(x,y)^\beta}{t}\right)^{\frac{1}{\beta-1}}\,. \end{equation} Then $N_t(x,y)\asymp1+\vartheta_t(x,y)$, with constants which do not depend on $x$, $y$ and~$t$. \end{lemma} \begin{proof} The second equality in~\eqref{sp:eq:theta} follows from $\varepsilon^{\beta-1}=t/\rho_\varepsilon$. Write $\vartheta=\vartheta_t(x,y)$, $k=N_t(x,y)$ and $K_h=K_h(x,y)$. \emph{The case $\vartheta\ge1$.} Put $h=\varepsilon^\beta$ and $h_*=t/k$. By Lemma~\ref{sp:lem:costlen}, $K_h\asymp1+\vartheta\asymp\vartheta$, so $h\,K_h\asymp\varepsilon^\beta\vartheta=\varepsilon^{\beta-1}\rho_\varepsilon=t$ by Lemma~\ref{sp:lem:critical}. By Lemma~\ref{sp:lem:refine}\ref{sp:refine:N}, $h_*K_{h_*}=t$. Thus $h\,K_h\asymp h_*K_{h_*}$, and~\eqref{sp:eq:sublinear}, applied to the smaller and the larger of $h$ and~$h_*$, shows that $h\asymp h_*$. Then~\eqref{sp:eq:refine} gives $K_h\asymp K_{h_*}$, that is, $\vartheta\asymp k$. \emph{The case $\vartheta<1$.} Then $\rho(x,y)\le\rho_\varepsilon<\varepsilon$, so the single link $(x,y)$ is an $\varepsilon$-chain in~$\rho$, and $\rho_\varepsilon=\rho(x,y)$. Lemma~\ref{sp:lem:critical} gives $t=\varepsilon^{\beta-1}\rho_\varepsilon>\rho(x,y)^\beta$, and~\eqref{sp:eq:rho-cost} gives $\Psi^*(x,y)0$ such that, for all $t>0$ and $m\otimes m$-almost all $(x,y)$ with $x\ne y$, \begin{equation}\label{sp:eq:chain-hk} \frac{c}{m(B_\rho(x,t^{1/\beta}))}\exp\bigl[-C\,\vartheta_t(x,y)\bigr] \le p_t(x,y)\le \frac{C}{m(B_\rho(x,t^{1/\beta}))}\exp\bigl[-c\,\vartheta_t(x,y)\bigr]\,. \end{equation} \end{theorem} We comment on the reference. The corollary of~\cite{MurChain} is stated for a scale function of the radius, under volume doubling, a Poincar\'e inequality and a cutoff Sobolev inequality at this scale; for the scale~$s^\beta$ these hypotheses are equivalent to~$\mathrm{PHI}_\rho(\beta)$, by~\cite[Remark~2.12]{MurChain} and~\cite[Theorem~4.5]{KMconf}. The estimate of~\cite{MurChain} has the prefactor $m(B_\rho(x,t^{1/\beta}))^{-1}$ and the exponential term $t\,\Phi(c\,\rho_\varepsilon(x,y)/t)$, where $\varepsilon=\varepsilon(t,x,y)$ is defined by~\eqref{sp:eq:critical} and $\Phi(\sigma)=\sup_{r>0}(\sigma/r-r^{-\beta})$. Maximizing over~$r$ gives $\Phi(\sigma)=c_\beta\,\sigma^{\beta/(\beta-1)}$, so that $t\,\Phi(\rho_\varepsilon/t)=c_\beta\,(\rho_\varepsilon^\beta/t)^{1/(\beta-1)}=c_\beta\,\vartheta_t(x,y)$. The estimate goes back to~\cite[Section~6]{GrTe12}. \begin{proposition}\label{sp:prop:sharp} Let $\Psi$ be a regular scale function, with an adapted metric~$\rho$ and its exponent~$\beta$, and suppose that $m$ is volume doubling. Then $(X,\rho,m,\cE,\cF)$ satisfies the parabolic Harnack inequality $\mathrm{PHI}_\rho(\beta)$ if and only if $\mathrm{HK}(\Psi)$ holds. \end{proposition} \begin{proof} By Lemma~\ref{sp:lem:rho-basic}, $(X,\rho)$ is complete with relatively compact balls, $m$ is volume doubling on~$(X,\rho)$, and $m(B_\rho(x,t^{1/\beta}))\asymp m(B(x,r_t(x)))$. \emph{Step 1: $\mathrm{PHI}_\rho(\beta)$ implies~\eqref{sp:eq:HK} for almost every pair.} Assume $\mathrm{PHI}_\rho(\beta)$. By Theorem~\ref{sp:thm:power} the heat kernel has a jointly continuous version, which we use from now on. By Theorem~\ref{sp:thm:chain}, \eqref{sp:eq:chain-hk} holds for almost every $(x,y)$ with $x\ne y$. By Lemma~\ref{sp:lem:N-theta}, $\vartheta_t(x,y)$ can be replaced by~$N_t(x,y)$ after a change of the constants, and by~\eqref{sp:eq:vol-rho} the volume factor can be replaced by $m(B(x,r_t(x)))^{-1}$. Since $m$ has no atoms, the diagonal is a null set of~$m\otimes m$. Hence, for each $t>0$, \eqref{sp:eq:HK} holds for $m\otimes m$-almost every $(x,y)$. \emph{Step 2: from almost every pair to every pair.} Fix $t>0$ and $(x,y)\in X\times X$, and let~$\mathcal N$ be the neighbourhood of~$(x,y)$ given by Lemma~\ref{sp:lem:stable}. After shrinking~$\mathcal N$ we may assume that $\rho(x,x')1$. Let $B=B(x,r)$ and $t=\Psi(x,r)$, so that $r_t(x)\le r$ by Lemma~\ref{sp:lem:basic}\ref{sp:basic:inverse}. Let $y\in2B$ with $y\ne x$, and let $x=z_0,\ldots,z_k=y$ divide a geodesic from $x$ to~$y$ into $k$ equal parts, of length $\ell<2r/k$. Since $d(z_i,x)<2r$, \ref{sp:R3} and~\ref{sp:R2} give $\Psi(z_i,2r)\le C_\Psi\,\Psi(x,2r)\le C_\Psi^22^b\,t$, and the lower bound in~\ref{sp:R2} gives \begin{equation*} \Psi^*(z_{i-1},z_i)\le\max_i\Psi(z_i,2r/k)\le C_\Psi\,k^{-a}\max_i\Psi(z_i,2r)\le C_\Psi^32^b\,k^{-a}\,t\,. \end{equation*} Since $a>1$, there is an integer~$k$, depending only on $a$, $b$ and~$C_\Psi$, with $C_\Psi^32^bk^{-a}\le1/k$. For this~$k$ the chain is $t$-admissible, so $N_t(x,y)\le k$ for every $y\in2B$. The lower bound in~\eqref{sp:eq:HK} and $m(B(x,r_t(x)))\le m(B)$ give $p_t(x,y)\ge c\,e^{-Ck}\,m(B)^{-1}$ on~$2B$, and the sub-Markov property of the semigroup gives \begin{equation*} 1\ge\int_{2B}p_t(x,y)\,dm(y)\ge c\,e^{-Ck}\,\frac{m(2B)}{m(B)}\,. \end{equation*} For the continuous version of the kernel, the first inequality holds at every~$x$, by the full support of~$m$ and Fatou's lemma. \end{proof} \begin{lemma}\label{eqrev:due} Suppose that $0<\Psi_\lambda(x,r)<\infty$, that $\Psi_\lambda(x,2r)\le D_\lambda\Psi_\lambda(x,r)$, and that its inverse radii satisfy $00$ and all $K\ge1$. Choose a fixed $K$ so large that the right side of~\eqref{eqrev:killed} is at most $e^{-4}$ when $R=Kr$. Thus $\Psi_\lambda(x,3Kr)\ge 2\Psi_\lambda(x,r)$. Iteration and domain monotonicity give the lower power bound of~\hSG{} with exponent $\log2/\log(3K)$. The upper power bound follows by iterating spectral doubling. \end{proof} \subsection{Proofs of the main results}\label{sp:sec:proofs} We first show how the Poincar\'e inequality and the capacity bounds pass from one metric to the other. This is what allows the theorems to be stated with a Poincar\'e inequality and with capacities of condensers on the balls of the original metric. \begin{lemma}\label{sp:lem:transfer} Let $\Psi$ be a regular scale function, with an adapted metric~$\rho$ and its exponent~$\beta$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{sp:tr:pi} If $\PI(\Psi)$ holds, then $(X,\rho,m,\cE,\cF)$ satisfies $\PI_\rho(\beta)$. \item\label{sp:tr:pi-back} If $(X,\rho,m,\cE,\cF)$ satisfies $\PI_\rho(\beta)$, then $\PI(\Psi)$ holds. \item\label{sp:tr:cap} If \hVD{} and $\mathrm{Cap}_{\le}(\Psi)$ hold, then there is~$C$ such that, for all $x\in X$ and $s>0$, there is a continuous function $\psi\in\cF$, with $0\le\psi\le1$ and with compact support in~$B_\rho(x,2s)$, which is equal to one on a neighbourhood of~$\overline{B_\rho(x,s)}$ and satisfies \begin{equation*} \cE(\psi,\psi)\le C\,\frac{m(B_\rho(x,s))}{s^\beta}\,. \end{equation*} In particular $(X,\rho,m,\cE,\cF)$ satisfies $\mathrm{Cap}^{\le}_\rho(\beta)$. \item\label{sp:tr:einstein} If \hVD{} and $\mathrm{Cap}_{\asymp}(\Psi)$ hold, then $(X,\rho,m,\cE,\cF)$ satisfies $\mathrm{Cap}_\rho(\beta)$, with $A_1=2$. \item\label{sp:tr:cap-back} If \hVD{} holds and there are $A_1>1$ and~$C$ such that \begin{equation*} \Capa\bigl(B_\rho(x,s),B_\rho(x,A_1s)\bigr)\le C\,\frac{m(B_\rho(x,s))}{s^{\beta}}\qquad\text{for all }x\in X\text{ and }s>0\,, \end{equation*} then $\mathrm{Cap}_{\le}(\Psi)$ holds. \end{enumerate} \end{lemma} \begin{proof} \ref{sp:tr:pi} Let $s>0$ and put $r=r_{s^\beta}(x)$, so that $\Psi(x,r)\asymp s^\beta$ by~\eqref{sp:eq:TR}. By~\eqref{sp:eq:sandwich}, $B_\rho(x,s)\subset B':=B(x,Cr)$. The mean of~$f$ on the larger ball is an admissible constant in the variance on the smaller one: \begin{equation*} \int_{B_\rho(x,s)}|f-f_{B_\rho(x,s)}|^2\,dm\le\int_{B'}|f-f_{B'}|^2\,dm\le C\,\Psi(x,Cr)\,\Gamma(f)(\Lambda B')\,. \end{equation*} Here $\Psi(x,Cr)\asymp\Psi(x,r)\asymp s^\beta$ by~\ref{sp:R2}, and $\Lambda B'=B(x,\Lambda Cr)\subset B_\rho(x,C's)$ by Lemma~\ref{sp:lem:rho-basic}\ref{sp:rho:sandwich}, because $\Psi(x,\Lambda Cr)\le C''s^\beta$. \ref{sp:tr:pi-back} Conversely, enclose $B(x,r)$ in $B_\rho(x,s)$ with $s^\beta=2C_\rho\Psi(x,r)$. By~\eqref{sp:eq:rho}, monotonicity and lower scaling, $B_\rho(x,\Lambda s)\subset B(x,C r)$. The same variance inequality gives $\PI(\Psi)$. \ref{sp:tr:cap} Let $s>0$ and $r=r_{s^\beta}(x)$, so that $\Psi(x,r)\asymp s^\beta$ and $\overline{B_\rho(x,s)}\subset B(x,Cr)$ by~\eqref{sp:eq:sandwich}. Let $\delta\in(0,1)$, to be chosen below. \emph{Step 1: a covering.} Let $\{z_j\}$ be a maximal subset of~$\overline{B_\rho(x,s)}$ whose points are at mutual $d$-distance at least~$\delta r/2$, and put $B_j=B(z_j,\delta r)$. By maximality the balls $B(z_j,\delta r/2)$ cover~$\overline{B_\rho(x,s)}$. The balls $B(z_j,\delta r/4)$ are disjoint and contained in~$B(x,(C+1)r)$, and by volume doubling each of them has measure at least $c_\delta\,m(B(x,(C+1)r))$. Hence the number of the points~$z_j$ is at most a constant~$N_\delta$. \emph{Step 2: the doubled balls stay inside $B_\rho(x,2s)$.} Since $d(x,z_j)\le Cr$, \eqref{sp:eq:spatial} gives $\Psi(z_j,r)\asymp\Psi(x,r)\asymp s^\beta$. For $w$ in the closure of~$2B_j$, \eqref{sp:eq:rho} and the lower bound in~\ref{sp:R2} give \begin{equation*} \rho(w,z_j)^\beta\le C_\rho\,\Psi(z_j,2\delta r)\le C_\rho C_\Psi(2\delta)^a\,\Psi(z_j,r)\le C(2\delta)^a s^\beta\,. \end{equation*} We choose $\delta$ so small that the right-hand side is at most $(s/2)^\beta$. Then $\rho(w,x)\le\rho(w,z_j)+\rho(z_j,x)\le3s/2$, so the closure of~$2B_j$ is contained in~$B_\rho(x,2s)$. \emph{Step 3: cutoff functions.} By the upper bound in~\ref{sp:R2}, $\Psi(z_j,\delta r)\ge C_\Psi^{-1}\delta^b\,\Psi(z_j,r)\ge c_\delta s^\beta$. Hence $\mathrm{Cap}_{\le}(\Psi)$ for the ball~$B_j$ gives $\Capa(B_j,2B_j)\le C_\delta\,m(B_j)\,s^{-\beta}$, and there is a continuous cutoff function~$\phi_j$ for $B_j\subset2B_j$ with $\cE(\phi_j,\phi_j)\le2C_\delta\,m(B_j)\,s^{-\beta}$. Put $\psi=\max_j\phi_j$. Then $\psi$ is continuous, it is equal to one on a neighbourhood of~$\overline{B_\rho(x,s)}$, and its support is a compact subset of~$B_\rho(x,2s)$ by Step~2. Since $\Gamma(u\vee v)\le\Gamma(u)+\Gamma(v)$ for $u,v\in\cF$, we have $\psi\in\cF$ and $\cE(\psi,\psi)\le\sum_j\cE(\phi_j,\phi_j)\le2C_\delta\,s^{-\beta}\sum_jm(B_j)$. All the balls~$B_j$ are contained in~$B(x,(C+1)r)$, whose measure is comparable to~$m(B_\rho(x,s))$ by volume doubling and~\eqref{sp:eq:sandwich}, and their number is at most~$N_\delta$. This proves the claim. \ref{sp:tr:einstein} The preceding assertion gives the upper bound. For $r=r_{s^\beta}(x)$ the ball inclusions~\eqref{sp:eq:sandwich} and lower scaling give \begin{equation*} \Capa(B_\rho(x,s),B_\rho(x,2s))\ge\Capa(B(x,cr),B(x,Cr)) \asymp m(B(x,r))/\Psi(x,r)\asymp m(B_\rho(x,s))/s^\beta\,. \end{equation*} The same argument with a smaller inner ball applies under the open-ball convention. \ref{sp:tr:cap-back} Fix a small $\delta>0$ and put $s^\beta=\delta\Psi(x,r)$. A maximal $s$-separated subset of $\overline{B(x,r)}$ in the metric~$\rho$ yields a cover by $B_\rho(z,s)$. Its cardinality is bounded in terms of $\delta$ by doubling in~$\rho$, since $B(x,r)\subset B_\rho(x,C_\delta s)$. For these centres $\Psi(z,r/2)\gtrsim\Psi(x,r)$ by~\ref{sp:R2} and~\ref{sp:R3}. By~\eqref{sp:eq:rho}, choosing $\delta$ sufficiently small puts every $B_\rho(z,A_1s)$ inside $B(z,r/2)$. The maximum of the corresponding cutoffs is admissible for $B(x,r)\subset B(x,2r)$, and its energy is bounded by the sum of their energies. Each is at most $C m(B(x,2r))/s^\beta$, as required. \end{proof} \paragraph{The condition $(\mathrm P_\rho)$.} Let $\Psi$ be a regular scale function, and let $\rho$ and $\beta>1$ be an adapted metric and its exponent (Proposition~\ref{sp:prop:rho}). By Lemma~\ref{sp:lem:rho-basic}, $(X,\rho)$ is complete with relatively compact balls, so that Theorem~\ref{sp:thm:power} applies to $(X,\rho,m,\cE,\cF)$, and volume doubling on~$(X,d)$ implies volume doubling on~$(X,\rho)$. Consider the following condition. \begin{itemize} \item[$(\mathrm P_\rho)$] The measure~$m$ is volume doubling on~$(X,d)$, and $(X,\rho,m,\cE,\cF)$ satisfies $\mathrm{PHI}_\rho(\beta)$. \end{itemize} We prove that each of the conditions~\ref{sp:scale:ehi}, \ref{sp:scale:hk} and~\ref{sp:scale:pi} of Theorem~\ref{sp:thm:scale} is equivalent to~$(\mathrm P_\rho)$, as in Figure~\ref{fig:sp-proof}. \begin{proof}[Proof of Theorem~\ref{sp:thm:scale}] Assume~\ref{sp:scale:ehi}. The comparison $\Psi_\lambda\asymp\Psi$ gives~\hSG. Proposition~\ref{caprev:criterion} now gives volume doubling, $J_A\asymp\Psi$ for each $A>1$, and $\PI(J_2)$. This proves~\ref{sp:scale:pi} and the asserted two-sided capacity bound. Under~\ref{sp:scale:pi}, Lemmas~\ref{sp:lem:rho-basic} and~\ref{sp:lem:transfer} give volume doubling, $\PI_\rho(\beta)$ and $\mathrm{Cap}^{\le}_\rho(\beta)$ in the adapted metric. The resistance theorem (Theorem~\ref{sp:thm:power}) gives $(\mathrm P_\rho)$. Conversely, $(\mathrm P_\rho)$ implies the elliptic Harnack inequality in $\rho$ by Theorem~\ref{sp:thm:power}, hence in $d$ by~\cite[Lemma~7.1]{BCM}. The same theorem gives the Poincar\'e inequality and the upper capacity bound in $\rho$ at scale $s^\beta$. We claim that $\lambda_1(B_\rho(x,s))^{-1}\asymp s^\beta$. For the upper bound, choose $z$ with $\rho(x,z)=2s$: the distance from $x$ has connected unbounded image by Lemma~\ref{sp:lem:rho-basic}. A test function supported in $B_\rho(x,s)$ vanishes on $B_\rho(z,s/2)$, which occupies a fixed fraction of $B_\rho(x,4s)$ by doubling. The variance estimate in the proof of Proposition~\ref{sp:prop:squeeze} gives $\|f\|_2^2\le Cs^\beta\cE(f,f)$. For the lower bound, use the cutoff in $\mathrm{Cap}^{\le}_\rho(\beta)$ at radius $s/3$. It is one on $B_\rho(x,s/3)$ and vanishes outside $B_\rho(x,2s/3)$, so it belongs to the part domain on $B_\rho(x,s)$ and has Rayleigh quotient at most $C s^{-\beta}$. Finally, if $v=\Psi(x,r)^{1/\beta}$, monotonicity and~\eqref{sp:eq:rho} give \begin{equation*} B_\rho(x,cv)\subset B(x,r)\subset B_\rho(x,Cv)\,. \end{equation*} Domain monotonicity gives $\Psi_\lambda(x,r)\asymp\Psi(x,r)$, proving~\ref{sp:scale:ehi}. By Proposition~\ref{sp:prop:sharp}, $(\mathrm P_\rho)$ implies $\mathrm{HK}(\Psi)$, and volume doubling gives metric doubling. Conversely, under~\ref{sp:scale:hk}, Lemma~\ref{sp:lem:hk-vd} gives volume doubling, and Proposition~\ref{sp:prop:sharp} gives $(\mathrm P_\rho)$. When $a>1$, the same lemma gives volume doubling from $\mathrm{HK}(\Psi)$ alone. \end{proof} \begin{proof}[Proof of Theorem~\ref{sp:thm:main}] Proposition~\ref{caprev:criterion} gives the equivalence of~\ref{sp:main:ehi} and~\ref{eqrev:maincap}, volume doubling, and the comparison of $J_A$ with $\Psi_\lambda$. Under~\ref{sp:main:ehi}, the spectral scale is regular by Lemma~\ref{sp:lem:lambda-regular}. Theorem~\ref{sp:thm:scale}, applied to this scale, gives~\ref{sp:main:hk} and~\ref{sp:main:pi}. Conversely, under~\ref{sp:main:pi} the same theorem gives the elliptic Harnack inequality and $\Psi_\lambda\asymp\Psi$, which implies~\hSG. Under~\ref{sp:main:hk}, the diagonal upper bound gives volume doubling and~\hSG{} by Lemma~\ref{eqrev:due}, since $N_t(x,x)=1$. Theorem~\ref{sp:thm:scale} now gives~\ref{sp:main:ehi}. This also proves~\eqref{sp:eq:einstein-lambda}. Under the equivalent conditions the parabolic Harnack inequality holds in the adapted metric of $\Psi_\lambda$ by Proposition~\ref{sp:prop:sharp}. The refinement estimate of Lemma~\ref{sp:lem:refine} gives finite chain counts. Applying Lemma~\ref{sp:lem:comparable} with $\Psi'=J_A$ proves the assertion about the kernel. \end{proof} \begin{proof}[Proof of Corollary~\ref{sp:cor:radial}] By Lemma~\ref{sp:lem:chain-rate}, $\Psi$ is a regular scale function, with $r_t(x)=\Psi^{-1}(t)$ and $N_t(x,y)\asymp1+\mathcal A_\Psi(d(x,y),t)$. Hence $\mathrm{HK}(\Psi)$ is the condition~\ref{sp:rad:hk}, with other constants. For a scale which does not depend on the centre, $\PI(\Psi)$ in the sense of~\eqref{sp:eq:PI} is the inequality~\eqref{hk:eq:global-pi}, by locality, and $\mathrm{Cap}_{\le}(\Psi)$ is the bound~\eqref{eq:capacity-bound}. Since $s_->1$, Lemma~\ref{sp:lem:hk-vd} gives doubling from the kernel bound. The equivalence follows from Theorem~\ref{sp:thm:scale}. For $\Psi(r)=r^\beta$ one has $\Psi^{-1}(t)=t^{1/\beta}$ and $\mathcal A_\Psi(R,t)=c_\beta\,(R^\beta/t)^{1/(\beta-1)}$, and~\eqref{sp:eq:radial-kernel} becomes~\eqref{sp:eq:power-kernel}. \end{proof} \subsection{Compact spaces}\label{sp:sec:compact} If $X$ is compact, the constant function~$1$ belongs to~$\cF$ and has zero energy, so that $\lambda_1(X)=0$. The hypotheses on the spectral scale must therefore be imposed below the diameter. The estimate of the heat kernel still concerns every pair of points, at small times. In this section $(X,d)$ is a compact geodesic space with positive diameter, $m$ is a Radon measure with full support and without atoms, and $(\cE,\cF)$ is a strongly local regular Dirichlet form on~$L^2(X,m)$. The definitions of $\Psi_\lambda$, of the radius $r_t(x)$, of the cost~$\Psi_\lambda^*$ and of the chain count~$N_t$ are those of Section~\ref{sp:sec:scale}, with the Dirichlet spectra of the balls of~$X$ and the convention $1/0=+\infty$. \begin{corollary}\label{sp:cor:compact} The following four conditions are equivalent. All local estimates hold uniformly in the centre and below some fixed positive radius. In a comparison of radii, both radii lie below the threshold. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{sp:cpt:ehi} The elliptic Harnack inequality and the spectral growth condition~\hSG{} hold locally, with $0<\Psi_\lambda(x,r)<\infty$. \item\label{sp:cpt:hk} The spectral scale is finite and doubling locally. For some $t_0>0$ its inverse radii satisfy $01$. \end{enumerate} Under these conditions~\eqref{sp:eq:einstein-lambda} holds for each $A>1$ at sufficiently small radii. The short-time estimate holds for every pair of points with the radii and chain counts of $\Psi_\lambda$, $J_A$, or any scale $\Psi$ from~\ref{sp:cpt:pi}. For a scale prescribed only locally, compute its radii and link costs using any positive extension bounded below uniformly beyond the local range. For every $t_*>0$ one has $p_t(x,y)\asymp_{t_*}m(X)^{-1}$ uniformly on $X\times X$ for $t\ge t_*$. \end{corollary} If the scale in~\ref{sp:cpt:pi} depends only on the radius and is continuous and strictly increasing with a lower exponent greater than one, extend it beyond a fixed small radius by a matching power with exponent greater than one. Then the short-time kernel satisfies~\eqref{sp:eq:radial-kernel} with this extension, by Lemma~\ref{sp:lem:chain-rate}. In particular $\Psi_\lambda(x,r)\asymp r^\beta$ at small radii, with $\beta>1$, gives~\eqref{eq:compact-HKE} under the equivalent conditions. \begin{proof} By regularity a function $u\in\cF\cap C(X)$ uniformly approximates $2$ with error less than $1$. Thus $1=u\wedge1\in\cF$, and strong locality gives $\cE(1,1)=0$ and $P_t1=1$. Compactness and full support give \begin{equation}\label{sp:eq:infV} \inf_{x\in X}m(B(x,s))>0\qquad(s>0)\,, \end{equation} by covering $X$ by finitely many balls of radius $s/2$. Consequently local volume doubling implies volume doubling at all radii. \emph{Step 1. Local spectral growth and extension of the scale.} Proposition~\ref{caprev:criterion} gives the equivalence of~\ref{sp:cpt:ehi} and~\ref{eqrev:compactcap}, the comparison with $J_A$ at small radii, and local doubling and the Poincar\'e and capacity bounds there. In particular these conditions imply~\ref{sp:cpt:pi}. Conversely, under~\ref{sp:cpt:pi} the proof of Proposition~\ref{sp:prop:squeeze} gives $\Psi_\lambda\asymp\Psi$ locally. Indeed the proof uses the Poincar\'e inequality only on a fixed dilation of the ball; for sufficiently small $r$ its exterior subball exists since every point of $X$ has another point at distance at least $\diam X/2$. Thus~\ref{sp:cpt:pi} implies local~\hSG. Under~\ref{sp:cpt:hk} the diagonal upper bound gives the same local growth and local volume doubling by the proof of Lemma~\ref{eqrev:due}. To check its time restriction, first observe that $\Psi_\lambda(x,r)\to0$ as $r\downarrow0$ uniformly in $x$. At each $x$ this follows from $r_t(x)>0$ for arbitrarily small $t$. Given $\epsilon>0$, choose $s_x>0$ with $\Psi_\lambda(x,2s_x)<\epsilon$, take a finite subcover by $B(x,s_x)$, and use inclusion at radius $\min s_x$. Thus the time $2\Psi_\lambda(x,3R)$ in~\eqref{eqrev:killed} lies below $t_0$ at all sufficiently small $R$. The exterior balls used to obtain reverse volume growth also exist at these radii. The fixed dilation and iteration in the proof of the lemma therefore give local~\hSG. Under any of the four conditions choose $r_1>0$ so small that $4r_1$ is in the range of~\hSG. A finite cover by balls of radius $r_1/4$ and the inclusions $B(c,r_1/2)\subset B(x,r_1)\subset B(c,2r_1)$ for $d(x,c)r_1$, with $a$ the lower spectral exponent. The two radial power bounds extend by comparison through $r_1$. Nearby-centre comparability follows by ball inclusion for $r\le r_1$, and by~\eqref{sp:eq:m1M1} for $r>r_1$. Thus $\widetilde\Psi$ is regular and has an adapted metric $\rho$ with exponent $\beta>1$ as in Proposition~\ref{sp:prop:rho}. Its volume doubling follows from doubling in $d$ and Lemma~\ref{sp:lem:rho-basic}. For either scale every link of length at least $r_1$ has cost at least $m_1$, by domain monotonicity and the definition of the extension. Hence, with tildes denoting the quantities for $\widetilde\Psi$, \begin{equation}\label{sp:eq:identify} K_h=\widetilde K_h\quad(h0$. Indeed its covering proof uses only fixed dilations and fixed fractions of the original ball, and~\eqref{sp:eq:m1M1} and local scaling ensure that $\widetilde r_{s^\beta}(x)$ tends to zero uniformly as $s\downarrow0$. For larger radii, cover $X$ by finitely many $\rho$-balls $B_i$ of a fixed radius below $s_0$. Their intersection graph is connected. Whenever two balls overlap, \begin{equation*} m(B_i\cap B_j)|f_{B_i}-f_{B_j}|^2 \le 2\int_{B_i}|f-f_{B_i}|^2\,dm+2\int_{B_j}|f-f_{B_j}|^2\,dm\,. \end{equation*} The local inequalities and summation along paths in the finite graph yield $\int_X|f-f_X|^2\,dm\le C_X\cE(f,f)$. This gives the required Poincar\'e inequality at radii $s\ge s_0$ after increasing the dilation to contain $X$. For the capacity bound when $s_0\le s\le2\diam_\rho X$, cover $\overline{B_\rho(x,s)}$ by a uniformly bounded number of balls of fixed radius $\sigma2\diam_\rho X$ use the constant cutoff. Theorem~\ref{sp:thm:power} now gives $\mathrm{PHI}_\rho(\beta)$. The elliptic Harnack inequality transfers to~$d$ by~\cite[Lemma~7.1]{BCM}, proving~\ref{sp:cpt:ehi}. Proposition~\ref{sp:prop:sharp} gives $\mathrm{HK}(\widetilde\Psi)$, hence~\ref{sp:cpt:hk} by~\eqref{sp:eq:identify}. Murugan's chain estimate on bounded spaces is discussed in~\cite[Corollary~2.9 and proof of Theorem~2.11]{MurChain}. \emph{Step 3. The converse from the short-time estimate.} Assume~\ref{sp:cpt:hk} and take $0<\tau<\min(t_0,m_1)$. By Step~1, for $t\le\tau$ the spectral radii and chain counts are those of $\widetilde\Psi$. The converse in Proposition~\ref{sp:prop:sharp} gives the weak upper bound~\eqref{sp:eq:wupper} and the near-diagonal lower bound in $\rho$ for these times: any admissible chain bounds $\rho(x,y)$ by $Ck(t/k)^{1/\beta}$, while a sufficiently close pair needs just one link. This argument also applies if there is no admissible chain for a pair, with the convention $e^{-c\infty}=0$. We extend the two weak bounds to all times. Uniform equivalence of $d$ and $\rho$ on $X$ gives some $\delta>0$ such that $p_s(u,v)\ge c_0>0$ for $\tau/2\le s\le\tau$ and $d(u,v)<\delta$. Choose an integer $k$ so large that any $d$-geodesic can be subdivided into $k$ links of length at most $\delta/4$. In the semigroup identity at time $k\tau$ restrict each intermediate variable to the $d$-ball of radius $\delta/4$ about its subdivision point. Successive variables are at distance less than $\delta$, and~\eqref{sp:eq:infV} gives a uniformly positive lower bound for $p_{k\tau}$ on $X\times X$. Conservativity extends this bound to all later times. For $\tau\le t\le k\tau$, take $j=\lceil t/\tau\rceil$ steps of duration $t/j\in[\tau/2,\tau]$, with all intermediate variables in $B(x,\delta/4)$. This yields a uniform lower bound for $d(x,y)<\delta/4$ throughout this time interval, and hence the near-diagonal lower bound in $\rho$ after decreasing its distance constant. The required volumes at $t\ge\tau$ are bounded above and bounded away from zero. The upper bound at $\tau$ extends by conservativity to a uniform upper bound for all $t\ge\tau$, which gives~\eqref{sp:eq:wupper} since $\diam_\rho X<\infty$. Theorem~\ref{sp:thm:power} gives $\mathrm{PHI}_\rho(\beta)$, and the elliptic Harnack inequality transfers to~$d$. This proves~\ref{sp:cpt:ehi} and completes the equivalence. \emph{Step 4. Capacitary scales and positive times.} For a fixed $A>1$ decrease $r_1$ so that $J_A\asymp\Psi_\lambda$ up to that radius. For $r\ge r_1$, $J_A(x,r)$ is uniformly bounded below, with the value $+\infty$ when $C_A(x,r)=0$. Indeed take a finite cover of $X$ by $d$-balls of radius $\sigma<(A-1)r_1/4$ and continuous cutoffs in their doubles. The maximum over those balls meeting $\overline{B(x,r)}$ is admissible for $C_A(x,r)$ and has uniformly bounded energy, whereas the numerator is at least $\inf_xm(B(x,r_1))$. Extend $J_A$ from $r\le r_1$ by $\widetilde\Psi$ at larger radii. The extension is comparable to $\widetilde\Psi$ globally, and at sufficiently short times the inverse radii and admissible links coincide with those of the original $J_A$. The last argument of Theorem~\ref{sp:thm:main} now proves the capacitary estimate. For the scale $\Psi$ in~\ref{sp:cpt:pi}, Step~1 gives $\Psi\asymp\Psi_\lambda$ on $00$, the parabolic Harnack inequality in~$\rho$ gives a continuous kernel satisfying $\mathrm{HK}(\widetilde\Psi)$ with finite chain counts. Thus $p_{t_*}$ is everywhere positive on the compact set $X\times X$, and \begin{equation}\label{sp:eq:tau-bounds} 0<\min_{x,y\in X}p_{t_*}(x,y)\le\max_{x,y\in X}p_{t_*}(x,y)<\infty\,. \end{equation} The semigroup identity and conservativity propagate these bounds to every $t\ge t_*$. \end{proof} \subsection{A radial speed measure on Euclidean space}\label{radrev:section} The spectral scale at a fixed centre can grow like $r^\alpha$ with $0<\alpha\le1$, even when the energy is the classical Dirichlet integral. Let $n\ge3$ and $0\le\alpha\le1$. On Euclidean space take \begin{equation*} dm_\alpha(z)=|z|^{\alpha-2}\,dz\,,\qquad \cE(f,f)=\int_{\R^n}|\nabla f|^2\,dz\,, \end{equation*} with domain the closure of $C_c^\infty(\R^n)$ in the form norm. The weight is locally integrable and bounded below on bounded sets. Hence convergence to zero in $L^2(m_\alpha)$ implies convergence to zero in distributions, and testing distributional derivatives proves closability. The closure is a regular strongly local form, with generator $|z|^{2-\alpha}\Delta$ on smooth functions supported away from the origin. Its gradient measure is Lebesgue measure and its rank is~$n$, as is seen by cutting off the coordinate functions. Form-harmonic functions are distributionally harmonic and have classical harmonic representatives. In particular $\EHI$ holds for every~$\alpha$. \begin{proposition}\label{radrev:scale} For each fixed $A>1$, uniformly in $x\in\R^n$ and $r>0$, \begin{align*} m_\alpha(B(x,r))&\asymp r^n(|x|+r)^{\alpha-2}\,,\qquad \Capa(B(x,r),B(x,Ar))\asymp_A r^{n-2}\,,\\ \Psi_\lambda(x,r)&\asymp r^2(|x|+r)^{\alpha-2}\,. \end{align*} At the origin $\Psi_\lambda(0,r)=r^\alpha\Psi_\lambda(0,1)$. For $\alpha>0$ the optimal uniform lower growth exponent is~$\alpha$. For $\alpha=0$ one has $\Psi_\lambda(0,r)=4/(n-2)^2$ at every radius. \end{proposition} \begin{proof} When $|x|\ge2r$, the weight on $B(x,r)$ is comparable to $|x|^{\alpha-2}$. When $|x|<2r$, it is bounded below there by $(3r)^{\alpha-2}$, and integration over $B(0,3r)$ gives the matching upper bound. The annular capacity follows by translation and dilation of the classical Dirichlet integral. A cutoff equal to one on $B(x,r/2)$ and supported in $B(x,r)$ has energy at most $Cr^{n-2}$. Its Rayleigh quotient and the volume estimate give the lower bound on $\Psi_\lambda$. For the upper bound use the Euclidean Dirichlet Poincar\'e inequality when $|x|\ge2r$. When $|x|<2r$, Hardy's inequality~\cite{Maz11} gives, for $u\in C_c^\infty(B(x,r))$, \begin{equation*} \int |u|^2\,dm_\alpha\le (3r)^\alpha\int\frac{|u|^2}{|z|^2}\,dz \le\frac{4(3r)^\alpha}{(n-2)^2}\cE(u,u)\,. \end{equation*} These bounds and the local lower bound for the weight make the ordinary and weighted form norms equivalent on functions supported in the ball. Mollification of compactly supported form functions inside the ball therefore extends the estimates to its part domain. Scaling the Rayleigh quotient proves the identity at the origin. For $R\ge r$ the ratio $\Psi_\lambda(x,R)/\Psi_\lambda(x,r)$ lies between $c(R/r)^\alpha$ and $C(R/r)^2$; the identity at the origin shows that the lower exponent is optimal. At $\alpha=0$, put $h=(n-2)/2$ and take $u(z)=|z|^{-h}v(\log(r/|z|))$ for a nonzero $v\in C_c^\infty(0,\infty)$. Its Rayleigh quotient on $B(0,r)$ is $h^2+\int_0^\infty|v'|^2\,ds/\int_0^\infty|v|^2\,ds$. Replacing $v(s)$ by $v(s/L)$ and letting $L\to\infty$ proves sharpness. The infimum is not attained: equality in Hardy's inequality forces a multiple of $|z|^{-h}$, whose squared $L^2(m_0)$ norm diverges at the origin. \end{proof} For $\alpha>0$, set $\gamma=\alpha/2$ and let $F(0)=0$, $F(x)=|x|^{\gamma-1}x$ for $x\ne0$. Then the chain count of the spectral scale satisfies \begin{equation}\label{radrev:count} N_t(x,y)\asymp 1+\frac{|F(x)-F(y)|^2}{t}\,,\qquad x,y\in\R^n\,,\quad t>0\,. \end{equation} Indeed, for distinct $v,w$, put $R=\max\{|v|,|w|\}$ and $u=\min\{|v|,|w|\}$. Since both $|v|+|v-w|$ and $|w|+|v-w|$ are comparable to $R$, Proposition~\ref{radrev:scale} gives \begin{equation*} \Psi_\lambda^*(v,w)^{1/2}\asymp |v-w|\,R^{\gamma-1}\asymp |F(v)-F(w)|\,. \end{equation*} For the second comparison, when $u\le R/2$ the two sides are comparable to $R^\gamma$. When $u>R/2$, the mean value theorem gives $R^\gamma-u^\gamma\asymp R^{\gamma-1}(R-u)$; the law of cosines then gives the comparison, since the angle between the two radii is preserved. The triangle inequality in the image of $F$ now gives $|F(x)-F(y)|\le C\sqrt{kt}$ for each admissible chain with $k$ links. Conversely, the inverse images under $F$ of the points dividing the segment $[F(x),F(y)]$ into $k$ equal parts form an admissible chain whenever $k\ge C|F(x)-F(y)|^2/t$. This proves~\eqref{radrev:count}. Thus~\eqref{sp:eq:HK} gives Gaussian decay in the distance $|F(x)-F(y)|$. In particular, since $r_t(0)\asymp t^{1/\alpha}$, for all $y\in\R^n$ and $t>0$, \begin{equation}\label{radrev:kernel} c\,t^{-(n+\alpha-2)/\alpha}e^{-C|y|^\alpha/t} \le p_t(0,y)\le C\,t^{-(n+\alpha-2)/\alpha}e^{-c|y|^\alpha/t}\,. \end{equation} Grigor'yan~\cite[Example~6.19]{GrWeighted} obtains the corresponding large-time estimates for smooth positive coefficients with power behaviour outside the unit ball. In his notation the conformal factor and the square root of the speed density both have exponent $\alpha/2-1$. Here the weight is homogeneous down to the origin and~\eqref{radrev:kernel} holds at every time. At $\alpha=0$ the inverse radius at the origin is zero for $00$, there is $\psi_x^r\in\Lip_c(X)$ with \begin{equation}\label{eq:B-position} \ind_{B(x,r)}\le\psi_x^r\le\ind_{B(x,2r)}\,,\qquad\int_\cS|\nabla\psi_x^r|^2\,d\nu\le C\,\frac{m(B(x,r))}{\Psi(x,r)}\,. \end{equation} \end{itemize} \begin{proposition}\label{prop:gradient-spectral} Assume~\hVD{} at all radii, \eqref{eq:PI-position} and~\eqref{eq:B-position}, for a regular scale function~$\Psi$. Then the Dirichlet form of the structure has the following properties. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{gs:lambda} \emph{Spectral scale.} $c\,\Psi(x,r)\le\lambda_1(B(x,r))^{-1}\le C\,\Psi(x,r)$ for all $x\in X$ and $r>0$. \item\label{gs:ehi} \emph{Harnack inequality.} The elliptic Harnack inequality~\eqref{sp:eq:EHI} holds. \item\label{gs:hk} \emph{Heat kernel.} The semigroup has a jointly continuous kernel, and for all $x,y\in X$ and $t>0$, \begin{equation}\label{eq:HK-position} \frac{c}{m(B(x,r_t(x)))}\,e^{-C\,N_t(x,y)}\le p_t(x,y)\le\frac{C}{m(B(x,r_t(x)))}\,e^{-c\,N_t(x,y)}\,, \end{equation} where $r_t(x)=\inf\{r>0:\Psi(x,r)\ge t\}$ and $N_t(x,y)$ is the chain count of the scale~$\Psi$ (Section~\ref{sp:sec:scale}). \item\label{gs:cap} \emph{Capacity.} For each $A>1$, $\Capa(B(x,r),B(x,Ar))\asymp m(B(x,r))/\Psi(x,r)$, uniformly in $x$ and~$r$. \end{enumerate} Conversely, assume metric doubling and~\eqref{eq:HK-position} for a jointly continuous heat kernel and a regular scale $\Psi$. Then \hVD{} and~\eqref{eq:PI-position} hold, and $\Capa(B(x,r),B(x,2r))\le C\,m(B(x,r))/\Psi(x,r)$. If the lower exponent of $\Psi$ is greater than one, the kernel estimate alone suffices for the converse. \end{proposition} \begin{proof} The measure~$m$ has no atoms, by volume doubling (Remark~\ref{sp:rem:hyp}). Approximation in the norm of the form extends~\eqref{eq:PI-position} from the core to~$\cF$, as in~\eqref{eq:PI-form}; this is $\PI(\Psi)$ in the sense of~\eqref{sp:eq:PI}. The cutoffs give the capacity bound $\mathrm{Cap}_{\le}(\Psi)$ of~\eqref{sp:eq:cap-upper}, by the argument which proves~\eqref{eq:B-implies-Cap}: the maximum~$\chi$ of the functions $\psi_{x_i}^{r/8}$, over a maximal $r/8$-separated subset $\{x_i\}$ of $\overline{B(x,5r/4)}$, is a cutoff function for $B(x,r)\subset B(x,2r)$, the number of the points~$x_i$ is bounded by Lemma~\ref{lem:cover}, and by~\eqref{eq:gradient-max} and~\eqref{eq:B-position}, \begin{equation*} \cE(\chi,\chi)\le\sum_i\int_\cS|\nabla\psi_{x_i}^{r/8}|^2\,d\nu\le C\sum_i\frac{m(B(x_i,r/8))}{\Psi(x_i,r/8)}\le C'\,\frac{m(B(x,r))}{\Psi(x,r)}\,. \end{equation*} The last inequality uses doubling and the comparison $\Psi(x_i,r/8)\ge c\,\Psi(x,r)$, which follows from \ref{sp:R2} and~\eqref{sp:eq:spatial}, since $d(x,x_i)\le2r$. Thus condition~\ref{sp:scale:pi} of Theorem~\ref{sp:thm:scale} holds, and the theorem gives the four assertions. For the converse apply Theorem~\ref{sp:thm:scale}, with volume doubling furnished by Lemma~\ref{sp:lem:hk-vd}. It gives $\PI(\Psi)$ and $\mathrm{Cap}_{\le}(\Psi)$, and $\PI(\Psi)$ restricted to the core is~\eqref{eq:PI-position}, by Proposition~\ref{prop:dirichlet}\ref{dir:energy}. \end{proof} \paragraph{Comments.} \begin{itemize} \item \emph{Scales of the radius.} Let the hypotheses of Theorem~\ref{thm:HKE} hold. Then $\Psi=\Psi_{C,2}$ is a regular scale function, \eqref{eq:PI-position} is~\hP{2} with $\Psi_{P,2}\asymp\Psi_{C,2}$, and~\eqref{eq:B-position} follows from~\hB{} by~\eqref{eq:bumpenergy}. By Lemma~\ref{sp:lem:chain-rate}, $r_t(x)=r_t$ and $N_t(x,y)\asymp1+\mathcal A_\Psi(d(x,y),t)$, so that~\eqref{eq:HK-position} is the estimate~\eqref{eq:HKE}. Proposition~\ref{prop:gradient-spectral} also gives the elliptic Harnack inequality and \begin{equation*} \lambda_1(B(x,r))\asymp\frac{1}{\Psi_{C,2}(r)}\qquad\text{uniformly in }x\in X\text{ and }r>0\,. \end{equation*} By Corollary~\ref{sp:cor:radial}, these properties characterize the estimate~$\HKE$ with a continuous kernel. \item \emph{An annular test.} Suppose instead that the form satisfies the elliptic Harnack inequality and that $m$ is doubling. For $A>1$ the quantity $C_A(x,r)$ is the infimum of $\int_\cS|\nabla_2 u|^2\,d\nu$ over the admissible cutoffs of~\eqref{sp:eq:CJ}. It suffices to check~\eqref{caprev:RD} for $J_2=m(B)/C_2$ with $00$ be a uniform lower radial exponent of $H$. Fixed-dilation comparability gives a finite upper radial exponent. Integration of the two bounds shows that $\int_0^h H(y,s)\,ds/s\asymp H(y,h)$, uniformly in $y,h$. The integral is continuous and strictly increasing in $h$. By Proposition~\ref{prop:scaleorder}, $H(y,h)\ge c h^2$. Thus $h_y=h_y(r)$ is defined for all sufficiently small $r$, $H(y,h_y)\asymp r^2$, and $h_y\le Cr$. Moreover, for each fixed $L$, \begin{equation*} d(y,z)\le L h_y\quad\Longrightarrow\quad h_z\asymp_L h_y\,. \end{equation*} Indeed $H(z,h_y)\asymp_L H(y,h_y)\asymp r^2$, and the lower scaling bound compares $h_z$ and $h_y$. The inverses and~\eqref{eq:derived-CSA-scale} are Borel functions, and inversion of the uniform radial bounds followed by those for $\Psi_P$ gives uniform positive lower and finite upper radial exponents for $\Psi_S$. Fix $0<\delta<1$ and cover $K$ by the fivefold dilates of disjoint balls $B_i=B(y_i,t_i)$ with $y_i\in K$ and $t_i=\delta h_{y_i}$, using the $5r$-covering lemma. For any fixed $L$, the balls $LB_i$ have bounded overlap independently of $\delta$: intersecting dilates have comparable radii by the preceding comparison at the larger $h_{y_i}$, and the bound follows by doubling and disjointness. Take $L>6+\Lambda$ and $\delta$ small enough that $LB_i\subset A$ and $\Lambda t_i\le\varepsilon$. Apply~\eqref{eq:localized-trace} to the restriction of $\Gamma(\chi)$ to $K\cap\overline{5B_i}$ with $t=t_i$. For $z\in LB_i$, \begin{equation*} H(z,2^{-j}t_i)\le C(2^{-j}\delta)^a r^2,\qquad \frac{t_i^2}{r^2\Psi_{C,2}(z,t_i)} =\frac{H(z,t_i)}{r^2\Psi_P(z,t_i)} \le\frac{C_\delta}{\Psi_S(z,r)}\,. \end{equation*} The second inequality uses $h_z\asymp h_{y_i}$ and fixed-dilation comparison of $\Psi_P$. Sum the squares of the trace estimates and use the overlap bound. Choosing $\delta$ so that $C\delta^a\le\eta$ yields, for every $\eta>0$, \begin{equation}\label{eq:CSA-eta} \int_A f^2\,d\Gamma(\chi)\le\eta\,\Gamma(f)(A) +C_\eta\int_A\frac{f(y)^2}{\Psi_S(y,r)}\,dm(y)\,. \end{equation} The extension from the core to $\cF$ follows as in Step~2. For fixed $r$, the preceding comparison of the inverse radii and compactness give $\inf_{y\in\overline A}\Psi_S(y,r)>0$. \emph{Step 4. Weighted cutoff inequality.} As in~\cite[Lemma~5.1]{AB}, take successive concentric annuli $A_j$ starting at radius $R$, of widths $r_j=2^{-j-1}r$, $j\ge1$, and use the cutoffs $\chi_j$ of Step~1 on these annuli. Fix $00$, the distance term in the exponent of the almost-everywhere lower bound~\eqref{hk:eq:low-a-distance} is of order $t^{-1}$ as $t\downarrow0$. \subsection{Matching scales: the cutoff Sobolev inequality}\label{sec:heat-matching}\label{subsec:CSA} When the Poincar\'e scale and the cutoff scale are comparable, no condition beyond~\hB{} is needed: the upper bound~\eqref{eq:B-implies-Cap} for the capacity and the Poincar\'e inequality imply the cutoff Sobolev inequality at the common scale. This implication is a theorem of Eriksson-Bique~\cite{EBRes}; we only have to check that its proof is local in scale. \begin{proposition}\label{prop:CSA} Let $X$ be proper and let the gradient structure be closable at $p=2$. Suppose that $\hVD$, $\PI(\Psi_{P,2})$ and~$\hB$ hold, with $\Psi_{P,2}\asymp\Psi_{C,2}$ and a common regular scale. For every $R>0$ and every sufficiently small $00$ and $m$-almost all $x,y\in X$, \begin{equation}\label{eq:HKE} \frac{c_1}{m(B(x,r_t))}\,e^{-c_2\mathcal A_\Psi(d(x,y),t)} \le p_t(x,y)\le \frac{c_3}{m(B(x,r_t))}\,e^{-c_4\mathcal A_\Psi(d(x,y),t)}\,. \end{equation} \end{definition} For $\Psi_{C,2}(r)=r^\beta$ with $\beta>2$ these are the sub-Gaussian estimates with the walk dimension~$\beta$, and for $\beta=2$ they are the Gaussian estimates. \begin{theorem}\label{thm:HKE} Let $X$ be unbounded, proper and geodesic. Assume $\hVD$, $\PI(\Psi_{P,2})$ and $\hB$ at all radii, and $\Psi_{P,2}\asymp\Psi_{C,2}$. If $\Psi_{C,2}$ is a continuous increasing bijection satisfying~\eqref{eq:heatscale}, then the semigroup is conservative and has a jointly continuous heat kernel satisfying~\eqref{eq:HKE} for all $x,y\in X$ and $t>0$. \end{theorem} \begin{proof} Theorem~\ref{thm:closability} gives closability at $p=2$, and Proposition~\ref{prop:dirichlet} gives a strongly local regular Dirichlet form with the energy measures $d\Gamma(f)=|\nabla_2 f|^2\,d\nu$. The common scale $\Psi_{C,2}$ is the scale of the Poincar\'e inequality~\eqref{eq:PI-form} on the domain of the form, and the scale of the cutoff Sobolev inequality of Proposition~\ref{prop:CSA}. Corollary~\ref{hk:cor:vd-matching} gives conservativeness. The capacity bound~\eqref{eq:B-implies-Cap} and~\eqref{eq:PI-form} give condition~\ref{sp:rad:pi} of Corollary~\ref{sp:cor:radial} with $\Psi=\Psi_{C,2}$. That corollary gives the jointly continuous kernel and~\eqref{eq:HKE} at every pair of points. \end{proof} The implication from volume doubling, the Poincar\'e inequality and the cutoff Sobolev inequality at one scale to~$\HKE$ is the characterization developed in~\cite{BBK,AB,GHL}; the equivalence between parabolic Harnack inequalities and heat kernel estimates is treated in~\cite[Theorems~3.1--3.2]{BGK12}. In the gradient setting of Theorem~\ref{thm:HKE}, Proposition~\ref{prop:CSA} gives the cutoff Sobolev inequality from volume doubling, the Poincar\'e inequality and~\hB{} at the common scale. Under the hypotheses of the theorem, the parabolic Harnack inequality~\eqref{hk:eq:global-harnack} also holds, with a uniform constant on the cylinders of radius~$r$ and time length $\Psi_{C,2}(r)$. \paragraph{Power scales.} Under the additional hypothesis~\hV, if $\Phi(r)=r^Q$ and $\Theta(r)=r^s$, the common scale is $r^\beta$ with \begin{equation}\label{eq:beta} \beta=Q+2-s\,, \end{equation} by~\eqref{eq:Theta}. Here $s\le Q$ by Proposition~\ref{prop:cutoffrestriction}, so that $\beta\ge2$, and the estimates~\eqref{eq:HKE} read \begin{equation*} c\,t^{-Q/\beta}\exp\Bigl[-C\Bigl(\frac{d(x,y)^\beta}{t}\Bigr)^{1/(\beta-1)}\Bigr] \le p_t(x,y)\le C\,t^{-Q/\beta}\exp\Bigl[-c\Bigl(\frac{d(x,y)^\beta}{t}\Bigr)^{1/(\beta-1)}\Bigr]\,. \end{equation*} The exponent~$\beta$ is equal to two exactly when $s=Q$, that is, when the gauge is comparable to the volume function. On a local tree, $s=1$ and the corresponding time scale is $r\,\Phi(r)$; see~\cite[Theorem~5.1]{BCY}. \paragraph{The compact case.} On a compact space the hypotheses concern small radii, and the estimates hold at small times. \begin{proposition}\label{prop:compact-HKE} Suppose that $(X,d)$ is compact and geodesic and that $\hVD$, $\hB$, $\PI(\Psi_{P,2})$ and~\eqref{eq:matching} at $p=2$ hold for $01$. Extend $\Psi$ beyond a fixed sufficiently small $r_1$ by $\Psi(r_1)(r/r_1)^{\beta_-}$. The form is conservative and its semigroup has a jointly continuous kernel. There is $t_0>0$ such that~\eqref{eq:HKE} holds for all $x,y\in X$ and $00$ one has $p_t(x,y)\asymp_{t_*}m(X)^{-1}$ uniformly on $X\times X$ for $t\ge t_*$. In particular, if $\Psi_{C,2}(r)\asymp r^\beta$ at small radii with $\beta>1$, the short-time estimate is \begin{equation}\label{eq:compact-HKE} \frac{c_1}{m(B(x,t^{1/\beta}))} \exp\Bigl[-c_2\Bigl(\frac{d(x,y)^\beta}{t}\Bigr)^{1/(\beta-1)}\Bigr] \le p_t(x,y)\le \frac{c_3}{m(B(x,t^{1/\beta}))} \exp\Bigl[-c_4\Bigl(\frac{d(x,y)^\beta}{t}\Bigr)^{1/(\beta-1)}\Bigr]\,. \end{equation} The constants may depend on~$r_0$ and on~$X$. \end{proposition} \begin{proof} If $X$ is a singleton, its kernel is $m(X)^{-1}$. Otherwise local doubling and geodesicity imply that $m$ has no atoms by~\eqref{eq:reverse-doubling}. Theorem~\ref{thm:closability} and Proposition~\ref{prop:dirichlet} give the strongly local regular form. Its Poincar\'e inequality~\eqref{eq:PI-form} and its capacity bound~\eqref{eq:B-implies-Cap} hold at the common scale $\Psi$ at small radii. Thus condition~\ref{sp:cpt:pi} of Corollary~\ref{sp:cor:compact} holds. That corollary gives conservativeness, a continuous kernel, the short-time estimate at the spectral scale and the long-time bounds. The radius-only conclusion following Corollary~\ref{sp:cor:compact} gives~\eqref{eq:HKE} with the stated extension: the local scale comparison and Lemmas~\ref{sp:lem:comparable} and~\ref{sp:lem:chain-rate} give $r_t(x)\asymp\Psi^{-1}(t)$ and $N_t(x,y)\asymp1+\mathcal A_\Psi(d(x,y),t)$. Doubling compares the ball volumes. Substitution of the inverse and rate for $\Psi(r)=r^\beta$ gives~\eqref{eq:compact-HKE}. \end{proof} \subsection{Heat kernel characterization of Sobolev and \texorpdfstring{$BV$}{BV} functions}\label{subsec:HKchar} For a regular Borel quadratic scale $\Psi(x,r)$, the time corresponding to a spatial radius $r$ at $x$ is $\Psi(x,r)$. For a positive Borel normalization $S(x,r)$ and $f\in L^p(X,m)$ put \begin{equation*} J_{p,S}(f,r)=\int_X\frac{1}{S(x,r)} \int_X |f(x)-f(y)|^p p_{\Psi(x,r)}(x,y)\,dm(y)\,dm(x)\,. \end{equation*} We use the jointly continuous version of the kernel when evaluating it at these times. \begin{proposition}\label{prop:position-heat-KS} Assume the hypotheses of Theorem~\ref{thm:KS} at $p\ge1$, with $\Psi_{P,p}\asymp\Psi_{C,p}$ and with~\eqref{eq:scale-nondegenerate} for $\Psi_{C,p}$. Suppose that the heat kernel satisfies~\eqref{eq:HK-position} at a regular Borel scale~$\Psi$. Assume either the global hypotheses of Section~\ref{subsec:position-scales} and the first-order estimates at all radii, or the compact hypotheses of Corollary~\ref{sp:cor:compact} with all estimates at small radii and times. Then, for $S=\Psi_{C,p}$, \begin{equation*} \limsup_{r\downarrow0}J_{p,S}(f,r) \le C\,\overline{\cE}_p(f) \le C'\liminf_{r\downarrow0}J_{p,S}(f,r)\,. \end{equation*} The lower limit is finite precisely on $W^{1,p}(X,m)$ for $p>1$ and on $BV(X,m)$ for $p=1$. The inverse cubical limit of Section~\ref{subsec:cubical-singular} satisfies the compact hypotheses with $\Psi=W$ and $S(x,r)=r^{p-2}W(x,r)$. \end{proposition} \begin{proof} Put $t=\Psi(x,r)$. The radial bounds give $r_t(x)\asymp r$. If $d(x,y)<\delta r$ for a sufficiently small structural $\delta$, then $\Psi^*(x,y)\le t$ by radial scaling and nearby-centre comparison, so $N_t(x,y)=1$. By the lower heat kernel bound and doubling, \begin{equation*} E_{p,S}(f,\delta r)\le C J_{p,S}(f,r)\,. \end{equation*} Lemma~\ref{lem:relaxed-KS}\ref{rks:upper} gives the second inequality of the proposition. For the converse, choose the adapted metric $\rho$ and $\beta>1$ of Proposition~\ref{sp:prop:rho}. On a compact space use the regular extension of the scale in the proof of Corollary~\ref{sp:cor:compact}, which gives the same short-time estimate. By~\eqref{sp:eq:rho-cost} any $t$-admissible chain of $k$ links satisfies $\rho(x,y)\le Ck(t/k)^{1/\beta}$. Hence, for $d(x,y)\ge r$ and any uniform lower radial exponent $a>0$ of $\Psi$, \begin{equation*} N_t(x,y)\ge c\left(\frac{\Psi(x,d(x,y))}{t}\right)^{1/(\beta-1)} \ge c\left(\frac{d(x,y)}{r}\right)^{a/(\beta-1)}\,. \end{equation*} On compact spaces $t=\Psi(x,r)$ tends uniformly to zero as $r\downarrow0$. Thus the upper kernel bound applies. Decompose the integral over $B(x,r)$ and the annuli $2^{k-1}r\le d(x,y)<2^kr$ as in~\cite[Proposition~4.2]{ABCRST2}. Writing $D$ for a doubling exponent, $b$ for an upper radial exponent of $S$, and $\gamma=a/(\beta-1)$, the contribution of the $k$th annulus is at most \begin{equation*} C 2^{k(D+b)} e^{-c2^{k\gamma}} E_{p,S}(f,2^kr)\,. \end{equation*} This estimate applies within the range of the first-order hypotheses, and the same bound up to constants holds for the inner ball with $k=0$. By matching and Lemma~\ref{lem:relaxed-KS}\ref{rks:lower}, the normalized energies here are bounded by $C\overline{\cE}_p(f)$. The coefficients are summable. In the compact case the remaining annuli have $d(x,y)\ge r_1/2$, for a fixed sufficiently small $r_1>0$. At radius $r_1$ both $S$ and the volume are bounded below uniformly by compactness, nearby-centre comparison and doubling. Their upper radial growth bounds therefore give $1/(S(x,r)m(B(x,r)))\le C r^{-b-D}$. The remaining integral is at most $Cr^{-b-D}e^{-c(r_1/r)^\gamma}\|f\|_p^p$, which tends to zero. This proves the first inequality. The domain assertions follow from Theorem~\ref{thm:KS}. \end{proof} \paragraph{Scales depending only on the radius.} In this case $t=\Psi(r)$ is independent of the integration point, and the two directions of the comparison can be used separately. In the remainder of this section the scales are functions of the radius. We assume global doubling, the hypotheses on $\Psi=\Psi_{C,2}$ in~\eqref{eq:heatscale}, closability at $p=2$, and a measurable heat kernel for the Dirichlet form of the structure. For $f\in L^p(X,m)$ and $t>0$, let \begin{equation*} I_p(f,t)=\int_X\int_X|f(x)-f(y)|^p\,p_t(x,y)\,dm(y)\,dm(x)\,, \qquad N_p(f,t)=\frac{I_p(f,t)}{\Psi_{C,p}(r_t)}\,. \end{equation*} For $\Psi_{C,2}(r)=r^\beta$ one has $\Psi_{C,p}(r_t)=t^{p\alpha_p}$ with $\alpha_p=(\beta+p-2)/(p\beta)$, and $\sup_{t>0}N_p(f,t)^{1/p}$ is the seminorm of the Besov class $\mathbf B^{p,\alpha_p}(X)$ defined by the heat semigroup in~\cite{ABCRST1}. In the Euclidean space, $\beta=2$ and $N_p(f,t)=t^{-p/2}I_p(f,t)$. \paragraph{Related results.} For general~$p$ and power scales, the comparison between the seminorms defined by the metric and by the heat kernel was established by Pietruska-Pa\l uba~\cite[Theorem~3.2]{PP10}; see also~\cite[Proposition~4.2]{ABCRST2} and~\cite[Theorem~2.4]{ABCRST3}. The identifications with Sobolev and $BV$ spaces are developed in~\cite{ABCRST1,ABCRST2,ABCRST3,MMS16}. Related comparisons with Besov spaces defined by the semigroup, under different restrictions on the smoothness, are proved in~\cite[Theorems~1.5--1.6]{GL15}. Here the identification with the energy of the closed gradient rests on Chapter~\ref{sec:KS}. \begin{theorem}\label{thm:HKchar} Let $10$ and $m$-almost all $x,y$, \begin{equation}\label{eq:HKchar-upper} p_t(x,y)\le\frac{C}{m(B(x,r_t))}\,e^{-c\,\mathcal A_\Psi(d(x,y),t)}\,, \end{equation} then \begin{equation}\label{eq:HKchar-P} \sup_{t>0}\frac{I_p(f,t)}{\Psi_{P,p}(r_t)} \le C\,\cE_p(f)\,,\qquad f\in L^p(X,m)\,. \end{equation} \item\label{HKc:lower} If there are $c>0$ and $0<\varepsilon\le1$ such that, for all $t>0$ and $m$-almost all $x,y$, \begin{equation}\label{eq:HKchar-near-diagonal} p_t(x,y)\ge\frac{c}{m(B(x,r_t))} \qquad\text{when }d(x,y)<\varepsilon\,r_t\,, \end{equation} then \begin{equation}\label{eq:HKchar-C} \cE_p(f)\le C\liminf_{t\to0}N_p(f,t)\,, \qquad f\in L^p(X,m)\,. \end{equation} \end{enumerate} At $p=1$, the same implications hold with $\|Df\|(X)$ in place of $\cE_p(f)$, without any assumption of closability at the exponent one. Neither implication requires the semigroup to be conservative. \end{theorem} As in Theorem~\ref{thm:KS}, the upper bound involves the Poincar\'e scale and the lower bound the cutoff scale; the upper bound uses only an upper estimate of the heat kernel, and the lower bound only a near-diagonal lower estimate. \begin{proof} \ref{HKc:upper} We use the decomposition into annuli of~\cite[proof of Proposition~4.2]{ABCRST2} and~\cite[proof of Theorem~2.4]{ABCRST3}, with scale functions in place of powers. Put $r=r_t$. On the annulus $2^{k-1}r\le d(x,y)<2^kr$, $k\ge1$, Lemma~\ref{lem:heatcost}\ref{hc:far} and~\eqref{eq:HKchar-upper} bound the kernel by $C\,m(B(x,r))^{-1}e^{-c2^{k\gamma}}$, where $\gamma=\beta_+/(\beta_+-1)>1$. The same bound with $k=0$ holds in $B(x,r)$. Doubling gives $m(B(x,2^kr))/m(B(x,r))\le C\,2^{kD}$ for a fixed exponent~$D$. Consequently, if $b$ is an upper scaling exponent of~$\Psi_{P,p}$, \begin{align*} I_p(f,t)&\le C\sum_{k\ge0}2^{kD}e^{-c2^{k\gamma}}D_p(f,2^kr)\\ &\le C\,\Psi_{P,p}(r)\,\sup_{\rho>0}\frac{D_p(f,\rho)}{\Psi_{P,p}(\rho)}\, \sum_{k\ge0}2^{k(D+b)}e^{-c2^{k\gamma}}\,, \end{align*} and the series converges. Lemma~\ref{lem:relaxed-KS}\ref{rks:lower}, with $\overline{\cE}_p=\cE_p$ for $p>1$ by Theorem~\ref{thm:KS}\ref{KS:closed} and $\overline{\cE}_1(f)=\|Df\|(X)$ for $p=1$, proves~\eqref{eq:HKchar-P}. \ref{HKc:lower} Restricting the integral to the pairs with $d(x,y)<\varepsilon r_t$, as in~\cite[proof of Theorem~3.2]{PP10}, the bound~\eqref{eq:HKchar-near-diagonal} and doubling give \begin{align*} I_p(f,t)&\ge c\int_X\frac{1}{m(B(x,r_t))} \int_{B(x,\varepsilon r_t)}|f(x)-f(y)|^p\,dm(y)\,dm(x) \ge c'\,D_p(f,\varepsilon r_t)\,,\\ N_p(f,t)&\ge c''\,\frac{D_p(f,\varepsilon r_t)}{\Psi_{C,p}(\varepsilon r_t)}\,. \end{align*} The second line also uses~\eqref{eq:fixed-dilation-scale} for~$\Psi_{C,p}$. Since $t\mapsto\varepsilon r_t$ is an increasing bijection of $(0,\infty)$ onto itself, Lemma~\ref{lem:relaxed-KS}\ref{rks:upper} proves~\eqref{eq:HKchar-C}. The fixed-radius lower bound~\eqref{eq:scale-nondegenerate} holds for every positive scale of the radius alone. At $p=1$ it gives the statement for $\|Df\|(X)$. \end{proof} \begin{corollary}\label{cor:HKchar-matching} Let $10}N_p(f,t)\le C\,\cE_p(f)\,, \qquad \cE_p(f)\le C\liminf_{t\to0}N_p(f,t)\,, \qquad f\in L^p(X,m)\,. \end{equation} In particular, $f\in L^p(X,m)$ belongs to $W^{1,p}(X,m)$ if and only if $\sup_{t>0}N_p(f,t)<\infty$. If $\PI(\Psi_{P,1})$ and~\eqref{eq:matching} at $p=1$ hold at all scales, the same inequalities hold with $p=1$ and $\|Df\|(X)$ in place of~$\cE_p(f)$, and $f\in L^1(X,m)$ belongs to $BV(X,m)$ if and only if $\sup_{t>0}N_1(f,t)<\infty$. \end{corollary} \begin{proof} For $p>1$, the structure is closable at~$p$ by Theorem~\ref{thm:closability}. The upper bound in~\eqref{eq:HKE} is~\eqref{eq:HKchar-upper}. By Lemma~\ref{lem:heatcost}\ref{hc:near}, $\mathcal A_\Psi(R,t)$ is bounded when $R\le r_t$, so the lower bound in~\eqref{eq:HKE} gives~\eqref{eq:HKchar-near-diagonal} with $\varepsilon=1$. Apply Theorem~\ref{thm:HKchar} and~\eqref{eq:matching}. The same argument applies at $p=1$. The characterizations of $W^{1,p}(X,m)$ and $BV(X,m)$ follow, because $\cE_p(f)<\infty$ exactly when $f\in W^{1,p}(X,m)$, and $\|Df\|(X)<\infty$ exactly when $f\in BV(X,m)$. \end{proof} \paragraph{The quadratic case.} For a conservative symmetric semigroup with a heat kernel, expansion of the square and symmetry give $I_2(f,t)=2\langle f,(I-P_t)f\rangle$ for every real $f\in L^2(X,m)$. Since $\Psi_{C,2}(r_t)=t$, the spectral theorem~\cite[Section~1.3]{FOT} gives the exact identity \begin{equation*} \sup_{t>0}N_2(f,t)=\lim_{t\downarrow0}N_2(f,t)=2\cE(f,f)\,, \end{equation*} with the value $+\infty$ when $f\notin\cF$. Indeed $(1-e^{-t\lambda})/t$ increases to $\lambda$ as $t\downarrow0$, so monotone convergence applies to the spectral measure of $f$ for $-L$. \clearpage\part{Examples of gradient structures}\label{part:examples} \chapter{Riemannian and sub-Riemannian structures}\label{sec:riemannian-examples} This part of the book describes the gradient structures summarized in Table~\ref{tab:scales}. For each example, the following points are verified, in this order. \begin{enumerate}[label=\textup{(\alph*)}] \item \emph{The structure.} The axioms~\ref{cond:G1}--\ref{cond:G3}; the fibres and the rank. \item \emph{Recovery of the metric.} The local Sobolev-to-Lipschitz property~\eqref{eq:metric-recovery}, and its uniformity. \item \emph{Closability.} Conditions~\ref{A1}--\ref{A3} of Definition~\ref{def:admissible}, and the identification of $W^{1,p}(X,m)$ with a known Sobolev space. \item \emph{Quantitative hypotheses.} Volume doubling, the cutoff condition, the Poincar\'e inequalities, and their scales. \end{enumerate} In the present chapter the gradient is the classical differential, or its horizontal part, the gradient measure is the reference measure, and all the scales are Gaussian: $\Psi_{C,p}(r)=\Psi_{P,p}(r)=r^p$. The geometric assumptions needed for the uniform quantitative estimates are stated separately from those needed for the structure itself. \subsection{Riemannian manifolds} On a complete Riemannian manifold the gradient measure is the Riemannian volume, and the Sobolev spaces are the classical ones; see~\cite[Chapter~3]{He}. We begin with the fact which gives the Sobolev-to-Lipschitz property: an almost everywhere bound on the gradient of a Lipschitz function controls its increments along geodesics. Its proof uses absolute continuity on almost every member of a family of curves, as in~\cite[Proposition~10.1]{HK}, and then continuity to recover the prescribed geodesic. \begin{lemma}\label{lem:Lip-from-gradient} Let $(M,g)$ be a Riemannian manifold with volume measure~$m$, let $\gamma:[0,\ell]\to M$ be an injective unit-speed geodesic, and let $u$ be a locally Lipschitz function on a neighbourhood~$U$ of $\gamma([0,\ell])$, with $|\operatorname{grad}u|\le L$ $m$-almost everywhere on~$U$. Then \begin{equation*} |u(\gamma(\ell))-u(\gamma(0))|\le L\,\ell\,. \end{equation*} \end{lemma} \begin{proof} Let $E_1,\dots,E_{n-1}$ be a parallel orthonormal frame of the normal bundle of~$\gamma$, and let \begin{equation*} F(t,s)=\exp_{\gamma(t)}\Bigl(\sum_{i=1}^{n-1}s_iE_i(t)\Bigr)\,,\qquad t\in[0,\ell]\,,\ s\in\R^{n-1}\,,\ |s|<\varepsilon\,. \end{equation*} Since $\gamma$ is injective and $[0,\ell]$ is compact, for $\varepsilon$ small enough $F$ is a diffeomorphism onto its image, which is contained in~$U$; these are Fermi coordinates along~$\gamma$. Let $Z\subset U$ be the set of points at which $u$ is not differentiable or $|\operatorname{grad}u|>L$. It is $m$-null, by Rademacher's theorem and by the hypothesis. Then $F^{-1}(Z)$ is a Lebesgue null set and, by Fubini's theorem, for almost every~$s$ the set $\{t:F(t,s)\in Z\}$ has zero length. For such~$s$, the function $t\mapsto u(F(t,s))$ is Lipschitz on~$[0,\ell]$ and has the derivative $\langle\operatorname{grad}u,\partial_tF\rangle$ at almost every~$t$, hence \begin{equation*} \bigl|u(F(\ell,s))-u(F(0,s))\bigr|\le L\int_0^\ell|\partial_tF(t,s)|\,dt\,. \end{equation*} Letting $s\to0$ along such values, the left-hand side converges to $|u(\gamma(\ell))-u(\gamma(0))|$ and the integral converges to~$\ell$. \end{proof} \begin{proposition}\label{prop:manifold} Let $(M,g)$ be a complete Riemannian manifold of dimension~$n$, with distance~$d$ and volume measure~$m$. Let $(e_1,\dots,e_n)$ be a measurable orthonormal frame of~$TM$, and for $u\in\Lip_b(M)$ let \begin{equation*} \nabla u=(\langle\operatorname{grad}u,e_i\rangle)_{1\le i\le n}\,. \end{equation*} Then $(M,m,\nabla)$ is a uniform gradient structure of constant rank~$n$ on $(M,d,m)$. It is closable at every $p\in[1,\infty)$, $\cC_p=\Lip_c(M)$, and $W^{1,p}(M,m)$ is the classical Sobolev space. \end{proposition} \begin{proof} By Rademacher's theorem, $\operatorname{grad}u$ exists $m$-almost everywhere and $|\nabla u|=|\operatorname{grad}u|\le\Lip(u)$. \emph{Step 1: the derivation and its fibres.} The Riemannian gradient satisfies the Leibniz rule. To verify the weak-$*$ continuity, let $(u_k)$ be as in~\ref{cond:G3} and let $V$ be a smooth compactly supported vector field. Integration by parts and dominated convergence give \begin{equation*} \int_M\langle\operatorname{grad}u_k,V\rangle\,dm=-\int_Mu_k\,\diver V\,dm\longrightarrow-\int_Mu\,\diver V\,dm=\int_M\langle\operatorname{grad}u,V\rangle\,dm\,. \end{equation*} Smooth compactly supported fields are dense in the integrable vector fields, and the uniform bound on $\operatorname{grad}u_k$ extends the convergence to every integrable field. For the fibres, cover~$M$ by countably many relatively compact coordinate balls~$B_i$, with coordinates $(x_i^1,\dots,x_i^n)$ defined on a neighbourhood of~$\overline{B_i}$, and let $u_{i,j}$ be a smooth compactly supported function equal to~$x_i^j$ on~$B_i$. The gradients $\operatorname{grad}u_{i,1},\dots,\operatorname{grad}u_{i,n}$ are bounded with compact support, and they span~$T_xM$ at every $x\in B_i$. Hence $H_x=\R^n$ for almost every~$x$. \emph{Step 2: recovery of the metric.} We take $\iota\equiv1$. Let $y,z\in B(x,1)$. By completeness there is a minimizing geodesic~$\gamma$ from~$y$ to~$z$. It is injective, its length is $d(y,z)<2$, and it lies in~$B(x,3)$. Lemma~\ref{lem:Lip-from-gradient}, applied with $U=B(x,3)$ and $L=\|\nabla u\|_{L^\infty(B(x,3),m)}$, gives~\eqref{eq:metric-recovery}. \emph{Step 3: closability.} The gradient of a compactly supported Lipschitz function is bounded with compact support, so $\cC_p=\Lip_c(M)$, which is uniformly dense in~$C_c(M)$ and spans the fibres (Lemma~\ref{lem:generated-field}\ref{field:compact}); this gives~\ref{A1} and~\ref{A3}. Let $u_k\in\Lip_c(M)$ with $u_k\to0$ in $L^p(M,m)$ and $\operatorname{grad}u_k\to G$ in~$L^p$. For every smooth compactly supported vector field~$V$, \begin{equation*} \int_M\langle G,V\rangle\,dm=\lim_{k\to\infty}\int_M\langle\operatorname{grad}u_k,V\rangle\,dm=-\lim_{k\to\infty}\int_Mu_k\,\diver V\,dm=0\,, \end{equation*} hence $G=0$. This proves~\ref{A2} for every $1\le p<\infty$. \emph{Step 4: identification.} The classical space $W^{1,p}(M)$ of the functions of~$L^p$ with weak gradient in~$L^p$ is a Banach space which contains~$\Lip_c(M)$, and on which the weak gradient is a closed operator extending~$\nabla$. On a complete manifold, smooth compactly supported functions are dense in $W^{1,p}(M)$~\cite[Theorem~3.1]{He}. Therefore the closure of~$\nabla$ on~$\cC_p$ is the weak gradient on~$W^{1,p}(M)$. \end{proof} \paragraph{Quantitative estimates.}\label{subsec:ex-manifolds} A lower bound on the Ricci curvature gives the three hypotheses of Chapter~\ref{sec:hyp} at small radii. \begin{proposition}\label{prop:manifoldhyp} Let $M$ be a complete $n$-dimensional Riemannian manifold with $\operatorname{Ric}\ge -(n-1)K$, $K\ge0$, and let $m$ be the Riemannian volume. At small radii, the structure of Proposition~\ref{prop:manifold} satisfies \begin{equation*} \hVD\,,\qquad \mathrm B(r^2)\,,\qquad \mathrm{PI}_p(r^p)\quad(1\le p<\infty)\,. \end{equation*} If $\inf_x m(B(x,1))>0$, then $\mathrm V(r^n)$ also holds. For $K=0$, the doubling property, the cutoff condition and the Poincar\'e inequalities hold at every radius. \end{proposition} \begin{proof} The Bishop--Gromov comparison theorem gives doubling uniformly on bounded ranges of radii, and at every radius when $K=0$; see~\cite[Section~10.1]{HK}. Since $\nu=m$, Lemma~\ref{lem:distance-cutoff} gives $\mathrm B(r^2)$; no lower bound on the volume of unit balls is needed. The $1$-Poincar\'e inequality of Buser under a lower Ricci bound~\cite{Bu}, and its consequence in~$L^p$ on doubling balls~\cite[Section~5.6]{SC}, give $\mathrm{PI}_p(r^p)$. For $K=0$ the constants are independent of the radius. Finally the Bishop--Gromov theorem also gives \begin{equation*} c(n,K)\,r^n\,m(B(x,1))\le m(B(x,r))\le C(n,K)\,r^n \qquad(0l_0}A_l$ to both integrals is at most $\sup_k\Lip_{d_g}(u_k)\int_{\bigcup_{l>l_0}A_l}|G|\,d\nu$, which tends to zero as $l_0\to\infty$, and the contribution of each~$A_l$ converges. This proves the weak-$*$ continuity. As in the proof of Proposition~\ref{prop:manifold}, the compactly supported smooth functions which agree with the coordinates on the balls of a countable cover have differentials spanning~$T_x^*M$, so their gradients span~$\R^n$ in the chosen frame. \emph{Step 4: recovery of the metric.} If $v\in\Lip_c(M,d_g)$ and $|\nabla v|\le1$ almost everywhere, then $v$ is admissible in~\eqref{eq:measurable-metric-distance}, by~\eqref{eq:measurable-metric-comparison}. Hence $v$ is $1$-Lipschitz for~$d_g$. Since $d_g$ is a length metric, Lemma~\ref{lem:localize-metric} gives~\eqref{eq:metric-recovery} on every ball. \emph{Step 5: closability and Sobolev spaces.} Since $\nu$ is locally finite, $\cC_p=\Lip_c(M,d_g)$, which is uniformly dense in~$C_c(M)$. Thus~\ref{A1} and~\ref{A3} hold. By~\eqref{eq:measurable-metric-comparison}, the norm $\bigl(\|u\|_{L^p(m)}^p+\int_M|du|^p_{g^{-1}}\,dm\bigr)^{1/p}$ is equivalent to the norm of~$W^{1,p}(M,g_0)$. The weak differential is a closed operator on~$W^{1,p}(M,g_0)$ which extends~$\nabla$, so $\nabla$ is closable on~$\cC_p$. Finally $C_c^\infty(M)\subset\cC_p$ is dense in $W^{1,p}(M,g_0)$ by completeness~\cite[Theorem~3.1]{He}, so the closure of~$\nabla$ on~$\cC_p$ is the weak differential on~$W^{1,p}(M,g_0)$. \end{proof} \begin{remark} In coordinates, the estimate~\eqref{eq:measurable-Rademacher} and its local converse in~$L^\infty$ are also proved in~\cite[Lemmas~2.3 and~4.4]{KSZ14}. They do not assert the pointwise equality between $|du|_{g^{-1}}$ and the metric slope of~$u$; that equality can fail for measurable tensors~\cite[Remark~4.5]{KSZ14}. Nor should~\eqref{eq:measurable-metric-distance} be replaced by the infimum of the lengths of curves computed with an arbitrary representative of~$g$: assigning a smaller tensor on a curve, which has zero volume, can change that infimum without changing any weak differential or any energy. \end{remark} \paragraph{Quantitative estimates.}\label{subsec:ex-measurable} By uniform ellipticity, the three hypotheses pass from the background metric~$g_0$ to~$g$. \begin{proposition}\label{prop:measurable-manifoldhyp} Under the hypotheses of Proposition~\ref{prop:measurable-manifold}, assume that $g_0$ satisfies the lower Ricci bound of Proposition~\ref{prop:manifoldhyp}. Then $\hVD$, $\mathrm B(r^2)$ and $\mathrm{PI}_p(r^p)$ hold at small radii for every $1\le p<\infty$. If the $g_0$-volumes of unit balls are uniformly bounded from below, then $\mathrm V(r^n)$ also holds. \end{proposition} \begin{proof} By~\eqref{eq:measurable-metric-comparison}, a ball for~$d_g$ lies between two concentric balls for~$d_0$ with radii comparable to its own, and the two volume measures and the two norms of covectors are uniformly comparable. Doubling, and the uniform bounds for the volume when assumed, therefore pass from~$g_0$ to~$g$. For the Poincar\'e inequality, bound the oscillation on a ball for~$d_g$ about the $g_0$-mean on a ball for~$d_0$ which contains it, and enlarge the ball for~$d_g$ by a fixed factor so that it contains the region on which the $g_0$-energy is integrated. Since $\nu=m$ and $(M,d_g)$ is proper, Lemma~\ref{lem:distance-cutoff} applies to the distance cutoff for~$d_g$, whose gradient is bounded by~$2/r$ by~\eqref{eq:measurable-Rademacher}. \end{proof} If $g$ is locally comparable to~$g_0$, the doubling, cutoff and Poincar\'e estimates of Proposition~\ref{prop:measurable-manifoldhyp} hold for centres in each compact set and all sufficiently small radii, with constants and a radius threshold depending on the compact set. The global Sobolev norm comparison and completeness in Proposition~\ref{prop:measurable-manifold} require separate hypotheses. For example, $g=e^{-2x}\,dx^2$ on $\R$ is locally comparable to $dx^2$, and the coordinate $t=e^{-x}$ identifies its metric with the open half-line. Uniform ellipticity relative to the Euclidean metric gives the three estimates at every radius on~$\R^n$. The harmonic Sierpi\'nski gasket is a further measurable Riemannian example, of rank one, which is not a local tree. It is treated in Chapter~\ref{sec:harmonic-gasket-chapter}. \subsection{Sub-Riemannian manifolds}\label{subsec:ex-subriemannian}\label{subsec:ex-further} Let $M$ be a connected smooth manifold, $H$ a smooth bracket-generating subbundle of~$TM$ of rank~$k$ with a smooth inner product, and $m$ a positive smooth measure. Equip~$M$ with the Carnot--Carath\'eodory distance~$d$, obtained by minimizing the lengths of the curves tangent to~$H$. This distance induces the manifold topology~\cite{NSW,HK}. In a local orthonormal frame $X_1,\dots,X_k$ of~$H$, the horizontal gradient of a smooth function~$u$ is $\nabla_Hu=\sum_i(X_iu)X_i$; it is represented by $(X_1u,\dots,X_ku)$, and $|\nabla_Hu|^2=\sum_i(X_iu)^2$. For a locally integrable~$u$, the horizontal gradient is defined in the sense of distributions, by the formula~\eqref{eq:ibp-horizontal} below. To obtain a gradient with values in~$\R^k$, we express it in a measurable orthonormal frame of~$H$, as in Proposition~\ref{prop:manifold}. \begin{proposition}\label{prop:subriemannian} The distributional horizontal gradient~$\nabla_H$ defines a uniform gradient structure on $(M,d,m)$ with $\nu=m$ and constant rank~$k$. It is closable at every $1\le p<\infty$, and \begin{equation}\label{eq:subriemannian-sobolev-closure} W^{1,p}(M,m)= \overline{C_c^\infty(M)}^{\,\|\cdot\|_{L^p(m)}+\|\nabla_H\cdot\|_{L^p(m)}}\,. \end{equation} If $(M,d)$ is complete, this is the space of all the functions of $L^p(M,m)$ whose distributional horizontal gradient belongs to~$L^p$. \end{proposition} \begin{proof} \emph{Step 1: the derivation and its fibres.} For a Lipschitz function~$u$, the derivative along the flow of each smooth unit horizontal field agrees with the distributional derivative and is bounded by~$\Lip(u)$, by~\cite[Theorem~11.7 and Corollary~11.8]{HK}. Taking a countable dense family of unit linear combinations of a local frame gives $|\nabla_Hu|\le\Lip(u)$. The product rule along each flow gives the Leibniz rule for $\nabla_H$. For a smooth horizontal field~$W$ of compact support, \begin{equation}\label{eq:ibp-horizontal} \int_M\langle\nabla_Hu,W\rangle\,dm=-\int_Mu\,\diver_m W\,dm\,. \end{equation} The density of these fields in $L^1(H,m)$ and the bound on the gradient give the weak-$*$ continuity. The smooth compactly supported functions which are equal to coordinates on smaller charts have bounded horizontal gradients, are Lipschitz for~$d$ by integration along horizontal curves, and their gradients span the horizontal fibres. \emph{Step 2: recovery of the metric.} Suppose that $|\nabla_Hu|\le L$ almost everywhere on an open set~$U$. In a chart, mollify~$u$. For each smooth field~$X_i$ of the frame, the Friedrichs commutator between~$X_i$ and the convolution is an integral of $u(y)-u(x)$ against a kernel with uniformly bounded $L^1$ norm, supported at a distance at most the radius of the mollifier; since $u$ is continuous, it tends to zero uniformly on compact subsets of the chart. Thus the smooth approximations converge uniformly and have horizontal gradients bounded by $L+o(1)$ there; see~\cite[Theorem~11.9 and Proposition~11.10]{HK}. Integrating along the segments of a horizontal curve in~$U$, with a finite subdivision, bounds the variation of~$u$ along the curve by~$L$ times its length. Let now $y,z\in B(x,1)$. A horizontal curve from $y$ to~$z$ of length less than $d(y,z)+\varepsilon$, with $\varepsilon$ small, lies in $B(x,3)$. Applying the bound with $U=B(x,3)$ and letting $\varepsilon\to0$ proves~\eqref{eq:metric-recovery} with $\iota\equiv1$. \emph{Step 3: closability.} The gradient is closable in every~$L^p$ by~\eqref{eq:ibp-horizontal}. Since $\nu=m$ is a Radon measure, $\cC_p=\Lip_c(M)$, and the smooth functions in this core are uniformly dense in~$C_c(M)$. Thus~\ref{A1} and~\ref{A3} hold. A partition of unity and the local Friedrichs approximation in~$L^p$~\cite[Theorem~11.9]{HK} give~\eqref{eq:subriemannian-sobolev-closure}. If $M$ is complete, the distance cutoffs~$\chi_R$ at the scale~$R$ are compactly supported and satisfy $|\nabla_H\chi_R|\le C/R$. Multiplying a function of the distributional Sobolev space by~$\chi_R$ gives convergence in the graph norm as $R\to\infty$, by the product rule, and the compactly supported approximations can be smoothed by the same local argument. \end{proof} At $p=2$, $d\Gamma(u)=|\nabla_Hu|^2\,dm$, and the generator of the Dirichlet form on $C_c^\infty(M)$ is the sub-Laplacian $L=\diver_m\nabla_H$. \paragraph{Equiregular structures.} Let $H^j$ be the bundle spanned by the brackets of length at most~$j$ of sections of~$H$. Suppose that the $H^j$ have constant dimensions~$n_j$, with $n_0=0$; the structure is then \emph{equiregular}, and its \emph{homogeneous dimension} is \begin{equation}\label{eq:subriemannian-homogeneous-dimension} Q=\sum_{j\ge1}j\,(n_j-n_{j-1})\,. \end{equation} The hypotheses of Chapter~\ref{sec:hyp} hold locally, for the following reasons. \begin{itemize} \item \emph{Volume.} The theorem of Nagel, Stein and Wainger on the volume of balls gives $m(B(x,r))\asymp r^Q$ for $x$ in each fixed compact set and sufficiently small radii, with constants uniform on that set~\cite[Theorems~1 and~4]{NSW}. \item \emph{Poincar\'e inequalities.} The local Poincar\'e inequality of Jerison for the vector fields of the frame~\cite{Jer86}, \cite[Theorem~11.20]{HK} yields $\mathrm{PI}_p(r^p)$ for all $1\le p<\infty$, by H\"older's inequality and the Sobolev--Poincar\'e estimate in~$L^p$. \item \emph{Cutoffs.} The distance cutoff gives $\mathrm B(r^2)$, by Lemma~\ref{lem:distance-cutoff}. \end{itemize} Thus on a compact equiregular manifold \begin{equation}\label{eq:subriemannian-scales} \Phi(r)=\Theta(r)=r^Q\,,\qquad \Psi_{P,p}(r)=\Psi_{C,p}(r)=r^p\,. \end{equation} For the cutoff condition on a compact subset of a noncompact manifold, one uses the bounds for the volume on a relatively compact neighbourhood of the subset: if a small ball meets the set where a cutoff centred in the subset varies, its centre belongs to this neighbourhood when $r$ is small enough. \paragraph{Carnot groups.} On a Carnot group, the left translations and the homogeneous dilations make~\eqref{eq:subriemannian-scales} uniform at every radius; these are the homogeneous structures of the horizontal Sobolev theory of~\cite[Sections~1 and~4]{Folland75} and~\cite[Section~11.3]{HK}. For example, the Heisenberg group~$\mathbb H^j$ has the horizontal fields \begin{equation*} X_i=\partial_{x_i}-\tfrac12y_i\,\partial_t\,,\qquad Y_i=\partial_{y_i}+\tfrac12x_i\,\partial_t\,,\qquad1\le i\le j\,. \end{equation*} With these fields orthonormal, its rank is~$2j$, its homogeneous dimension is $Q=2j+2$, and its reference and gradient measures are both the Haar measure. The rank $2j$ is smaller than the exponent $s=Q=2j+2$ of the gauge: the bound $n_*\le s$ of Proposition~\ref{prop:rank-Poincare} is not an equality in general. \subsection{Sub-Riemannian manifolds: global estimates}\label{subsubsec:subriemannian-global} On a complete sub-Riemannian manifold the distance cutoff has compact support and satisfies $|\nabla_H\psi_x^r|\le2/r$. When $m$ is globally doubling, Lemma~\ref{lem:distance-cutoff} also gives the integrated estimate $\mathrm B(r^2)$ at every radius. A generalized curvature-dimension inequality and a comparison theorem for the sub-Laplacian of the distance give two sets of geometric hypotheses for the global estimates. \paragraph{Generalized curvature-dimension inequalities.} \begin{proposition}\label{prop:sr-global-CD} Suppose that $M$ is complete and satisfies the generalized curvature-dimension inequality $\mathrm{CD}(\rho_1,\rho_2,\kappa,N)$ of~\cite[Definition~1.3]{BG17SR} with $\rho_1\ge0$, $\rho_2>0$, $\kappa\ge0$ and $00$; \item for some $\varepsilon\in(0,1)$, $\mathrm{PI}_p(r^p)$ holds at every radius for every $2-\varepsilon1$~\cite[Section~3]{vRen08}. The cutoff condition is given by the distance cutoffs. \end{proof} Two classes of examples satisfy the hypotheses of Proposition~\ref{prop:sr-MCP-PI}. \begin{itemize} \item \emph{Sasakian manifolds.} On a complete Sasakian manifold of horizontal rank $2j$ with its pseudo-Hermitian volume, assume that, for each unit horizontal vector~$X$, the Tanaka--Webster sectional curvature of $\operatorname{span}\{X,JX\}$ and the Ricci trace over its horizontal orthogonal complement are nonnegative. Then $\mathrm{MCP}(0,2j+3)$ holds, and the Riemannian approximations satisfy $\mathrm{MCP}(0,2j+4)$~\cite[Theorem~3.1 and Corollary~3.15]{BGKT19SR}. \item \emph{H-type foliations.} On a complete H-type foliation of horizontal and vertical ranks $k$ and~$\ell$, completely parallel Bott torsion and nonnegative horizontal Bott sectional curvature give $\mathrm{MCP}(0,k+3\ell)$ for the Riemannian volume, by the same argument on the Jacobian and the comparison of~\cite[Proposition~2.10 and Theorem~3.20]{BGRV25SR}. \end{itemize} \paragraph{Consequences.} In the Sasakian and H-type classes above, Theorems~\ref{thm:KS-critical-matching} and~\ref{thm:BV} give the critical spaces for all $1\le p<\infty$, including the characterization of $BV$ at $p=1$. Under Proposition~\ref{prop:sr-global-CD} the critical exponents also satisfy \begin{equation*} \alpha_p^{\mathrm{dens}}=\alpha_p=1\qquad(1\le p<\infty)\,. \end{equation*} Indeed, Proposition~\ref{prop:subriemannian} gives closability at~$p$ for each such $p$. If $u$ belongs to the kernel of the closed horizontal gradient, every smooth horizontal vector field annihilates $u$ in distributions, by~\eqref{eq:ibp-horizontal}. The same holds for all iterated brackets of these fields. They span the tangent bundle locally, so the distributional differential of $u$ vanishes. Connectedness gives constancy. Global doubling and the distance cutoffs give $\Psi_{C,p}(r)=r^p$, and Remark~\ref{rem:KS-zero-gradient} now proves the stated equality and attainment of both thresholds. At nonnegative curvature, Baudoin and Kim obtain the pseudo-Poincar\'e inequality $\|f-P_tf\|_p\le C_p\sqrt t\,\|\nabla_Hf\|_p$ for $f\in C_c^\infty(M)$ and $1\le p<\infty$, and relate a global lower bound $m(B(x,r))\ge c\,r^D$, $D>1$, to Sobolev and isoperimetric inequalities~\cite[Proposition~2.3 and Theorem~2.6]{BK14SR}. The same lower bound for the volume gives the global Gagliardo--Nirenberg inequalities of Theorem~\ref{thm:KS-GN} with $\alpha=1$ at each matching exponent. On a Carnot group one takes $D=Q$ and any finite $p\ge1$. \paragraph{Compact manifolds and negative lower bounds.} Connected compact equiregular manifolds have global doubling and $\mathrm{PI}_p(r^p)$ for every finite $p\ge1$, by patching the local estimates over a finite connected cover. The volume of their balls is comparable to $\min\{r^Q,1\}$, and the Gagliardo--Nirenberg inequalities at bounded radii retain the term of lower order. A positive curvature parameter~$\rho_1$ gives compactness, by the sub-Riemannian Bonnet--Myers theorem~\cite[Theorem~10.1]{BG17SR}. A lower bound $\rho_1=-K<0$ gives doubling and $\mathrm{PI}_2(r^2)$ uniformly for $01$, and Theorem~\ref{thm:BV} applies with the normalization~$r$ at $p=1$. \end{itemize} \subsection{The exponent one} We compare the space $W^{1,1}(X,m)$ and the total variation of Definition~\ref{def:BV} with the functions of bounded variation of metric measure spaces. For $u\in BV(X,m)$ in the metric sense, denote by~$\|Du\|$ its variation measure, which is a finite Radon measure. \begin{proposition}\label{prop:rcd-endpoint} The total variation of Definition~\ref{def:BV} is equal to the total mass of the metric variation measure, and the space $BV(X,m)$ of Definition~\ref{def:BV} is the metric space of functions of bounded variation. Moreover \begin{equation}\label{eq:rcd-endpoint} W^{1,1}(X,m)=\{u\in BV(X,m):\ \|Du\|\ll m\}\,,\qquad \|Du\|=|\nabla_1u|\,m\quad(u\in W^{1,1}(X,m))\,. \end{equation} \end{proposition} Thus $W^{1,1}(X,m)$ is the part of $BV$ with absolutely continuous variation; a general function of~$BV$ may also have a singular variation. This is the identification at the exponent one of~\cite[Remark~3.5]{GH16}, together with~\cite{ADM14}; the proof below explains its relation to the definition by closure used in this book. \begin{proof} \emph{Step 1: the two relaxations.} For $v\in\Lip_c(X)$, the metric variation satisfies $\|Dv\|=|dv|\,m$, by~\cite[Remark~3.5, equation~(3.3)]{GH16}: its density is bounded by the local Lipschitz constant, and is therefore locally square integrable. The total variation of Definition~\ref{def:BV} is the relaxation in~$L^1$ of $v\mapsto\int_X|dv|\,dm$ on~$\Lip_c(X)$, and the metric total variation is the relaxation of $v\mapsto\int_X\operatorname{lip}v\,dm$ on locally Lipschitz functions, where $\operatorname{lip}v$ is the local Lipschitz constant. The identity above and the lower semicontinuity of the metric variation show that the first is at least the second. Conversely, an approximating sequence in the definition of the metric variation can be made compactly supported by distance cutoffs, and $|dv|\le\operatorname{lip}v$, so the first is at most the second. \emph{Step 2: a function of $W^{1,1}$ has absolutely continuous variation.} Let $u_j\in\Lip_c(X)$ with $u_j\to u$ and $du_j\to G$ in~$L^1$. The lower semicontinuity of the variation on open sets gives $\|Du\|\le|G|\,m$. \emph{Step 3: the converse.} Let $u\in BV(X,m)$ with $\|Du\|=g\,m$. By~\cite[Remark~3.5]{GH16} there are Lipschitz functions $v_j$ such that $v_j\to u$ and $\operatorname{lip}v_j\to g$ in~$L^1$. Distance cutoffs of increasing support make $v_j\in\Lip_c(X)$ without changing these convergences. Since $|dv_j|\le\operatorname{lip}v_j$, the fields~$dv_j$ are uniformly integrable and tight. In the measurable frame, whose fibres have finite dimension, the Dunford--Pettis theorem gives a subsequence which converges weakly in~$L^1$ to a field~$G$, with $|G|\le g$ almost everywhere. By Mazur's lemma, convex combinations converge in the graph norm, so $u\in W^{1,1}(X,m)$ and $G=\nabla_1u$. Step~2 gives $g\le|G|$, hence $g=|\nabla_1u|$. This proves~\eqref{eq:rcd-endpoint}. \end{proof} Proposition~\ref{prop:compatibility} extends the agreement of the closed gradients to the intersections $W^{1,1}(X,m)\cap W^{1,p}(X,m)$. \subsection{Energies, heat kernels and volume} \paragraph{The $p$-energies.} For $1n$, and all the scales remain Gaussian. In the last section the reference measure is modified in one coordinate; the rank is unchanged, and the scales then depend on the point. Laakso constructed Ahlfors $Q$-regular spaces which support a $(1,1)$-Poincar\'e inequality, for every $Q>1$, and proposed to replace the interval of his construction by an $n$-cube~\cite[Theorem~2.6 and Remark~3.2]{Laakso}. Cheeger and Kleiner proved the Poincar\'e inequality for admissible inverse systems of graphs, and formulated its extension to cubical complexes~\cite[Theorem~1.1 and Section~11]{CKInv}. The spaces below are inverse limits of this kind. They are made of Euclidean $n$-cubes, the \emph{sheets}, glued along hyperplanes; the dimension of the sheets is the rank, and the number of sheets at each scale determines the volume exponent. \begin{theorem}\label{thm:cubical-limit}\label{prop:laakso-gradient} For each integer $n\ge1$ and each real $Q>n$, there is a compact geodesic inverse limit $(X,d,m)$ of cubical complexes, in the sense of Cheeger and Kleiner, with the following properties. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{cl:structure} The measure $m$ is an Ahlfors $Q$-regular probability measure. With $\cS=X$ and $\nu=m$, the Euclidean gradient on the sheets defines a gradient structure of constant rank $n$, which is closable at every $1\le p<\infty$. \item\label{cl:PI} The space supports a $(1,1)$-Poincar\'e inequality. For the gradient on the sheets, $\mathrm{PI}_p(r^p)$ holds for every $1\le p<\infty$, and the cutoff conditions $\mathrm B(r^2)$ and $\mathrm B^+(r^2)$ hold. \item\label{cl:metric} For $u\in\Lip(X)$, $x\in X$, $r>0$ and $y,z\in B(x,r)$, \begin{equation}\label{eq:cubical-local-metric} |u(y)-u(z)|\le d(y,z)\,\|\nabla u\|_{L^\infty(B(x,3r),m)}\,. \end{equation} In particular the structure is uniform, and \begin{equation*} d(y,z)=\max\{u(y)-u(z):u\in\Lip(X),\ \|\nabla u\|_{L^\infty(m)}\le1\}\,. \end{equation*} \end{enumerate} \end{theorem} Thus $\Phi(r)=\Theta(r)=r^Q$ and $\Psi_{C,p}(r)=\Psi_{P,p}(r)=r^p$ for every $1\le p<\infty$, while $n_*=nj$ gives \begin{equation}\label{eq:cubical-distance} d_j(\pi_j y,\pi_j z)\ \le\ d(y,z):=\lim_{k\to\infty}d_k(\pi_k y,\pi_k z) \ \le\ d_j(\pi_j y,\pi_j z)+2h_j\,. \end{equation} The compact geodesic complexes $X_j$ thus converge to $X$ in the Gromov--Hausdorff distance, so $X$ is compact and geodesic. \paragraph{The measure and the sheets.} Give $\Omega=\prod_{j\ge1}\{1,\ldots,b_j\}$ the uniform product probability $\mathbb P$. The surjection \begin{equation*} q:I^n\times\Omega\to X \end{equation*} assigns to $(t,\omega)$ the point with the coordinate $t$ and the labels $\omega$. It is injective away from the gluing hyperplanes. For fixed $\omega$, the image $q(I^n\times\{\omega\})$ is an isometric copy of the Euclidean cube, called a \emph{sheet}: straight segments lift with their lengths, and the projection to $I^n$ is $1$-Lipschitz. The measure on~$X$ is \begin{equation*} m=q_*(dt\otimes\mathbb P)\,; \end{equation*} it satisfies $(\pi_j)_*m=m_j$ for every $j$, as in the construction of Barlow and Evans~\cite[Proposition~4.1]{STProj}. \paragraph{Ahlfors regularity.} Let $C$ be a closed $n$-cell of $X_j$ containing $\pi_j x$, and let $y$ be a lift of its centre. By~\eqref{eq:cubical-distance}, \begin{equation*} B(y,h_j/3)\subset\pi_j^{-1}C \subset B(x,(\sqrt n+3)h_j)\,,\qquad m(\pi_j^{-1}C)=N_j^{-1}h_j^n\asymp h_j^Q\,. \end{equation*} The first inclusion holds because the centre is at the distance $h_j/2$ from the boundary of $C$. Doubling compares the two balls with $B(x,h_j)$, since $d(x,y)\le(\sqrt n+2)h_j$. It follows that $m(B(x,h_j))\asymp h_j^Q$, uniformly in $x$ and~$j$. By monotonicity, $m(B(x,r))\asymp r^Q$ for every $01$, compare the average on $B$ with the averages on $B(z,2^{1-k}r)$, $k\ge0$, for $z\in B$. Doubling and~\eqref{eq:cubical-PI} bound the difference from the first average, and the sum of the successive differences, by $C\,r\,M(\ind_{(2\Lambda+1)B}|\nabla u|)(z)$, where $M$ is the centred maximal operator for $m$. The averages tend to $u(z)$. The boundedness of $M$ in~$L^p$ gives $\mathrm{PI}_p(r^p)$, as in~\cite[proof of Theorem~3.2 and Theorem~14.13]{HK}. \paragraph{The cutoff conditions.} The distance cutoffs give $\mathrm B(r^2)$, by Lemma~\ref{lem:distance-cutoff}, and the bound $|\nabla\psi_x^r|^2\,m\le Cr^{-2}\,m$ gives $\mathrm B^+(r^2)$. \paragraph{Recovery of the metric.} Let $u\in\Lip(X)$ with $|\nabla u|\le1$ almost everywhere. By~\eqref{eq:cubical-conditioning}, $|\nabla u_j|\le1$ almost everywhere in every $n$-cell of~$X_j$. The Euclidean $W^{1,\infty}$ estimate gives the $1$-Lipschitz bound on each closed cell, by continuity up to its faces. Adding the bounds along piecewise linear paths and taking the infimum of their lengths proves $\Lip(u_j)\le1$ for $d_j$. The projections are $1$-Lipschitz, and $u_j\circ\pi_j\to u$ uniformly. Thus $\Lip(u)\le1$, and Lemma~\ref{lem:localize-metric} gives~\eqref{eq:cubical-local-metric} on every ball. The function $d(\cdot,z)$ attains the maximum in Theorem~\ref{thm:cubical-limit}\ref{cl:metric}. \paragraph{Consequences.} Since the scales match, with $\Psi_{C,p}(r)=\Psi_{P,p}(r)=r^p$, Theorem~\ref{thm:KS-critical-matching} gives the critical exponent $\alpha_p=1$, and it is attained. On the common core $\Lip(X)$ the energies are \begin{equation*} \cE_p(u)=\int_\Omega\int_{I^n}|\nabla_t(u\circ q)(t,\omega)|^p\,dt\,d\mathbb P(\omega)\,, \qquad 1\le p<\infty\,. \end{equation*} The Sobolev spaces of these energies are nested. This is in contrast with the self-similar energies on the Laakso diamond studied by Anttila, Eriksson-Bique and Shimizu, whose domains at distinct exponents in $(1,\infty)$ intersect only in the constants~\cite[Theorem~1.8 and Section~1.4]{AES25}. Since $n0)\,. \end{equation} Write $t=(t_1,t')$ with $t'=(t_2,\ldots,t_n)$, and denote by~$s_x$ the first coordinate of the projection of $x\in X$ to~$I^n$. The reference measure and the scale of this section are \begin{equation}\label{eq:cubical-m-eta} m_\eta=q_*\bigl(\eta(dt_1)\otimes dt'\otimes\mathbb P\bigr)\,,\qquad W(x,r)=r\,\eta\bigl(I(s_x,r)\bigr)\,. \end{equation} If $\eta$ is the Lebesgue measure, then $m_\eta=\nu$ and $r^2\le W(x,r)\le2r^2$ for $r\le1$. Since the letter~$t$ denotes the coordinate in the cube, the time is denoted by~$\tau$ in this section. \begin{lemma}\label{lem:cubical-eta} There are exponents $0<\delta_-\le\delta_+<\infty$ and constants $c,C>0$ such that, for $s\in I$ and $0n$ a real number, and $(X,d)$ the cubical inverse limit of Theorem~\ref{thm:cubical-limit}, with the gradient~\eqref{eq:cubical-gradient} on the sheets and the measures $\nu$ and~$m_\eta$ of~\eqref{eq:cubical-m-eta}. Consider the gradient structure $(X,\nu,\nabla)$ on the metric measure space $(X,d,m_\eta)$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{cs:volume} \emph{Volume.} Uniformly for $x\in X$ and $00$ such that, for every $u\in\Lip(X)$ and every ball $B=B(x,r)$ with $r\le r_*$, \begin{equation}\label{eq:cubical-eta-PI} \int_B|u-u_B|^p\,dm_\eta\le C\,r^{p-2}\,W(x,r)\int_{\Lambda B}|\nabla u|^p\,d\nu\,, \end{equation} where $u_B$ is the mean of~$u$ on~$B$ for~$m_\eta$, and the distance cutoffs~\eqref{eq:examples-distance-cutoff} satisfy \begin{equation}\label{eq:cubical-eta-cutoff} \int_X|\nabla\psi_x^r|^p\,d\nu\le C\,\frac{m_\eta(B(x,r))}{r^{p-2}\,W(x,r)}\,. \end{equation} \item\label{cs:heat} \emph{Spectral scale and heat kernel.} Let $(\cE,\cF)$ be the Dirichlet form of the structure on~$L^2(X,m_\eta)$, with energy measures $d\Gamma(f)=|\nabla_2f|^2\,d\nu$. For all $x\in X$ and all sufficiently small~$r$, \begin{equation}\label{eq:cubical-eta-spectral} \lambda_1(B(x,r))^{-1}\asymp W(x,r)\,,\qquad\Capa\bigl(B(x,r),B(x,2r)\bigr)\asymp r^{Q-2}\,. \end{equation} The mean exit time from $B(x,r)$, started at $x$ and taken in the Green kernel version of Corollary~\ref{cor:mean-exit-scale}, is comparable to $W(x,r)$. The elliptic Harnack inequality~\eqref{sp:eq:EHI} holds on the balls of small radius. The semigroup has a continuous kernel $p_\tau(x,y)$ with respect to~$m_\eta$, and there are $\tau_0,c,C>0$ such that, for all $x,y\in X$ and $0<\tau\le\tau_0$, \begin{equation}\label{eq:cubical-eta-heat} \frac{c\,\exp[-C\,N_\tau(x,y)]}{\tau\,r_\tau(x)^{Q-2}} \le p_\tau(x,y)\le \frac{C\,\exp[-c\,N_\tau(x,y)]}{\tau\,r_\tau(x)^{Q-2}}\,. \end{equation} Here $r_\tau(x)$ is the solution~$r$ of $W(x,r)=\tau$, and $N_\tau(x,y)$ is the least integer $k\ge1$ for which there are points $x=x_0,x_1,\ldots,x_k=y$ with \begin{equation*} \max\bigl\{W(x_{i-1},d(x_{i-1},x_i)),\,W(x_i,d(x_{i-1},x_i))\bigr\}\le\frac\tau k\qquad(1\le i\le k)\,. \end{equation*} \end{enumerate} \end{theorem} In the notation of Chapter~\ref{sec:hyp}, the two scales match for every $1\le p<\infty$ at \begin{equation}\label{eq:cubical-matching-scales} \Psi_{P,p}(x,r)=\Psi_{C,p}(x,r) = r^{p-2}W(x,r)= r^{p-1}\eta(I(s_x,r)) \asymp r^p\frac{m_\eta(B(x,r))}{\nu(B(x,r))}\,. \end{equation} The comparison follows from~\eqref{eq:cubical-eta-volume} and the Ahlfors $Q$-regularity of~$\nu$. The ball gauge $r^2 m_\eta(B(x,r))/W(x,r)$ is therefore comparable to $r^Q$. In fact the distance cutoff satisfies $\mathrm B^+(W)$. For $00$ and all $f\in L^p(X,m_\eta)$, \begin{equation*} \sup_{01$ and $BV(X,m_\eta)$ for $p=1$. \end{corollary} \begin{proof} Lemma~\ref{lem:cubical-eta} gives radial scaling with exponents $p-1+\delta_-$ and $p-1+\delta_+$. Since $|s_x-s_y|\le d(x,y)$, doubling of $\eta$ gives $S(x,r)\asymp S(y,r)$ when $d(x,y)\le r$. At each fixed $r>0$ the scale has a positive lower bound by~\eqref{eq:cubical-eta} with $R=1$. Apply Theorems~\ref{thm:KS} and~\ref{thm:BV} using~\eqref{eq:cubical-eta-PI} and~\eqref{eq:cubical-eta-cutoff}. \end{proof} \paragraph{The box around a ball.} The proofs of \ref{cs:volume} and~\ref{cs:PI} compare a ball with a set which is a product in the coordinates $(t,\omega)$. Let $x=q(t^0,\omega^0)$ and $0j$, or if $l\le j$ and some gluing hyperplane of the level~$l$ is at distance at most~$2r$ from~$t^0$. In each coordinate, the gluing hyperplanes of the levels at most~$j$ have distinct positions, which are multiples of~$h_j$; hence at most $9n$ levels $l\le j$ are free. Let $S\subset\Omega$ be the set of the sequences which coincide with~$\omega^0$ at every level which is not free, and put \begin{equation*} U=q(D\times S)\,. \end{equation*} \begin{lemma}\label{lem:cubical-box} With $\Lambda_0=36n+4\sqrt n+3$ and a constant~$C$ which depends only on $n$ and~$Q$, \begin{equation}\label{eq:cubical-box} B(x,r)\subset U\subset B(x,\Lambda_0r)\,,\qquad N_j^{-1}\le\mathbb P(S)\le C\,N_j^{-1}\,, \end{equation} and the restrictions of the two measures to~$U$ are the images by~$q$ of product measures: \begin{equation}\label{eq:cubical-box-measures} \nu\rest_U=q_*\bigl(dt\rest_D\otimes\,\mathbb P\rest_S\bigr)\,,\qquad m_\eta\rest_U=q_*\bigl(\eta\rest_J\otimes\,dt'\rest_{D'}\otimes\,\mathbb P\rest_S\bigr)\,. \end{equation} \end{lemma} \begin{proof} Let $y=q(t,\omega)\in B(x,r)$. The projection to~$I^n$ is $1$-Lipschitz, so $t\in D$, and a geodesic from $x$ to~$y$ projects into the Euclidean ball of radius~$r$ about~$t^0$. If the level~$l$ is not free, this path does not meet the gluing hyperplanes of the level~$l$, so its label at this level is constant, and $\omega_l=\omega^0_l$. Hence $y\in U$. Conversely, let $y=q(t,\omega)$ with $t\in D$ and $\omega\in S$. Starting from~$x$, for each free level $l\le j$ at which $\omega$ and~$\omega^0$ differ, move in the current sheet to the nearest gluing hyperplane of the level~$l$, change the label, and come back; each of these detours has length at most~$4r$, and there are at most~$9n$ of them. The point which is reached has the coordinate~$t^0$ and the first $j$ labels of~$\omega$, so its distance to $q(t^0,\omega)$ is at most $2h_j\le2r$, by~\eqref{eq:cubical-distance}. Finally $q(t^0,\omega)$ and~$y$ lie in the same sheet, at the distance $|t-t^0|\le4\sqrt n\,r$. Thus $d(x,y)\le(36n+2+4\sqrt n)\,r$. The set $q^{-1}(U)\setminus(D\times S)$ lies over the gluing hyperplanes, which are null for both measures; this gives~\eqref{eq:cubical-box-measures}. The set~$S$ is defined by prescribing the labels at the levels $l\le j$ which are not free, so $\mathbb P(S)$ is the product of the numbers $b_l^{-1}$ over these levels. It is at least $\prod_{l\le j}b_l^{-1}=N_j^{-1}$, and at most $N_j^{-1}(\sup_lb_l)^{9n}$. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:cubical-singular}\ref{cs:volume}] It suffices to consider $r\le\tfrac18$: for $\tfrac18\le r\le1$ both sides of~\eqref{eq:cubical-eta-volume} lie between two positive constants, by the case $r=\tfrac18$. By~\eqref{eq:cubical-box} and~\eqref{eq:cubical-box-measures}, since $N_j^{-1}\asymp h_j^{Q-n}\asymp r^{Q-n}$ and the sides of~$D'$ are at most~$8r$, \begin{equation*} m_\eta(B(x,r))\le m_\eta(U)=\eta(J)\,|D'|\,\mathbb P(S)\le C\,r^{Q-1}\,\eta\bigl(I(s_x,4r)\bigr)\le C'\,r^{Q-1}\,\eta\bigl(I(s_x,r)\bigr)\,, \end{equation*} by~\eqref{eq:cubical-eta-doubling}. For the lower bound, let $k$ be the least integer with $(\sqrt n+3)h_k\le r$, and let~$\mathcal C$ be a closed $n$-cell of~$X_k$ containing~$\pi_kx$. As in the proof of the Ahlfors regularity in Section~\ref{subsec:cubical-system}, $\pi_k^{-1}\mathcal C\subset B(x,(\sqrt n+3)h_k)\subset B(x,r)$. The set $\pi_k^{-1}\mathcal C$ is the image by~$q$ of the product of a dyadic cube of side~$h_k$ and of the set of the sequences with $k$ prescribed labels. If $J_{\mathcal C}\ni s_x$ is the side of this cube in the first coordinate, then \begin{equation*} m_\eta(B(x,r))\ge m_\eta(\pi_k^{-1}\mathcal C)=N_k^{-1}h_k^{n-1}\,\eta(J_{\mathcal C})\ge c\,r^{Q-1}\,\eta\bigl(I(s_x,r)\bigr)\,, \end{equation*} because $J_{\mathcal C}$ is an interval of length $h_k\asymp r$ which contains~$s_x$, so that $\eta(J_{\mathcal C})\asymp\eta(I(s_x,r))$ by~\eqref{eq:cubical-eta-doubling}. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:cubical-singular}\ref{cs:structure}] Condition~\ref{cond:gradient} does not involve the reference measure, so $(X,\nu,\nabla)$ is the gradient structure of Theorem~\ref{thm:cubical-limit}, of constant rank~$n$, and~\ref{A1} and~\ref{A3} hold with $\cC_p=\Lip(X)$. It remains to compare the graph norms and to prove~\ref{A2}. Let $g$ be an absolutely continuous function on~$I$ with $g'\in L^p(I,dt_1)$. As in~\eqref{eq:interval-morrey}, since $\eta$ is a probability measure, \begin{equation}\label{eq:cubical-line} \sup_I|g|\le\|g\|_{L^p(\eta)}+\|g'\|_{L^p(dt_1)}\,, \end{equation} and the same inequality holds with the Lebesgue measure in place of~$\eta$. Let $u\in\Lip(X)$. Applying~\eqref{eq:cubical-line} to the functions $t_1\mapsto u(q(t_1,t',\omega))$ and integrating in $(t',\omega)$ gives \begin{equation*} \|u\|_{L^p(\nu)}\le\Bigl\|\sup_{t_1\in I}|u(q(t_1,t',\omega))|\Bigr\|_{L^p(dt'\otimes\mathbb P)}\le\|u\|_{L^p(m_\eta)}+\|\nabla u\|_{L^p(\nu)}\,, \end{equation*} and the same with $m_\eta$ and~$\nu$ exchanged in the norms of~$u$. Hence the two graph norms are equivalent on~$\Lip(X)$. Let now $u_k\in\Lip(X)$ with $u_k\to0$ in~$L^p(m_\eta)$ and $\nabla u_k\to V$ in~$L^p(\nu;\R^n)$. By~\eqref{eq:cubical-line}, applied to the differences $u_k-u_l$, the functions $(t',\omega)\mapsto u_k(q(\,\cdot\,,t',\omega))$ form a Cauchy sequence in $L^p(dt'\otimes\mathbb P;C(I))$. For almost every $(t',\omega)$, their limit is a continuous function of~$t_1$ which vanishes $\eta$-almost everywhere, hence everywhere, since $\supp\eta=I$. Thus $u_k\to0$ in~$L^p(\nu)$, and $V=0$ by the closability of the structure for the reference measure~$\nu$ (Section~\ref{subsec:cubical-gradient}). This is~\ref{A2}. The two Sobolev spaces are the completions of~$\Lip(X)$ for two equivalent norms, and the closed gradients are the extensions of~$\nabla$ by continuity. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:cubical-singular}\ref{cs:PI}] The gradient of the distance cutoff is bounded by~$2/r$ and vanishes outside $B(x,2r)$, so the left-hand side of~\eqref{eq:cubical-eta-cutoff} is at most $2^pr^{-p}\,\nu(B(x,2r))\le C\,r^{Q-p}$, and the right-hand side is comparable to~$r^{Q-p}$ by~\eqref{eq:cubical-eta-volume}. For the Poincar\'e inequality, let $u\in\Lip(X)$, let $B=B(x,r)$ with $r$ small, and let $U$, $D=J\times D'$ and~$S$ be as in Lemma~\ref{lem:cubical-box}. We start from the inequality for the measure~$\nu$ and change the measure in the first coordinate. Put $B_0=B(x,\Lambda_0r)$ and $a=\fint_{B_0}u\,d\nu$. By $\mathrm{PI}_p(r^p)$ for the measure~$\nu$ (Theorem~\ref{thm:cubical-limit}\ref{cl:PI}), \begin{equation}\label{eq:cubical-PI-nu} \int_U|u-a|^p\,d\nu\le\int_{B_0}|u-a|^p\,d\nu\le C\,r^p\int_{\Lambda_1B_0}|\nabla u|^p\,d\nu\,. \end{equation} Let $g$ be an absolutely continuous function on~$J$. For $\sigma,v\in J$, $|g(\sigma)|^p\le2^{p-1}|g(v)|^p+2^{p-1}|J|^{p-1}\int_J|g'|^p\,dt_1$. Integrating against $\eta(d\sigma)\otimes dv/|J|$ on $J\times J$ gives \begin{equation*} \int_J|g|^p\,d\eta\le2^{p-1}\,\frac{\eta(J)}{|J|}\int_J|g|^p\,dt_1+2^{p-1}\,|J|^{p-1}\,\eta(J)\int_J|g'|^p\,dt_1\,. \end{equation*} We apply this inequality to the functions $t_1\mapsto(u-a)(q(t_1,t',\omega))$ and integrate over $(t',\omega)\in D'\times S$. By~\eqref{eq:cubical-box-measures}, by $4r\le|J|\le8r$ and by~\eqref{eq:cubical-PI-nu}, \begin{equation*} \int_U|u-a|^p\,dm_\eta\le C\,\frac{\eta(J)}{r}\int_U|u-a|^p\,d\nu+C\,r^{p-1}\,\eta(J)\int_U|\nabla u|^p\,d\nu\le C'\,r^{p-1}\,\eta(J)\int_{\Lambda_1B_0}|\nabla u|^p\,d\nu\,. \end{equation*} Since $B\subset U$, since $\int_B|u-u_B|^p\,dm_\eta\le2^p\int_B|u-a|^p\,dm_\eta$, and since $\eta(J)\le C\,\eta(I(s_x,r))$ by~\eqref{eq:cubical-eta-doubling}, this proves~\eqref{eq:cubical-eta-PI} with $\Lambda=\Lambda_0\Lambda_1$. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:cubical-singular}\ref{cs:heat}] By~\ref{cs:structure} and Proposition~\ref{prop:dirichlet}, the form is regular and strongly local, with core $\Lip(X)$ and energy measures $|\nabla_2f|^2\,d\nu$. The compact space is geodesic, and $m_\eta$ is doubling by~\ref{cs:volume}. For $00$, monotonicity and full support give $\inf_{x\in X,\,r\ge r_0}W(x,r)>0$. Thus the short-time estimate of Corollary~\ref{sp:cor:compact} holds with the radii and chain counts of $W$. Since $\eta$ has no atoms and full support, $r\mapsto W(x,r)$ is continuous and strictly increasing. At the unique radius $r_\tau(x)$ where $W(x,r_\tau(x))=\tau$, formula~\eqref{eq:cubical-eta-volume} gives \begin{equation*} m_\eta\bigl(B(x,r_\tau(x))\bigr)\asymp\tau\,r_\tau(x)^{Q-2}\,. \end{equation*} Substitution in~\eqref{sp:eq:HK} proves~\eqref{eq:cubical-eta-heat}. \end{proof} \paragraph{Cutoff Sobolev inequalities on thin annuli.} Corollary~\ref{cor:position-thin-csa} gives a cutoff Sobolev inequality at the point-dependent scale~$W$. In the cubical model, integration along the first coordinate gives a Lipschitz cutoff and the following bound with an arbitrary coefficient in the energy term. \begin{proposition}\label{cubrev:thin} Let $W$ be given by~\eqref{eq:cubical-m-eta}, and put $b=1+\delta_+$ with $\delta_+$ as in Lemma~\ref{lem:cubical-eta}. For $x\in X$, $R>0$ and $00$ sufficiently small that $C c^2(1-a)^2\le a^2$ and $c<1/12$. The energy terms in the sum are bounded by $\varepsilon\int_A\chi^2\,d\Gamma(f)$. For the mass terms, $W(y,s)/W(y,h_j)\le C2^{jb}$ and $a^{2j-2}2^{jb}\le C a^j\le C\chi(y)$ on $A_j$. This proves~\eqref{cubrev:thin-estimate}. Taking $\varepsilon=1/8$ and using $0\le\chi\le1$ gives the last assertion. \end{proof} \paragraph{Sharpness of the scales.} The coefficient $r^{p-2}W(x,r)$ in~\eqref{eq:cubical-eta-PI} is optimal for every $1\le p<\infty$. Indeed the coordinate function $u=t_1$ has unit gradient, and $B(x,r)$ contains two balls of radius $r/16$ whose first-coordinate ranges are separated by at least $r/4$. For small $r$ one may take their centres on the sheet through $x$, at $x$ and at distance $r/2$ from $x$ towards the farther endpoint of the first-coordinate interval. Both have measure comparable to $m_\eta(B(x,r))$ by doubling. Hence the left-hand side is at least $c r^p m_\eta(B(x,r))$, whereas the integral of $|\nabla u|^p$ on $\Lambda B$ is comparable to $r^Q$. The corresponding cutoff bound~\eqref{eq:cubical-eta-cutoff} is also optimal. If $v$ is a Lipschitz cutoff for $B(x,r)\subset B(x,2r)$, it equals one on $B(x,r)$ and vanishes on a ball of radius $r/4$ contained in $B(x,4r)\setminus B(x,2r)$. The latter ball may be centred at distance $3r$ along the same coordinate line. Each set has mass comparable to $m_\eta(B(x,4r))$. Applying~\eqref{eq:cubical-eta-PI} to $v$ on $B(x,4r)$ therefore yields \begin{equation*} \int_X |\nabla v|^p\,d\nu\ge c\,\frac{m_\eta(B(x,r))}{r^{p-2}W(x,r)}\asymp r^{Q-p}\,. \end{equation*} Finally, on $B(x,2s)\setminus\overline{B(x,s)}$ the denominator $W(y,s)$ in~\eqref{cubrev:thin-estimate} is comparable to $W(x,s)$. Any constant denominator $D(x,s)$ valid there in the cutoff Sobolev inequality satisfies $D(x,s)\le C W(x,s)$. Indeed, testing with $f=1$ gives $\Capa(B(x,s),B(x,2s))\le C m_\eta(B(x,2s))/D(x,s)$, and~\eqref{eq:cubical-eta-volume} and~\eqref{eq:cubical-eta-spectral} give the assertion. \paragraph{Sharp radius-only bounds.} To obtain uniform bounds depending on $r$ alone from~\eqref{eq:cubical-matching-scales}, put \begin{equation*} \overline\eta(r)=\sup_{s\in I}\eta(I(s,r))\,,\qquad\underline\eta(r)=\inf_{s\in I}\eta(I(s,r))\,. \end{equation*} By~\eqref{eq:cubical-eta-PI} and~\eqref{eq:cubical-eta-cutoff}, the structure satisfies \hVD, the Poincar\'e inequalities $\mathrm{PI}_p(\Psi_{P,p})$ and the cutoff condition $\mathrm B(\Psi_{C,2})$ at small radii, with \begin{equation}\label{eq:cubical-uniform-scales} \Psi_{P,p}(r)=r^{p-1}\,\overline\eta(r)\,,\qquad\Psi_{C,p}(r)=r^{p-1}\,\underline\eta(r)\,, \end{equation} and the preceding sharpness estimates show that these scales are optimal for every $1\le p<\infty$. At $p=2$, Proposition~\ref{cubrev:thin} also gives $\CSA(\Psi_{C,2})$ on thin annuli. Since $I$ is covered by at most $1/r$ intervals $I(s,r)$ and contains at least $1/(4r)$ disjoint ones, $\underline\eta(r)\le4r$ and $\overline\eta(r)\ge r$. Hence the scales~\eqref{eq:cubical-uniform-scales} match in the sense of Definition~\ref{def:matching} if and only if $\eta(I(s,r))\asymp r$ uniformly, that is, if and only if $\eta$ has a density with respect to the Lebesgue measure which is bounded above and below; the common scale is then~$r^p$. The common point-dependent scale~\eqref{eq:cubical-matching-scales} applies to every such doubling measure. Formula~\eqref{eq:cubical-eta-volume} also shows that a uniform volume function exists precisely when $\eta$ is comparable to Lebesgue measure. \paragraph{The rank.} Let $n\ge2$, and let $\eta$ be singular with respect to the Lebesgue measure. Then $m_\eta\perp\nu$, the Poincar\'e inequality and the capacity bound hold at the common quadratic scale~$W$, and the rank is~$n$. Moreover, by the differentiation of measures, $\eta(I(s,r))=o(r)$ as $r\to0$ for Lebesgue-almost every~$s$, so that \begin{equation*} W(x,r)=o(r^2)\quad\text{as }r\to0\,,\qquad\text{for $\nu$-almost every }x\,. \end{equation*} Conversely, differentiating Lebesgue measure with respect to~$\eta$ gives $W(x,r)/r^2\to\infty$ at $m_\eta$-almost every point. Thus the uniform quadratic restriction for radius-only cutoff scales in Proposition~\ref{prop:cutoffrestriction} has no analogue at every centre. Theorem~\ref{thm:rank-p} with $p=2$ gives rank one whenever the radial scaling bounds hold uniformly in the centre with lower exponent greater than two. Here every uniform lower exponent for $W$ is at most two, by Lemma~\ref{lem:cubical-eta}. The almost everywhere estimate for the gradient measure is compatible with every rank $n$. On the tree of cubes of Chapter~\ref{sec:riemannian-gluings}, the reciprocal ball eigenvalues have a power scale uniform in the centre, and the elliptic Harnack inequality fails at small radii (Corollary~\ref{cor:cube-spectrum-ehi}). For the present inverse limits, the elliptic Harnack inequality holds even when the spectral scale varies with the centre. \paragraph{Pointwise diagonal exponents.} Suppose that $\lim_{r\downarrow0}\log\eta(I(s,r))/\log r=u$ exists. At every $x$ with $s_x=s$, one has $W(x,r)=r^{1+u+o(1)}$, hence $r_\tau(x)=\tau^{1/(1+u)+o(1)}$. Setting $y=x$ in~\eqref{eq:cubical-eta-heat} gives \begin{equation}\label{eq:cubical-diagonal-exponent} \lim_{\tau\downarrow0}\frac{\log p_\tau(x,x)}{\log(1/\tau)} =1+\frac{Q-2}{1+u}\,. \end{equation} \begin{example}[Diagonal exponents for a ternary measure]\label{ex:cubical-ternary} Let $\eta$ be the law of $\sum_{k\ge1}\xi_k3^{-k}$, where the digits~$\xi_k$ are independent and take the values $0,1,2$ with the probabilities $\tfrac14,\tfrac12,\tfrac14$. Two adjacent triadic intervals of the same generation have addresses of the form $w\,\xi\,2^i$ and $w\,(\xi+1)\,0^i$, with a common prefix~$w$, a digit $\xi\in\{0,1\}$ and $i\ge0$; since the digits $0$ and~$2$ have the same probability, the ratio of their measures is $\tfrac12$ or~$2$. Thus $\eta$ is doubling, with full support, and $\eta(I(s,r))$ is comparable to the measure of the triadic interval of length $3^{-k}\asymp r$ which contains~$s$. By the law of large numbers for the frequencies of the digits, $\eta$ is singular with respect to the Lebesgue measure. \begin{itemize} \item \emph{Two points.} At $s=0$ and at $s=\tfrac12$, whose digits are constant, $\eta(I(s,r))\asymp r^u$ with $u=\log4/\log3$ and $u=\log2/\log3$ respectively. At the points~$x$ over these two values of the first coordinate, $W(x,r)\asymp r^{1+u}$ and $r_\tau(x)\asymp\tau^{1/(1+u)}$, and~\eqref{eq:cubical-eta-heat} gives \begin{equation*} p_\tau(x,x)\asymp\tau^{-\frac{Q-1+u}{1+u}}\qquad(0<\tau\le\tau_0)\,, \end{equation*} where the two exponents differ whenever $Q\ne2$. Above $s=1/2$ one has $W(x,r)/r^2\to\infty$, so this example also violates the nested-ball comparison for self-improvement in Chapter~\ref{sec:exponents-chapter}. Here the matching Poincar\'e inequality at each exponent follows directly from~\eqref{eq:cubical-eta-PI}. If $Q=2$, formula~\eqref{eq:cubical-eta-heat} gives $p_\tau(x,x)\asymp\tau^{-1}$ uniformly on $X$ for every doubling measure~$\eta$. \item \emph{Typical points.} For Lebesgue-almost every $s$, the three digit frequencies are $\tfrac13,\tfrac13,\tfrac13$. For $\eta$-almost every $s$, they are $\tfrac14,\tfrac12,\tfrac14$. The corresponding local dimensions in~\eqref{eq:cubical-diagonal-exponent} are \begin{equation*} u=\frac{5\log2}{3\log3}>1\quad\text{for $\nu$-almost every $x$},\qquad u=\frac{3\log2}{2\log3}<1\quad\text{for $m_\eta$-almost every $x$}\,. \end{equation*} Thus the two measures give different almost sure diagonal exponents whenever $Q\ne2$. \item \emph{Scales of the radius.} The triadic intervals of the generation~$k$ have measures between $4^{-k}$ and~$2^{-k}$, and both values are attained, so that the scales~\eqref{eq:cubical-uniform-scales} are \begin{equation*} \Psi_{P,2}(r)\asymp r^{1+\log2/\log3}\,,\qquad\Psi_{C,2}(r)\asymp r^{1+\log4/\log3}\,. \end{equation*} \end{itemize} \end{example} Diagonal estimates which vary from point to point were obtained by Barlow and Kumagai for diffusions with multifractal speed measures, including singular time changes of reflected Brownian motions on Euclidean cubes~\cite[Theorem~3.5 and Corollary~3.6]{BK01}. Theorem~\ref{thm:cubical-singular} gives an example of this type on spaces whose volume exponent~$Q$ exceeds the rank~$n$, with a two-sided estimate at every pair of points. \chapter{The harmonic Sierpi\'nski gasket}\label{sec:harmonic-gasket-chapter}\label{sec:nonuniform-examples}\label{subsec:harmonic-gasket} The harmonic Sierpi\'nski gasket is the Sierpi\'nski gasket equipped with its harmonic metric and with the Kusuoka measure. Its measurable Riemannian structure, in the sense of Kigami~\cite{Ki08}, is a gradient structure of rank one with $\nu=m$, on a space which is not a local tree. The measure is doubling and the distance cutoffs satisfy $\mathrm B(r^2)$, although the volume of a ball depends on its centre, and the Poincar\'e inequality $\mathrm{PI}_p(r^p)$ is known for $p>2-\varepsilon$, for some $\varepsilon>0$. In this chapter we prove that the structure is closable at~$p$ and that $\alpha_p^{\mathrm{dens}}=\alpha_p=1$ for every $1\le p<\infty$, including the exponents at which the Poincar\'e inequality is not known. The argument uses a Gauss--Green formula for the fluxes of harmonic functions through the boundaries of cells (Lemma~\ref{lem:gasket-cell-green}). \subsection{The harmonic gasket} \paragraph{The resistance form.} Let $K\subset\R^2$ be the Sierpi\'nski gasket, the invariant set of the three contractions $F_i(x)=(x+p_i)/2$, where $V_0=\{p_1,p_2,p_3\}$ is the set of vertices of an equilateral triangle. For a word $w=w_1\cdots w_k$, put $|w|=k$, $F_w=F_{w_1}\circ\cdots\circ F_{w_k}$, $K_w=F_w(K)$ and $V_w=F_w(V_0)$; the set $K_w$ is a \emph{cell} of the level~$k$, and $V_w$ is the set of its three boundary vertices. Let $(\cE,\cF)$ be the standard resistance form on~$K$. It is self-similar with the factor $5/3$, \begin{equation*} \cE(u,v)=\frac53\sum_{i=1}^3\cE(u\circ F_i,v\circ F_i)\,, \end{equation*} and a function~$h$ is \emph{harmonic} if it minimizes the energy among the functions with the same values on~$V_0$. The harmonic functions form a space of dimension three, and for a harmonic~$h$ and any $v\in\cF$, \begin{equation}\label{eq:gasket-graph-energy} \cE(v,h)=c_0\sum_{q\in V_0}v(q)\sum_{q'\in V_0}\bigl(h(q)-h(q')\bigr)\,, \end{equation} where $c_0>0$ is fixed by the normalization of the form; see~\cite[Sections~2 and~4]{Ki08}. \paragraph{The harmonic metric and the Kusuoka measure.} Let $h_1,h_2$ be a basis of the harmonic functions modulo constants which is orthonormal for the energy, and put $H=(h_1,h_2):K\to\R^2$. The map~$H$ is a homeomorphism onto its image, the \emph{harmonic gasket}. Equip~$K$ with the \emph{harmonic metric}~$d$, the shortest-path metric of~$H(K)$; it is geodesic. Let $\Gamma(u,v)$ denote the energy measures, normalized by $\Gamma(u)(K)=\cE(u,u)$. The \emph{Kusuoka measure} and its matrix of densities are \begin{equation*} \nu=\Gamma(h_1)+\Gamma(h_2)\,,\qquad Z_{ij}=\frac{d\Gamma(h_i,h_j)}{d\nu}\,. \end{equation*} By a theorem of Kusuoka~\cite{Ku89}, the matrix~$Z$ is an orthogonal projection of rank one, $\nu$-almost everywhere. There is a measurable differential~$\widetilde\nabla$, defined on~$\cF$ with values in the field of lines $\operatorname{Im}Z$, such that \begin{equation}\label{eq:gasket-differential} \cE(u,v)=\int_K\langle\widetilde\nabla u,\widetilde\nabla v\rangle\,d\nu\,, \qquad \widetilde\nabla(F\circ H)= Z\bigl((D F)\circ H\bigr)\quad(F\in C^1(\R^2))\,, \end{equation} and the energy measures have the same representation on Borel subsets: $d\Gamma(u,v)=\langle\widetilde\nabla u,\widetilde\nabla v\rangle\,d\nu$. Moreover~$d$ is the intrinsic distance of the Dirichlet form $(\cE,\cF)$ on $L^2(K,\nu)$. For this differential and for the identification of~$d$, see~\cite{Ku89}, \cite[Sections~2, 4 and~5]{Ki08} and~\cite[Theorem~4.2]{Ka12}. We take $m=\nu$. At $\nu$-almost every point the image of $Z$ is a single tangent line in $\R^2$. Formula~\eqref{eq:gasket-differential} expresses the energy as the integral of the square of the derivative in this direction. \subsection{The gradient structure} The gradient of a Lipschitz function is the measurable differential~$\widetilde\nabla$, expressed in a measurable unit frame of the field of lines $\operatorname{Im}Z$. \begin{proposition}\label{prop:harmonic-gasket} Choose a measurable unit vector~$e$ in $\operatorname{Im}Z$ and set $\nabla u=\langle e,\widetilde\nabla u\rangle$ for $u\in\Lip(K,d)$. This defines a gradient structure $(K,\nu,\nabla)$ of rank one on $(K,d,\nu)$, which is closable at every $1\le p<\infty$. Its Dirichlet form is $(\cE,\cF)$, and $\ker\nabla_p$ consists of the constants for every $1\le p<\infty$. For $u\in\Lip(K,d)$, \begin{equation}\label{eq:gasket-slope} |\nabla u|(x)=\limsup_{y\to x,\ y\ne x}\frac{|u(y)-u(x)|}{d(x,y)} \qquad \text{for }\nu\text{-almost every }x\,. \end{equation} \end{proposition} The proof of the closability for $p\ne2$ and the identification of the kernel rest on a Gauss--Green formula on cells. \begin{lemma}\label{lem:gasket-cell-green} Let $h=a\cdot H$, $a\in\R^2$, and let $K_w$ be a cell. For every $v\in\Lip(K,d)$, \begin{equation}\label{eq:gasket-cell-green} \int_{K_w}\nabla v\,\nabla h\,d\nu =\sum_{q\in V_w}v(q)\,\partial_n^w h(q)\,, \qquad \partial_n^w h(q)=c_0\Bigl(\frac53\Bigr)^{|w|} \sum_{q'\in V_w}\bigl(h(q)-h(q')\bigr)\,. \end{equation} \end{lemma} \begin{proof} The integral is the energy $\Gamma(v,h)(K_w)$ of the cell, which by self-similarity is equal to $(5/3)^{|w|}\,\cE(v\circ F_w,h\circ F_w)$. Since $h\circ F_w$ is harmonic,~\eqref{eq:gasket-graph-energy} applies. \end{proof} \begin{proof}[Proof of Proposition~\ref{prop:harmonic-gasket}] \emph{Step 1: the Lipschitz bound.} The Rademacher theorem for the intrinsic distance and the identity~\eqref{eq:gasket-slope} are~\cite[Theorems~2.1 and~4.1]{KoZh12}: a function $u\in\Lip(K,d)$ belongs to~$\cF$, and $|\nabla u|=|\widetilde\nabla u|$ is $\nu$-almost everywhere equal to the pointwise Lipschitz constant of~$u$. In particular $|\nabla u|\le\Lip(u)$. \emph{Step 2: the Leibniz rule and the weak-$*$ continuity.} The $C^1$ functions of~$H$ are dense in~$\cF$, for the energy and for the uniform norm~\cite[Theorem~4.8]{Ki08}. For these functions the Leibniz rule follows from~\eqref{eq:gasket-differential}, and it extends by this density and the closedness of~$\widetilde\nabla$. Let $(u_k)$ be as in~\ref{cond:G3}. A pointwise convergent sequence with bounded Lipschitz constants converges uniformly on the compact space~$K$, and it is bounded in~$\cF$ by Step~1. The closedness of the form identifies the weak limit in~$L^2(\nu)$ of the differentials, and their uniform bound gives the weak-$*$ convergence in $L^\infty(\nu)$. \emph{Step 3: the fibres, the core and the Dirichlet form.} Since $Ze=e$, \eqref{eq:gasket-differential} gives $\nabla h_i$ is the $i$th component of~$e$, so that $|\nabla h_1|^2+|\nabla h_2|^2=1$. The functions $h_i$ are $1$-Lipschitz for~$d$. Hence the gradients of $h_1,h_2$ span the fibres, which are equal to~$\R$, and the rank is one. Since $K$ is compact and $\nu$ is finite, $\cC_p=\Lip(K,d)$ for every finite~$p$; it is uniformly dense in~$C(K)$ and spans the fibres, which gives~\ref{A1} and~\ref{A3}. The core contains the $C^1$ functions of~$H$, which are dense in~$\cF$, and $\int_K|\nabla u|^2\,d\nu=\cE(u,u)$ on the core. Therefore the closure of~$\nabla$ in $L^2(\nu)$ has the domain~$\cF$, and the Dirichlet form of the structure is $(\cE,\cF)$. \emph{Step 4: closability.} Let $1\le p<\infty$, and suppose that $u_j\to0$ and $\nabla u_j\to G$ in $L^p(\nu)$. Both convergences hold in~$L^1(\nu)$. Apply~\eqref{eq:gasket-cell-green} with $K_w=K$ to $v=u_j\phi$, where $\phi$ is Lipschitz and vanishes near~$V_0$. The right-hand side vanishes, so \begin{equation*} \int_K \phi\,\nabla u_j\,\nabla h_i\,d\nu =-\int_K u_j\,\nabla\phi\,\nabla h_i\,d\nu\longrightarrow0\,. \end{equation*} Thus $\int_K\phi\,G\,\nabla h_i\,d\nu=0$ for all such~$\phi$, and $G\,\nabla h_i=0$ almost everywhere outside~$V_0$. The measure~$\nu$ has no atoms~\cite[Proposition~2.10]{Ki08}, so Step~3 gives $G=0$. This proves~\ref{A2}. \emph{Step 5: convergence at the vertices.} It remains to identify the kernel. Let $u_j\in\Lip(K,d)$ with $u_j\to u$ and $\nabla u_j\to0$ in $L^p(\nu)$, hence in $L^1(\nu)$. Fix a cell~$K_w$ and $q\in V_w$. The restrictions of $1,h_1,h_2$ to~$K_w$ span the harmonic functions on~$K_w$, since the three points of $H(V_w)$ are affinely independent~\cite[Proposition~4.4]{Ki08}. Choose $h=a\cdot H$ with $\partial_n^w h(q)\ne0$, and a Lipschitz function~$\phi$ whose restriction to~$V_w$ is~$\ind_{\{q\}}$. Applying~\eqref{eq:gasket-cell-green} to $u_j\phi$ shows that $u_j(q)$ converges, and that \begin{equation}\label{eq:gasket-vertex-limit} \partial_n^w h(q)\,\lim_{j\to\infty} u_j(q)=\int_{K_w}u\,\nabla\phi\,\nabla h\,d\nu\,. \end{equation} Taking $v=u_j$ in~\eqref{eq:gasket-cell-green}, for every~$h$, shows that the limits at the three vertices of each cell are equal, because the kernel of the graph energy on the three vertices consists of the constants. The graph formed by the vertices of each level is connected and contains~$V_0$. It follows that the limit is the same number~$c$ at every vertex of every level. \emph{Step 6: from the vertices to~$u$.} Let $A_w$ be the linear part of the affine map induced by~$F_w$ in the harmonic coordinates, so that $H\circ F_w=A_wH+b_w$. The self-similarity of the energy gives \begin{equation*} \nu(K_w)=\Bigl(\frac53\Bigr)^{|w|}\|A_w\|_{\mathrm{HS}}^2\,; \end{equation*} see~\cite[Propositions~2.10 and~4.4]{Ki08}. Choose $h=a\cdot H$ with $|a|=1$ such that $R=\max_{V_w}h-\min_{V_w}h$ satisfies $R\asymp\|A_w\|_{\mathrm{HS}}$; this is possible because the differences of the three points of~$H(V_0)$ span~$\R^2$. One of the vertices at which $h$ is extreme on~$V_w$, say~$q$, has the property that $h(q)$ differs from the values of~$h$ at the two other vertices by at least~$R/2$. Take $\phi=(1-2|h-h(q)|/R)_+$. Then \begin{equation*} \phi|_{V_w}=\ind_{\{q\}}\,,\qquad|\nabla\phi|\le\frac2R\,,\qquad|\partial_n^w h(q)|\ge c_0\Bigl(\frac53\Bigr)^{|w|}R\,. \end{equation*} Subtract from~\eqref{eq:gasket-vertex-limit} the same identity for the constant sequence $u_j=b$, $b\in\R$. This gives \begin{equation*} |c-b|\le\frac{2}{c_0\,(5/3)^{|w|}R^2}\int_{K_w}|u-b|\,d\nu\le C\fint_{K_w}|u-b|\,d\nu \qquad (b\in\R)\,. \end{equation*} Let $E_ku$ denote the conditional mean of $u$ on the level-$k$ cells, which partition $K$ up to the null set of vertices. Take $b$ equal to the mean on each cell, multiply by its measure and sum. This gives $\|c-E_ku\|_1\le C\|u-E_ku\|_1$. The partitions are nested and their diameters tend uniformly to zero, so they generate the Borel $\sigma$-field modulo null sets. Hence $E_ku\to u$ in $L^1(\nu)$, and $u=c$ almost everywhere. \end{proof} \paragraph{Recovery of the metric.} For $v\in\Lip(K,d)$ with $|\nabla v|\le1$ almost everywhere, one has $\Gamma(v)\le\nu$. The intrinsic distance identity therefore gives $\Lip(v)\le1$. Lemma~\ref{lem:localize-metric} yields~\eqref{eq:metric-recovery} on every ball. \subsection{Scales and critical exponents} \paragraph{The hypotheses.} The quantitative properties of the harmonic gasket are the following. \begin{itemize} \item \emph{Doubling.} The Kusuoka measure is doubling for~$d$, and the heat kernel satisfies Gaussian bounds with the volume $\nu(B(x,\sqrt t))$~\cite[Theorems~6.2--6.3]{Ki08}. \item \emph{Poincar\'e inequalities.} The quadratic Poincar\'e inequality holds at the scale~$r^2$~\cite[Proposition~4.1]{KoZh12}. By~\eqref{eq:gasket-slope}, this is a Poincar\'e inequality for the pointwise Lipschitz constant, so the self-improvement theorem of Keith and Zhong and the Sobolev--Poincar\'e inequality give $\mathrm{PI}_p(r^p)$ for all $p>2-\varepsilon$, for some $\varepsilon>0$~\cite{KeZh08,HK}. Whether $\mathrm{PI}_p(r^p)$ holds for all $p\ge1$ is not known. \item \emph{Cutoffs.} For all $p\ge1$, the distance cutoffs of Lemma~\ref{lem:distance-cutoff} satisfy \begin{equation}\label{eq:gasket-cutoffs} \int_K|\nabla\psi_x^r|^p\,d\nu \le \Bigl(\frac2r\Bigr)^p \nu(B(x,2r)) \le C_p\,\frac{\nu(B(x,r))}{r^p}\,. \end{equation} This gives $\mathrm B(r^2)$, and~\eqref{eq:energy-cutoff-assumption} with $\Psi_{C,p}(r)=r^p$. \end{itemize} Thus the scales match for $p>2-\varepsilon$, and the results of Part~\ref{part:general} at matching scales apply in this range. At $p=2$, Proposition~\ref{prop:compact-HKE} gives the Gaussian bounds for the heat kernel at small times, in agreement with~\cite{Ki08}. \paragraph{The critical exponents.} Proposition~\ref{prop:harmonic-gasket} identifies the kernel of $\nabla_p$ with the constants for every $1\le p<\infty$. The cutoff energy bound~\eqref{eq:gasket-cutoffs} has scale $r^p$. Remark~\ref{rem:KS-zero-gradient} therefore gives \begin{equation*} \alpha_p^{\mathrm{dens}}=\alpha_p=1\qquad(1\le p<\infty)\,, \end{equation*} with attainment of both thresholds. This includes the exponents for which the Gaussian Poincar\'e inequality remains open. \paragraph{A Morrey estimate.} A quantitative estimate is available in the range of the Poincar\'e inequalities, after decreasing~$\varepsilon$. By~\cite[Theorem~3.19]{Ka12}, \begin{equation*} \frac{\nu(B(x,R))}{\nu(B(x,r))} \le C\,\Bigl(\frac Rr\Bigr)^q\quad(0q$, and let $p>2-\varepsilon$. In the proof of the Morrey estimate by a telescoping sum of averages~\cite[Theorem~5.1(3)]{HK}, the differences of the averages of~$u$ on $B(y,2^{-j}r)$ and on $B(y,2^{-j-1}r)$ are bounded by \begin{equation*} C\,\frac{r}{\nu(B(y,r))^{1/p}}\,2^{-j(1-q/p)} \Bigl(\int_{B(y,\Lambda r)}|\nabla u|^p\,d\nu\Bigr)^{1/p}\,. \end{equation*} Summing over~$j$, and comparing the averages centred at~$y$ and at~$z$ on a common larger ball, gives, with $r=d(y,z)>0$, \begin{equation*} |u(y)-u(z)|^p\le \frac{C\,r^p}{\nu(B(y,r))} \int_{B(y,\Lambda' r)}|\nabla u|^p\,d\nu\qquad(u\in\Lip(K,d))\,. \end{equation*} \paragraph{No uniform volume function.} At a boundary vertex $x\in V_0$, $\nu(B(x,r))\asymp r$~\cite[Theorem~5.3]{Ka12}. At $\nu$-almost every point, the local dimension of~$\nu$ is strictly greater than one, by the spectral asymptotics and the Gaussian estimates with the volume~\cite[Corollary~4.3 and Theorem~6.1]{Ka12}. Hence the volume of the balls is not comparable to a function of the radius which is uniform in the centre, and~\hV{} fails. Finally, the structure has rank one although the space is not a tree: every nonempty open set contains the boundary of a cell, which is a closed curve. \chapter{Liouville Brownian motion}\label{sec:liouville-chapter}\label{subsec:ex-liouville} Liouville Brownian motion on the Euclidean plane has Euclidean gradient, Lebesgue gradient measure~$\nu$ and Liouville reference measure~$m=M_\gamma$. The two measures are mutually singular. Its Dirichlet form, constructed by Garban, Rhodes and Vargas~\cite{GRVLBM}, has the following properties. \begin{itemize} \item \emph{Closability depends on the exponent.} The structure is closable at~$p$ exactly for $p>\gamma^2/2$, and for $p\le\gamma^2/2$ the relaxed energy vanishes identically (Proposition~\ref{prop:liouville-p-admissibility}). In particular, for $\gamma\ge\sqrt2$ every integrable function has zero total variation. \item \emph{Local inequalities.} On compact sets, the Poincar\'e inequality holds at the scales~$r^a$ with $0(2+\gamma)^2/2$ (Propositions~\ref{prop:liouville-local-scales} and~\ref{prop:liouville-csa}). \item \emph{Volume and time scales.} Global volume doubling fails (Proposition~\ref{prop:liouville-no-global-VD}). At each point where the local dimension of~$M_\gamma$ exists, it equals the small-radius exponent both of the mean exit time and of the reciprocal Dirichlet eigenvalue of a ball. This exponent is $2-\gamma^2/2$ at $M_\gamma$-almost every point (Proposition~\ref{prop:liouville-exit-clock}). \end{itemize} All the statements of this chapter hold almost surely, and the constants may depend on the realization of the measure. \subsection{The Liouville measure and its Dirichlet form} \paragraph{The measure.} Let $H$ be the massive planar Gaussian free field of mass one, with covariance \begin{equation}\label{eq:liouville-covariance} G(x,y)=\frac12\int_0^\infty e^{-s/2-|x-y|^2/(2s)}\,\frac{ds}{s} =\log\frac1{|x-y|}+O(1)\qquad (|x-y|\downarrow0)\,. \end{equation} For $0<\gamma<2$, the subcritical Gaussian multiplicative chaos~$M_\gamma$ is the limit in probability, for the vague topology, of \begin{equation}\label{eq:liouville-regularization} M_{\gamma,\varepsilon}(dx) =\exp\!\Bigl(\gamma H_\varepsilon(x) -\tfrac12\gamma^2\,\mathbb E[H_\varepsilon(x)^2]\Bigr)\,dx\,, \end{equation} where $H_\varepsilon$ is a smooth convolution of~$H$. The limit is independent of the mollifier and is almost surely a nonatomic Radon measure with full support, singular with respect to the Lebesgue measure~\cite{Kahane85,BeGMC,GRVLBM}. \paragraph{The process and its form.} Let $B$ be the planar Brownian motion with generator~$\Delta$, and let $A$ be its positive continuous additive functional with Revuz measure~$M_\gamma$. The Liouville Brownian motion is the time change \begin{equation}\label{eq:liouville-clock} Z_t=B_{\tau_t}\,,\qquad \tau_t=\inf\{s\ge0:A_s>t\}\,. \end{equation} The clock is strictly increasing and the process has infinite lifetime~\cite[Theorem~2.7]{GRVLBM}. Its Dirichlet form on $L^2(M_\gamma)$ is \begin{align} \cF&=\bigl\{\widetilde u\in L^2(M_\gamma):\ u\in H^1_{\mathrm{loc}}(\R^2,dx)\,, \ \nabla u\in L^2(dx)\bigr\}\,,\label{eq:liouville-domain}\\ \cE(\widetilde u,\widetilde v)&=\int_{\R^2}\nabla u\cdot\nabla v\,dx\,, \label{eq:liouville-form} \end{align} where $\widetilde u$ is the quasi-continuous representative of~$u$ for the Euclidean capacity~\cite[Theorem~1.7]{GRV}, \cite[Section~2.3]{AK}. With this normalization the process runs at twice the speed of the process of~\cite{AK}. Thus the energy is the Euclidean one, and the measure~$M_\gamma$ enters only through the $L^2$ space on which the form is considered. \begin{proposition}\label{prop:liouville} Almost surely, the Euclidean gradient with $\cS=\R^2$ and $\nu=dx$ defines a uniform gradient structure of rank two on $(\R^2,|\cdot|,M_\gamma)$, closable at $p=2$. Its Dirichlet form is~\eqref{eq:liouville-domain}--\eqref{eq:liouville-form}, and $C_c^\infty(\R^2)$ is a core. The distance cutoffs satisfy $\int_{\R^2}|\nabla\psi_x^r|\,dx\le C\,r$. There is no uniform volume function as in~\hV. \end{proposition} \begin{proof} Condition~\ref{cond:gradient} and the property~\eqref{eq:metric-recovery} involve only the gradient measure~$\nu=dx$; they hold as in Proposition~\ref{prop:manifold}, with $\iota\equiv1$. Compactly supported Lipschitz functions belong to~$\cF$. The closedness of~$\cE$ on~$L^2(M_\gamma)$ and the fact that the smooth compactly supported functions form a core~\cite[Theorem~2.18]{GRVLBM} give the closability at $p=2$ and the identification of the form. The bound for the cutoff follows from its support and its Lipschitz constant. Suppose that $M_\gamma(B(x,r))\asymp\Phi(r)$ uniformly for $x\in B(0,1)$ and small~$r$. By Fubini's theorem, \begin{equation*} \pi r^2\,M_\gamma(B(0,1/2)) \le \int_{B(0,1)}M_\gamma(B(x,r))\,dx \le \pi r^2\,M_\gamma(B(0,2))\qquad(r<1/2)\,. \end{equation*} Thus $\Phi(r)\asymp r^2$. The resulting lower bound $M_\gamma(B(x,r))\ge c\,r^2$ contradicts the Lebesgue differentiation theorem for the singular measure~$M_\gamma$. \end{proof} \paragraph{Volume and capacity.} The local dimension of~$M_\gamma$ is $2-\gamma^2/2$ at $M_\gamma$-almost every point, and the measure is carried by a Borel set of this Hausdorff dimension~\cite[Theorems~4.1--4.2]{RVGMC}. Uniformly on each compact set of centres, for every $\varepsilon>0$, \begin{equation}\label{eq:liouville-volume} c\,r^{(2+\gamma)^2/2+\varepsilon} \le M_\gamma(B(x,r)) \le C\,r^{(2-\gamma)^2/2-\varepsilon}\qquad(0\gamma^2/2$. \item\label{lpa:domain} For $p>2$, \begin{equation}\label{eq:liouville-p-domain} W^{1,p}(\R^2,M_\gamma)=\bigl\{u\in C(\R^2)\cap W^{1,p}_{\mathrm{loc}}(\R^2,dx):\ u\in L^p(M_\gamma)\,,\ \nabla u\in L^p(dx)\bigr\}\,. \end{equation} \item\label{lpa:relaxation} For $1\le p\le\gamma^2/2$, \begin{equation}\label{eq:liouville-zero-relaxation} \overline{\cE}_p(f)=0\qquad(f\in L^p(M_\gamma))\,. \end{equation} In particular, for $\gamma\ge\sqrt2$, $BV(\R^2,M_\gamma)=L^1(M_\gamma)$ and every function has zero total variation. \end{enumerate} \end{proposition} The threshold has the following meaning. A set of zero $(2-p)$-dimensional Hausdorff measure has zero $p$-capacity for the Euclidean Sobolev space, and the measure $M_\gamma$ has dimension $2-\gamma^2/2$. If $p>\gamma^2/2$, pieces of the measure are spread out enough for the functions of the Euclidean Sobolev space $W^{1,p}$ to have a trace on them, and this makes the gradient closable. If $p\le\gamma^2/2$, the measure is carried by a set of zero $p$-capacity; a function can then be modified on a neighbourhood of this set, at an arbitrarily small cost in energy, and the relaxed energy vanishes. The proof occupies the rest of this section and the next one. It uses three lemmas: the existence of pieces of~$M_\gamma$ with a uniform growth at many scales, a trace inequality for such pieces, and the existence of a carrier of~$M_\gamma$ with zero Hausdorff measure in the critical dimension. \paragraph{Decomposition into scales.} We use the representation of~\eqref{eq:liouville-covariance} by independent scales, as in~\cite[Section~2.1]{GRVLBM}. Each interval of integration in~\eqref{eq:liouville-covariance} gives a Gaussian field, and disjoint intervals give independent fields, because the kernel $e^{-|x-y|^2/(2s)}$ is positive definite. The chaos of the truncations to the scales $s\ge\varepsilon$ is a uniformly integrable martingale on bounded sets, by~\cite[Theorem~2.5]{RVGMC}, and its limit agrees with the limit of~\eqref{eq:liouville-regularization}, by the uniqueness of the subcritical chaos~\cite[Corollary~18 and Theorems~25--26]{ShamovGMC}. \paragraph{Pieces with uniform growth.} Let $D=B(0,1)$ and $d>0$. For a probability measure $\mu$ on~$D$ and an integer $N\ge1$, put \begin{align*} K_N(\mu)&=\bigl\{z\in B(0,1/2):\ \mu(B(z,2^{-j}))\le N\,2^{-jd} \text{ for all integers }j\ge0\bigr\}\,,\\ J_d(\mu)&=\inf_{N\ge1}\frac{N}{\mu(K_N(\mu))}\,, \end{align*} with $1/0=\infty$. When $\mu(K_N(\mu))>0$, the normalized restriction $\rho$ of~$\mu$ to $K_N(\mu)$ satisfies \begin{equation}\label{eq:liouville-frostman} \rho(B(z,t))\le C_d\,\frac{N}{\mu(K_N(\mu))}\,t^d \qquad(00$ for some~$N$, and $J_d(\mu_0)<\infty$ almost surely. \emph{Step 2: comparison.} Let $C_{x,r}$ be the component of the field from the scales $s\ge r^2$, after the change of variables. For $z,w\in\overline D$, the two continuous fields satisfy \begin{equation*} \mathbb E|C_{x,r}(z)-C_{x,r}(w)|^2\le C\,|z-w|^2\,,\qquad \mathbb E|Y_r(z)-Y_r(w)|^2\le C\,|z-w|\,. \end{equation*} The first bound follows by integrating $1-e^{-|z-w|^2/(2t)}\le |z-w|^2/(2t)$ over $t\ge1$. For the second, use $1-e^{-r^2t/2}\le t/2$ and $1-e^{-|z-w|^2/(2t)}\le C|z-w|/\sqrt t$. The bounds for the Gaussian moments and the Kolmogorov continuity theorem give bounds in probability for the oscillations of the two fields on~$\overline D$, uniformly in $x$ and~$r$. Adding an independent continuous Gaussian field multiplies the chaos by the exponential of the field, corrected by its variance, as one sees on the regularizations; the variances of $C_{x,r}$ and $Y_r$ are constant in space. Thus, in this coupling, \begin{equation*} A^{-1}\mu_0\le \mu_{x,r}\le A\,\mu_0\,,\qquad A=\exp\bigl(\gamma\,(\osc_{\overline D} C_{x,r} +\osc_{\overline D}Y_r)\bigr)\,. \end{equation*} For each $N$, $K_N(\mu_0)\subset K_{\lceil AN\rceil}(\mu_{x,r})$, so that $J_d(\mu_{x,r})\le 2A^2 J_d(\mu_0)$. This proves~\ref{lp:probability}. \ref{lp:ae} For any fixed~$x$ and any $\lambda>0$, the probability that $\liminf_kJ_d(\mu_{x,2^{-k}})$ exceeds~$\lambda$ is at most $\liminf_k\mathbb P(J_d(\mu_{x,2^{-k}})>\lambda)$, which tends to zero as $\lambda\to\infty$, by~\ref{lp:probability}. Hence the lower limit is finite almost surely. The sets $K_N$ and the quantities~$J_d$ are measurable in the pair formed by~$x$ and the realization, since the conditions defining them involve countably many radii. Fubini's theorem gives the assertion for Lebesgue-almost every~$x$, on a single event for all rational~$d$. \end{proof} \paragraph{A trace inequality.} The second lemma bounds the trace of a Lipschitz function on a measure which satisfies the growth condition~\eqref{eq:liouville-frostman}. \begin{lemma}\label{lem:liouville-trace} Let $1\le p<2$ and $2-p2-d$. The part with $|z-w|>1$ is bounded. This includes $p=1$, with $p'=\infty$. \end{proof} \subsection{Proof of Proposition~\ref{prop:liouville-p-admissibility}} Condition~\ref{A1} holds for every~$p$: since $\nu=dx$ is a Radon measure, $\cC_p=\Lip_c(\R^2)$, which contains $C_c^\infty(\R^2)$. Thus~\ref{A1} and~\ref{A3} hold, and closability at~$p$ is equivalent to~\ref{A2}. \paragraph{Closability for $\gamma^2/2\gamma^2/2$, and choose a rational~$d$ with $2-p2$. Morrey's inequality~\cite[Theorem~5.1(3)]{HK} bounds the oscillation of a function on a ball by the norm of its gradient in~$L^p$ on a larger ball, and its average against~$M_\gamma$ on the ball controls the additive constant. A sequence which is Cauchy for the graph norm therefore converges locally uniformly, and the limit in~$L^p(dx)$ of its gradients is the distributional gradient of the limit. If the sequence tends to zero in~$L^p(M_\gamma)$, its continuous limit vanishes $M_\gamma$-almost everywhere, hence everywhere, because $M_\gamma$ has full support. This proves the closability, and the inclusion of $W^{1,p}(\R^2,M_\gamma)$ in the right-hand side of~\eqref{eq:liouville-p-domain}. For the reverse inclusion, let $u$ belong to the right-hand side of~\eqref{eq:liouville-p-domain}. Truncate $u$ at the heights~$\pm L$, and multiply by a smooth cutoff equal to one on $B(0,R)$ and zero outside $B(0,2R)$. The $p$-energy of the term containing the gradient of the cutoff is at most $C\,L^p\,R^{2-p}$, which tends to zero as $R\to\infty$, for fixed~$L$, because $p>2$. Mollification of the resulting compactly supported continuous function gives convergence in the graph norm. Let $R$ and then~$L$ tend to infinity. \paragraph{A carrier of zero Hausdorff measure.} It is known that $M_\gamma$ is carried by a set of Hausdorff dimension $2-\gamma^2/2$. For the endpoint $p=\gamma^2/2$ we need the following more precise statement. \begin{lemma}\label{lem:liouville-carrier} Let $s=2-\gamma^2/2$. Almost surely, there is a Borel set~$S\subset\R^2$ with \begin{equation*} M_\gamma(\R^2\setminus S)=0\qquad\text{and}\qquad\Haus^s(S)=0\,. \end{equation*} \end{lemma} \begin{proof} Let $H_k$ be the field truncated to the scales $s'\ge e^{-2k}$ in~\eqref{eq:liouville-covariance}. Its variance is $v_k=k+O(1)$. \emph{Step 1: thick points for the rooted measure.} Consider the measure $\mathbb P(d\omega)\,M_\gamma(\omega,dx)$, restricted to a bounded square. Under this measure, the conditional law of the sequence $(H_k(x)-\gamma v_k)_k$ given~$x$ is that of a Brownian motion at the times~$v_k$. This follows from the Gaussian change of measure for the martingale of the scales~\cite[Theorem~17]{ShamovGMC}, \cite[Section~4.1]{RVGMC}. The law of the iterated logarithm for Brownian motion, together with Gaussian bounds on the bounded gaps between the times~$v_k$, gives $H_k(x)\ge\gamma k+2\sqrt{k}$ for infinitely many~$k$, almost surely. \emph{Step 2: discretization.} Partition the plane into squares of side $e^{-k}$, and let $z_k(x)$ be the centre of the square which contains $x$. Under the same measure, the Gaussian variable $H_k(z_k(x))-H_k(x)$ has a uniformly bounded mean and variance. Indeed its variance before the change of measure is \begin{equation*} \int_{e^{-2k}}^\infty e^{-s'/2} \bigl(1-e^{-|z_k(x)-x|^2/(2s')}\bigr)\,\frac{ds'}{s'}\le C\,, \end{equation*} and its mean after the change of measure is $-\gamma/2$ times this variance. Gaussian tails and the Borel--Cantelli lemma give $|H_k(z_k(x))-H_k(x)|=O(\sqrt{\log k})$. It follows that $M_\gamma$-almost every $x$ belongs to infinitely many squares whose centres satisfy $H_k(z_k(x))\ge\gamma k+\sqrt{k}$. \emph{Step 3: the covering.} Under $\mathbb P$, the probability that a given centre satisfies this inequality is at most $C_\gamma\,e^{-\gamma^2k/2-c_\gamma\sqrt{k}}$, for some $c_\gamma>0$, and a bounded region meets at most $C\,e^{2k}$ squares of side~$e^{-k}$. The expectation of the sum, over all~$k$, of the $s$th powers of the diameters of the selected squares in that region is therefore at most $C\sum_ke^{-c_\gamma\sqrt k}<\infty$. The set of the points which belong to infinitely many selected squares is covered by the selected squares of the levels $k\ge k_0$, for every~$k_0$; hence its measure $\Haus^s$ is zero. Exhausting the plane by bounded squares gives the set~$S$. \end{proof} \paragraph{Vanishing of the relaxed energy for $p\le\gamma^2/2$.} Let $1\le p\le\gamma^2/2$, and let $S$ be the set of Lemma~\ref{lem:liouville-carrier}. Then $2-p\ge s$ and $\Haus^{2-p}(S)=0$. \emph{Step 1: cutoffs of small norm.} Every compact set $K\subset S$ admits functions equal to one near~$K$, with values in $[0,1]$, whose norm in $W^{1,p}(dx)$ is arbitrarily small. Indeed, cover~$K$ by finitely many balls of radii $r_i<1$ with $\sum_i r_i^{2-p}$ arbitrarily small, and take the maximum of the distance cutoffs of these balls. Its $p$-energy is at most $C\sum_i r_i^{2-p}$, and its norm in $L^p(dx)$ is at most $(C\sum_i r_i^2)^{1/p}$; compare~\cite{Maz11}. \emph{Step 2: the relaxed energy.} Let $\varphi\in C_c^\infty(\R^2)$. Choose compact sets $K_j\subset S\cap\supp\varphi$ with $M_\gamma(\supp\varphi\setminus K_j)\to0$, and functions $\chi_j$ as in Step~1 for~$K_j$ whose norms in $W^{1,p}(dx)$ tend to zero. Then \begin{equation*} \varphi\chi_j\to\varphi\quad\text{in }L^p(M_\gamma)\,,\qquad\nabla(\varphi\chi_j)\to0\quad\text{in }L^p(dx)\,. \end{equation*} Hence $\overline{\cE}_p(\varphi)=0$. Since $C_c^\infty(\R^2)$ is dense in $L^p(M_\gamma)$ and $\overline{\cE}_p$ is lower semicontinuous, \eqref{eq:liouville-zero-relaxation} follows. \emph{Step 3: the gradient is not closable.} For $\varphi\ne0$, the sequence $\varphi(1-\chi_j)\in\Lip_c(\R^2)$ tends to zero in $L^p(M_\gamma)$, while its gradients tend to $\nabla\varphi\ne0$ in $L^p(dx)$. Thus~\ref{A2} fails. This completes the proof of Proposition~\ref{prop:liouville-p-admissibility}. \qed \subsection{Local Poincar\'e and cutoff inequalities} In the next two propositions the radii are sufficiently small, and the constants may depend on the realization and on a fixed compact set which contains the balls, the annuli and their enlargements. Both estimates use the bounds~\eqref{eq:liouville-volume} for the volume: the upper bound gives the Poincar\'e inequality, and the lower bound gives the cutoff inequalities. Since the two bounds have different exponents, so have the resulting scales. \begin{proposition}\label{prop:liouville-local-scales} Let \begin{equation}\label{eq:liouville-scale-range} 0\frac{(2+\gamma)^2}{2}\,. \end{equation} Then $\mathrm B(r^b)$ and $\mathrm{PI}_2(r^a)$ hold locally, uniformly on each fixed compact set. More precisely, for $B=B(x,r)$ and for every function~$u$ which belongs locally to~$\cF$, \begin{align} \int_B|u-u_{B,M_\gamma}|^2\,dM_\gamma &\le C\,M_\gamma(B)\left[1+\log\frac{C r^a}{M_\gamma(B)}\right] \int_{2B}|\nabla u|^2\,dx\label{eq:liouville-pi-refined}\\ &\le C\,M_\gamma(B)\,\log\frac er\, \int_{2B}|\nabla u|^2\,dx\,.\label{eq:liouville-pi-volume} \end{align} The argument of the logarithm in~\eqref{eq:liouville-pi-refined} is at least one, and the coefficient in~\eqref{eq:liouville-pi-refined} is at most $C\,r^a$. \end{proposition} The cutoff and Poincar\'e estimates also give the coefficients \begin{equation*} \Psi_{C,2}(x,r)=M_\gamma(B(x,r)),\qquad \Psi_{P,2}(x,r)=M_\gamma(B(x,r))\log(e/r)\,. \end{equation*} Indeed, at the first coefficient the right-hand side of~\eqref{eq:integrated-bump} is a constant times~$r$, and the second is~\eqref{eq:liouville-pi-volume}. These are ballwise estimates. The scale comparisons used in the doubling theory would require separate hypotheses. \begin{proof} Write $\mu=M_\gamma$. \emph{The cutoff condition.} The lower bound for the volume, and the bounds for the support and the Lipschitz constant of the Euclidean distance cutoff, give \begin{equation}\label{eq:liouville-normalized-B} \int_{\R^2}|\nabla\psi_x^r|\,dx \le C\,r\le C\,r^{1-b}\,\mu(B(x,r))\,, \end{equation} which is~\eqref{eq:integrated-bump} with $\Psi_{C,2}(r)=r^b$. \emph{A bound for the Green potential.} Let $g_{2B}$ be the Green function of $-\Delta$ on~$2B$ with the Dirichlet boundary condition, and put $v=\mu(B)$. The logarithmic bound for~$g_{2B}$ and the upper bound for the volume give \begin{equation}\label{eq:liouville-green-potential} \sup_{z\in2B}\int_B g_{2B}(z,w)\,d\mu(w) \le C\int_0^{4r}\min\{v,Cs^a\}\,\frac{ds}{s} \le C\,v\left[1+\log\frac{Cr^a}{v}\right]\,. \end{equation} \emph{The trace inequality.} By Schur's test, the last coefficient bounds the norm of the Green operator on $L^2(B,\mu)$. For a bounded function~$h$, the energy of the Green potential of $h\,\mu|_B$ is therefore at most this coefficient times $\|h\|_{L^2(B,\mu)}^2$. Pairing this potential with a function~$w$ in the Dirichlet form, and taking the supremum over $\|h\|_{L^2(B,\mu)}\le1$, gives the trace inequality of~\cite[Proposition~5.2]{AK}, \cite[Section~9]{KigamiTimeChange}: \begin{equation*} \int_B w^2\,d\mu \le C\,v\left[1+\log\frac{Cr^a}{v}\right]\int_{2B}|\nabla w|^2\,dx \qquad (w\in H_0^1(2B))\,. \end{equation*} \emph{The Poincar\'e inequality.} Apply the trace inequality to the product of a cutoff of~$2B$, equal to one on~$B$, with $u-c$, where $c$ is the Lebesgue average of~$u$ on~$2B$. The Euclidean Poincar\'e inequality bounds the energy of this product by $C\int_{2B}|\nabla u|^2\,dx$, and minimizing over the constants gives~\eqref{eq:liouville-pi-refined} for Lipschitz~$u$. The lower bound for the volume gives~\eqref{eq:liouville-pi-volume}, and $v\,[1+\log(Cr^a/v)]\le C\,r^a$ because $v\le Cr^a$. Approximation in the local norm of the form extends the estimates to the stated domain. \end{proof} \begin{proposition}\label{prop:liouville-csa} For every $\beta>(2+\gamma)^2/2$, the form~\eqref{eq:liouville-form} satisfies $\mathrm{CSA}(r^\beta)$ locally, uniformly on each fixed compact set: for $A=B(x,R+r)\setminus\overline{B(x,R)}$, there is a cutoff function~$\chi$ for $B(x,R)\subset B(x,R+r)$ such that \begin{equation}\label{eq:liouville-csa} \int_A f^2|\nabla\chi|^2\,dx \le\frac18\int_A\chi^2|\nabla f|^2\,dx +C\,r^{-\beta}\int_A f^2\,dM_\gamma\qquad(f\in\cF)\,. \end{equation} \end{proposition} \begin{proof} Choose $b$ with $(2+\gamma)^2/21$ with $2+k(b-2)<\beta$, and take $s=c\,r^k$ with $c$ fixed and small. The coefficient of the energy is then bounded, and the coefficient of the second term is at most $C\,r^{-\beta}$. This is the inequality~\eqref{hk:eq:global-csa} of $\CSA(r^\beta)$, on every such annulus. \emph{Step 3: the weighted inequality.} Apply the construction of Steps~1 and~2 of the proof of Lemma~\ref{hk:lem:h-weighted-cutoff}, which uses only the strong locality and the scaling of the power~$r^\beta$: the widths of the successive annuli are proportional to $r\,q^{j/\beta}$, and the weights of their cutoff functions are $(1-q)q^{j-1}$. On the $j$th annulus the sum~$\chi$ is at least $q^j$. Taking $q$ sufficiently close to one gives the coefficient~$1/8$ in~\eqref{eq:liouville-csa}, and the coefficient of the second term remains at most $C\,r^{-\beta}$. The same estimates, with $f$ equal to one on the annuli, give the convergence of the sum in the norm of the form. This summation does not use volume doubling~\cite[Lemma~5.1]{AB}. \end{proof} For the exponents obtained in Propositions~\ref{prop:liouville-local-scales} and~\ref{prop:liouville-csa}, the difference $\beta-a$ has infimum \begin{equation*} \frac{(2+\gamma)^2-(2-\gamma)^2}{2}=4\gamma\,. \end{equation*} These sufficient ranges follow from the two uniform mass bounds in~\eqref{eq:liouville-volume}. \subsection{Volume, exit times and heat kernels} \paragraph{Failure of global doubling.} \begin{proposition}\label{prop:liouville-no-global-VD} For each fixed $r>0$, almost surely \begin{equation}\label{eq:liouville-no-VD} \sup_{x\in\R^2}\frac{M_\gamma(B(x,2r))}{M_\gamma(B(x,r))}=\infty\,. \end{equation} In particular, \hVD{} fails globally. \end{proposition} \begin{proof} \emph{The ratio at the origin is unbounded.} Choose a smooth function $h\ge0$ with compact support in $B(0,2r)\setminus\overline{B(0,r)}$, positive on a ball. The shift $H\mapsto H+th$ multiplies~$M_\gamma$ by $e^{\gamma th}$~\cite{BeGMC}. It leaves the denominator of the ratio at~$x=0$ unchanged, and makes the numerator tend to infinity as $t\to\infty$. By the Cameron--Martin theorem~\cite[Section~2.4]{Bogachev98}, the laws of $H$ and $H+th$ are equivalent, so the ratio at the origin exceeds every integer~$N$ with positive probability. \emph{Ergodicity.} The covariance~\eqref{eq:liouville-covariance} tends to zero at infinity. The Gaussian variables obtained by testing the field against compactly supported functions therefore become asymptotically independent under translations, which gives the mixing of the field under the integer translations~\cite{Maruyama49}. Its chaos, which is covariant under translations, is therefore ergodic. By the ergodic theorem, applied to the event that the ratio at the origin exceeds~$N$, almost surely there are centres at which the ratio exceeds~$N$, for every~$N$. \end{proof} For finer estimates on the masses of adjacent balls, see~\cite[Appendix~A]{BGRV}. In particular, no function of $r$ alone is comparable to $M_\gamma(B(x,r))$ uniformly in $x$ and $r$, since such a comparison would bound the ratio in~\eqref{eq:liouville-no-VD} for each fixed $r$. The same conclusion holds for the volume divided by the annular capacity~\eqref{eq:liouville-capacity}. \paragraph{Exit times and ball eigenvalues.} \begin{proposition}\label{prop:liouville-exit-clock} Let $\tau_{x,r}$ be the first exit time of Liouville Brownian motion from $B(x,r)$, for a fixed realization of~$M_\gamma$. Then \begin{equation}\label{eq:liouville-exit-green} \mathbb E_x\tau_{x,r} =\frac1{2\pi}\int_{B(x,r)}\log\frac r{|x-y|}\,dM_\gamma(y)\,. \end{equation} Locally uniformly in~$x$, for all sufficiently small~$r$, \begin{align} \frac{\log2}{2\pi}\,M_\gamma(B(x,r/2)) &\le\mathbb E_x\tau_{x,r} \le C\,M_\gamma(B(x,r))\log(e/r)\,,\label{eq:liouville-exit-volume}\\ \frac{\log2}{2\pi}\,M_\gamma(B(x,r/2)) &\le\Psi_\lambda(x,r) \le C\,M_\gamma(B(x,r))\log(e/r)\,.\label{radrev:liouville-spectrum} \end{align} At every point where the local dimension of~$M_\gamma$ exists, both quantities have this small-radius exponent. In particular, for $M_\gamma$-almost every~$x$, \begin{equation}\label{eq:liouville-exit-exponent} \lim_{r\downarrow0}\frac{\log\mathbb E_x\tau_{x,r}}{\log r} =\lim_{r\downarrow0}\frac{\log\Psi_\lambda(x,r)}{\log r} =2-\frac{\gamma^2}{2}\,. \end{equation} \end{proposition} \begin{proof} The occupation formula for the time change gives the Green potential~\eqref{eq:liouville-exit-green}~\cite[Lemma~6.3]{AK}. Restricting the integral to $B(x,r/2)$ gives the lower bound in~\eqref{eq:liouville-exit-volume}. The upper bound follows from~\eqref{eq:liouville-green-potential} and the lower volume bound in~\eqref{eq:liouville-volume}, as in~\cite[Lemma~6.4]{AK}. For~\eqref{radrev:liouville-spectrum}, apply~\eqref{sp:eq:rayleigh} to $B(x,r/2)\subset B(x,r)$ and use the exact capacity~\eqref{eq:liouville-capacity}. For the reverse inequality, the Faber--Krahn estimate of Andres and Kajino~\cite[Proposition~5.2]{AK} gives $\Psi_\lambda(x,r)\le C v\log(2+1/v)$ with $v=M_\gamma(B(x,r))$. The lower bound in~\eqref{eq:liouville-volume} gives $\log(2+1/v)\le C\log(e/r)$. If the local dimension exists, replacing $r$ by $r/2$ leaves it unchanged and $\log\log(e/r)/|\log r|\to0$. The asserted exponents follow. \end{proof} \paragraph{Distances and harmonic functions.} Since $d\Gamma(u)=|\nabla u|^2\,dx$ and $M_\gamma$ is singular, the intrinsic pseudo-distance defined by $d\Gamma(u)\le M_\gamma$ vanishes identically~\cite[Proposition~3.1]{GRV}. The bound $|\nabla u|\le1$ with respect to the gradient measure~$dx$ recovers the Euclidean distance by Proposition~\ref{calc:metric}. By~\eqref{eq:liouville-form} and Weyl's lemma, the harmonic functions of the form have Euclidean harmonic representatives and satisfy the elliptic Harnack inequality. Under this inequality, uniform two-sided power growth of the spectral scale over all centres and radii would imply global volume doubling by Proposition~\ref{sp:prop:calibrate}. Proposition~\ref{prop:liouville-no-global-VD} therefore excludes such growth, even though the pointwise limits~\eqref{eq:liouville-exit-exponent} exist almost everywhere. \paragraph{The heat kernel.} The Liouville heat kernel is jointly continuous~\cite[Theorem~1.1]{AK}. For a compact set~$K$ and $\beta>(2+\gamma)^2/2$, Andres and Kajino prove the upper bound~\cite[Theorem~1.2]{AK} \begin{equation}\label{eq:liouville-heat-upper} p_t(x,y)\le \frac{C\log(1/t)}{t}\, \exp\!\Bigl[-c\,\Bigl(\frac{|x-y|^\beta\wedge1}{t}\Bigr)^{1/(\beta-1)}\Bigr] \qquad(x\in\R^2\,,\ y\in K\,,\ 018$ there are $c_x,t_x>0$ such that~\cite[Theorem~1.3]{AK} \begin{equation}\label{eq:liouville-heat-lower} p_t(x,x)\ge \frac{c_x}{t\,(\log(1/t))^\eta}\qquad(0n$, and gives no mass to any piece. We determine \begin{itemize} \item the exponents of closability: $p\ge p_*$, for an explicit threshold $p_*\le2$ (Theorem~\ref{thm:cube-closed-family-domain}); \item the cutoff scale $r^{Q+p-n}$ and the sharp Poincar\'e scale, which coincide exactly for $p>n$ (Propositions~\ref{prop:cube-structure} and~\ref{prop:cube-two-scales}); \item the spectral scale $r^{Q+2-n-\sigma}$ and the dependence of annular capacity on the outer radius, which implies failure of the elliptic Harnack inequality (Corollary~\ref{cor:cube-spectrum-ehi}); \item the critical Korevaar--Schoen spaces, which are equal to $W^{1,p}(X,m)$ for $p>n$ and are proper dense subspaces for exponents of closability $1n$ of matching scales shows the sharpness of the restriction $n_*1$, while the argument above also covers $p=1$. \emph{Step 4: the scales.} The charts give $m(B(x,r))\asymp r^n$ uniformly in~$x$, and $\mathrm B(r^2)$ follows from Lemma~\ref{lem:distance-cutoff}. For the Poincar\'e inequality near~$\Sigma$, put $B(x,r)$ inside a union of $k$ congruent half-boxes of diameter~$Cr$ in a chart at the interface, contained in a fixed enlargement of the ball. Let $c$ be the mean of~$u$ on the first half-box. Pair each other half-box with the first one, by reflecting it into the opposite half-space. The restrictions of a Lipschitz function~$u$ fit together to give a Lipschitz function on the resulting full box. The Euclidean Poincar\'e inequality on this box, and the comparison of its mean with~$c$, give \begin{equation*} \int_{\mathrm{pair}}|u-c|^p\,dm \le C\,r^p\int_{\mathrm{pair}}|\nabla u|^p\,dm\,; \end{equation*} compare the argument with chains of bounded length for complexes in~\cite[Section~2]{PiSC08}. Summing over the sheets and comparing~$c$ with~$u_B$ proves the required inequality. Balls in the interior use a full box in a smooth chart, and the estimate on a single half-box covers $k=1$. \end{proof} For $k=2$ this includes the double of any compact smooth manifold with boundary. For $k\ge3$ the interface has at least three incident pieces, and the space is not a manifold. In all these examples the scales are Gaussian. In the tree of cubes below, $m$ is singular with respect to the piecewise volume: the gauge is $\Theta(r)=r^n$ by Proposition~\ref{prop:cube-structure}\ref{cube-structure:cutoff}, while $\Phi(r)=r^Q$ with $Q>n$, and the Poincar\'e scale is computed separately in Proposition~\ref{prop:cube-two-scales}. \subsection{Local trees}\label{subsec:local-trees-intro}\label{subsec:ex-trees} Local trees are the case of rank one of the gluings considered in this chapter. We use the definitions and the notation of~\cite[Sections~2.1 and~2.2]{BCY}. A \emph{local tree} is a metric space $(X,d)$ which is locally isometric to real trees. Its \emph{skeleton}~$\cS$ is the union of the open geodesic segments of~$X$, the \emph{length measure}~$\nu$ is the one-dimensional Hausdorff measure restricted to~$\cS$, and the \emph{weak gradient}~$\partial u$ of a Lipschitz function~$u$ is its derivative along the skeleton, which is defined $\nu$-almost everywhere, up to sign. Metric graphs and compact real trees are local trees. The reference measure~$m$ may be singular with respect to~$\nu$, and the length measure~$\nu$ need not be locally finite. \begin{proposition}\label{prop:tree} Let $X$ be a proper uniform local tree containing a nondegenerate arc, and let $m$ be a Radon measure with full support, doubling at small radii. A measurable orientation of the arcs defines a rank-one gradient structure with $|\nabla u|=|\partial u|$, closable at every $1\le p<\infty$. At sufficiently small radii the cutoff and Poincar\'e bounds hold with the common scale \begin{equation*} \Psi_{P,p}(x,r)=\Psi_{C,p}(x,r)=r^{p-1}m(B(x,r))\,. \end{equation*} If $m$ satisfies the uniform volume control of~\cite{BCY} with volume function~$\Phi$, the scale is comparable to $r^{p-1}\Phi(r)$, and for $p>1$ the Sobolev space agrees with that of~\cite[Definition~2.13]{BCY}. \end{proposition} The gauge $r^2 m(B(x,r))/\Psi_{C,2}(x,r)$ is exactly~$r$. Nearby balls of equal radius have comparable scales by volume doubling. If $X$ is connected and has positive diameter, reverse volume doubling at small radii (Lemma~\ref{lem:reverse-doubling}) gives a positive lower radial exponent also at $p=1$. The time scale in the uniform volume case is $r\,\Phi(r)$, as in~\cite[Theorem~5.1]{BCY}. \begin{proof} \emph{Step 1: the derivation and recovery of the metric.} Cover~$\cS$ by countably many oriented open arcs, and define $\nabla u$ on each arc, outside the earlier arcs, as the derivative of~$u$ in the direction of the orientation. Differentiation in one variable gives the Leibniz rule and the Lipschitz bound. The convergence of the derivatives in the sense of distributions on each arc, followed by the approximation of a field of $L^1(\nu)$ by its restriction to finitely many arcs, gives the weak-$*$ continuity. For two points in a small ball which is a tree, integrating along the arc which joins them gives~\eqref{eq:metric-recovery}. \emph{Step 2: cutoffs.} The distance cutoff is not suitable here: the distance to a point varies along the whole skeleton, and $\nu$ may be infinite on every ball. We use instead a cutoff which varies only along finitely many arcs. Take $r$ so small that $B(x,3r)$ is isometric to a ball of a real tree, and choose a maximal $(r/8)$-separated set in $B(x,2r)$; volume doubling bounds its cardinality by Lemma~\ref{lem:cover}. Let $F$ be the convex hull, in this tree, of these points and of~$x$. It is a union of a uniformly bounded number of arcs. The nearest-point projection~$\pi_F$ onto~$F$ is $1$-Lipschitz, and $d(z,\pi_Fz)\le r/8$ on $B(x,2r)$. Define on this ball \begin{equation*} \psi_x^r(z)=\bigl(3-2\,d(x,\pi_F z)/r\bigr)_+\wedge1\,, \end{equation*} and extend it by zero. It is equal to one on $B(x,r)$ and its support lies in $\overline B(x,13r/8)$, so the extension is $C/r$-Lipschitz. The projection is locally constant outside~$F$, so $\nabla\psi_x^r$ is carried by~$F$. Each arc of~$F$ meets a ball $B(y,s)$ in a set of length at most~$2s$, because the arc is isometric to an interval and the set has diameter at most~$2s$. Consequently \begin{equation}\label{eq:tree-cutoff-growth} \int_{B(y,s)\cap\cS}|\nabla\psi_x^r|\,d\nu\le \frac Cr\,\nu(F\cap B(y,s)) \le C\,\frac sr\qquad(y\in X\,,\ s>0)\,. \end{equation} Taking $y=x$ and $s=2r$ gives~\eqref{eq:integrated-bump} with $\Psi_{C,2}(x,r)=r\,m(B(x,r))$. For related cutoffs on finite trees see~\cite[Lemma~3.3]{BCY}. \emph{Step 3: the core spans the fibres.} Use the arclength coordinate along the projection onto a compact subarc of one of the countably many oriented arcs, and multiply it by a finite maximum of the cutoffs of Step~2 which is equal to one near the subarc and supported in a tree neighbourhood of it. This gives a compactly supported Lipschitz function of finite $1$-energy whose gradient has absolute value one in the interior of the subarc. Such subarcs cover the skeleton up to a set of zero length. \emph{Step 4: the Poincar\'e inequality and closability.} If $y,z\in B(x,r)$, the arc from~$y$ to~$z$ has length at most~$2r$ and stays in the tree $B(x,3r)$. Integration along this arc, as in~\cite[Lemma~2.9 and Theorem~2.12]{BCY}, gives \begin{equation}\label{eq:tree-morrey} |u(y)-u(z)|^p\le (2r)^{p-1}\int_{B(x,3r)\cap\cS}|\nabla u|^p\,d\nu\,. \end{equation} Averaging in~$z$ and integrating in~$y$ gives the Poincar\'e inequality with coefficient $r^{p-1}m(B(x,r))$, including $p=1$. The cutoffs give~\ref{A1}, and Step~3 gives~\ref{A3}. For~\ref{A2}, let $u_j\to0$ in $L^p(m)$ with $\nabla u_j$ convergent in $L^p(\nu)$. By~\eqref{eq:tree-morrey}, applied to the differences and averaged over a fixed small ball, the sequence is uniformly Cauchy on the ball, and its limit there is zero because $m$ has full support. Testing on the arcs against compactly supported smooth functions of the arclength shows that the limit of the derivatives is zero. \emph{Step 5: identification.} Under the uniform volume control of~\cite{BCY}, for $p>1$ the identification with the Sobolev space of~\cite{BCY} follows from the approximation by Lipschitz partitions of unity of finite energy and weak compactness, followed by convex combinations; see~\cite[Theorem~3.5 and the proof of Theorem~3.7]{BCY}. \end{proof} The estimate~\eqref{eq:tree-cutoff-growth} is local: together with $|\nabla\psi_x^r|\le C/r$ it gives \begin{equation*} \int_{B(y,s)\cap\cS}|\nabla\psi_x^r|^2\,d\nu\le C\,\frac s{r^2}=C\Bigl(\frac sr\Bigr)^2\frac{m(B(y,s))}{\Psi_{C,2}(y,s)}\qquad(00$ and $y,z\in B(x,r)$, \begin{equation}\label{eq:riemannian-intrinsic} |u(y)-u(z)| \le d(y,z)\,\|\nabla u\|_{L^\infty(B(x,3r)\cap\cS,\nu)}\,. \end{equation} With the minimal field of Definition~\ref{def:gradient}, $(\cS,\nu,\nabla)$ is a uniform gradient structure. It has constant rank~$n$ if the gradients of the functions of~$\Lip(X)$ generate~$\R^n$ almost everywhere. In particular, if a sequence $(u_k)\subset\cC_1$ satisfies \begin{equation}\label{eq:finite-energy-spanning} \spn\{\nabla u_k(x):k\ge1\}=\R^n \quad\text{for $\nu$-almost every }x\,, \end{equation} then the structure has constant rank~$n$ and each~$\cC_p$ spans the fibres. \end{proposition} Thus the axioms and the recovery of the metric hold for every reference measure. What depends on~$m$ is the closability and the quantitative hypotheses; moreover, when $\nu$ is not locally finite, the existence of sufficiently many Lipschitz functions of finite energy, as in~\eqref{eq:finite-energy-spanning}, is part of the problem. \begin{proof} \emph{Condition~\ref{cond:gradient}.} The restriction of~$u$ to a piece has a Lipschitz constant at most $\Lip(u)$ for the intrinsic metric of the piece. The Leibniz rule and the bound $|\nabla u|\le\Lip(u)$ follow by differentiating inside each piece. A sequence which converges pointwise, with bounded Lipschitz constants, converges uniformly on each piece, and its derivatives converge in the sense of distributions; the uniform bound on the gradients then gives the weak-$*$ convergence on each piece. For a field of $L^1(\nu)$, the approximation by its restrictions to finitely many pieces gives the weak-$*$ convergence on~$\cS$. \emph{Recovery of the metric.} Put $L=\|\nabla u\|_{L^\infty(B(x,3r)\cap\cS,\nu)}$. In a coordinate chart, mollification and the comparison of the Riemannian metric with its value at the centre of the chart show that the variation of~$u$ along any piecewise smooth curve in the interior of a piece, contained in $B(x,3r)$, is at most $L$ times its length: the chart can be taken with distortion $1+\varepsilon$, and a subdivision of the curve, followed by $\varepsilon\downarrow0$, gives the stated constant. The approximation in~\ref{gl:metric} gives the same bound for the curves in the piece, including its boundary. Let $y,z\in B(x,r)\cap\cS$, and consider a concatenation of length $\ell$ joining them. At the arclength~$s$ its distance to~$x$ is at most $\min\{d(x,y)+s,\,d(x,z)+\ell-s\}\le(d(x,y)+d(x,z)+\ell)/2$, so it lies in $B(x,3r)$ if $\ell$ is sufficiently close to $d(y,z)$. Add the bounds over the pieces, take the infimum over~$\ell$, and extend to~$X$ by the density of~$\cS$. This gives~\eqref{eq:riemannian-intrinsic}, hence~\eqref{eq:metric-recovery} with any constant~$\iota$. \emph{The rank.} The assertion on the rank follows from the minimality of the fibres. A family satisfying~\eqref{eq:finite-energy-spanning} belongs to~$\cC_p$ for all $p\ge1$, by~\eqref{eq:core-inclusions}. \end{proof} \subsection{The tree of cubes: construction and volume growth}\label{subsec:window-construction}\label{subsec:glued-cubes}\label{subsec:window-geometry} Hanson and Heinonen~\cite[Section~3]{HH00} construct a metric space by the successive attachment of Euclidean cubes along sets which are thick in a quantitative sense. In the construction below, the relative sizes of the interfaces tend to zero, and the reference measure is singular with respect to the sum of the Euclidean volumes. \paragraph{Parameters.} Fix an integer $n\ge2$, a real number $Q>n$, a parameter $0<\sigma<2$, and a constant $02\,, \end{cases} \qquad \theta_j=\frac{\delta_j}{h_j}\,. \end{equation} The number $h_j$ is the side of the cubes of the level~$j$, and $\delta_j$ is the side of the cubes of dimension $n-1$, called interfaces below, along which the new cubes of the level~$j$ are attached. The interfaces are small with respect to the cubes: $\theta_j\to0$, at a rate governed by~$\sigma$. Let \begin{equation*} a=\lfloor 2^Q\rfloor\,,\qquad b=\frac{\log(2^Q/a)}{\log((a+1)/a)}\in[0,1)\,,\qquad N_j=a+\lfloor jb\rfloor-\lfloor(j-1)b\rfloor\in\{a,a+1\}\,. \end{equation*} The number $N_j$ is the number of children of a cube of the level $j-1$. Since $Q>n$, $K_j=N_j-2^n\ge0$, and \begin{equation}\label{eq:cube-branching} \prod_{k=i+1}^jN_k\asymp 2^{(j-i)Q}\qquad(0\le i2^n$ and $K_j\ge1$ for all~$j$, or $a=2^n$, in which case $b>0$ and $K_j=1$ whenever $N_j=a+1$. \paragraph{Construction.} Start with $X_0=P_0=[0,1]^n$ and $\mathcal D_0=\{P_0\}$. Suppose that $X_{j-1}$ and a family $\mathcal D_{j-1}$ of cubes of side $h_{j-1}$, the \emph{mesh cubes} of the level $j-1$, have been constructed. For each mesh cube $D\in\mathcal D_{j-1}$: \begin{itemize} \item take its $2^n$ closed dyadic subcubes, the \emph{ordinary children} of~$D$; \item attach to~$D$ a number $K_j$ of copies of the cube $[-h_j/2,h_j/2]^{n-1}\times[0,h_j]$, the \emph{new children} of~$D$, by identifying the centred $(n-1)$-dimensional cube of side $\delta_j$ in the lower face of each new cube with the centred $(n-1)$-dimensional cube of side $\delta_j$ in the horizontal hyperplane through the centre of~$D$. \end{itemize} There are no other identifications. The quotient, with its length metric, is $X_j$, and $\mathcal D_j$ consists of the ordinary and the new children of the cubes of~$\mathcal D_{j-1}$. Thus all the mesh cubes of the level~$j$ have the side~$h_j$, and each cube of $\mathcal D_{j-1}$ has $N_j$ children. A \emph{piece} is either $P_0$ or one of the new cubes; a new cube of the level~$i$ is a piece of \emph{generation}~$i$. Let $\mathcal P$ be the collection of the pieces. For a new piece~$P$, its \emph{host} $P^-$ is the piece which contains the mesh cube to which $P$ is attached, and its \emph{interface} $F_P$ is the cube of dimension $n-1$ along which it is attached. An interface in a piece~$P$ is either the incoming interface $F_P$, in its lower face, or the interface of a piece whose host is~$P$. Define \begin{equation*} \cS=\bigcup_j X_j\,,\qquad X=\overline{\cS}\,,\qquad \nu=\sum_{P\in\mathcal P}\Leb^n\rest_P\,,\qquad \nabla u|_P=\nabla_{\!\R^n}(u|_P)\,, \end{equation*} where the closure is the metric completion. For $D\in\mathcal D_j$, the \emph{cell} $U_D$ is the closure of the union of~$D$ and of its descendants. The reference measure $m$ is the image of the product probability measure that chooses one child uniformly at each step. A sequence of successive children $(D_j)$ is sent to the unique point of $\bigcap_j U_{D_j}$, since these cells are nested and their diameters tend to zero by Proposition~\ref{prop:cube-geometry} below. By~\eqref{eq:cube-branching}, the mass given by this product measure to the sequences passing through a cube of the level~$j$ is comparable to~$h_j^Q$. The resulting space is a countable Riemannian gluing in the sense of Definition~\ref{def:riemannian-gluing}. Its combinatorial structure is that of a tree: each cube carries, besides its dyadic subcubes, new cubes attached along small interfaces. Its pieces have dimension~$n$, and its reference measure distributes the mass equally among the $N_j\asymp2^Q$ children of each cube, as on a regular tree. \begin{proposition}\label{prop:cube-geometry} \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{cg:compact} The space $X$ is compact and geodesic, and each piece is isometrically embedded. \item\label{cg:mesh} For every fixed $L<\infty$, a ball of radius $L\,h_j$ in $X_j$ meets at most $C_L$ mesh cubes of the level $j$. \item\label{cg:retractions} There are $1$-Lipschitz retractions $\pi_j:X\to X_j$ such that \begin{equation}\label{eq:cube-stage-retractions} \pi_j(U_D)\subset D\quad(D\in\mathcal D_j)\,,\qquad \sup_{x\in X} d(x,\pi_jx)\le\sqrt n\,h_j\,. \end{equation} \item\label{cg:mass} Distinct cells of the same level meet in a set which is null for $m$ and for~$\nu$, and \begin{equation}\label{eq:cube-cell-mass} \diam U_D\le3\sqrt n\,h_j\,,\qquad m(U_D)\asymp h_j^Q\,, \qquad m(B(x,r))\asymp r^Q\quad(0j}h_i=h_j$, proves~\eqref{eq:cube-stage-retractions} and the bound for the diameter in~\eqref{eq:cube-cell-mass}. The finite stages are compact nets of~$X$ of arbitrarily small mesh, so the completion is compact. It is geodesic, as the completion of a geodesic space in which the distance is convex along geodesics. \emph{Step 2: the mesh bound.} Distinct interfaces in a piece of $X_j$ are $h_j$-separated. Indeed, in the coordinates of the piece, the interfaces of generation $i\le j$ have a normal coordinate which is an odd multiple of $h_i$, the incoming interface has the normal coordinate zero, and the interfaces of the same generation have centres which are $2h_i$-separated. Along a geodesic of length at most $L\,h_j$ issued from the centre of the ball, distinct interfaces are therefore crossed at most $\lfloor L\rfloor+1$ times. Each piece meets a bounded number of interfaces within the ball, by packing in the Euclidean space, and each interface meets at most $1+\sup_jK_j$ pieces. Hence the number of pieces met by the ball is bounded, and in each piece the packing gives the bound~\ref{cg:mesh}. \emph{Step 3: cells and the measure~$m$.} Distinct cells of the same level meet only in the intersection of their mesh cubes. Indeed the later attachments lie in a unique earlier cell, because the interfaces in a piece lie in the interiors of its mesh cubes of every strictly earlier level; the assertion then follows by projecting onto the finite stages and passing to the limit. A ball of radius $r\asymp h_j$ in $X$ meets a bounded number of cells of the level~$j$, by~\eqref{eq:cube-stage-retractions} and~\ref{cg:mesh}, and the sequences passing through a cube of the level~$j$ have the mass $\asymp h_j^Q$, by~\eqref{eq:cube-branching}. This proves the upper bound $m(B(x,r))\le C\,r^Q$. Consequently each piece is $m$-null, since it is covered by $O(r^{-n})$ balls of radius~$r$ and $Q>n$. It follows that the mass of a cell is the mass of the sequences passing through its cube, that distinct cells meet in an $m$-null set, and that $m(U_D)\asymp h_j^Q$. For the lower bound for the volume of balls, take a cell which contains the centre, with $3\sqrt n\,h_jj}\theta_k^n\,. \end{equation*} The numbers~$S_j$ tend to zero; they measure the total relative volume of the neighbourhoods of the interfaces of the generations after~$j$. \begin{lemma}\label{lem:cube-localized-retractions} Let $u\in\Lip(X_j)$ and $D\in\mathcal D_j$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{clr:local} In a piece of generation $i>j$, the function $u\circ\widetilde\pi_j$ is constant outside the ball of radius $C\delta_i$ about the centre of the incoming interface. \item\label{clr:count} For $k\ge j$, at most $C\,(h_j/h_k)^n$ of the mesh cubes of the level~$k$ in $U_D$ carry a nonconstant restriction of $u\circ\widetilde\pi_j$. \item\label{clr:energy} For $1\le p<\infty$, \begin{equation}\label{eq:cube-extension-energy} \int_{U_D\setminus X_j}|\nabla(u\circ\widetilde\pi_j)|^p\,d\nu \le C\,h_j^n\,S_j\,\Lip(u|_D)^p\,. \end{equation} \end{enumerate} \end{lemma} \begin{proof} \ref{clr:local} holds because the modified retraction of a new piece is constant outside the ball of radius $2R$ about the centre of its interface. \ref{clr:energy} Call a piece \emph{active} if the restriction of $u\circ\widetilde\pi_j$ to it is not constant, and give to a piece of generation~$k$ the weight~$\delta_k^n$. An active piece of generation $i>j$ has at most $C\,(\delta_i/h_k)^n$ active pieces of generation $k>i$ attached directly to it, and none when $h_k>C\delta_i$: their interfaces must meet the region where the function varies, and all of them are at a distance at least $h_k$ from the incoming face. The total weight of these pieces is at most $C\,\delta_i^n\,S_i$. Since $S_i\to0$, the total weight of an active piece of generation $i$ and of all the active pieces attached to it, directly or through a chain of attachments, is at most $C\,\delta_i^n$: for large $i$ this follows from a geometric series of ratio $1/2$, and for the remaining finitely many generations by backward induction. The number of pieces of generation $k>j$ attached directly to a subcube of $D$ is at most $C\,(h_j/h_k)^n$. Thus the total weight of the active pieces in $U_D\setminus X_j$ is at most $C\,h_j^n\,S_j$. By~\ref{clr:local}, the volume of the region where the function varies satisfies the same bound, and the Lipschitz constant of the function on $U_D$ is at most $\Lip(u|_D)$, because $\widetilde\pi_j$ is $1$-Lipschitz and maps $U_D$ into~$D$. This proves~\eqref{eq:cube-extension-energy}. \ref{clr:count} By the bounds just proved for direct attachments, the number of active pieces of generation $i>j$ in $U_D$ is at most \begin{equation*} C\,h_i^{-n}\Bigl(h_j^n+\sum_{P'}\delta_{j(P')}^n\Bigr)\le C\,\Bigl(\frac{h_j}{h_i}\Bigr)^n\,, \end{equation*} where the sum is over the active pieces~$P'$ attached earlier in the cell, and $j(P')$ is the generation of~$P'$. In an active piece of generation $i\le k$, only $C\,[1+(\delta_i/h_k)^n]$ mesh cubes of the level~$k$ meet the region where the function varies. Add over the active pieces, using the geometric sum of $(h_j/h_i)^n$ and the bound for the total weight, and include the $(h_j/h_k)^n$ subcubes of $D$ itself. \end{proof} \begin{proposition}\label{prop:cube-structure} \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{cube-structure:rank} The piecewise gradient defines a uniform gradient structure of constant rank $n$. The set $\mathcal A$ is an algebra, it is contained in $\cC_p$ for every $1\le p<\infty$, and it is uniformly dense in $C(X)$. \item\label{cube-structure:cutoff} The structure satisfies $\mathrm B(r^{Q+2-n})$ and $\mathrm B^+(r^{Q+2-n})$ with a common choice of cutoffs $\psi=\psi_x^r\in\mathcal A$ satisfying \begin{equation*} \Lip(\psi)\le \frac2r\,,\qquad \int_\cS|\nabla\psi|\,d\nu\le C\,r^{n-1}\,. \end{equation*} Thus $\Psi_{C,p}(r)=r^{Q+p-n}$ and $\Theta(r)=r^n$. \end{enumerate} \end{proposition} \begin{proof} \ref{cube-structure:rank} By~\eqref{eq:cube-extension-energy}, summed over the finitely many cubes of~$\mathcal D_j$, the functions of~$\mathcal A$ have finite $p$-energy for every~$p$, so $\mathcal A\subset\cC_p$. The compatibility of the retractions shows that $\mathcal A$ is an algebra, and $u\circ\widetilde\pi_j\to u$ uniformly for $u\in\Lip(X)$, by~\eqref{eq:cube-stage-retractions}. Extend the coordinate functions of each piece $P\subset X_j$, first to $X_j$ by McShane's theorem~\cite{McShane34}, and then to $X$ by composition with~$\widetilde\pi_j$. The resulting functions belong to~$\mathcal A$, and their gradients span $\R^n$ on $P$. Proposition~\ref{prop:riemannian-primitive} gives the remaining assertions. \ref{cube-structure:cutoff} Choose $j$ with $h_j\asymp r$ and $\sqrt n\,h_j\le r/8$, and take \begin{equation*} \psi(y)=\min\bigl\{1,\bigl(3-2\,d(\widetilde\pi_jy,\widetilde\pi_jx)/r\bigr)_+\bigr\}\,. \end{equation*} The nonexpanding retraction gives $\psi=1$ on $B(x,r)$, and~\eqref{eq:cube-stage-retractions} gives $\supp\psi\subset\overline{B(x,7r/4)}\subset B(x,2r)$. The last ball meets a bounded number of cells of the level~$j$. On each such cell, the energy on its mesh cube is at most $C\,h_j^n/r$, and the energy on the later pieces is at most $C\,h_j^n\,S_j/r$, by~\eqref{eq:cube-extension-energy} at $p=1$. Hence \begin{equation*} \int_\cS|\nabla\psi|\,d\nu\le C\,r^{n-1}\asymp\frac{r\,m(B(x,r))}{r^{Q+2-n}}\,, \end{equation*} which is~\eqref{eq:integrated-bump} with $\Psi_{C,2}(r)=r^{Q+2-n}$. For $0n\,. \end{cases} \end{equation} Indeed, on the box of the scale $\delta$ whose cross-section is~$F$, the fundamental theorem of calculus in the normal direction and the Euclidean Poincar\'e inequality bound the difference of the means on~$F$ and on the box by $C\,\delta^{1-n/p}$ times the norm of the gradient in~$L^p$. Then compare the means on the consecutive dyadic cubical annuli from the scale $\delta$ to the scale $h$, by the Poincar\'e inequality on the union of two consecutive annuli. These annuli, and the half-annuli in the case of a face, satisfy a uniform Poincar\'e inequality after scaling, because they are covered by a chain of bounded length of overlapping rectangular boxes, and the resulting integrals of the energy have bounded overlap. For $p>1$, H\"older's inequality gives the coefficient \begin{equation*} \Bigl(\sum_{\delta\lesssim2^k\delta\lesssim h}(2^k\delta)^{(p-n)/(p-1)}\Bigr)^{p-1}\asymp\kappa_p(h,\delta)\,, \end{equation*} and for $p=1$ the largest coefficient is $\delta^{1-n}$. The same orders occur in the formula for the capacity of Euclidean condensers~\cite[Proposition~10.8]{BBL}. The argument with boxes also gives an estimate for traces on flat sections, \begin{equation}\label{eq:cube-flat-trace} \int_F|u-\langle u\rangle_D|^p\,d\Haus^{n-1} \le C\,h^{p-1}\int_D|\nabla u|^p\,dx\,, \end{equation} whenever $F$ lies in a flat section of $D$, including a face: first take the mean in the normal coordinate, and then apply the Poincar\'e inequality on $D$. \paragraph{The Poincar\'e inequality on cells.} Put \begin{equation*} \rho_{p,j}=h_j^Q\,\kappa_p(h_j,\delta_j)\,. \end{equation*} Let $u\in\cC_p$, and let $D'$ be a child of $D\in\mathcal D_{j-1}$. If $D'$ is an ordinary child, compare its mean with that of $D$ by the Euclidean Poincar\'e inequality. If $D'$ is a new child, compare the two means with the mean on the interface, using~\eqref{eq:cube-window-mean} on each side. Since $\kappa_p(h,\delta)\ge h^{p-n}$, in both cases \begin{equation*} m(U_{D'})\,|\langle u\rangle_{D'}-\langle u\rangle_D|^p \le C\,\rho_{p,j}\left(\int_D|\nabla u|^p\,d\nu+ \int_{D'}|\nabla u|^p\,d\nu\right)\,. \end{equation*} Suppose that $\sum_{i>j}\rho_{p,i}^{1/p}\le C\,\rho_{p,j}^{1/p}$ for all~$j$. Then, for $D\in\mathcal D_j$, \begin{equation}\label{eq:cube-cell-Poincare} \int_{U_D}|u-\langle u\rangle_D|^p\,dm \le C\,\rho_{p,j}\int_{U_D}|\nabla u|^p\,d\nu\,. \end{equation} Indeed, let $A_iu$ be the function equal to $\langle u\rangle_{D'}$ on~$U_{D'}$, for each $D'\in\mathcal D_i$. By the preceding inequality, in which each integral of the energy appears a bounded number of times, \begin{equation*} \|A_iu-A_{i-1}u\|_{L^p(U_D,m)}\le C\,\rho_{p,i}^{1/p}\,\|\nabla u\|_{L^p(U_D,\nu)}\qquad(i>j)\,. \end{equation*} Sum over $i>j$, and use the uniform convergence of $A_iu$ to the Lipschitz function~$u$. This telescoping argument is related to the trace estimates on weighted trees of~\cite[Theorem~3.2]{KNW22}. \paragraph{Closability.} The next theorem determines the exponents of closability and describes the Sobolev functions on each piece. \begin{theorem}\label{thm:cube-closed-family-domain} \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{ccd:range} For $1\le p<\infty$, the structure is closable at~$p$ if and only if \begin{equation}\label{eq:cube-closed-range} p\ge p_*:=\frac{n\sigma}{n-2+\sigma}\,. \end{equation} \item\label{ccd:restriction} At each exponent of closability, the restriction to any piece~$P$ extends to a continuous map $W^{1,p}(X,m)\to W^{1,p}(P)$, and the Euclidean gradient of the restriction of~$f$ is $\nabla_pf|_P$. \item\label{ccd:density} For exponents of closability $p>1$, the algebra $\mathcal A$ is dense in $W^{1,p}(X,m)$ for the graph norm. \end{enumerate} \end{theorem} For $n=2$ the threshold is $p_*=2$. For $n>2$ it lies below two and decreases to zero as $\sigma\downarrow0$. Thus two is always an exponent of closability. The condition $p\ge p_*$ is precisely boundedness of $h_j^n\kappa_p(h_j,\delta_j)$. Under this bound, convergence in the graph norm determines a Sobolev restriction on each piece from the $L^p(m)$ class. Below the threshold one can make a function vanish on the interfaces at a summable cost in energy. Its limit on the root can then have nonzero gradient even when the functions converge to zero in $L^p(m)$. \begin{proof}[Proof of~\ref{ccd:range} for $p\ge p_*$, and of~\ref{ccd:restriction}] Since $\mathcal A\subset\cC_p$ is uniformly dense in~$C(X)$ and its gradients span the fibres (Proposition~\ref{prop:cube-structure}\ref{cube-structure:rank}), \ref{A1} and~\ref{A3} hold for every~$p$. \emph{Step 1: recovery of the values on a piece.} Let $P$ be a piece, and let $j$ be at least its generation. For $f\in L^p(m)$, define $R_j^P f$ on each mesh cube $D\subset P$ of the level~$j$ as the constant $\fint_{U_D}f\,dm$. For fixed~$j$, this is a bounded map $L^p(m)\to L^p(P)$. The Euclidean Poincar\'e inequality and~\eqref{eq:cube-cell-Poincare} imply, for $u\in\cC_p$, \begin{equation}\label{eq:cube-recovery-error} \|u|_P-R_j^Pu\|_{L^p(P)}^p \le C\bigl(h_j^p+h_j^{n-Q}\rho_{p,j}\bigr)\,\|\nabla u\|_{L^p(\nu)}^p\,. \end{equation} \emph{Step 2: the coefficient.} The coefficient $h_j^{n-Q}\rho_{p,j}=h_j^n\,\kappa_p(h_j,\delta_j)$ is bounded in~$j$ if and only if $p\ge p_*$. Indeed, by~\eqref{eq:cube-windows}: \begin{itemize} \item for $n>2$ and $p2$; \item for $p>n$ it is equal to $h_j^p$. \end{itemize} In all the cases where the coefficient is bounded, $\rho_{p,j}\le C\,h_j^{Q-n}$, and $\rho_{p,j}$ has the geometric decay, up to a power of~$j$, which was assumed for~\eqref{eq:cube-cell-Poincare}. \emph{Step 3: closability and restriction.} Fix $p\ge p_*$. The inequality~\eqref{eq:cube-recovery-error} at one fixed $j$ shows that the restriction to~$P$ is continuous from~$\cC_p$, with the graph norm, to $W^{1,p}(P)$. Let $u_k\in\cC_p$ with $u_k\to0$ in $L^p(m)$ and $\nabla u_k\to G$ in $L^p(\nu)$, and let $v_P$ be the limit of $u_k|_P$ in $W^{1,p}(P)$, so that $\nabla v_P=G|_P$. Apply~\eqref{eq:cube-recovery-error} to $u_k-u_\ell$ and let $k\to\infty$. This gives \begin{equation*} \|v_P-u_\ell|_P+R_j^Pu_\ell\|_{L^p(P)} \le C\,\|G-\nabla u_\ell\|_{L^p(\nu)}\,, \end{equation*} with a constant independent of~$j$. For fixed $\ell$, $R_j^Pu_\ell\to u_\ell|_P$ uniformly as $j\to\infty$, because the diameters of the cells tend to zero. Letting $j\to\infty$ and then $\ell\to\infty$ gives $v_P=0$. Thus $G|_P=0$ on every piece, which proves~\ref{A2}. The continuity of the restriction on~$\cC_p$ extends to $W^{1,p}(X,m)$, which gives~\ref{ccd:restriction}. \end{proof} The failure of closability below~$p_*$ is Lemma~\ref{lem:cube-nonclosability}. The density~\ref{ccd:density} is proved in Section~\ref{subsec:cube-density}, after the Poincar\'e inequalities. \begin{lemma}\label{lem:cube-nonclosability} If $1\le p2$ both statements follow from $(n-p)\sigma/(n-2)>p$, which is equivalent to $pJ$, let $\chi_i$ be the sum of disjoint cutoffs equal to one on the interfaces of generation $i$ in~$P_0$, supported within the distance $C\delta_i$ of their centres, with gradients bounded by $C/\delta_i$. Then \begin{equation*} \|\nabla\chi_i\|_{L^p(P_0)}^p\le C\,h_i^{-n}\delta_i^{n-p}\,, \end{equation*} and the total volume of the supports of the $\chi_i$, $i>J$, in the corner of side $h_J/4$ is at most $C\,h_J^n\,S_J$. For large $J$ this is smaller than half the volume of the region where $v=1$. Hence \begin{equation*} w_j=v\prod_{Jj$ with $2R2\,,\ p2\,,\ p=n\,,\\ r^{Q+p-n}\,,&p>n\,. \end{cases} \end{equation} This is the sharp radius-only scale, in the sense that any radius-only Poincar\'e coefficient $\Psi(r)$ is bounded below by $c\,\Psi_{P,p}(r)$ at small radii. For $p>n$ it matches the cutoff scale $r^{Q+p-n}$. For exponents of closability $p\le n$, no common point-dependent scale satisfying uniform fixed-dilation comparison can give both the Poincar\'e inequality and the $p$-energy bound for Lipschitz cutoffs of Chapter~\ref{sec:hyp}. \end{proposition} In all cases $\Psi_{P,p}(r)\asymp r^Q\,\kappa_p(r,\delta(r))$, where $\delta(r)$ is the side of the interfaces of the levels~$j$ with $h_j\asymp r$. For $p>n$ the size of the interfaces plays no role, because points have positive $p$-capacity. For exponents of closability $p\le n$, the ratio $\Psi_{P,p}(r)/\Psi_{C,p}(r)\asymp r^{n-p}\,\kappa_p(r,\delta(r))$ tends to infinity as $r\to0$. At the exponent two, \begin{equation*} \Psi_{P,2}(r)\asymp r^{-\sigma}\,\Psi_{C,2}(r)\qquad\text{for every }n\ge2\,. \end{equation*} \begin{proof} \emph{Step 1: the upper bound.} Choose $j$ with $h_j\asymp r$. A bounded number of cells of the level~$j$ meet $B(x,r)$, and their mesh cubes lie in a ball of radius $C\,r$ about $\pi_jx$ in~$X_j$. The points of the projected ball are joined to its centre by geodesics, which yields chains of a bounded number of intersecting mesh cubes in this ball. We compare the means of~$u$ on two intersecting cubes of a chain. \begin{itemize} \item If the two cubes lie in the same piece, the Euclidean Poincar\'e inequality in a box which contains them bounds the $p$th power of the difference of their means by $C\,h_j^{p-n}$ times the energy in the box. \item If they meet across an interface of generation $i\le j$, choose a flat subcube of this interface which contains the point of intersection, of side $s=\min(\delta_i,c_n h_j/2)$ with $c_n=(64\sqrt n)^{-1}$. On each side take a box of side comparable to $h_j$, centred tangentially at this subcube, with the subcube in a face or in the central section. These boxes fit in the pieces because the interface is centred. The mean on each box is compared with the mean on the nearby mesh cube by the Euclidean Poincar\'e inequality, and the means on the two boxes are compared by~\eqref{eq:cube-window-mean}. Since $s\ge c\,\delta_j$, the resulting coefficient is at most $C\,\kappa_p(h_j,\delta_j)$. \item For two pieces which share an incoming interface, use the same comparison through their host. \end{itemize} All the boxes lie in a fixed dilation of $B(x,r)$. Apply~\eqref{eq:cube-cell-Poincare} in each cell, and the comparison of the means along the chains, with $m(U_D)\asymp h_j^Q$. This gives the Poincar\'e inequality on the ball at the scale $\rho_{p,j}$, and~\eqref{eq:cube-windows} gives~\eqref{eq:cube-P-scale}. \emph{Step 2: test functions.} Let $P$ be a new piece of generation $i$, and let $z_F$ be the centre of its incoming interface. On $X_i$, let $u_P$ be the function equal to zero outside $P$ and to $1-\chi_R$ on $P$, with $\sqrt n\,\delta_i\le R\le h_i/8$, and extend it by composition with~$\widetilde\pi_i$. For $pn$ take $R=h_i/8$. For $p=n$, take the average of these functions over the dyadic radii in this interval, and use~\eqref{eq:cube-correction-extension} and the disjointness of the annuli. In the three cases \begin{equation}\label{eq:cube-branch-test} 0\le u_P\le1\,,\qquad \cE_p(u_P)\le C\,\kappa_p(h_i,\delta_i)^{-1}\,, \qquad \supp u_P\subset U_P\,. \end{equation} \emph{Step 3: sharpness.} The function $u_P$ is equal to one on a cell in the half of $P$ which is far from the interface, and to zero on the cell of an ordinary child of the mesh cube to which $P$ is attached. Both cells have a measure $\asymp h_i^Q$ and lie in $B(z_F,C\,h_i)$. Hence the left-hand side of the Poincar\'e inequality for~$u_P$ on this ball is at least $c\,h_i^Q$, while the right-hand side is at most the scale times $\cE_p(u_P)$. The same holds on every ball $B(z_F,r)$ with $r\ge C\,h_i$. By~\eqref{eq:cube-branch-test}, a radius-only Poincar\'e coefficient satisfies $\Psi(r)\ge c\,h_i^Q\,\kappa_p(h_i,\delta_i)$ for these radii. The generations at which new pieces are attached have bounded gaps, so for every sufficiently small radius~$r$ there is such an~$i$ with $C\,h_i0$ have bounded gaps, so $D$ has a descendant which is a new piece $P$ of side $h_i\asymp r$. The function $u_P$ in~\eqref{eq:cube-branch-test} has support in $U_P\subset U_D$ and is one on a cell of mass at least $c h_i^Q$. Its energy is at most $C h_i^{n-2+\sigma}$ by~\eqref{eq:cube-windows} and~\eqref{eq:cube-branch-test}, including $n=2$, where $[1+\log(h_i/\delta_i)]^{-1}\asymp h_i^\sigma$. Its Rayleigh quotient gives the lower bound in~\eqref{eq:cube-ball-spectrum}. \emph{The two annuli.} Fix $P,x,r$ as in the statement. To bound $C_2(x,r)$ below, we first identify the Sobolev restriction of a continuous $f\in\cF$ with its ordinary restriction to $P$. Write $T_P f$ for the restriction of Theorem~\ref{thm:cube-closed-family-domain}\ref{ccd:restriction}. At $p=2$ we have $h_j^n\kappa_2(h_j,\delta_j)\asymp h_j^{2-\sigma}$. Passing from the core to the form domain in~\eqref{eq:cube-recovery-error}, first for fixed $j$, gives \begin{equation*} \|T_P f-R_j^P f\|_{L^2(P)}^2 \le C\bigl(h_j^2+h_j^{2-\sigma}\bigr)\,\cE(f,f)\longrightarrow0\,. \end{equation*} For continuous $f$, the cell averages $R_j^P f$ also converge uniformly on the mesh cubes to $f|_P$, since their cells have diameter at most $3\sqrt n\,h_j$. Thus $T_P f=f|_P$ almost everywhere on $P$. The capacity can be computed with continuous test functions as in Section~\ref{sp:sec:squeeze}. Since $P$ is isometrically embedded and $2rn$ and $0<\sigma<2$. Thus the tree satisfies two-sided power growth of its ball spectral scale. By Corollary~\ref{sp:cor:compact}, the failure of $\EHI$ excludes a common regular scale $\Psi(x,r)$ for the quadratic Poincar\'e inequality and upper capacity bound, and excludes the corresponding two-sided heat kernel estimate. Thus volume doubling, a Poincar\'e inequality and a uniform power growth of the ball spectral scale do not imply the elliptic Harnack inequality, and the latter cannot be omitted from condition~\ref{sp:main:ehi} of Theorem~\ref{sp:thm:main}. Mariano and Wang~\cite[Theorem~1.4]{MW26} obtained a counterexample of the same type on the Euclidean plane: a diffusion with volume doubling and a Poincar\'e inequality for which $\lambda_1(B(x,r))\asymp r^{-2}$ uniformly, whereas the mean exit time from a ball of radius~$r$ centred on a line, started at its centre, is of order~$r^3$ as $r\downarrow0$. In their example the spectral scale and the mean exit time scale differ on these balls. On the tree of cubes the defect is seen on capacities: the two annular capacities $C_2(x,r)$ and $C_A(x,r)$ of Corollary~\ref{cor:cube-spectrum-ehi} are not comparable. \subsection{The tree of cubes: density of the algebra \texorpdfstring{$\mathcal A$}{A}}\label{subsec:cube-density} We prove Theorem~\ref{thm:cube-closed-family-domain}\ref{ccd:density}. Fix an exponent of closability $p>1$ and $u\in\cC_p$. First consider the direct approximations $u_j=(u|_{X_j})\circ\widetilde\pi_j$. They agree with $u$ on $X_j$ and converge uniformly to $u$. Summing~\eqref{eq:cube-extension-energy} over the $O(h_j^{-Q})$ cells of level $j$ gives \begin{equation*} \int_{\cS\setminus X_j}|\nabla u_j|^p\,d\nu \le C\,\Lip(u)^p h_j^{n-Q} S_j\,. \end{equation*} For $n=2$, $S_j\le C\exp(-2h_{j+1}^{-\sigma})$, so the right-hand side tends to zero for every $Q>2$. Since $\int_{\cS\setminus X_j}|\nabla u|^p\,d\nu\to0$, this proves convergence in the graph norm. For $n>2$ we have $S_j\asymp h_j^{n\sigma/(n-2)}$, and the same proof applies when $Q0$, depending only on~$n$, so small that their $2\eta h$-neighbourhoods are disjoint. \paragraph{Step 1: mollification on the pieces.} Reflect $u|_P$ across the faces of $P$ and mollify at the scale $\eta h/10$, as in~\cite[Lemma~9.2 and Section~9.2]{Brezis11}. For a mesh cube $D\subset P$, let $\widehat D$ be its $h$-neighbourhood in $P$ for the maximum norm. The mollified function, still denoted by~$v_j$, satisfies \begin{equation}\label{eq:cube-smooth-local} \Lip(v_j|_D)\le C\,h^{-n/p}\,\|\nabla u\|_{L^p(\widehat D)}\,,\qquad \|v_j-u\|_{L^p(D)}\le C\,h\,\|\nabla u\|_{L^p(\widehat D)}\,. \end{equation} Indeed, subtracting the mean of $u$ on $\widehat D$, the oscillation of the mollified function from this mean is at most $C\,h^{1-n/p}\|\nabla u\|_{L^p(\widehat D)}$, by the Euclidean Poincar\'e inequality, and the error in~$L^p$ is given by the estimate for translations in the convolution. The mollified functions of two pieces do not agree on their interface; the next two steps correct this. \paragraph{Step 2: wide interfaces.} On each interface of side at least $\eta h/(400\sqrt n)$, mollify the common restriction of $u$ tangentially at the scale $\eta h/(1600\sqrt n)$, after reflection at the edge, and compose the resulting function with the projection onto the interface. Blend it with the mollifications of the incident pieces, using a Lipschitz cutoff equal to one within the distance $\eta h$ of the interface and to zero beyond $2\eta h$. For each mesh cube $D$ which is affected, the estimate~\eqref{eq:cube-flat-trace} on $\widehat D$ bounds in~$L^p$ the trace of~$u$ minus the mean of $u$ on $\widehat D$. The convolution in dimension $n-1$ then bounds the oscillation from this mean by $C\,h^{1-n/p}\|\nabla u\|_{L^p(\widehat D)}$, and the tangential gradient by $C\,h^{-n/p}\|\nabla u\|_{L^p(\widehat D)}$. Thus~\eqref{eq:cube-smooth-local} still holds, and the corrected functions agree on these interfaces. \paragraph{Step 3: narrow interfaces.} Let $F$ be an interface of smaller side $\delta$, with centre~$z_F$. On each incident piece~$P$, first flatten the mollification to the mean $a_P$ of $u$ on the box $P\cap(z_F+(-2\eta h,2\eta h)^n)$, using a cutoff equal to one at the distances at most $\eta h/2$ from~$z_F$ and to zero at the distances at least $\eta h$. The same estimate for convolutions on this box proves~\eqref{eq:cube-smooth-local} for the flattened function. Let $t$ be the mean of $u$ on the interface, which is common to the incident pieces. Add to the flattened function the correction $(t-a_P)\,\chi$, where $\chi$ is the weighted average of the functions $\chi_R$ of~\eqref{eq:cube-correction-extension}, for the dyadic radii from $\sqrt n\,\delta$ to a radius comparable to $\eta h/8$, with $R\le\eta h/8$, and with weights proportional to $R^{(p-n)/(p-1)}$. The support of~$\chi$ lies in the flattened region, and $\chi=1$ on the interface. By~\eqref{eq:cube-correction-extension} and the disjointness of the annuli, the energy of~$\chi$ on the piece and on the later pieces attached to it is at most $C\,\kappa_p(h,\delta)^{-1}$. By~\eqref{eq:cube-window-mean} on the box of the scale $\eta h$, $|t-a_P|^p$ is at most $C\,\kappa_p(h,\delta)$ times the energy of $u$ on that box. Hence the energy of the correction, including its extension, is at most a constant times the energy of~$u$ on the box. Its error in~$L^p(P)$ is at most $C\,h$ times the norm of its own gradient in~$L^p$, by the Euclidean Poincar\'e inequality, since it vanishes on a fixed proportion of the box. \paragraph{Step 4: the bounds.} The modified functions agree on all the interfaces of~$X_j$, so they define $v_j\in\Lip(X_j)$. The boxes $\widehat D$ have bounded overlap, and so have the boxes at the interfaces. By~\eqref{eq:cube-extension-energy}, the energy on $U_D$ of the part which satisfies~\eqref{eq:cube-smooth-local} is at most $C\,(1+S_j)\int_{\widehat D}|\nabla u|^p\,dx$. The corrections at the narrow interfaces are supported in disjoint regions of a piece, and their extensions have disjoint supports on the later pieces attached to that piece. Here each part of the decomposition is composed with the retraction only on the later pieces attached to its own piece. Summing gives~\eqref{eq:cube-density-bounds}. \paragraph{Step 5: weak limit.} The inequality~\eqref{eq:cube-cell-Poincare} on the root cell, and the bound for the mean on the root given by the second estimate of~\eqref{eq:cube-density-bounds}, bound $v_j\circ\widetilde\pi_j$ in the graph norm. Since $p>1$, the space $W^{1,p}(X,m)$ is reflexive, and a subsequence converges weakly to some~$w$. By the continuity of the restriction (Theorem~\ref{thm:cube-closed-family-domain}\ref{ccd:restriction}) and the second bound of~\eqref{eq:cube-density-bounds}, the restriction of~$w$ to every piece~$P$ is $u|_P$. Therefore $w-u$ has zero gradient and zero mean on the root, and it vanishes, by~\eqref{eq:cube-cell-Poincare} on the root cell, extended to $W^{1,p}(X,m)$ by convergence in the graph norm. The closure of the linear space $\mathcal A$ for the graph norm is weakly closed. It contains~$u$, hence~$\cC_p$, and hence $W^{1,p}(X,m)$. \qed \subsection{The tree of cubes: critical Korevaar--Schoen spaces}\label{subsec:cube-KS} We compute the critical exponents of Definition~\ref{def:KS-critical} for every $p\ge1$, including the exponents at which the structure is not closable, and we compare the critical space with the Sobolev space. \begin{theorem}\label{thm:cube-KS} \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{cks:exponents} For every $1\le p<\infty$, \begin{equation}\label{eq:cube-KS-exponents} \alpha_p^{\mathrm{dens}}=\alpha_p=1+\frac{Q-n}{p}\,, \end{equation} and both thresholds are attained. \item\label{cks:matching} If $p>n$, the critical space $KS^{1+(Q-n)/p,p}(X)$ is equal to $W^{1,p}(X,m)$, and the weak monotonicity holds: \begin{equation}\label{eq:cube-weak-monotonicity} \sup_{0n$. The weak monotonicity~\eqref{eq:cube-weak-monotonicity} is the comparison of the supremum and of the lower limit of the Korevaar--Schoen energies at the same exponent, as in~\cite[Section~4.2]{Bau24}. In~\eqref{eq:cube-two-scale-monotonicity} the two sides are normalized by different scales, and their ratio measures the difference between the norm of the critical space and the graph norm of the closed gradient. \begin{proof} \emph{Step 1: the algebra~$\mathcal A$ lies in the critical space.} Let $u\in\mathcal A$ factor through $X_J$, and suppose that it is constant on all but $M$ mesh cubes of the level~$J$. By Lemma~\ref{lem:cube-localized-retractions}\ref{clr:count}, the number of mesh cubes of the level $j\ge J$ on which $u$ is not constant is at most $C\,M\,(h_J/h_j)^n$. Let $r\asymp h_j$. If $d(x,y)1+(Q-n)/p$ satisfies $D_p(f,r)=o(r^{Q+p-n})$. With Step~1, this proves~\ref{cks:exponents}. \emph{Step 6: comparison at the critical exponent.} Theorem~\ref{thm:KS} and Proposition~\ref{prop:cube-two-scales} give~\ref{cks:two-scales} at every exponent of closability~$p$; for $p>n$ the scales match, which gives~\ref{cks:matching}. \emph{Step 7: failure of the weak monotonicity for $p\le n$.} Let $u_P$ be the function of~\eqref{eq:cube-branch-test}, for a new piece~$P$ of generation~$i$. The two cells on which it takes the values zero and one give \begin{equation}\label{eq:cube-KS-coarse-lower} \frac{D_p(u_P,C\,h_i)}{(C\,h_i)^{Q+p-n}}\ge c\,h_i^{n-p}\,. \end{equation} For the small scales, consider first a single radial cutoff of radius $R$. At the level $J$ with $2R1$ admitting weak Poincar\'e inequality, \emph{Geom. Funct. Anal.} \textbf{10} (2000), 111--123. \href{https://doi.org/10.1007/s000390050003}{doi:10.1007/s000390050003}. Erratum, \emph{Geom. Funct. Anal.} \textbf{12} (2002), 650, \href{https://doi.org/10.1007/s00039-002-8261-9}{doi:10.1007/s00039-002-8261-9}. \bibitem{LierlPHI} J.~Lierl, Parabolic Harnack inequality on fractal-type metric measure Dirichlet spaces, \emph{Rev. Mat. Iberoam.} \textbf{34} (2018), 687--738, \href{https://doi.org/10.4171/RMI/1001}{doi:10.4171/RMI/1001}. \bibitem{MMS16} N.~Marola, M.~Miranda Jr. and N.~Shanmugalingam, Characterizations of sets of finite perimeter using heat kernels in metric spaces, \emph{Potential Anal.} \textbf{45} (2016), 609--633. \bibitem{MW26} P.~Mariano and J.~Wang, Spectral characterizations of sub-Gaussian heat kernel bounds, preprint (2026), \href{https://arxiv.org/abs/2611.31712v1}{arXiv:2611.31712v1}. \bibitem{Maruyama49} G.~Maruyama, The harmonic analysis of stationary stochastic processes, \emph{Mem. Fac. Sci. Kyushu Univ. Ser.~A} \textbf{4} (1949), no.~1, 45--106. \href{https://doi.org/10.2206/kyushumfs.4.45}{doi:10.2206/kyushumfs.4.45}. \bibitem{Maz11} V.~Maz'ya, \emph{Sobolev Spaces with Applications to Elliptic Partial Differential Equations}, second edition, Grundlehren der mathematischen Wissenschaften~342, Springer, Heidelberg, 2011. \bibitem{McShane34} E.~J.~McShane, Extension of range of functions, \emph{Bull. Amer. Math. Soc.} \textbf{40} (1934), 837--842. \href{https://doi.org/10.1090/S0002-9904-1934-05978-0}{doi:10.1090/S0002-9904-1934-05978-0}. \bibitem{Miranda03} M.~Miranda Jr., Functions of bounded variation on ``good'' metric spaces, \emph{J. Math. Pures Appl. (9)} \textbf{82} (2003), 975--1004. \bibitem{Moser64} J.~Moser, A Harnack inequality for parabolic differential equations, \emph{Comm. Pure Appl. Math.} \textbf{17} (1964), 101--134. \href{https://doi.org/10.1002/cpa.3160170106}{doi:10.1002/cpa.3160170106}. Correction, \emph{Comm. Pure Appl. Math.} \textbf{20} (1967), 231--236. \bibitem{Moser71} J.~Moser, On a pointwise estimate for parabolic differential equations, \emph{Comm. Pure Appl. Math.} \textbf{24} (1971), 727--740. \href{https://doi.org/10.1002/cpa.3160240507}{doi:10.1002/cpa.3160240507}. \bibitem{MS25} M.~Murugan and R.~Shimizu, First-order Sobolev spaces, self-similar energies and energy measures on the Sierpi\'nski carpet, \emph{Comm. Pure Appl. Math.} \textbf{78} (2025), 1523--1608. \href{https://doi.org/10.1002/cpa.22247}{doi:10.1002/cpa.22247}. \bibitem{MSC} M.~Murugan and L.~Saloff-Coste, Davies' method for anomalous diffusions, \emph{Proc. Amer. Math. Soc.} \textbf{145} (2017), no.~4, 1793--1804, \href{https://doi.org/10.1090/proc/13324}{doi:10.1090/proc/13324}. \bibitem{MurChain} M.~Murugan, On the length of chains in a metric space, \emph{J. Funct. Anal.} \textbf{279} (2020), 108627. \href{https://doi.org/10.1016/j.jfa.2020.108627}{doi:10.1016/j.jfa.2020.108627}. \bibitem{Mur25Dim} M.~Murugan, Martingale and analytic dimensions coincide under Gaussian heat kernel bounds, \emph{Bull. Sci. Math.} \textbf{204} (2025), 103710. \href{https://doi.org/10.1016/j.bulsci.2025.103710}{doi:10.1016/j.bulsci.2025.103710}. \bibitem{NSW} A.~Nagel, E.~M.~Stein and S.~Wainger, Balls and metrics defined by vector fields I. Basic properties, \emph{Acta Math.} \textbf{155} (1985), 103--147, \href{https://doi.org/10.1007/BF02392539}{doi:10.1007/BF02392539}. \bibitem{Nash58} J.~Nash, Continuity of solutions of parabolic and elliptic equations, \emph{Amer. J. Math.} \textbf{80} (1958), 931--954. \href{https://doi.org/10.2307/2372841}{doi:10.2307/2372841}. \bibitem{PP10} K.~Pietruska-Pa\l uba, Heat kernel characterisation of Besov--Lipschitz spaces on metric measure spaces, \emph{Manuscripta Math.} \textbf{131} (2010), 199--214. \href{https://doi.org/10.1007/s00229-009-0310-3}{doi:10.1007/s00229-009-0310-3}. \bibitem{PiSC08} M.~Pivarski and L.~Saloff-Coste, Small time heat kernel behavior on Riemannian complexes, \emph{New York J. Math.} \textbf{14} (2008), 459--494. \bibitem{Raj21} T.~Rajala, Approximation by uniform domains in doubling quasiconvex metric spaces, \emph{Complex Anal. Synerg.} \textbf{7} (2021), Art.~4. \href{https://doi.org/10.1007/s40627-021-00062-3}{doi:10.1007/s40627-021-00062-3}. \bibitem{Rajala12} T.~Rajala, Interpolated measures with bounded density in metric spaces satisfying the curvature-dimension conditions of Sturm, \emph{J. Funct. Anal.} \textbf{263} (2012), no.~4, 896--924, \href{https://doi.org/10.1016/j.jfa.2012.05.006}{doi:10.1016/j.jfa.2012.05.006}. \bibitem{RVGMC} R.~Rhodes and V.~Vargas, Gaussian multiplicative chaos and applications: a review, \emph{Probab. Surv.} \textbf{11} (2014), 315--392, \href{https://doi.org/10.1214/13-PS218}{doi:10.1214/13-PS218}. \bibitem{SC} L.~Saloff-Coste, \emph{Aspects of Sobolev-Type Inequalities}, London Mathematical Society Lecture Note Series~289, Cambridge University Press, Cambridge, 2002. \bibitem{SC92} L.~Saloff-Coste, A note on Poincar\'e, Sobolev, and Harnack inequalities, \emph{Internat. Math. Res. Notices} \textbf{1992} (1992), no.~2, 27--38. \href{https://doi.org/10.1155/S1073792892000047}{doi:10.1155/S1073792892000047}. \bibitem{Sasaya26} K.~Sasaya, Construction of $p$-energy measures associated with strongly local $p$-energy forms, \emph{J. Funct. Anal.} \textbf{291} (2026), 111489. \href{https://doi.org/10.1016/j.jfa.2026.111489}{doi:10.1016/j.jfa.2026.111489}. \bibitem{Sasaya26NL} K.~Sasaya, The strongly local part of nonlinear Dirichlet structures and its energy measures, preprint (2026), \href{https://arxiv.org/abs/2611.14400v1}{arXiv:2611.14400v1}. \bibitem{ScCubical} A.~Schioppa, Examples of $2$-unrectifiable normal currents, \href{https://arxiv.org/abs/1508.00756v2}{arXiv:1508.00756v2} (2016). \bibitem{Sc} A.~Schioppa, Derivations and Alberti representations, \emph{Adv. Math.} \textbf{293} (2016), 436--528. \bibitem{Shan00} N.~Shanmugalingam, Newtonian spaces: An extension of Sobolev spaces to metric measure spaces, \emph{Rev. Mat. Iberoam.} \textbf{16} (2000), 243--279. \href{https://doi.org/10.4171/RMI/275}{doi:10.4171/RMI/275}. \bibitem{Shimizu25} R.~Shimizu, Characterizations of Sobolev functions via Besov-type energy functionals in fractals, \emph{Potential Anal.} \textbf{63} (2025), 2121--2156; \href{https://arxiv.org/abs/2410.15317v2}{arXiv:2410.15317v2}. \bibitem{Stollmann10} P.~Stollmann, A dual characterization of length spaces with application to Dirichlet metric spaces, \emph{Studia Math.} \textbf{198} (2010), 221--233. \bibitem{Sturm06b} K.-T.~Sturm, On the geometry of metric measure spaces.~II, \emph{Acta Math.} \textbf{196} (2006), 133--177, \href{https://doi.org/10.1007/s11511-006-0003-7}{doi:10.1007/s11511-006-0003-7}. \bibitem{STProj} B.~Steinhurst and A.~Teplyaev, Spectral analysis on Barlow and Evans' projective limit fractals, \emph{J. Spectr. Theory} \textbf{11} (2021), 91--123. \href{https://doi.org/10.4171/JST/337}{doi:10.4171/JST/337}. \bibitem{Sturm94} K.-T.~Sturm, Analysis on local Dirichlet spaces.~I. Recurrence, conservativeness and $L^p$-Liouville properties, \emph{J. Reine Angew. Math.} \textbf{456} (1994), 173--196. \bibitem{Sturm96} K.-T.~Sturm, Analysis on local Dirichlet spaces.~III. The parabolic Harnack inequality, \emph{J. Math. Pures Appl. (9)} \textbf{75} (1996), 273--297. \bibitem{Sturm97} K.-T.~Sturm, Is a diffusion process determined by its intrinsic metric?, \emph{Chaos Solitons Fractals} \textbf{8} (1997), 1855--1860. \bibitem{Telcs06} A.~Telcs, The Einstein relation for random walks on graphs, \emph{J. Stat. Phys.} \textbf{122} (2006), 617--645. \href{https://doi.org/10.1007/s10955-005-8002-1}{doi:10.1007/s10955-005-8002-1}. \bibitem{We} N.~Weaver, Lipschitz algebras and derivations.~II. Exterior differentiation, \emph{J. Funct. Anal.} \textbf{178} (2000), 64--112. \bibitem{YangDichotomyII} M.~Yang, On the dichotomy of $p$-walk dimensions on metric measure spaces~II, preprint (2026), \href{https://arxiv.org/abs/2611.02422}{arXiv:2611.02422}. \bibitem{ShamovGMC} A.~Shamov, On Gaussian multiplicative chaos, \emph{J. Funct. Anal.} \textbf{270} (2016), 3224--3261, \href{https://doi.org/10.1016/j.jfa.2016.03.001}{doi:10.1016/j.jfa.2016.03.001}. \end{thebibliography} \end{document}