%% ---- 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}}} \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 1, 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. Trees can still have a complicated geometry and genuinely be fractal sets; For instance, 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$ on $X$ 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. \vspace{0.5cm} The motivation for this work was to develop a theory of \emph{higher rank} spaces. Obviously, an $n$-dimensional Riemannian manifold should have \emph{rank n} since the gradient takes values in an $n$-dimensional space. The notion of a gradient structure on metric spaces we are interested accommodates both cases and allows for fractal examples. \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*} There will be reference measure on $(X,d)$, often the Hausdorff measure, so that from the beginning we will consider metric measures spaces $(X,d,m)$. The definition of gradient structure, and this the fundamental feature allowing genuinely fractal examples, allows $\nu$ to be singular with respect to the \emph{reference measure} $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$ and pointwise index~$n(x)$ in the sense of Hino~\cite{Hi10,Hi13}. Its 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}.} The methodology was the following: \begin{enumerate} \item I had an informal notion of a gradient structure in mind and looked for examples before formalizing it. Trees give examples of rank one. I was particularly interested in examples of rank $n\ge2$ with $m\perp\nu$. For trees whose length measures are singular with respect to their reference measures, the natural product still has rank one, since the measures carrying the partial derivatives are mutually singular. In my first prompt to Astra 6, I supplied earlier work, including~\cite{BCY}, and asked, in substance, whether limits of cubes glued along their interfaces could carry a weak gradient obtained from the ordinary gradients on the cubes, just as the derivative on the Vicsek set is obtained from the derivatives on the cable approximations. Astra returned an initial example of the construction in Section~\ref{subsec:window-construction}. Figure~\ref{fig:preface-tree-of-cubes} shows three stages of this construction in dimension two. \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} \item I next studied the Sobolev spaces and heat kernel of this example, focusing on the critical $L^p$ Korevaar-Schoen exponents, a longstanding interest of mine~\cite{Bau24}, and on weak monotonicity. I was surprised that, at the critical exponent, weak monotonicity holds precisely for $p>n$, where $n$ is the rank. Its failure at $p=2$ suggested an obstruction to two-sided sub-Gaussian heat kernel estimates. This led me to examine rates for Poincar\'e inequalities and capacity estimates. Both hold, but with different sharp scales. \item I then looked for a family of examples in which the scales could be varied. Astra obtained the family of 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 kernel estimates suggested a structural obstruction. This question led to the rank theorem in Chapter~\ref{sec:rank-chapter}: If a gradient structure has sub-Gaussian heat kernel estimates, then the rank has to be one. \item Since gradient structures must have have different Poincar\'e and capacity scales, I then investigated how the theory changes when the scales differ. The theory of heat kernels and Sobolev spaces at matching scales is well established~\cite{BBK,AB,ABCRST3}. In the two-scale Harnack inequality, the Poincar\'e scale $\Psi_P$ and the cutoff Sobolev scale $\Psi_S$ enter the Harnack constant through $\Psi_P(r)/T+T/\Psi_S(r)$, where $r$ is the radius and $T$ the time parameter (Theorem~\ref{hk:thm:h-local-harnack}). Under uniform volume growth, $\Psi_P$ governs the prefactor in the heat kernel upper bound and $\Psi_S$ governs the off-diagonal decay (Theorems~\ref{hk:thm:mixed-upper} and~\ref{hk:thm:global-mixed-upper}). \item 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}. \item To test the theory, I chose to study the problem self-improvement of Poincar\'e inequalities, a classical phenomenon in metric measure spaces~\cite{KeZh08}. It is a natural question here because the same gradient is used across different $L^p$ spaces. This leads to Chapter \ref{sec:exponents-chapter}. \item I proposed most of the examples and used the models to check if the axioms were satisfied and the relevant properties. The cubical inverse limit of Laakso type in Chapter~\ref{sec:cubical-inverse-limits} came from Astra, which I had asked for a higher-rank version of Laakso's construction. \item 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. \end{enumerate} \subsection*{Comments on Version 1} This is a first draft. Some of the results may admit sharper forms (like for the heat kernel estimates). There likely will be revisions. My main aim was to develop a framework in which new questions about first-order analysis on metric spaces could be formulated. % % % %Three questions organize the book. %\begin{itemize} %\item Which hypotheses on $(m,\nu,\nabla)$ give a function theory comparable to the one of~\cite{BCY}: closability, Korevaar--Schoen and heat kernel characterizations of $W^{1,p}$ and~$BV$? The answer involves, at each exponent~$p$, three scale functions: the volume function, and the Poincar\'e and cutoff scales. The last two coincide on manifolds and on trees, but when $n_*\ge2$ they differ at $p=2$ as soon as $\nu\not\ll m$ and the volume function and the cutoff gauge are powers of the radius (Theorem~\ref{main:rank}). %\item What remains of the theory of the heat equation, namely Harnack inequalities and heat kernel estimates, when the scales differ? At $p=2$ the relevant scales are the Poincar\'e scale~$\Psi_P$ and the scale~$\Psi_S$ of the cutoff Sobolev inequality. The Harnack inequality holds with a constant which is explicit in the ratio $\Psi_P/\Psi_S$, and the heat kernel has an upper bound in which $\Psi_P$ governs the on-diagonal factor and $\Psi_S$ the off-diagonal decay (Theorems~\ref{main:harnack} and~\ref{main:hk}). %\item Which scales are possible? For power functions the answer is complete: Theorems~\ref{main:classification} and~\ref{main:optimal} give the exact set of exponents, for forms without further structure and for gradient structures of each constant rank, and every admissible choice is realized. The basic example of rank $n\ge2$ with $\nu\perp m$ is the cube construction $X(n,Q,\sigma)$ (Theorem~\ref{main:B}), in which the gradient is closable exactly above a threshold exponent and the three quadratic scales are pairwise different. %\end{itemize} \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}{} \subsection*{Two measures} Let $(X,d,m)$ be a metric measure space. First-order analysis on~$X$ starts from an energy of the form \begin{equation*} \cE_p(u)=\int_\cS|\nabla u|^p\,d\nu\,, \end{equation*} where $\nabla u$ is a gradient of the function~$u$ and $\nu$ is a measure. In the classical situations $\nu=m$, and the gradient is defined at $m$-almost every point. This book studies the situation where $\nu$ differs from~$m$. Four examples, all treated in Part~\ref{part:examples}, indicate the range of the phenomena. \begin{itemize} \item \emph{Manifolds.} On a Riemannian manifold, or on an $\RCD$ space, $\nu=m$ is the volume, and the theory reduces to the classical one. \item \emph{Trees.} On a local tree, $\nabla u$ is the derivative along the arcs and $\nu$ is the length measure, carried by the union~$\cS$ of the open arcs. The reference measure~$m$ is arbitrary within a class of measures with controlled volume growth; it may give no mass to~$\cS$, and $\nu$ may be infinite on every ball. \item \emph{The tree of cubes.} Replacing the arcs by cubes of dimension $n\ge2$, attached to each other through small windows, gives a space where $\nu$ is locally the Lebesgue measure of dimension~$n$, while $m$ has dimension $Q>n$ and is singular with respect to~$\nu$. \item \emph{Liouville Brownian motion.} Here $X$ is the plane, $\nabla$ is the Euclidean gradient, $\nu$ is the Lebesgue measure, and $m$ is a Gaussian multiplicative chaos. \end{itemize} In all these examples the gradient at a point takes its values in a Euclidean space of finite dimension, which may depend on the point. \subsection*{Gradient structures and Sobolev spaces} A \emph{gradient structure} on $(X,d,m)$ (Definition~\ref{def:gradient}) consists of a Borel set~$\cS$, the \emph{skeleton}, a $\sigma$-finite measure~$\nu$ carried by~$\cS$, and a linear map~$\nabla$ from the bounded Lipschitz functions to the bounded measurable sections of a measurable field $(H_x)_{x\in\cS}$ of Euclidean spaces, which satisfies the Leibniz rule, the bound $|\nabla u|\le\Lip(u)$, and a condition of weak-$*$ continuity. This is a derivation in the sense of Weaver~\cite{We}, with values in a field of finite-dimensional spaces. The dimension $n(x)$ of~$H_x$ is the \emph{pointwise rank}. The reference measure does not appear in the definition; the measures $m$ and~$\nu$ may be mutually singular, and $\nu$ need not be finite on balls. The bound $|\nabla u|\le\Lip(u)$ says that the gradient is controlled by the metric. The converse, that the metric is recovered from the gradient, is an additional property, the local Sobolev-to-Lipschitz property of Definition~\ref{def:SL}, which holds in all the examples. The reference measure enters with the Sobolev spaces (Chapter~\ref{sec:sobolev-chapter}). The structure is \emph{$p$-admissible} if the gradient, defined on a core~$\cC_p$ of Lipschitz functions with compact support, is closable from $L^p(X,m)$ to $L^p(\cS,\nu)$; its closure~$\nabla_p$ then defines the Sobolev space $W^{1,p}(X,m)$. Closability is a compatibility between the two measures, and it may fail: for Liouville Brownian motion it holds exactly for $p>\gamma^2/2$, and for the tree of cubes exactly for $p\ge p_*$, with an explicit threshold (Proposition~\ref{prop:liouville-p-admissibility} and Theorem~\ref{thm:cube-closed-family-domain}). At an admissible exponent, Chapter~\ref{sec:sobolev-chapter} establishes the following. \begin{itemize} \item \emph{Trace.} A function of $W^{1,p}(X,m)$ is a class modulo $m$-null sets, and $\nu$ may be singular with respect to~$m$. Nevertheless such a function has a trace on the part of the skeleton which carries the gradients, defined $\nu$-almost everywhere, and this trace gives the chain rule for compositions with Lipschitz functions (Proposition~\ref{prop:trace}). \item \emph{Functional analysis.} $W^{1,p}(X,m)$ is a Banach space, reflexive for $10\}$ is a sufficient condition for the integrated estimate. The cutoff estimate and the Lipschitz bound give $\int|\nabla\psi_x^r|^p\,d\nu\le C\,m(B(x,r))/\Psi_{C,p}(r)$, with \begin{equation*} \Psi_{C,p}(r)=r^{p-2}\,\Psi_{C,2}(r)\,. \end{equation*} The functions $\Psi_{P,p}$ and $\Psi_{C,p}$ are the \emph{Poincar\'e scale} and the \emph{cutoff scale}. Under the three hypotheses, on a connected space, $\Psi_{C,p}\le C\,\Psi_{P,p}$ at small radii (Proposition~\ref{prop:scaleorder}). The scales \emph{match} at the exponent~$p$ if they are comparable. The distinction between $m$ and~$\nu$ is essential in the arguments of approximation which follow: a set on which a function is modified may have an infinite measure for~$\nu$, even when its measure for~$m$ is small, and the cutoff condition supplies the control of the gradients on such sets. An additional hypothesis $\mathrm V(\Phi)$ of uniform volume growth gives explicit formulas, and is used only where it is stated. \subsection*{The results of Part~\ref{part:general}} \paragraph{Korevaar--Schoen characterizations and closability (Chapter~\ref{sec:KS}).} Let $D_p(f,r)$ be the integral of $|f(x)-f(y)|^p$ over the pairs of points at distance less than~$r$, normalized by the volume of the balls, as in~\eqref{eq:Dp}. Under the three hypotheses, the relaxed energy~$\overline{\cE}_p$ satisfies, for every $f\in L^p(X,m)$, \begin{equation*} \sup_{r}\frac{D_p(f,r)}{\Psi_{P,p}(r)} \le C\,\overline{\cE}_p(f)\,,\qquad \overline{\cE}_p(f)\le C\liminf_{r\to0}\frac{D_p(f,r)}{\Psi_{C,p}(r)} \end{equation*} (Theorem~\ref{thm:KS}). Each inequality involves its own scale. If the ratio $\Psi_{P,p}/\Psi_{C,p}$ is bounded along one sequence of radii tending to zero, the structure is $p$-admissible (Theorem~\ref{thm:closability}), and the two inequalities characterize $W^{1,p}(X,m)$ for $p>1$, and $BV(X,m)$ for $p=1$, by the boundedness of the difference quotients $D_p(f,r)/\Psi_{C,p}(r)$ along this sequence (Theorems~\ref{thm:KS} and~\ref{thm:BV}). At matching power scales this determines the critical exponents of the Korevaar--Schoen spaces (Theorem~\ref{thm:KS-critical-matching}), and a lower bound for the volume of balls gives Gagliardo--Nirenberg inequalities, by the method of Bakry, Coulhon, Ledoux and Saloff-Coste~\cite{BCLS95,Bau24} (Theorem~\ref{thm:KS-GN}). \paragraph{The rank theorem (Chapter~\ref{sec:rank-chapter}).} The scales restrict the number of independent gradients. If the scales match at an exponent $p>1$ and the common scale has a lower scaling exponent greater than~$p$, then \begin{equation*} n(x)n$. \paragraph{Self-improvement (Chapter~\ref{sec:exponents-chapter}).} A Poincar\'e inequality at the cutoff scale improves itself, as in the theorem of Keith and Zhong~\cite{KeZh08}: a $(1,p)$-Poincar\'e inequality, together with a cutoff condition of order $b1$ is a matching exponent, so is every exponent of an interval $[p-\varepsilon,p]$. These arguments connect the calculus of derivations~\cite{We,Sc} with the theory of Korevaar and Schoen~\cite{KoSc93,Bau24,BCY} and with the self-improvement of Poincar\'e inequalities~\cite{KeZh08,KKLV19,KLVZ}. \subsection*{Heat kernels: the results of Part~\ref{part:heat}} Part~\ref{part:heat} starts independently, with a strongly local regular Dirichlet space $(X,d,m,\cE,\cF)$ which satisfies volume doubling, a Poincar\'e inequality $\PI(\Psi_P)$, and a cutoff Sobolev inequality in annuli $\CSA(\Psi_S)$ in the sense of Andres and Barlow~\cite{AB}. The classical theory assumes $\Psi_P\asymp\Psi_S$. Here the two scales may differ; on a geodesic space, necessarily $\Psi_S\le C\,\Psi_P$ (Proposition~\ref{prop:quadratic-scale-order}). \paragraph{Harnack inequality (Chapter~\ref{sec:harnack-chapter}).} A nonnegative solution~$u$ of the heat equation in a cylinder of radius~$r$ and time length~$2T$ satisfies \begin{equation*} \esssup_{Q_-}u \le\exp\Bigl[C\Bigl(1+\frac{\Psi_P(r)}{T}+\frac{T}{\Psi_S(r)}\Bigr)\Bigr] \essinf_{Q_+}u \end{equation*} (Theorem~\ref{hk:thm:h-local-harnack}). The radius and the time are independent parameters, and each scale enters through one term. When the scales are comparable and $T$ is the common scale at the radius~$r$, the constant is uniform and one recovers the parabolic Harnack inequality. \paragraph{Heat kernel bounds (Chapter~\ref{sec:hk-chapter}).} The Harnack inequality, the method of Davies, Nash inequalities and chaining arguments give upper and lower bounds for the heat kernel, at small times under local hypotheses and at all times under global ones. In the upper bounds, the exponential factor is governed by the cutoff Sobolev scale, through the rate function $\mathcal A_{\Psi_S}$ of~\eqref{eq:rate-function}, and, under uniform volume growth, the prefactor is governed by the Poincar\'e scale. The lower bounds involve both scales. Table~\ref{tab:heat-kernel} lists the statements. At matching scales $\Psi_P\asymp\Psi_S\asymp\Psi$, Corollary~\ref{hk:cor:vd-matching} gives the two-sided sub-Gaussian estimate \begin{equation*} \frac{c\,e^{-C\mathcal A_\Psi(d(x,y),t)}}{m(B(x,\Psi^{-1}(t)))} \le p_t(x,y)\le \frac{C\,e^{-c\mathcal A_\Psi(d(x,y),t)}}{m(B(x,\Psi^{-1}(t)))}\,. \end{equation*} The hypothesis $\mathrm V(\Phi)$ is invoked separately where uniform prefactors are stated. \paragraph{Gradient structures (Chapter~\ref{sec:gradient-heat}).} For the Dirichlet form of a $2$-admissible gradient structure, the cutoff condition gives an upper bound for capacities, but not a cutoff Sobolev inequality. At matching scales, the capacity bound and the Poincar\'e inequality imply the cutoff Sobolev inequality, by a theorem of Eriksson-Bique~\cite{EBRes}; hence volume doubling, $\mathrm{PI}_2(\Psi)$ and $\mathrm B(\Psi)$ imply the two-sided sub-Gaussian estimates (Theorem~\ref{thm:HKE}), and Sobolev and $BV$ functions are characterized by the heat kernel (Theorem~\ref{thm:HKchar}). For distinct scales, a cutoff Sobolev inequality is derived from a condition on the energy of the cutoffs in small balls, the condition~\ref{eq:quadratic-cutoff-growth}, which follows from the cutoff condition and doubling when the cutoff scale is~$r^2$ (Proposition~\ref{prop:localized-cutoff-CSA}). \subsection*{The examples of Part~\ref{part:examples}} Table~\ref{tab:scales} in Section~\ref{sec:examples} lists the examples with their ranks and scales. Chapters~\ref{sec:riemannian-examples} and~\ref{sec:metric-examples} treat the spaces with $\nu=m$ and Gaussian scales: Riemannian manifolds, measurable Riemannian metrics, sub-Riemannian manifolds and $\RCD(K,N)$ spaces. The remaining chapters contain the following results. \begin{itemize} \item \emph{Cubical inverse limits} (Chapter~\ref{sec:cubical-inverse-limits}). For every integer $n\ge1$ and every real $Q>n$ there is an Ahlfors $Q$-regular space with $m=\nu$ and a gradient structure of rank~$n$, admissible for every $p\ge1$, with Gaussian scales (Theorem~\ref{thm:cubical-limit}). \item \emph{The harmonic Sierpi\'nski gasket} (Chapter~\ref{sec:harmonic-gasket-chapter}). The gradient has rank one and is closable for every $p\ge1$; the kernel of the closed gradient consists of the constants, and the critical Korevaar--Schoen exponents are equal to one for every~$p$ (Proposition~\ref{prop:harmonic-gasket}). There is no uniform volume function. Whether the Poincar\'e inequality $\mathrm{PI}_p(r^p)$ holds for all $p\ge1$ is not known. \item \emph{Liouville Brownian motion} (Chapter~\ref{sec:liouville-chapter}). For the parameter $0<\gamma<2$, almost surely, the Euclidean gradient is closable exactly for $p>\gamma^2/2$, and at and below this threshold the relaxed energy vanishes identically (Proposition~\ref{prop:liouville-p-admissibility}). Locally, the Poincar\'e inequality and the cutoff Sobolev inequality hold at different power scales. \item \emph{The tree of cubes} (Chapter~\ref{sec:riemannian-gluings}). The structure has constant rank~$n$, the measures $m$ and~$\nu$ are mutually singular, and the scales match exactly for $p>n$. The critical Korevaar--Schoen exponents are equal to $1+(Q-n)/p$ and are attained for every $p\ge1$; for $p>n$ the critical space is $W^{1,p}(X,m)$, and for admissible $10$ 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 the weak-$*$ continuity in~\ref{cond:gradient} 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|_U)$ and $M=\|u\|_\infty$; we may assume $U\ne\varnothing$. The truncated McShane extension~\cite{McShane34} \begin{equation*} \tilde u(y)=\Bigl(\inf_{z\in U}\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~$U$. By~\ref{calc:local} and~\ref{cond:gradient}, $|\nabla u|=|\nabla\tilde u|\le L$ $\nu$-almost everywhere on~$U$. \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:gradient} 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)$; clearly $H^c_x\subset H_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}: the Leibniz rule and the Lipschitz bound are clear, and the weak-$*$ continuity 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$. \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:gradient}. Moreover $u(y)-u(z)=d(y,z)$, because $d(y,z)<2\iota(x)$. \end{proof} \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)$. Admissibility, 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 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 part of the skeleton which carries the gradients of the core, 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, whose energy measures are $|\nabla_2f|^2\nu$ and whose index in the sense of Hino~\cite{Hi10} is the rank of the gradient structure. \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{Admissible exponents 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)$ is \emph{admissible at the exponent~$p$}, or \emph{$p$-admissible}, 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, and \item\label{A2} the operator $\nabla:\cC_p\subset L^p(X,m)\to L^p(\cS,\cH,\nu)$ is closable. \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{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$ the difficulty is visible directly: convergence in~$L^p(X,m)$ gives no information on the values of~$u_k$ on~$\cS$, so~\eqref{eq:closability-def} asserts that a sequence cannot oscillate on the skeleton with bounded energy while converging to zero $m$-almost everywhere. 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} and~\ref{A2} from volume, cutoff and Poincar\'e hypotheses. \paragraph{Dependence on the exponent.} Admissibility depends on~$p$. For the tree of cubes of Chapter~\ref{sec:riemannian-gluings}, the admissible exponents are precisely those at or above the threshold of Theorem~\ref{thm:cube-closed-family-domain}. When several exponents are admissible, 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\}\,. \end{equation} Up to $\nu$-null sets, $\cS_p$ is the smallest Borel subset of~$\cS$ outside which every gradient of~$\cC_p$ vanishes. In particular $\cS_p=\cS$ up to a $\nu$-null set if $\cC_p$ spans the fibres, which is the case under the hypothesis of Proposition~\ref{prop:qualitative-cutoffs} with $b\le p$. If $u_k\in\cC_p$ and $\nabla u_k\to G$ in $L^p(\nu)$, then $G=0$ $\nu$-almost everywhere outside~$\cS_p$. Hence \begin{equation}\label{eq:gradient-carried} \nabla_pf=0\quad\nu\text{-almost everywhere on }\cS\setminus\cS_p\qquad\bigl(f\in W^{1,p}(X,m)\bigr)\,. \end{equation} \paragraph{Convergence in measure.} Let $L^0(\cS_p,\nu)$ be the space of $\nu$-equivalence classes of Borel functions $\cS_p\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\rest_{\cS_p}$, 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 on~$\cS_p$. \begin{proposition}\label{prop:trace}\label{rem:trace} Let $1\le p<\infty$, and suppose that the gradient structure is $p$-admissible. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{trace:exists} \emph{Trace.} The restriction map $\cC_p\to L^0(\cS_p,\nu)$, $u\mapsto u|_{\cS_p}$, extends uniquely to a continuous linear map \begin{equation*} T_p:W^{1,p}(X,m)\longrightarrow L^0(\cS_p,\nu)\,. \end{equation*} \item\label{trace:eid} \emph{Image of the energy.} For every $f\in W^{1,p}(X,m)$, the measure $|\nabla_pf|^p\nu$ is carried by~$\cS_p$, and \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 on }\cS_p\,, \end{equation} and $\nabla_p(\varphi\circ f)=0$ $\nu$-almost everywhere outside~$\cS_p$. \end{enumerate} In particular, the trace is defined on the whole skeleton if $\cC_p$ spans the fibres. \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} The measure $|\nabla_pf|^p\nu$ is carried by~$\cS_p$ by~\eqref{eq:gradient-carried}. \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_p}\to0$ in $L^0(\cS_p,\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\rest_{\cS_p}$, and $u_j\to0$ in $\mu$-measure, because $\mu(\{|u_j|>\varepsilon\})\le\sum_{k\le k_0}\mu_{v_k}(\{|u_j|>\varepsilon\})+2^{-k_0}$ for every~$k_0$. This is the convergence in $L^0(\cS_p,\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_p,\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_p,\nu)$, hence in measure for the finite measure $|\nabla_pf|^p\nu$, which is absolutely continuous with respect to~$\nu\rest_{\cS_p}$. 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_p}=\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)$. The last assertion of~\ref{trace:chain} is~\eqref{eq:gradient-carried}. \end{proof} At $p=2$ the trace has a classical description: $T_2f$ is the restriction to~$\cS_2$ 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. The restriction to $\cS_p$ in Proposition~\ref{prop:trace} cannot be removed. The following example shows that, without a spanning hypothesis, a structure can be admissible for a trivial reason. \begin{example}[An admissible structure 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 the weak-$*$ continuity in~\ref{cond:gradient}. 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$, and $\cS_p=\varnothing$. \emph{The structure is $p$-admissible.} 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 on $W^{1,p}(X,m)=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, restriction to the whole skeleton admits no continuous extension to~$W^{1,p}(X,m)$. 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 admissible exponent. 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 $2$-admissible gradient structure, 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\rest_{\cS_2}$ is minimal energy-dominant. On~$\cS_2$, the pointwise index is the dimension of the field generated by the gradients of~$\cC_2$. If $\cC_2$ spans the fibres, then $\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$. For the strong locality we use the Beurling--Deny decomposition~\cite[Theorem~3.2.1]{FOT}: for $u,v\in\cF\cap C_c(X)$, \begin{equation*} \cE(u,v)=\cE^{(c)}(u,v)+\int_{X\times X\setminus\mathrm{diag}}(u(x)-u(y))(v(x)-v(y))\,J(dx\,dy)+\int_Xuv\,dk\,, \end{equation*} where $\cE^{(c)}$ is strongly local, $J$ is a symmetric positive Radon measure off the diagonal and $k$ is a positive Radon measure. We show that $J=0$ and $k=0$. \emph{The jump measure vanishes.} Let $K_1,K_2\subset X$ be disjoint compact sets. By Lemma~\ref{lem:core-cutoff}\ref{core:cutoff}, applied in disjoint open neighbourhoods of $K_1$ and~$K_2$, there are nonnegative $u,v\in\cC_2$ with disjoint supports, $u=1$ on~$K_1$ and $v=1$ on~$K_2$. By Lemma~\ref{lem:calculus}\ref{calc:local}, $\nabla u=0$ $\nu$-almost everywhere outside~$\supp u$ and $\nabla v=0$ $\nu$-almost everywhere outside~$\supp v$, so $\cE(u,v)=0$. Moreover $\cE^{(c)}(u,v)=0$ and $uv=0$, and $(u(x)-u(y))(v(x)-v(y))=-u(x)v(y)-u(y)v(x)$. The decomposition and the symmetry of~$J$ give \begin{equation*} 2J(K_1\times K_2)\le2\int u(x)v(y)\,J(dx\,dy)=-\cE(u,v)=0\,. \end{equation*} The complement of the diagonal is a countable union of such products, hence $J=0$. \emph{The killing measure vanishes.} Let $K\subset X$ be compact. By Lemma~\ref{lem:core-cutoff}\ref{core:cutoff} there are $v\in\cC_2$ with $0\le v\le1$ and $v=1$ on~$K$, and then $u\in\cC_2$ with $u=1$ on a neighbourhood~$W$ of~$\supp v$. By Lemma~\ref{lem:calculus}\ref{calc:const},\ref{calc:local}, $\nabla u=0$ $\nu$-almost everywhere on~$W$ and $\nabla v=0$ $\nu$-almost everywhere outside~$W$; hence $\cE(u,v)=0$. Also $\cE^{(c)}(u,v)=0$, because $u$ is constant on a neighbourhood of~$\supp v$. Since $J=0$, the decomposition gives $k(K)\le\int_Xv\,dk=\int_Xuv\,dk=0$. Hence $k=0$ and $\cE=\cE^{(c)}$. \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 last assertion holds because the energy measure of a function of the domain of a strongly local regular Dirichlet form does not charge an open set on which the function is constant~\cite[Section~3.2]{FOT}. 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} and all these measures are carried by~$\cS_2$, by~\eqref{eq:gradient-carried}. \ref{dir:index} Every energy measure is absolutely continuous with respect to $\nu\rest_{\cS_2}$, by~\ref{dir:energy} and~\eqref{eq:gradient-carried}. 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\cap\cS_2)=0$. Thus $\nu\rest_{\cS_2}$ is minimal energy-dominant. Every closed gradient takes its values in the measurable field generated by the gradients of~$\cC_2$, by approximation in the graph norm. By~\eqref{eq:energy-density}, the matrices $(d\Gamma(f_i,f_j)/d\nu)$ are Gram matrices of vectors of this field. Their ranks are bounded by its dimension, and the family $(v_k)$ attains that dimension, by~\eqref{eq:rank-Gram} applied to its span; compare~\cite[Lemma~2.3 and Proposition~2.10]{Hi10}. When $\cC_2$ spans the fibres, $\cS_2=\cS$ up to a null set, the dimension 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 $2$-admissible structure, the trace $T_2f$ of Proposition~\ref{prop:trace} is the restriction to~$\cS_2$ 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\rest_{\cS_2}$ has the same null sets as a countable combination of energy measures. Hence the subsequence converges to~$\tilde f$ $\nu$-almost everywhere on~$\cS_2$, and its limit in $L^0(\cS_2,\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 $p$-admissible structure 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$ the relaxed energy is the total variation. This is the definition of~$BV$ by relaxation of~\cite{Miranda03,ADM14} for metric measure spaces, and of~\cite[Definition~2.17]{BCY} for local trees. \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. \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} The results of Chapter~\ref{sec:sobolev-chapter} are qualitative: they assume that the gradient is closable and describe the resulting spaces. 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 last two hypotheses are the two places where the measures $m$ and~$\nu$ are compared, and they compare them in opposite directions. Each involves a function of the radius, the \emph{cutoff scale}~$\Psi_{C,2}$ and the \emph{Poincar\'e scale}~$\Psi_{P,p}$. In the theory of heat kernels on metric measure spaces~\cite{BBK,GHL,AB}, a single space-time scale function~$\Psi$ governs both the Poincar\'e inequality and the cutoff Sobolev inequality. Here the two scales are kept separate, because there are natural examples in which they differ (Proposition~\ref{prop:cube-two-scales}), and because several results use only one of them. 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 scale is at most quadratic, with $\nu\ll m$ in the quadratic case, and on a connected space the cutoff scale is dominated by the Poincar\'e scale. \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$; the conclusions then hold at every radius. \paragraph{Growth conditions.} A positive function~$S$ on $(0,r_0)$ has \emph{weak scaling} if there are constants $c,C>0$ and exponents $00$ such that \begin{equation}\label{eq:VD-power} \frac{m(B(x,R))}{m(B(x,r))}\le C\Bigl(\frac Rr\Bigr)^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}(r)}\,m(B(x,r))\,, \end{equation} by the bound $|\nabla\psi_x^r|\le C_B/r$. If $\nu\le C_0\,m$ and \hVD{} holds, the distance cutoffs of Section~\ref{subsec:ex-distance-cutoff} satisfy~\eqref{eq:active-volume} with $\Psi_{C,2}(r)=r^2$. 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$. \paragraph{Uniform volume growth: \hV.} This is an additional hypothesis, which is not part of the standing assumptions. We write \hV{} if there is a nondecreasing function~$\Phi$ on $(0,r_0)$ with \begin{equation}\label{eq:hV} C_V^{-1}\Phi(r)\le m(B(x,r))\le C_V\,\Phi(r)\qquad(x\in X,\ 00\})\le C\Theta(r)$. If $\Phi(r)=r^Q$ and $\Theta(r)=r^s$, then $\Psi_{C,p}(r)=r^{p+Q-s}$. This notation is used in the explicit examples. \paragraph{Coverings.} The following covering lemma is the usual packing consequence of doubling; see~\cite[Chapter~10]{Hei01} and~\cite[Proposition~2.1]{Bau24}. A set $\{x_i\}\subset X$ is \emph{$\varepsilon$-separated} if $d(x_i,x_j)\ge\varepsilon$ for $i\ne j$. \begin{lemma}\label{lem:cover} Let $\varepsilon>0$. 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)^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:gradient} 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.} The error and the energy of the discrete convolution are controlled by a quantity which involves only the metric and the reference measure. For $f\in L^p(X,m)$, $r>0$ and a positive function~$S$, put \begin{equation}\label{eq:Dp} D_p(f,r)=\int_X\fint_{B(x,r)}|f(x)-f(y)|^p\,dm(y)\,dm(x)\,, \qquad E_{p,S}(f,r)=\frac{D_p(f,r)}{S(r)}\,. \end{equation} For $S(r)=r^p$, $E_{p,S}(f,r)$ is the approximate energy of Korevaar and Schoen~\cite{KoSc93} at the scale~$r$; Chapter~\ref{sec:KS} studies its behaviour as $r\to0$. If $m$ is doubling at small radii, then $D_p(\cdot,r)^{1/p}$ is a continuous seminorm on $L^p(X,m)$ 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$. \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)$. By~\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 $p$-admissible, 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 \frac{C}{\Psi_{C,p}(\varepsilon)}\sum_{i>N}\int_{B_i}|f|^p\,dm\,. \end{align*} Both tend to zero as $N\to\infty$, because $\sum_i\int_{B_i}|f|^p\,dm\le N(1)\|f\|_{L^p(m)}^p$. \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*} We multiply by~\eqref{eq:energy-partition}, use $m(B_i)\le C\,m(B_j)$ and the bound $N(3)$ on the number of indices: \begin{equation*} \int_{B_j\cap\cS}|G_\varepsilon f|^p\,d\nu\le\frac{C}{\Psi_{C,p}(\varepsilon)}\int_{B_j}\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$ is clear. 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|\,d\nu\le C\frac{m(B_i)}{\Psi_{C,1}(\varepsilon)}\,,\qquad \int_\cS|\nabla\varphi_i|^p\,d\nu\le C\frac{m(B_i)}{\Psi_{C,p}(\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 hypotheses restrict the scale functions. First, because the gradient is bounded by the Lipschitz constant, the cutoff scale is at most quadratic, and in the quadratic case the gradient measure is absolutely continuous with respect to the reference measure. This is the counterpart, for a prescribed gradient measure, of the dichotomy for the energy measures of diffusions with sub-Gaussian heat kernel estimates: they are singular when the space-time scale is $r^\beta$ with $\beta>2$~\cite{KM}, and absolutely continuous in the Gaussian case~\cite{KoZh12}. The proof below uses only the discrete convolution; no heat kernel or closed form is involved. \begin{proposition}\label{prop:cutoffrestriction} Assume~\hVD{} and~\hB, with $\nu\ne0$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{cr:quadratic} $\Psi_{C,2}(r)\le Cr^2$ at sufficiently small radii. \item\label{cr:ac} If $\ell=\liminf_{r\downarrow0}r^2/\Psi_{C,2}(r)<\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\qquad\text{as measures on }X\,. \end{equation} \item\label{cr:gauge} Under the additional hypothesis~\hV, $\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$, and $\Psi_{C,2}(r)\le Cr^2$ at small radii. This proves~\ref{cr:quadratic} and~\ref{cr:ac}, and~\ref{cr:gauge} follows from~\eqref{eq:Theta}: $\Theta/\Phi=r^2/\Psi_{C,2}$ is bounded below, and it tends to infinity if $\nu\not\ll m$. \end{proof} Second, on a connected space a cutoff tested in 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. \begin{proposition}\label{prop:scaleorder} Assume~\hVD, \hB{} and~\hP{p}, and suppose that $X$ is connected with positive diameter. Then $\Psi_{C,p}(r)\le C\Psi_{P,p}(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}(Mr)\int_\cS|\nabla\psi|^p\,d\nu \le C\,\frac{\Psi_{P,p}(Mr)}{\Psi_{C,p}(r)}\,m(B)\,. \end{equation*} We cancel $m(B)$ and compare $\Psi_{P,p}(Mr)$ with $\Psi_{P,p}(r)$ by~\eqref{eq:scale}. \end{proof} \subsection{The distance cutoff}\label{subsec:ex-distance-cutoff} When the gradient measure is dominated by the reference measure, the cutoff condition holds at the quadratic scale, with the simplest cutoffs. For $x\in X$ and $r>0$, 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} 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:gradient}, $|\nabla\psi_x^r|\le2/r$ $\nu$-almost everywhere, which gives~\eqref{eq:distance-cutoff-bound}. Suppose that $\nu\le C_0\,m$. By locality, $\nabla\psi_x^r=0$ $\nu$-almost everywhere outside $B(x,2r)$. 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} \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}$; all these exponents are admissible. 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}(r)$ & $\Psi_{P,p}(r)$ & $\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 & $n$ & $p\ge1$ & $r^2$ & $r^p$ & $r^Q$, $Q>n$\\ 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\,\Phi(r)$ & $r^{p-1}\Phi(r)$ & assumed\\ 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.}\label{tab:scales} \end{table} \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 admissible for all 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}. The local trees are those of~\cite{BCY}, under the uniform volume assumption of Proposition~\ref{prop:tree}; here $\nu$ is the length measure and $\Theta(r)=r$. \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 $p$-admissible 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 scales match precisely for $p>n$, and Proposition~\ref{prop:cube-two-scales} gives the two distinct scales at the smaller admissible exponents. In particular the quadratic structure is admissible although its 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 $p$-admissible 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*} which involve only the metric and the measure; see also~\cite{BBM01} for a related characterization of Sobolev functions on Euclidean domains. The relation of this approach to Sobolev spaces on metric measure spaces and to Dirichlet forms is developed in~\cite{KoMa98,KST04,Bau24}. This chapter compares the energy of a gradient structure with the quantity $D_p(f,r)$ of~\eqref{eq:Dp}, normalized by the Poincar\'e scale or by the cutoff scale. The comparison rests on two inequalities which use the two hypotheses separately. \begin{itemize} \item \emph{From the energy to difference quotients.} The Poincar\'e inequality bounds $D_p(f,r)/\Psi_{P,p}(r)$ by the energy, uniformly in~$r$ (Lemma~\ref{lem:forwardPI}). \item \emph{From difference quotients to the energy.} The discrete convolution bounds the energy by the lower limit of $D_p(f,r)/\Psi_{C,p}(r)$ as $r\to0$ (Lemma~\ref{lem:relaxed-KS}). \end{itemize} Both inequalities hold for the relaxed energy~$\overline{\cE}_p$ of~\eqref{eq:relaxed-core-energy}, before any closability is known. When the two scales are comparable along one sequence of radii tending to zero, the two inequalities close up, and they have the following consequences: the gradient is closable (Theorem~\ref{thm:closability}); the Sobolev space for $p>1$ and the space $BV$ for $p=1$ are characterized by difference quotients (Theorems~\ref{thm:KS} and~\ref{thm:BV}); the core~$\cC_1$ is dense in every Sobolev space (Corollary~\ref{cor:density}); and the closed gradients at different exponents coincide (Proposition~\ref{prop:compatibility}). Sections~\ref{sec:KS-critical} and~\ref{subsec:KS-GN} determine the critical exponents of the Korevaar--Schoen spaces at matching power scales and derive Gagliardo--Nirenberg inequalities. 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}, then \begin{equation}\label{eq:forwardPI} D_p(u,r)\le C\,\Psi_{P,p}(r)\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 $p$-admissible structure 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}(r)\int_{2\Lambda B_i\cap\cS}|\nabla u|^p\,d\nu\,, \end{equation*} by~\eqref{eq:hP} on the ball~$2B_i$ and~\eqref{eq:fixed-dilation-scale}. Summing over~$i$, with the bounded overlap of the balls $2\Lambda B_i$, gives~\eqref{eq:forwardPI}. The extension follows from the continuity of $D_p(\cdot,r)^{1/p}$ on~$L^p(X,m)$. \end{proof} \begin{lemma}\label{lem:relaxed-KS} Let $1\le p<\infty$, and assume the hypotheses of Lemma~\ref{lem:energy-cutoff-approximation}. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{rks:upper} For every $f\in L^p(X,m)$, \begin{equation*} \overline{\cE}_p(f)\le C\liminf_{r\downarrow0} E_{p,\Psi_{C,p}}(f,r)\,. \end{equation*} \item\label{rks:core} For every $u\in\cC_p$, \begin{equation*} \int_\cS|\nabla u|^p\,d\nu\le C\liminf_{r\downarrow0} E_{p,\Psi_{C,p}}(u,r)\,. \end{equation*} \item\label{rks:lower} If \hP{p} also holds, with $\Psi_{P,p}$ satisfying~\eqref{eq:fixed-dilation-scale}, then for sufficiently small $r_1>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 $p$-admissible, then $\overline{\cE}_p=\cE_p$ on $L^p(X,m)$. \item\label{KS:sequence} Assume~\eqref{eq:sequential-matching}, and let $r_j\downarrow0$ be any sequence in $(0,r_1]$ on which $\Psi_{P,p}(r_j)/\Psi_{C,p}(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} is Lemma~\ref{lem:relaxed-KS}. For~\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. For~\ref{KS:sequence}, \eqref{eq:KS} along the sequence $(r_j)$ gives~\eqref{eq:KS-sequence}. By Theorem~\ref{thm:closability} the structure is $p$-admissible, 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.} At matching scales the supremum in~\eqref{eq:KS-sequence} may be taken over all sufficiently small radii: \begin{equation}\label{eq:KS-matching} \sup_{01$ satisfying~\eqref{eq:sequential-matching}. \subsection{Discrete gradients and compatibility of the exponents}\label{subsec:compatibility} When two exponents $p$ and~$q$ are admissible, the closed gradients $\nabla_p$ and~$\nabla_q$ are closures of the same operator in different topologies, and it is not obvious that they agree on a function which belongs to both Sobolev spaces. At matching scales they do. The reason is that the discrete gradient $G_\varepsilon f$ of~\eqref{eq:feps}, for the partition of unity~\eqref{eq:pou}, is defined without reference to the exponent, and converges to the closed gradient at each exponent. \begin{lemma}\label{lem:discrete-gradient-convergence} Assume \hVD, \hB, \hP{p} and~\eqref{eq:matching} at an exponent $1\le p<\infty$, and let $G_\varepsilon f$ be defined with the partition of unity~\eqref{eq:pou}. For $f\in W^{1,p}(X,m)$ and sufficiently small~$\varepsilon$, \begin{equation}\label{eq:discrete-gradient-bound} \|G_\varepsilon f\|_{L^p(\nu)}\le C\,\|\nabla_pf\|_{L^p(\nu)}\,, \end{equation} and, for every bounded section~$g$ of~$\cH$ which vanishes outside a set of finite $\nu$-measure, \begin{equation}\label{eq:discrete-gradient-convergence} \lim_{\varepsilon\downarrow0}\int_\cS\langle G_\varepsilon f,g\rangle\,d\nu=\int_\cS\langle\nabla_pf,g\rangle\,d\nu\,. \end{equation} For $p>1$, $G_\varepsilon f\rightharpoonup\nabla_pf$ weakly in $L^p(\cS,\cH,\nu)$. \end{lemma} \begin{proof} The bound~\eqref{eq:discrete-gradient-bound} follows from Lemma~\ref{lem:discrete}\ref{disc:energy} and from~\eqref{eq:corePI}, extended to $W^{1,p}(X,m)$ by continuity. For $u\in\cC_p$, the discrete convolutions~$u_\varepsilon$ converge uniformly to~$u$ with a common Lipschitz bound, and $\nabla u_\varepsilon=G_\varepsilon u$; since $g\in L^1(\cS,\cH,\nu)$, \ref{cond:gradient} gives~\eqref{eq:discrete-gradient-convergence}. For $f\in W^{1,p}(X,m)$, choose $u_k\in\cC_p$ converging to~$f$ in the graph norm. Since $g\in L^{p'}(\nu)$ and $G_\varepsilon$ is linear, \begin{equation*} \Bigl|\int_\cS\langle G_\varepsilon f-\nabla_pf,g\rangle\,d\nu\Bigr|\le C\,\|\nabla_p(f-u_k)\|_{L^p(\nu)}\|g\|_{L^{p'}(\nu)}+\Bigl|\int_\cS\langle G_\varepsilon u_k-\nabla u_k,g\rangle\,d\nu\Bigr|\,, \end{equation*} by~\eqref{eq:discrete-gradient-bound} applied to $f-u_k$. Let $\varepsilon\downarrow0$ and then $k\to\infty$. For $p>1$ the sections~$g$ of the statement are dense in $L^{p'}(\cS,\cH,\nu)$, and the weak convergence follows from~\eqref{eq:discrete-gradient-bound}. \end{proof} \begin{proposition}\label{prop:compatibility} Assume \hVD{} and \hB, and assume the Poincar\'e inequalities with matching scales at two exponents $p,q\in[1,\infty)$. For $f\in W^{1,p}(X,m)\cap W^{1,q}(X,m)$ one has $\nabla_pf=\nabla_qf$ $\nu$-almost everywhere. \end{proposition} \begin{proof} By Theorem~\ref{thm:closability} the structure is admissible at $p$ and at~$q$. The same partitions of unity serve both exponents, so $G_\varepsilon f$ is the same field at~$p$ and at~$q$. By Lemma~\ref{lem:discrete-gradient-convergence}, applied at both exponents, $\int_\cS\langle\nabla_pf,g\rangle\,d\nu=\int_\cS\langle\nabla_qf,g\rangle\,d\nu$ for every bounded section~$g$ which vanishes outside a set of finite $\nu$-measure. Since $\nu$ is $\sigma$-finite, this implies $\nabla_pf=\nabla_qf$ $\nu$-almost everywhere. \end{proof} Proposition~\ref{prop:compatibility} identifies the gradients 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. Difference quotients characterize the second. 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}\frac{D_p(f,r)}{\Psi_{C,p}(r)}=0\,. \end{equation*} By the second inequality in~\eqref{eq:KS}, $\overline{\cE}_p(f)=0$, and then, by the first, $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{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}(r)\asymp r^\beta\qquad(r\downarrow0)\,, \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}(r)\le Cr^\beta$. 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 admissibility 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.} Suppose in addition that~\hV{} holds and that, at small radii, \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 admissible $11$ at an admissible exponent, $\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}(r)\asymp\Psi_{C,p}(r)\asymp r^{p\alpha}$ 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}. 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. At the exponent $p=2$, and when the core spans the fibres, 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 shows that the quantitative hypotheses of Chapter~\ref{sec:hyp} restrict the rank. The main result is the following: \emph{if the Poincar\'e inequality and the cutoff energy bound hold at a common scale whose order is strictly higher than~$r^p$, with $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. Recall that a positive function~$\Psi$ has the lower scaling exponent~$a$ if $\Psi(R)/\Psi(r)\ge c(R/r)^a$ for $0p$ in~\eqref{eq:scale}, then \begin{equation*} n_*p$. Assume that there are $C<\infty$ and $\Lambda\ge2$ such that, for every sufficiently small ball $B=B(x,r)$, \begin{equation}\label{eq:rank-p-PI} \int_B|u-u_B|^p\,dm\le C\,\Psi(r)\int_{\Lambda B\cap\cS}|\nabla u|^p\,d\nu\qquad(u\in\cC_p)\,, \end{equation} and that $B$ admits $\chi\in\cC_p$ with \begin{equation}\label{eq:rank-p-cutoff} \ind_B\le\chi\le\ind_{\Lambda B}\,,\qquad \int_\cS|\nabla\chi|^p\,d\nu\le C\,\frac{m(B)}{\Psi(r)}\,. \end{equation} Then $n_*1$. \end{corollary} The corollary is proved at the end of Section~\ref{subsec:rank-volume}. It exhibits a dichotomy at matching scales. 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$, so that \begin{equation}\label{eq:rank-one-scale} \frac{\Psi(R)}{\Psi(r)}\ge c\Bigl(\frac Rr\Bigr)^{a_2}\,,\qquad 00$ $\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:gradient}, 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:gradient} 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:gradient}, 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} In particular, under \hV, \hB, \hP{p} and matching power scales $\Phi(r)=r^Q$, $\Theta(r)=r^s$, one has $n_*\le s$. \end{proposition} \begin{proof} Put $N=n_*$. Since $\nu\ne0$ and $n(x)$ takes positive integer values, $\nu(\{n=N\})>0$. \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}. 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 extends the sufficiency to any finite measure~$\kappa$ which admits an integration by parts with an error bounded in~$L^{p'}(\kappa)$; the Lebesgue measure on a ball is an example. 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(r)} \qquad(y\in K,\ 00\}\,,\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 $p$-admissible, 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(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(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(r_j)}{m(B_j)}\,\langle T_{j,i},\nabla H_j^l\rangle\,\nu =\frac{\Psi(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(r_j)}{m(B_j)}\,|T_{j,i}|^{p'}\,\nu\le C\,\mu_j\,,\qquad \frac{\Psi(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)$. Doubling, \eqref{eq:rank-p-lower} at the points $y_i\in K$, \eqref{eq:rank-p-upper} and the lower scaling of~$\Psi$ give \begin{align} m(W_j)&\le C\sum_i m(B(y_i,\delta r_j/2)) \le C\,\frac{\Psi(\delta r_j)}{\delta^p\,r_j^p}\,\mu(B_j(2))\notag\\ &\le C\,\frac{\Psi(\delta r_j)}{\delta^p\,\Psi(r_j)}\,m(B_j) \le C\,\delta^{a-p}\,m(B_j)\,,\label{eq:rank-one-packing} \end{align} with a constant 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*} The supports of~$\eta_j$ lie in a fixed compact set, so the infimum can be restricted to a fixed compact interval of~$b$ and passes to the weak limit. The same positive lower bound holds for~$\eta$, which 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(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} \inf_{b\in\R}\int_{\R^N}|\phi-b|^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} The passage to the image measures follows~\cite[proof of Lemma~3.5]{CM26Rank}, with the exponent~$p$. We apply~\eqref{eq:rank-p-PI} to $u=\phi(H_j)\in\cC_p+\R$ on the ball~$B_j(2\Lambda)$. Its gradient satisfies the identity \begin{equation*} \frac{\Psi(r_j)}{m(B_j)}\,|\nabla u|^p\,\nu =\bigl\langle\nabla\phi(H_j),AMA\,\nabla\phi(H_j)\bigr\rangle^{p/2}\mu_j\,, \end{equation*} which is proved as~\eqref{eq:rank-p-matrix}. The matrices~$AMA$ are uniformly bounded and converge to~$I$ in $L^1(\mu_j)$ on~$B_j(R)$, by~\eqref{eq:rank-p-identity}, and $t\mapsto t^{p/2}$ is uniformly continuous on bounded intervals. Since $\zeta_j=1$ on the ball $B_j(2\Lambda^2)$, over which the energy is integrated in~\eqref{eq:rank-p-PI}, we get \begin{equation*} \int|\phi-b_j|^p\,d\eta_j \le C\int|\nabla\phi|^p\,d\kappa_j+o(1)\,,\qquad b_j=(\phi(H_j))_{B_j(2\Lambda)}\,. \end{equation*} Since $|b_j|\le\|\phi\|_\infty$, we may pass to a further subsequence along which $b_j$ converges, and the weak convergence proves~\eqref{eq:rank-p-image-PI}. \smallskip \emph{Step 8: the contradiction.} Since $N\ge p$ and $\kappa$ satisfies~\eqref{eq:rank-p-ibp}, Lemma~\ref{lem:p-Hardy} provides functions~$\phi_k$ satisfying~\eqref{eq:rank-p-point-capacity} for the point~$z$ and the measure~$\kappa$. Since $0\le\phi_k\le1$, the infimum over~$b$ in~\eqref{eq:rank-p-image-PI} may be restricted to~$[0,1]$. By dominated convergence, uniformly for $b\in[0,1]$, \begin{equation*} \int|\phi_k-b|^p\,d\eta \longrightarrow (1-b)^p\,\eta(\{z\})+b^p\bigl(\eta(\R^N)-\eta(\{z\})\bigr)\,. \end{equation*} By~\eqref{eq:rank-p-atom}, the minimum of the right-hand side over $b\in[0,1]$ is positive. On the other hand, the right-hand side of~\eqref{eq:rank-p-image-PI} for $\phi=\phi_k$ tends to zero. This contradiction proves that $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}). The hypotheses imply that $\Psi_{C,2}(r)/r^2$ is almost nondecreasing. With this information, a chaining argument along geodesics raises the exponent of the oscillation and removes 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} On a Riemannian manifold $\Psi_{C,2}(r)/r^2$ is constant, and on a local tree it is $\Phi(r)/r$. The first lemma shows that this ratio is always almost nondecreasing when a Poincar\'e inequality holds at the cutoff scale. The proof tests the Poincar\'e inequality at the radius~$R$ with the discrete convolution, at a smaller radius~$r$, of a cutoff of radius~$R$. \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$. There are structural constants $c_0>0$ and $C<\infty$ such that \begin{equation}\label{me:eq:ratio} \frac{\Psi_{C,2}(r)}{r^2} \le C\,\frac{\Psi_{C,2}(R)}{R^2} \qquad(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:gradient}, $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 gain comes from the fact that the functions $F_{t_i}$ have geometrically increasing sizes: the $p$-th power of their sum is comparable to the sum of their $p$-th powers, so that the factor $k^{-1}$ in the average becomes a factor $k^{-p}$ in front of a sum of only $k$ terms. \begin{lemma}\label{me:lem:averaged-energy} With the notation~\eqref{me:eq:average} and the functions~$F_t$ of Lemma~\ref{me:lem:level}, \begin{equation*} \int_\cS\Bigl(\frac1k\sum_{i=k}^{2k-1}F_{t_i}\Bigr)^p\,d\nu\le\frac C{k^p}\sum_{i=k}^{2k-1}t_i^p\,\Theta_u(t_i)\,. \end{equation*} \end{lemma} \begin{proof} We first prove a numerical inequality. Let $\beta_i$ be numbers with $0\le\beta_i\le C't_i$, and put $S=\sum_i\beta_i$. We claim that \begin{equation}\label{me:eq:geometric-sum} S^p\le C\sum_it_i^{p-b}\beta_i^b\,. \end{equation} Let $S>0$. 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}(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}(2\delta_1r)} \le C\,\frac{\Theta_Y(B_Y(z,r))}{r^b}\,. \end{equation*} This proves~\ref{me:C2}. Condition~\ref{me:C3} is~\eqref{me:eq:ratio}, which does not involve the measure or the centre. \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,aC_1r)$ does not depend on~$y$, consecutive balls are joined by boundedly many balls of radius~$at_{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}(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*} Minkowski's inequality and~\eqref{me:eq:decay} imply \begin{equation*} \|v-v_{D_0}\|_{L^p(D',m_Y)} \le C\,\Psi_{C,p}(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}. With $D=\diam Y$, we have $D\asymp R$ and $\Theta_Y(Y)\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 two 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. 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}). In this part the Poincar\'e inequality holds at a scale~$\Psi_P$ and the cutoff Sobolev inequality at a scale~$\Psi_S$, 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 of radius~$r$ and time length~$T$, whose constant is \begin{equation*} \exp\Bigl[C\Bigl(1+\frac{\Psi_P(r)}{T}+\frac{T}{\Psi_S(r)}\Bigr)\Bigr]\,. \end{equation*} When the two scales are comparable and $T\asymp\Psi(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(r)/T$ and $T/\Psi_S(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. 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 $2$-admissible gradient structure, $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} A positive function~$S$ on a range of radii has \emph{two-sided weak scaling} if there are $00$ is a doubling exponent of~$m$, 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 the balls of admissible radius, \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(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$ by a Whitney covering and a chain argument, after reducing the range of radii by a fixed factor; see~\cite[Remark~3.6]{LierlPHI}, and Lemma~\ref{me:lem:sameball} for the same argument for gradient structures. \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(r)}{T}+\frac{T}{\Psi_S(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} When the scales coincide, $\Psi_P=\Psi_S=\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(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(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(r)/\Psi_S(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(r)\,\Psi_S(r)}$, which minimizes $\Psi_P(r)/T+T/\Psi_S(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(r)/\Psi_S(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{Outline of the proof.} After normalization the cylinder has radius one and time length one, the Poincar\'e inequality has the coefficient $A=\Psi_P(r)/T$ and the cutoff Sobolev inequality the coefficient $B=T/\Psi_S(r)$. The proof has four steps, which occupy the next three sections. \begin{enumerate}[label=\textup{(\arabic*)}] \item \emph{Cutoffs and Sobolev inequalities} (Section~\ref{hk:sec:h-cutoffs}). The cutoff Sobolev inequality is put in a weighted form with a small coefficient in front of the energy, and the Poincar\'e inequality gives a Sobolev inequality with a gain of integrability. \item \emph{Mean value inequalities} (Section~\ref{hk:sec:h-energy}). Moser's iteration bounds the supremum of a subsolution by its $L^2$ norm (Lemma~\ref{hk:lem:h-forward-bound}), and the suprema of $u^p$ and~$u^{-p}$ by their integrals for small $p>0$ (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 admissible pair $B(z,R)\subset B(z,R+s)$ and every $\varepsilon\in(0,1)$, there is a cutoff function $\psi$ for these balls such that \begin{equation}\label{hk:eq:h-weighted-cs} \int_A f^2\,d\Gamma(\psi) \le \varepsilon\int_A\psi^2\,d\Gamma(f) +\frac{C\varepsilon^{1-\beta_+/2}}{\Psi_S(s)}\int_A\psi f^2\,d m \end{equation} for every $f\in\cF_{\mathrm{loc}}(X)$, where $A=B(z,R+s)\setminus\overline{B(z,R)}$. If $s\asymp R$ and $\varepsilon$ is fixed, the cutoff function also satisfies the weighted Poincar\'e inequality \begin{equation}\label{hk:eq:h-weighted-pi} \int|f-f_\psi|^2\psi^2\,d m \le C\,\Psi_P(R)\int\psi^2\,d\Gamma(f)\,, \qquad f_\psi=\frac{\int f\psi^2\,d m}{\int\psi^2\,d m}\,, \end{equation} with a constant which depends on the fixed~$\varepsilon$ and on the comparison between $s$ and~$R$. \end{lemma} \begin{proof} We follow~\cite[Lemma~2.3 and Theorem~3.4]{LierlPHI}, keeping the two scales separate. Write $c_1$ for the coefficient of the energy in~\eqref{hk:eq:global-csa} and $c_2$ for the other constant, and let $\beta=\beta_+$. \emph{Step 1: construction.} Put $p=e^{-\lambda}$, where \begin{equation*} \lambda=\log\bigl(1+\sqrt{\varepsilon/c_1}\bigr)\,,\qquad s_n=\frac{s}{2}\,(p^{-1/\beta}-1)\,p^{n/\beta}\,,\qquad B_n=B\Bigl(z,R+\sum_{j=1}^ns_j\Bigr)\,. \end{equation*} Then $\sum_{n\ge1}s_n=s/2$. Let $\chi_n$ be the cutoff function of~\eqref{hk:eq:global-csa} for $B_{n-1}\subset B_n$, and set \begin{equation*} \alpha_n=(1-p)\,p^{n-1}\,,\qquad \psi=\sum_{n\ge1}\alpha_n\chi_n\,. \end{equation*} Since $\sum_n\alpha_n=1$, the series converges uniformly outside a set of zero capacity. Its support lies in $\overline{B(z,R+s/2)}$, and it is equal to one on a neighbourhood of $\overline{B(z,R)}$ quasi-everywhere. On the annulus $B_n\setminus B_{n-1}$ the functions $\chi_j$ with $j>n$ 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(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 a power~$\Psi(s)=s^\beta$, this is a constant multiple of $(R^\beta/t)^{1/(\beta-1)}$, so that $\exp[-c\,\mathcal A_\Psi(d(x,y),t)]$ is the sub-Gaussian factor $\exp[-c\,(d(x,y)^\beta/t)^{1/(\beta-1)}]$, and the Gaussian factor for $\beta=2$. \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 main estimates. Each is of the form \begin{equation*} p_t(x,y)\ \lessgtr\ (\text{prefactor})\times\exp\bigl[\mp(\text{decay})\bigr]\,. \end{equation*} The estimates with the volumes of balls in the prefactor require only volume 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}$\\ 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)}$\\ 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 of Chapter~\ref{sec:hk-chapter}. 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 $d\le8r$, 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.} Taking the infimum over $\lambda\ge1$, with $s=R/\lambda$, gives the factor $\exp[-\sup_{s\le R}(R/s-Ct/\Psi_S(s))]$. The scales $s>R$ contribute at most one to the supremum in~\eqref{eq:rate-function}, so this factor is at most $C\exp[-\mathcal A_{\Psi_S}(R,Ct)]$. By the lower scaling of~$\Psi_S$, $\mathcal A_{\Psi_S}(R,Ct)\ge c\,\mathcal A_{\Psi_S}(d,t)$; this comparison is proved at the end of the proof of Theorem~\ref{hk:thm:global-mixed-upper}. Inserting the result in~\eqref{hk:eq:vd-kernel-average} gives~\eqref{hk:eq:vd-mixed-upper}, with $\kappa=2\theta$. \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$ and the scaling of~$\Psi$ compares the two 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 admissible values of~$\lambda$. 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$. The following consequence of a criterion of Andres and Barlow~\cite[Theorem~1.16(a)]{AB} requires a cutoff Sobolev inequality at one fixed width and a polynomial bound for the volume growth at infinity. The Poincar\'e scale plays no role. \begin{proposition}\label{hk:prop:conservation} Assume~\eqref{hk:eq:global-csa} at a fixed positive width and at all smaller widths, with constants uniform in the inner radius. If, for some~$o\in X$ and~$M<\infty$, \begin{equation}\label{hk:eq:polynomial-infinity} m(B(o,R))\le C(1+R)^M\,,\qquad R\ge1\,, \end{equation} then the semigroup is conservative. On a compact space every strongly local regular Dirichlet form is conservative. \end{proposition} \begin{proof} Fix~$0<\rho\le r_0$ and let~$D_j=B(o,j\rho)$. Lemma~\ref{hk:lem:h-weighted-cutoff}, with the coefficient~$1/8$, gives cutoff functions~$\chi_j$ for $D_j\subset D_{j+1}$ satisfying \begin{equation*} \int f^2\,d\Gamma(\chi_j) \le\frac18\int\chi_j^2\,d\Gamma(f) +\frac{C}{\Psi_S(\rho)}\int_{D_{j+1}\setminus D_j}f^2\,dm\,. \end{equation*} Thus the condition~$\mathrm{CSD}(D_j,D_{j+1},\theta_j)$ of~\cite[Definition~1.9]{AB} holds with~$\theta_j=C\Psi_S(\rho)^{-1}$ independent of~$j$. Since $X$ is proper, the sets~$D_j$ are relatively compact, and~\eqref{hk:eq:polynomial-infinity} gives \begin{equation*} 4^{-j}\,\theta_j\,m(D_{j+1}\setminus D_j)\longrightarrow0\,. \end{equation*} The criterion~\cite[Theorem~1.16(a)]{AB} applies. Its hypotheses involve this cutoff condition and this exhaustion; no comparison with the intrinsic metric is required. 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} \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$ and all radii in a specified range. 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. 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*} since the sum of the last two terms is at least~$2N\sqrt{\Psi_P(r)/\Psi_S(r)}\ge cN$. This proves~\eqref{hk:eq:lower-caloric-chain}. \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(r)}t+\frac{t}{\Psi_S(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(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(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(r)}t+\frac{t}{\Psi_S(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(r)}t+\frac{t}{\Psi_S(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.} Global doubling gives a polynomial bound for the volume growth at any base point, and the cutoff Sobolev inequality is uniform in the inner radius at any fixed width. Proposition~\ref{hk:prop:conservation} applies. \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~$01$. 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.} \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}. Recall the rate function~\eqref{eq:rate-function} for the cutoff Sobolev scale, \begin{equation}\label{hk:eq:global-upper-action} \mathcal A_{\Psi_S}(d,t)=\sup_{s>0}\left\{\frac d s-\frac t{\Psi_S(s)}\right\}\,, \qquad d\ge0\,,\quad t>0\,. \end{equation} It is nonnegative and finite, and positive for~$d>0$: the lower scaling of~$\Psi_S$ with an exponent greater than one controls the expression as~$s\downarrow0$ and makes it positive for sufficiently large~$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{hk:eq:global-upper-action}. 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*} \emph{Step 4: comparison of the rates.} We claim that $\mathcal A_{\Psi_S}(c_1d,C_1t)\ge c\,\mathcal A_{\Psi_S}(d,t)$. Choose a fixed $M\ge1$ so large that $C_1 c_S^{-1}M^{-\beta_-}\le c_1/(2M)$, where $c_S$ is the constant of the lower scaling of~$\Psi_S$. For each $s$ with $d/s-t/\Psi_S(s)>0$, the lower scaling gives $C_1t/\Psi_S(Ms)\le C_1c_S^{-1}M^{-\beta_-}\,t/\Psi_S(s)\le c_1d/(2Ms)$, and therefore \begin{equation*} \mathcal A_{\Psi_S}(c_1d,C_1t) \ge\frac{c_1d}{Ms}-\frac{C_1t}{\Psi_S(Ms)} \ge\frac{c_1d}{2Ms} \ge\frac{c_1}{2M}\left(\frac d s-\frac t{\Psi_S(s)}\right)\,. \end{equation*} Taking the supremum over~$s$ proves the claim. The formulation almost everywhere is obtained with countable dense choices of centres and rational radii and parameters, as in Theorem~\ref{hk:thm:mixed-upper}. \end{proof} \paragraph{Conservativeness and confinement.} \begin{proposition}\label{hk:prop:global-conservative} Under the global hypotheses and~\hV, the semigroup is conservative. \end{proposition} \begin{proof} The upper scaling of~$\Phi$ gives a polynomial bound for the volume growth, and the cutoff Sobolev inequality is uniform in the inner radius, in particular for the widths~$00$, $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)$. \emph{Step 1: a lower bound for the rate.} We show that \begin{equation*} \mathcal A_{\Psi_S}(R,t)\ge c\Bigl(\frac R{\rho_t}\Bigr)^\gamma\,, \qquad R\ge\rho_t\,. \end{equation*} Let $k=R/\rho_t$. For~$k$ sufficiently large, insert~$s=M\rho_t\,k^{-1/(\beta_+-1)}$ in~\eqref{hk:eq:global-upper-action}, with a fixed large~$M$. Then $R/s=M^{-1}k^\gamma$, and the upper scaling of~$\Psi_S$, while~$s\le\rho_t$, gives~$t/\Psi_S(s)\le CM^{-\beta_+}k^\gamma$, which is at most half of~$R/s$. For bounded~$k\ge1$, insert~$s=M'\rho_t$ and use the lower scaling with an exponent greater than one; a sufficiently large fixed~$M'$ gives a positive lower bound. \emph{Step 2: the tail.} For~$w=R/\rho_t\ge1$, the decomposition into dyadic annuli, Theorem~\ref{hk:thm:global-mixed-upper} and Step~1 give \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. \emph{Step 3: confinement.} 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.} \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 these formulas reduce the lower bound to an optimization 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} The denominators~$a_i+\beta_i-2$ are positive. In contrast,~$2+\beta_\infty-a_\infty$ may be zero or negative, so the exponent~$2\beta/(2+\beta-a)$ of Theorem~\ref{hk:thm:lower-global} has no analogue at infinity. \paragraph{Matching scales.} \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{Applications to gradient structures}\label{sec:gradient-heat} We now apply the results of Chapters~\ref{sec:harnack-chapter} and~\ref{sec:hk-chapter} to the Dirichlet form of a $2$-admissible gradient structure. Two of the three hypotheses of Part~\ref{part:heat} are available at once: volume doubling is a hypothesis on~$m$, and the Poincar\'e inequality~\hP{2} on the core extends to the domain of the form. The third hypothesis, the cutoff Sobolev inequality, is not among the hypotheses of Part~\ref{part:general}. The cutoff condition~\hB{} gives only an upper bound for the capacity of condensers. This chapter derives cutoff Sobolev inequalities in two situations. \begin{itemize} \item \emph{Distinct scales} (Section~\ref{subsec:CSA-distinct}). If the energy measures of the cutoffs satisfy a growth condition on small balls, denoted~\hBplus, a direct argument gives a cutoff Sobolev inequality at a scale~$\Psi_S$ computed from $\Psi_P$ and~$\Psi_{C,2}$ (Proposition~\ref{prop:localized-cutoff-CSA}). The estimates of Chapter~\ref{sec:hk-chapter} with two scales then apply. The argument rests on a trace inequality for measures which satisfy a growth condition (Section~\ref{subsec:trace-estimates}); its proof is the telescoping argument of Anttila~\cite[Proposition~3.4]{An25}, with the two scales kept separate. \item \emph{Matching scales} (Sections~\ref{sec:heat-matching} and~\ref{subsec:HKE}). If the Poincar\'e and cutoff scales are comparable, the capacity bound and the Poincar\'e inequality imply the cutoff Sobolev inequality at the common scale, by a theorem of Eriksson-Bique~\cite{EBRes}. The heat kernel then satisfies two-sided sub-Gaussian estimates (Theorem~\ref{thm:HKE}). \end{itemize} Section~\ref{subsec:HKchar} characterizes Sobolev and~$BV$ functions by the heat kernel. \subsection{The Dirichlet form of a gradient structure}\label{subsec:gradient-form} Let $(\cS,\nu,\nabla)$ be a $2$-admissible gradient structure, and let $(\cE,\cF)$ be its Dirichlet form (Proposition~\ref{prop:dirichlet}), with energy measures $d\Gamma(f)=|\nabla_2f|^2\,d\nu$. The quantities of Parts~\ref{part:general} and~\ref{part:heat} correspond as follows. \paragraph{Poincar\'e inequality.} Under~\hP{2}, with $\Psi_P=\Psi_{P,2}$, approximation in the norm of the form extends the inequality from the core to \begin{equation}\label{eq:PI-form} \int_{B(x,r)}|f-f_{B(x,r)}|^2\,dm\le C\,\Psi_P(r)\,\Gamma(f)(B(x,\Lambda r))\,,\qquad f\in\cF\,, \end{equation} and to $\cF_{\mathrm{loc}}(X)$ by locality. This is $\PI(\Psi_P)$ in the sense of~\eqref{hk:eq:global-pi}. \paragraph{Capacity.} Under \hVD{} and~\hB, the cutoff scale is a capacity scale in the sense of Definition~\ref{def:capacity-scale}: \begin{equation}\label{eq:B-implies-Cap} \Capa(B(x,r),B(x,2r))\le C\,\frac{m(B(x,r))}{\Psi_{C,2}(r)}\,. \end{equation} The cutoff~$\psi_x^r$ of~\hB{} is equal to one on $B(x,r)$ only, whereas a cutoff function for $B(x,r)\subset B(x,2r)$ must be equal to one on a neighbourhood of the closed ball, so a buffer has to be inserted. The closed ball $\overline{B(x,5r/4)}$ is compact for small~$r$, because it lies in the support of a cutoff of~\hB. Cover it by the balls of radius~$r/8$ centred at the points~$x_i$ of a maximal $r/8$-separated subset; their number is bounded, by Lemma~\ref{lem:cover}. The maximum of the cutoffs~$\psi_{x_i}^{r/8}$ is equal to one on $B(x,5r/4)$, and its support lies in $B(x,2r)$. By~\eqref{eq:gradient-max} its energy is at most the sum of their energies, and~\eqref{eq:bumpenergy} gives~\eqref{eq:B-implies-Cap}. The same argument applies to any fixed ratio of the radii in place of two. \paragraph{Order of the scales.} If $X$ is connected with positive diameter, then $\Psi_{C,2}\le C\,\Psi_P$ at small radii, by Proposition~\ref{prop:scaleorder}. \subsection{A trace inequality}\label{subsec:trace-estimates} Let $\mu$ be a measure on~$X$ which may be singular with respect to~$m$; the case of interest is the energy measure $\mu=|\nabla\chi|^2\nu$ of a cutoff. The next proposition bounds $\int|u|^p\,d\mu$ by the energy and the $L^p(m)$ norm of~$u$, under a growth condition on the $\mu$-measure of balls. The proof writes $u$ as the limit of its averages on balls of radii $2^{-j}t$: the difference of two successive averages is bounded by the Poincar\'e inequality, and its integral against~$\mu$ by the growth condition. \begin{proposition}\label{prop:localized-cutoff-trace} Assume~\hVD{} and~\hP{p}. Let $\mu$ be a finite Borel measure carried by a compact set~$K$, and suppose that \begin{equation*} \mu(B(y,s))\le M\,\frac{s^2}{\Psi_{C,2}(s)}\,m(B(y,s)) \qquad(y\in X,\ 00$, choose $t=c_\eta h$ with $c_\eta>0$ so small that the coefficient $C\,H(t)/r^2$ of the energy is at most~$\eta$. Since $t^2/\Psi_{C,2}(t)=H(t)/\Psi_P(t)$, the coefficient of the zeroth-order term is then at most $C_\eta/\Psi_P(h)$. Thus the cutoff function~$\chi$ of Step~1 satisfies, for every $\eta>0$, \begin{equation}\label{eq:CSA-eta} \int_Af^2\,d\Gamma(\chi)\le\eta\,\Gamma(f)(A)+\frac{C_\eta}{\Psi_S(r)}\int_Af^2\,dm\,,\qquad\Psi_S(r)=\Psi_P\bigl(H^{-1}(r^2)\bigr)\,. \end{equation} \emph{Step 4: the weighted inequality.} We pass from~\eqref{eq:CSA-eta} to~\eqref{eq:CSA-def} by the summation over annuli of~\cite[Lemma~5.1]{AB}, as in Lemma~\ref{hk:lem:h-weighted-cutoff}, with weights chosen so that the sum remains Lipschitz. The function~$\Psi_S$ has a positive lower and a finite upper scaling exponent; let $\beta$ be an upper exponent. Inside the given annulus choose successive concentric annuli~$A_j$, $j\ge1$, of widths $r_j=2^{-j-1}r$, starting at the radius~$R$, and let $\chi_j$ be the cutoff function of Step~1 for~$A_j$. Fix $0j$, so that $\widetilde\chi\ge\sum_{i>j}w_i=q^j$ there. Consequently \begin{equation*} \eta\,w_j^2\le\tfrac18\,\widetilde\chi^{\,2}\ \text{ on }A_j \quad\text{if }\ \eta\le\frac{q^2}{8(1-q)^2}\,, \qquad\text{and}\qquad \frac{w_j^2}{\Psi_S(r_j)}\le \frac{C}{\Psi_S(r)}\,, \end{equation*} the second bound because $\Psi_S(r)/\Psi_S(r_j)\le C2^{j\beta}$ and $q<2^{-\beta}$. Applying~\eqref{eq:CSA-eta} with this~$\eta$ on each~$A_j$, multiplying by~$w_j^2$ and summing gives~\eqref{eq:CSA-def} for~$\widetilde\chi$. The series also converges in the norm of the form: testing~\eqref{eq:CSA-eta} for~$\chi_j$ against a cutoff function equal to one on a neighbourhood of~$\overline A$ gives $\cE(\chi_j,\chi_j)\le C\,m(A)/\Psi_S(r_j)$, and $\sum_jw_j\,2^{j\beta/2}<\infty$. Hence $\widetilde\chi\in\cF$. This proves~\ref{lcc:csa}. At matching scales $H(s)\asymp s^2$, which gives~\ref{lcc:matching}. \end{proof} \begin{corollary}[Power scales]\label{cor:localized-cutoff-power} In the setting of Proposition~\ref{prop:localized-cutoff-CSA}, suppose that $\Psi_P(r)\asymp r^a$ and $\Psi_{C,2}(r)\asymp r^b$ at small radii. If $b-a<2$, then \begin{equation*} \CSA(r^{\beta})\quad\text{holds at small widths, with}\qquad \beta=\frac{2a}{2+a-b}\,. \end{equation*} Moreover, for each annulus as in Proposition~\ref{prop:localized-cutoff-CSA}, the cutoff function of Step~1 of its proof satisfies, for all $0<\eta\le1$, \begin{equation*} \int_A f^2\,d\Gamma(\chi)\le \eta\,\Gamma(f)(A) +C\,\eta^{1-\beta/2}\,r^{-\beta}\int_A f^2\,dm\,. \end{equation*} One has $a\le b$, $b\ge2$ and $\beta\ge b$, with $\beta=a$ when $a=b$. If, in addition, $\mathrm V(\Phi)$ holds with $\Phi(r)\asymp r^Q$ and $\Theta(r)\asymp r^s$, then $b=2+Q-s$. \end{corollary} \begin{proof} Here $H(s)\asymp s^{2+a-b}$, and~\eqref{eq:derived-CSA-scale} gives the exponent~$\beta$. Propositions~\ref{prop:scaleorder} and~\ref{prop:cutoffrestriction} give $a\le b$ and $b\ge2$, and $\beta\ge b$ is equivalent to $(b-a)(b-2)\ge0$. In~\eqref{eq:annular-localized-trace} take $t=c\,(\eta r^2)^{1/(2+a-b)}$; since $a\le b$, this satisfies $t\le cr$ after reducing the range of widths. The coefficient of the energy is then at most~$\eta$, and the coefficient of the zeroth-order term is $C\,r^{-2}t^{2-b}=C\,\eta^{1-\beta/2}r^{-\beta}$. The last assertion is~\eqref{eq:Theta}. \end{proof} Thus a Poincar\'e scale~$r^a$ and a cutoff scale~$r^b$ with $a\le b0$ and every sufficiently small $00} \Bigl(\frac R\rho-\frac{t}{\Psi_{C,2}(\rho)}\Bigr)\,. \end{equation} The supremum is finite by~\eqref{eq:heatscale}, and $\mathcal H(0,t)=0$. For a power $\Psi_{C,2}(r)=r^\beta$, \begin{equation*} r_t=t^{1/\beta}\,,\qquad \mathcal H(R,t)=c_\beta\Bigl(\frac{R^\beta}{t}\Bigr)^{1/(\beta-1)}\,,\qquad c_\beta=(\beta-1)\,\beta^{-\beta/(\beta-1)}\,, \end{equation*} which is $R^2/(4t)$ for $\beta=2$. We record three elementary properties of~$\mathcal H$, which follow the estimates for general scales of~\cite[Section~3.3]{GrTe12}; compare also~\cite[Lemma~1.5]{AB}. The constants depend only on those of~\eqref{eq:heatscale}. \begin{lemma}\label{lem:heatcost} Let $R\ge0$, $t>0$ and $\gamma=\beta_+/(\beta_+-1)$. \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{hc:near} $\mathcal H(R,t)\le C$ if $R\le r_t$. \item\label{hc:far} $\mathcal H(R,t)\ge c\,(R/r_t)^\gamma$ if $R\ge r_t$. \item\label{hc:dilation} For every $c_0>0$ there is $c_1>0$ such that $\mathcal H(c_0R,t)\ge c_1\,\mathcal H(R,t)$. \end{enumerate} \end{lemma} \begin{proof} Write $\Psi=\Psi_{C,2}$ and $r=r_t$, so that $t=\Psi(r)$. \ref{hc:near} Let $R\le r$. If $\rho\ge r$, then $R/\rho\le1$. If $\rho1$, the lower bound in~\eqref{eq:heatscale} gives $R/\rho-t/\Psi(\rho)\le s-c\,s^{\beta_-}$, which is bounded from above because $\beta_->1$. \ref{hc:far} Let $R\ge r$. For $\rho\le r$ and $s=r/\rho$, the upper bound in~\eqref{eq:heatscale} gives $R/\rho-t/\Psi(\rho)\ge(R/r)\,s-C\,s^{\beta_+}$. If $R/r$ is larger than a suitable constant, the choice $s^{\beta_+-1}=R/(2Cr)$ gives $\mathcal H(R,t)\ge c\,(R/r)^{\beta_+/(\beta_+-1)}$. For the remaining values of $R/r$, we use that $\mathcal H(\cdot,t)$ is nondecreasing and that $\mathcal H(r,t)\ge1/A-\Psi(r)/\Psi(Ar)\ge1/(2A)$ for a suitable fixed $A>1$. \ref{hc:dilation} If $c_0\ge1$, this follows from the monotonicity in~$R$. Let $01$ such that $\Psi(A\rho)\ge(A/c_0)\Psi(\rho)$ for all $\rho>0$. Restricting the supremum to the radii~$A\rho$, \begin{equation*} \mathcal H(c_0R,t)\ge\sup_{\rho>0}\Bigl(\frac{c_0R}{A\rho}-\frac{t}{\Psi(A\rho)}\Bigr)\ge\frac{c_0}{A}\,\mathcal H(R,t)\,.\qedhere \end{equation*} \end{proof} \paragraph{Two-sided estimates.} \begin{definition}\label{def:HKE} We say that $\HKE$ holds if $(\cE,\cF)$ is conservative and has a heat kernel $p_t(x,y)$ such that, for all $t>0$ 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 H(d(x,y),t)} \le p_t(x,y)\le \frac{c_3}{m(B(x,r_t))}\,e^{-c_4\mathcal H(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 $\HKE$ holds. \end{theorem} \begin{proof} Theorem~\ref{thm:closability} gives $2$-admissibility, 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 the conservativeness and the estimates~\eqref{eq:HKE}. \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}. What Theorem~\ref{thm:HKE} adds, for gradient structures, is that the cutoff Sobolev inequality need not be assumed: by Proposition~\ref{prop:CSA} it follows from the cutoff condition~\hB. 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 $00$ and positive constants $c_1,c_2,c_3,c_4$ such that, for $00$. The local hypotheses of Chapter~\ref{sec:harnack-chapter} hold, and Proposition~\ref{hk:prop:vd-kernel-existence} gives a heat kernel. \emph{Step 2: doubling.} Doubling at small radii extends, on a compact space, to doubling at all radii, with a constant depending on~$X$: finitely many balls of a fixed small radius cover~$X$, which gives a positive lower bound for the volume of all the balls of this radius. Consequently, for all $x,y\in X$ and $r>0$, \begin{equation*} \frac{m(B(x,r))}{m(B(y,r))}\le C\Bigl(1+\frac{d}{r}\Bigr)^{Q_D}\,. \end{equation*} \emph{Step 3: the upper bound.} Set $r=t^{1/\beta}$ and choose $t_0>0$ so that all the fixed dilations of this radius are in the range of the hypotheses for $08r$, apply Lemma~\ref{hk:lem:upper-perturbations} with $p=1$, the centre~$x$ and the radius $d/3$; it is available for the parameters $\lambda\ge\max\{1,d/(3s_0)\}$, and~\eqref{hk:eq:upper-L2-twisted} gives, as in~\cite[Proposition~2.3]{AB}, \begin{equation*} \langle\ind_{B(x,2r)},P_s\ind_{B(y,2r)}\rangle \le C\sqrt{m(B(x,r))\,m(B(y,r))}\, \exp\left[-\lambda+C\,t\,\lambda^\beta d^{-\beta}\right]\,, \qquad t/4\le s\le t\,. \end{equation*} Choose $\lambda=c\,(d^\beta/t)^{1/(\beta-1)}$ with a sufficiently small fixed $c>0$, so that the exponent is at most $-\lambda/2$. When this value of~$\lambda$ is less than one, the exponential in~\eqref{eq:compact-HKE} is bounded from below and the contraction property suffices. Otherwise the value is admissible after reducing~$t_0$: since $d>8t^{1/\beta}$, the width $d/(3\lambda)$ is comparable to $(t/d)^{1/(\beta-1)}\le C\,t^{1/\beta}$, hence at most~$s_0$. This gives the upper bound with the prefactor $(m(B(x,r))\,m(B(y,r)))^{-1/2}$. By Step~2 the ratio of the two volumes is at most $C(1+d/r)^{Q_D}$, and this factor is absorbed by the exponential, because $(d/r)^{\beta/(\beta-1)}=(d^\beta/t)^{1/(\beta-1)}$. \emph{Step 4: the lower bound.} Lemma~\ref{hk:lem:general-cutoff-lower} at the radius $t^{1/\beta}$ gives, for $00$ be small and let $N$ be the least positive integer such that $d/N\le\delta\,(t/N)^{1/\beta}$; then $N\le1+C(d^\beta/t)^{1/(\beta-1)}$. Chain along a geodesic from $x$ to~$y$ with the time step $t/N$, as in the proof of Corollary~\ref{hk:cor:vd-matching}. All the balls which occur have radii at most a fixed multiple of $t^{1/\beta}$, and are in the range of the hypotheses. The intermediate volumes cancel as in that proof, and \begin{equation*} p_t(x,y)\ge\frac{c^N}{m(B(x,t^{1/\beta}))}\,,\qquad 00$, 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 H(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 admissibility 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. The first inequality in~\eqref{eq:KS}, 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, the second inequality in~\eqref{eq:KS} proves~\eqref{eq:HKchar-C}. That inequality uses neither~$\PI(\Psi_{P,p})$ nor~\eqref{eq:matching}, and 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 $p$-admissible 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 H(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} \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 Leibniz rule, the bound $|\nabla u|\le\Lip(u)$ and the weak-$*$ continuity of condition~\ref{cond:gradient}; 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{Admissibility.} Conditions~\ref{A1} and~\ref{A2} 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 $p$-admissible for 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:gradient} 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: admissibility.} 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)$; this is~\ref{A1}. 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: a local Lipschitz bound.} Let $U\subset M$ be open, and let $u\in\Lip_b(M,d_g)$ and $L>0$ with $|\nabla u|\le L$ almost everywhere on~$U$. We claim that every $x\in U$ has a neighbourhood on which $u$ is $L$-Lipschitz for~$d_g$. The truncation below is a direct form of the passage from local to global bounds for intrinsic Lipschitz constants; compare~\cite[Lemma~4.4]{KSZ14} and~\cite[Lemma~5.4]{Stollmann10}. Choose a relatively compact open set~$V$ with $x\in V\subset\overline V\subset U$ and $V\ne M$, let $\rho=d_g(\cdot,M\setminus V)$, and define on~$M$ \begin{equation*} v=\bigl((u-u(x))\wedge L\rho\bigr)\vee(-L\rho)\,. \end{equation*} The function~$v$ is Lipschitz and vanishes outside~$V$. At almost every point, $dv$ is equal to $du$, to $L\,d\rho$ or to $-L\,d\rho$, according to which of the three functions $u-u(x)$, $L\rho$, $-L\rho$ is equal to~$v$, and $dv=0$ almost everywhere on $M\setminus V$. Since $|du|_{g^{-1}}\le L$ almost everywhere on~$V$, and $|d\rho|_{g^{-1}}\le1$ by~\eqref{eq:measurable-Rademacher}, we get $|dv|_{g^{-1}}\le L$ almost everywhere on~$M$. Thus $v/L$ is admissible in~\eqref{eq:measurable-metric-distance}, and $v$ is $L$-Lipschitz for~$d_g$ on~$M$. Since $\rho(x)>0$ and $u$ is continuous, $v=u-u(x)$ on a neighbourhood of~$x$, which proves the claim. \emph{Step 5: recovery of the metric.} We take $\iota\equiv1$. Let $y,z\in B_{d_g}(x,1)$ and $L>\|\nabla u\|_{L^\infty(B_{d_g}(x,3),\nu)}$. A minimizing geodesic for~$d_g$ from~$y$ to~$z$ exists by Step~2, and it lies in $U=B_{d_g}(x,3)$. By Step~4 and compactness, it can be divided into finitely many consecutive arcs on each of which $u$ is $L$-Lipschitz. Adding the corresponding inequalities gives $|u(y)-u(z)|\le L\,d_g(y,z)$, and letting $L$ decrease to $\|\nabla u\|_{L^\infty(B_{d_g}(x,3),\nu)}$ proves~\eqref{eq:metric-recovery}. \emph{Step 6: admissibility and Sobolev spaces.} Since $\nu$ is locally finite, $\cC_p=\Lip_c(M,d_g)$, which is uniformly dense in~$C_c(M)$. 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} \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 only locally comparable to~$g_0$, the same statements hold with constants which are uniform on compact sets. 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 $p$-admissible for 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: admissibility.} 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)$. 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 with $\nu=m$, the distance cutoffs give $\mathrm B(r^2)$ at every radius, by Lemma~\ref{lem:distance-cutoff}. Global doubling and global Poincar\'e inequalities require geometric conditions. We describe two: a generalized curvature-dimension inequality, and a comparison theorem for the sub-Laplacian of the distance. \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 two classes above, the theory at matching scales gives the critical exponent $\alpha_p=1$ for all finite $p\ge1$, and the characterization of $BV$ at $p=1$ (Theorems~\ref{thm:KS-critical-matching} and~\ref{thm:BV}). Under Proposition~\ref{prop:sr-global-CD}, $\alpha_p=1$ for $p>2-\varepsilon$. 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. 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 $p$-admissible for 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.} Fix $y,z\in B(x,r)$ and write $L=\|\nabla u\|_{L^\infty(B(x,3r),m)}$. Let $j$ be so large that $2h_j\diam X$ gives the global inequality, and the function $u=d(\cdot,z)$ attains the maximum in Theorem~\ref{thm:cubical-limit}\ref{cl:metric}. This completes the proof of Theorem~\ref{thm:cubical-limit}. \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$ 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$. Thus the harmonic gasket is, in a measurable sense, a Riemannian manifold of dimension one: at $\nu$-almost every point there is one tangent direction $\operatorname{Im}Z\subset\R^2$, and the energy is the integral of the square of the derivative in this direction. \subsection{The gradient structure} \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 $p$-admissible for 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:gradient}. 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=\langle e,Ze_i\rangle=e_i$, 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)$, which is~\ref{A1}. 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*} The partitions of~$K$ into the cells of a given level, outside the null set of the vertices, are nested, and they generate the Borel $\sigma$-field because the diameters of the cells tend uniformly to zero. The convergence theorem for martingales, applied to $|u-b|$ for rational~$b$, gives $|c-b|\le C|u(x)-b|$ for every rational~$b$, at almost every~$x$. Letting $b\to u(x)$ proves that $u=c$ almost everywhere. \end{proof} \paragraph{Recovery of the metric.} The structure is uniform: \eqref{eq:metric-recovery} holds with any constant~$\iota$. Indeed, suppose that $u\in\Lip(K,d)$ satisfies $|\nabla u|\le L$ almost everywhere on an open set~$U$. Choose $a\in U$ and an open neighbourhood~$V\ne K$ of~$a$ with $\overline V\subset U$, and put $\rho=d(\cdot,K\setminus V)$. The function $v=((u-u(a))\wedge L\rho)\vee(-L\rho)$ agrees with $u-u(a)$ near~$a$, and its gradient is bounded by~$L$ on~$K$, by locality. Since $d$ is the intrinsic distance and $\Gamma(v)=|\nabla v|^2\nu\le L^2\nu$, the function $v$ is $L$-Lipschitz on~$K$. Apply this local estimate along a geodesic from $y$ to~$z$, which lies in $B(x,3r)$ when $y,z\in B(x,r)$, and let $L$ decrease to the essential supremum of $|\nabla u|$ on~$B(x,3r)$. \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.} The Korevaar--Schoen critical exponents of Definition~\ref{def:KS-critical} can be computed for every $p\ge1$, although the Poincar\'e inequality is only known for $p>2-\varepsilon$. Let $\alpha>1$ and $f\in KS^{\alpha,p}(K)$. Lemma~\ref{lem:energy-cutoff-approximation} gives Lipschitz approximations $f_\delta\to f$ in $L^p(\nu)$ with \begin{equation*} \|\nabla f_\delta\|_{L^p(\nu)}^p\le C\,\delta^{p(\alpha-1)}\,[f]_{KS^{\alpha,p}}^p\longrightarrow0\,. \end{equation*} Hence $f\in W^{1,p}(K,\nu)$ and $\nabla_pf=0$, and Proposition~\ref{prop:harmonic-gasket} shows that~$f$ is constant. Since the Lipschitz functions are dense in~$L^p(\nu)$ and belong to $KS^{1,p}(K)$, both thresholds are attained, and \begin{equation*} \alpha_p^{\mathrm{dens}}=\alpha_p=1 \qquad (1\le p<\infty)\,. \end{equation*} The Poincar\'e inequality is replaced in this argument by the triviality of the kernel of the closed gradient. \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} In the examples of the preceding chapters the gradient measure~$\nu$ is the reference measure~$m$. In the present example the two measures are mutually singular: the space is the Euclidean plane, the gradient is the Euclidean gradient, $\nu$ is the Lebesgue measure, and $m$ is the Liouville measure~$M_\gamma$, a random multifractal measure. The Dirichlet form of this structure is that of the Liouville Brownian motion of Garban, Rhodes and Vargas~\cite{GRVLBM}. The example shows the following. \begin{itemize} \item \emph{Admissibility depends on the exponent.} The structure is $p$-admissible 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{The scales differ.} On compact sets, the Poincar\'e inequality holds at the scales~$r^a$ with $a<(2-\gamma)^2/2$, while the cutoff condition and the cutoff Sobolev inequality hold at the scales~$r^b$ with $b>(2+\gamma)^2/2$ (Propositions~\ref{prop:liouville-local-scales} and~\ref{prop:liouville-csa}). \item \emph{The volume is not uniform.} There is no volume function as in~\hV, and global doubling fails (Propositions~\ref{prop:liouville} and~\ref{prop:liouville-no-global-VD}). \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 $2$-admissible gradient structure of rank two on $(\R^2,|\cdot|,M_\gamma)$. 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 $2$-admissibility 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.} \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 $p$-admissibility is equivalent to the closability~\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 inequality~\eqref{eq:liouville-pi-volume} shows that the Poincar\'e inequality holds, up to a logarithm, with the volume of the ball itself in place of a power of the radius. \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 unweighted inequality~\eqref{eq:CSA-unweighted} at the scale~$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} Thus, locally, the Liouville form satisfies a Poincar\'e inequality and a cutoff Sobolev inequality at two different scales, $r^a$ with $a<(2-\gamma)^2/2<2$ and $r^\beta$ with $\beta>(2+\gamma)^2/2>2$, in agreement with the order of the scales of Proposition~\ref{prop:quadratic-scale-order}. The gap between the two exponents is at least $4\gamma$; it reflects the multifractal structure of the measure. \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}. \paragraph{Exit times.} \begin{proposition}\label{prop:liouville-exit-clock} Let $\tau_{x,r}$ be the first exit time of the 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 small~$r$, \begin{equation}\label{eq:liouville-exit-volume} \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\frac er\,. \end{equation} At every point where the local dimension of~$M_\gamma$ exists, the exponent of the mean exit time is equal to this dimension. In particular, \begin{equation}\label{eq:liouville-exit-exponent} \lim_{r\downarrow0}\frac{\log\mathbb E_x\tau_{x,r}}{\log r} =2-\frac{\gamma^2}{2} \qquad\text{for }M_\gamma\text{-almost every }x\,. \end{equation} \end{proposition} \begin{proof} The occupation formula for the time change expresses the mean exit time as the Green potential of~$M_\gamma$ in the ball, which is~\eqref{eq:liouville-exit-green}~\cite[Lemma~6.3]{AK}. Restricting the integral to~$B(x,r/2)$ gives the lower bound. The upper bound follows from~\eqref{eq:liouville-green-potential} and the lower bound for the volume, as in~\cite[Lemma~6.4]{AK}. Taking logarithms gives the exponent. \end{proof} Thus the mean exit time from a ball is governed by the volume of concentric balls for~$M_\gamma$, in agreement with the constant capacity~\eqref{eq:liouville-capacity}, and not by a function of the radius: the time scale of the process depends on the point. \paragraph{Distances and harmonic functions.} Since $d\Gamma(u)=|\nabla u|^2\,dx$ and $M_\gamma$ is singular, the intrinsic pseudo-distance of the Dirichlet form, defined by the constraint $d\Gamma(u)\le M_\gamma$, vanishes identically~\cite[Proposition~3.1]{GRV}. In contrast, the constraint $|\nabla u|\le1$ with respect to the gradient measure~$dx$, as in Proposition~\ref{calc:metric}, recovers the Euclidean distance. This illustrates the role of the gradient measure in Definition~\ref{def:SL}. By~\eqref{eq:liouville-form} and Weyl's lemma, the harmonic functions of the form have representatives which are harmonic in the Euclidean sense, and they satisfy the Euclidean elliptic Harnack inequality. The measure~$M_\gamma$ enters the parabolic equation only: the derivative in time is integrated against~$M_\gamma$. \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$ which gives no mass to any cube. For this space we determine \begin{itemize} \item the exponents of admissibility: $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 critical Korevaar--Schoen spaces, which are equal to $W^{1,p}(X,m)$ for $p>n$ and are proper dense subspaces for admissible $11$, 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$ is any Radon measure with full support satisfying a uniform control of the volume; it may be singular with respect to~$\nu$, and $\nu$ need not be locally finite. \begin{proposition}\label{prop:tree} Let $X$ be a proper uniform local tree, and let $m$ be a Radon measure with full support satisfying the uniform volume control of~\cite{BCY}, with the volume function~$\Phi$. A measurable orientation of the arcs defines a gradient~$\nabla$ of rank one, with $|\nabla u|=|\partial u|$. The resulting gradient structure is $p$-admissible for every $1\le p<\infty$. At sufficiently small radii, \begin{equation*} \mathrm V(\Phi)\,,\qquad \mathrm B(r\,\Phi(r))\,,\qquad \mathrm{PI}_p\bigl(r^{p-1}\Phi(r)\bigr)\quad(1\le p<\infty)\,. \end{equation*} For $10)\,. \end{equation} For $s=2r$ this is $\mathrm B(r\,\Phi(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 $\mathrm{PI}_p(r^{p-1}\Phi(r))$; the estimate is valid also at $p=1$. The cutoffs give~\ref{A1}. 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.} 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}\asymp\Bigl(\frac sr\Bigr)^2\frac{m(B(y,s))}{s\,\Phi(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 admissibility 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 windows through which the new cubes of the level~$j$ are attached. The windows 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 which chooses one child uniformly at each step; the image of a sequence of nested mesh cubes is the intersection of their cells. 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 through small windows. 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 windows 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*} By~\eqref{eq:cube-stage-retractions} it is equal to one on $B(x,r)$, and its support lies in $B(x,2r)$. This 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{Admissibility.} \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 $p$-admissible 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 admissible exponent, 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 admissible $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$, and for $n>2$ one has $p_*<2$; in all cases $p_*2$ the threshold decreases to zero with~$\sigma$: the larger the windows, the larger the range of admissibility. The mechanism is the same as in Chapter~\ref{sec:liouville-chapter}. If the windows have a positive capacity at the scale of the cubes, in the sense that $h_j^n\,\kappa_p(h_j,\delta_j)$ remains bounded, the values of a function on the pieces determine its values $m$-almost everywhere, and the gradient is closable. Otherwise a function can be modified near all the windows at a small cost in energy, so that the pieces carry a nonzero gradient while the function tends 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)$,~\ref{A1} holds 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 admissibility 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} and this scale is sharp: if $\mathrm{PI}_p(\Psi)$ holds at small radii, then $\Psi(r)\ge c\,\Psi_{P,p}(r)$ for all sufficiently small~$r$. Consequently the Poincar\'e scale and the cutoff scale $\Psi_{C,p}(r)=r^{Q+p-n}$ match if and only if $p>n$. \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 windows of the levels~$j$ with $h_j\asymp r$. For $p>n$ the windows play no role, because points have positive $p$-capacity. For admissible $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}, if $\mathrm{PI}_p(\Psi)$ holds, then $\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_i1$ be admissible, fix $u\in\cC_p$, and write $h=h_j$. We construct $v_j\in\Lip(X_j)$ such that \begin{equation}\label{eq:cube-density-bounds} \cE_p(v_j\circ\widetilde\pi_j) \le C\,\cE_p(u)\,,\qquad \sum_{P\subset X_j}\int_P|v_j-u|^p\,dx\le C\,h^p\,\cE_p(u)\,. \end{equation} The difficulty is that $u\circ\widetilde\pi_j$ itself does not approximate~$u$ in energy: on the later pieces it depends only on the values of~$u$ near the windows. The function~$v_j$ is obtained from~$u$ by a regularization at the scale~$h$ on the pieces of~$X_j$, which makes its Lipschitz constant on each mesh cube comparable to the average of~$|\nabla u|$ nearby, so that~\eqref{eq:cube-extension-energy} controls the energy of the extension. All the modifications below are made on the Euclidean pieces. Distinct interfaces in a piece of~$X_j$ are $h$-separated; fix $\eta>0$, 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 admissible, 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 admissible~$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{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{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{We} N.~Weaver, Lipschitz algebras and derivations.~II. Exterior differentiation, \emph{J. Funct. Anal.} \textbf{178} (2000), 64--112. \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}