Skip to content

Commit 2aa2c17

Browse files
committed
Imagem fluxo
1 parent c0c8489 commit 2aa2c17

30 files changed

+315
-28
lines changed

Diff for: Notes-Portugues/3-fluxo-gradiente-wasserstein.tex

+106-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ \chapter{Fluxo de Gradiente em Espaços de Wasserstein}
33

44
Neste capítulo mostraremos como EDPs podem ser expressadas como
55
fluxos de gradiente em um espaço de Wasserstein
6-
(i.e. espaço métrico de medidas de probabilidades com distância de Wasserstein). A exposição é
6+
(i.e. espaço métrico de medidas de probabilidades com distância
7+
de Wasserstein)\footnote{A principal referência para este capítulo
8+
é \citet{santambrogio2017euclidean}.}. A exposição é
79
focada em apresentar de maneira clara e sucinta o necessário para entendimento
810
do assunto, sem provar os resultados mais refinados, o que tornaria o
911
texto muito extenso e de difícil
@@ -41,6 +43,8 @@ \chapter{Fluxo de Gradiente em Espaços de Wasserstein}
4143

4244
\section{Introdução ao Fluxo de Gradiente}
4345

46+
\subsection{Definições Iniciais}
47+
4448
Antes de formalizar a ideia de fluxo de gradiente, vamos introduzir alguns
4549
conceitos de análise convexa que são necessárias para tratar
4650
do assunto de maneira rigorosa.
@@ -53,9 +57,10 @@ \section{Introdução ao Fluxo de Gradiente}
5357
f(y) \geq f(x) + \langle p, y-x\rangle, \forall y \in \mathbb R^n
5458
\}.
5559
\end{equation}
60+
Se $p \in \partial f(x)$, então $p$ é um subgradiente de $f$ no ponto $x$.
5661
\end{definition}
5762
A intuição por trás da definição
58-
de subdiferencial (ou subgradiente) é ilustrada na Figura \ref{fig:subdiferencial}.
63+
de subdiferencial é ilustrada na Figura \ref{fig:subdiferencial}.
5964
Note que se a função $f$ for convexa e diferenciável, teremos que $\partial f(x) = \{\nabla f(x)\}$.
6065
Porém, caso a função não seja convexa, não haverá essa garantia. Assim, é comum usar essa ideia de
6166
subdiferencial somente em funções convexas.
@@ -106,19 +111,115 @@ \section{Introdução ao Fluxo de Gradiente}
106111

107112
\begin{figure}[H]
108113
\includegraphics[width=1\textwidth]{./Figures/subdiferencial}
109-
\caption{Exemplo de subdiferencial.}
114+
\caption{Exemplo de subdiferencial. Perceba que considerando
115+
o subdiferencial generalizado, teríamos
116+
$p_1 \in \partial_G f(0)$ e $p_2 \in \partial_G f(0)$ para as duas imagens.}
110117
\label{fig:subdiferencial}
111118
\end{figure}
112119

113120
Agora podemos definir de forma rigorosa o fluxo de gradiente.
114121

115122
\begin{definition}[Fluxo de Gradiente]
116123
Seja $f:\mathbb R^n \to \mathbb R$.
117-
Dizemos que $x:(0,+\infty) \to \text{Dom}(f)$ é um fluxo de gradiente
124+
Assim, dizemos que $x:(0,+\infty) \to \text{Dom}(f)$ é um fluxo de gradiente
118125
de $f$ se $x \in \text{AC}_{\text{loc}}((0,+\infty), \mathbb R^n)$ e
119126
\begin{equation}
120127
x'(t) \in - \nabla_G f(x(t)), \quad \text{para } \lambda\text{-a.e } t \in (0,+\infty),
121128
\end{equation}
122129
onde $\lambda$ é a medida de Lebesgue. Note que dizemos que $x$ começa em $x_0$ se
123130
$\lim_{t \to 0^+} x(t) = x_0$.
124-
\end{definition}
131+
\end{definition}
132+
133+
\subsection{Resultados Básicos de Existência e Unicidade}
134+
135+
Uma vez introduzida a ideia de fluxo de gradiente, vamos agora provar alguns
136+
resultados básicos relacionados ao sistema de equações
137+
138+
\begin{equation}
139+
\begin{cases}
140+
x'(t) \in -\partial F(x(t)), \ \text{para quase todo } t>0,\\
141+
x(0) = x_0.
142+
\end{cases}
143+
\label{eq:fluxograd}
144+
\end{equation}
145+
146+
Veja que agora a função $F$ não é mais necessariamente derivável. Este cenário
147+
é bem menos restrito que o que apresentamos logo no início do capítulo.
148+
149+
\begin{lemma}
150+
Seja $f:\mathbb R^n \to \mathbb R \cup \{+\infty\}$ convexa, $p_1 \in \partial f(x_1)$
151+
e $p_2 \partial f(x_2)$. Então
152+
\begin{equation}
153+
\langle p_1 - p_2, x_1 - x_2 \rangle \geq 0.
154+
\end{equation}
155+
\end{lemma}
156+
\begin{prf}
157+
Pela definição de subdiferencial, temos que
158+
\begin{align*}
159+
&p_1 \in \partial f(x_1) \implies f(x_2) \geq f(x_1) + \langle p_1, x_2 - x_1\rangle\\
160+
&p_2 \in \partial f(x_2) \implies
161+
f(x_1) \geq f(x_2) + \langle p_2, x_1 - x_2\rangle.
162+
\end{align*}
163+
Assim, somando as duas equações, temos que
164+
\begin{align*}
165+
&f(x_2) + f(x_1) \geq f(x_1) + f(x_2) +
166+
\langle p_1, x_2 - x_1\rangle
167+
\langle p_2, x_1 - x_2\rangle
168+
\end{align*}
169+
Rearranjando, obtemos
170+
\begin{align*}
171+
&0 \geq
172+
\langle p_1,x_2 \rangle
173+
-\langle p_2,x_1 \rangle
174+
\langle p_2,x_1 \rangle
175+
-\langle p_2,x_2 \rangle \\
176+
&\implies
177+
\langle p_1 - p_2 , x_1 - x_2 \rangle \geq 0.
178+
\end{align*}
179+
\end{prf}
180+
181+
\begin{theorem}
182+
Seja $F:\mathbb R^n \to \mathbb R$ \textbf{convexa}, $x_0 \in \mathbb R^n$, e
183+
$x_1$ e $x_2$ duas soluções de \eqref{eq:fluxograd}.
184+
Então,
185+
\begin{equation}
186+
|x_1(t) - x_2(t)| \leq |x_1(0) - x_2(0)|, \ \forall t >0.
187+
\end{equation}
188+
Logo, a solução do sistema de equações é única.
189+
\end{theorem}
190+
\begin{prf}
191+
Primeiro, faça $g(t) = \frac{(x_1(t) - x_2(t))^2}{2}$, e toma a derivada em $t$. Assim
192+
\begin{equation*}
193+
g'(t) = \langle x_1(t) - x_2(t), x_1'(t) - x_2'(t) \rangle.
194+
\end{equation*}
195+
Usando o fato que
196+
$x_1'(t) \in \partial F(x_1(t))$ e
197+
$x_2'(t) \in \partial F(x_2(t))$, temos pelo lemma que acabamos de demonstrar que
198+
\begin{equation*}
199+
g'(t) = \langle x_1'(t) - x_2'(t) , x_1(t) - x_2(t) \rangle \geq 0.
200+
\end{equation*}
201+
Além disso, como ambas as soluções começam em $x_0$, temos que $g(0) = 0 \geq g(t)$, já que
202+
a derivada de $g(t)$ é sempre menor ou igual a zero. Portanto
203+
\begin{align*}
204+
g(t) = \frac{(x_1(t) - x_2(t))^2}{2} \leq 0 &\implies
205+
|x_1(t) - x_2(t)| \leq |x_1(0) - x_2(0)| = 0
206+
\\
207+
&\implies
208+
x_1(t) = x_2(t).
209+
\end{align*}
210+
\end{prf}
211+
212+
Podemos estender o resultado do teorema acima para o caso mais geral onde
213+
$F$ é $\lambda$-convexa. A demonstração é bastante parecida, porém, um pouco mais convoluta.
214+
Por conta disso optamos por apresentar os dois resultados de forma separada.
215+
216+
\begin{theorem}
217+
Seja $F:\mathbb R^n \to \mathbb R$ \textbf{$\lambda$-convexa}, $x_0 \in \mathbb R^n$.
218+
Então o sistema de equações \eqref{eq:fluxograd} tem uma solução única.
219+
Além disso, se $\lambda >0$, a taxa de convergência para o mínimo global
220+
de $F$ é exponencial, ou seja, para $x^* = \argmin_{x\in \mathbb R^n} F(x)$
221+
\begin{equation}
222+
|x(t) - x^*| \leq e^{-\lambda t}|x(0)- x^*|,
223+
\end{equation}
224+
onde $x(t)$ é a solução.
225+
\end{theorem}

Diff for: Notes-Portugues/Introducao-Transporte-Otimo.loe

+22-18
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,26 @@
7070
\contentsline {definition}{\ifthmt@listswap Definition~3.1.2\else \numberline {3.1.2}Definition\fi \thmtformatoptarg {$\lambda $-Convexidade}}{61}{definition.3.1.2}%
7171
\contentsline {definition}{\ifthmt@listswap Definition~3.1.3\else \numberline {3.1.3}Definition\fi \thmtformatoptarg {$\lambda $-Subdiferencial}}{62}{definition.3.1.3}%
7272
\contentsline {definition}{\ifthmt@listswap Definition~3.1.4\else \numberline {3.1.4}Definition\fi \thmtformatoptarg {Subdiferencial Generalizado}}{62}{definition.3.1.4}%
73-
\contentsline {definition}{\ifthmt@listswap Definition~3.1.5\else \numberline {3.1.5}Definition\fi \thmtformatoptarg {Fluxo de Gradiente}}{62}{definition.3.1.5}%
73+
\contentsline {definition}{\ifthmt@listswap Definition~3.1.5\else \numberline {3.1.5}Definition\fi \thmtformatoptarg {Fluxo de Gradiente}}{63}{definition.3.1.5}%
74+
\contentsline {lemma}{\ifthmt@listswap Lemma~3.1.1\else \numberline {3.1.1}Lemma\fi }{63}{lemma.3.1.1}%
75+
\contentsline {theorem}{\ifthmt@listswap Theorem~3.1.1\else \numberline {3.1.1}Theorem\fi }{64}{theorem.3.1.1}%
76+
\contentsline {theorem}{\ifthmt@listswap Theorem~3.1.2\else \numberline {3.1.2}Theorem\fi }{64}{theorem.3.1.2}%
7477
\addvspace {10\p@ }
75-
\contentsline {definition}{\ifthmt@listswap Definition~4.1.1\else \numberline {4.1.1}Definition\fi }{65}{definition.4.1.1}%
76-
\contentsline {definition}{\ifthmt@listswap Definition~4.1.2\else \numberline {4.1.2}Definition\fi }{65}{definition.4.1.2}%
77-
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.1\else \numberline {4.1.1}Theorem\fi }{65}{theorem.4.1.1}%
78-
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.2\else \numberline {4.1.2}Theorem\fi }{66}{theorem.4.1.2}%
79-
\contentsline {corollary}{\ifthmt@listswap Corollary~4.1.1\else \numberline {4.1.1}Corollary\fi }{66}{corollary.4.1.1}%
80-
\contentsline {proposition}{\ifthmt@listswap Proposition~4.1.1\else \numberline {4.1.1}Proposition\fi }{66}{proposition.4.1.1}%
81-
\contentsline {definition}{\ifthmt@listswap Definition~4.1.3\else \numberline {4.1.3}Definition\fi }{66}{definition.4.1.3}%
82-
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.3\else \numberline {4.1.3}Theorem\fi }{66}{theorem.4.1.3}%
83-
\contentsline {definition}{\ifthmt@listswap Definition~4.1.4\else \numberline {4.1.4}Definition\fi }{66}{definition.4.1.4}%
84-
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.4\else \numberline {4.1.4}Theorem\fi }{67}{theorem.4.1.4}%
85-
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.5\else \numberline {4.1.5}Theorem\fi }{67}{theorem.4.1.5}%
86-
\contentsline {definition}{\ifthmt@listswap Definition~4.1.5\else \numberline {4.1.5}Definition\fi }{67}{definition.4.1.5}%
87-
\contentsline {definition}{\ifthmt@listswap Definition~4.1.6\else \numberline {4.1.6}Definition\fi }{67}{definition.4.1.6}%
88-
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.6\else \numberline {4.1.6}Theorem\fi }{67}{theorem.4.1.6}%
89-
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.7\else \numberline {4.1.7}Theorem\fi }{67}{theorem.4.1.7}%
90-
\contentsline {lemma}{\ifthmt@listswap Lemma~4.2.1\else \numberline {4.2.1}Lemma\fi }{68}{lemma.4.2.1}%
91-
\contentsline {lemma}{\ifthmt@listswap Lemma~4.2.2\else \numberline {4.2.2}Lemma\fi }{69}{lemma.4.2.2}%
78+
\contentsline {definition}{\ifthmt@listswap Definition~4.1.1\else \numberline {4.1.1}Definition\fi }{67}{definition.4.1.1}%
79+
\contentsline {definition}{\ifthmt@listswap Definition~4.1.2\else \numberline {4.1.2}Definition\fi }{67}{definition.4.1.2}%
80+
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.1\else \numberline {4.1.1}Theorem\fi }{67}{theorem.4.1.1}%
81+
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.2\else \numberline {4.1.2}Theorem\fi }{68}{theorem.4.1.2}%
82+
\contentsline {corollary}{\ifthmt@listswap Corollary~4.1.1\else \numberline {4.1.1}Corollary\fi }{68}{corollary.4.1.1}%
83+
\contentsline {proposition}{\ifthmt@listswap Proposition~4.1.1\else \numberline {4.1.1}Proposition\fi }{68}{proposition.4.1.1}%
84+
\contentsline {definition}{\ifthmt@listswap Definition~4.1.3\else \numberline {4.1.3}Definition\fi }{68}{definition.4.1.3}%
85+
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.3\else \numberline {4.1.3}Theorem\fi }{68}{theorem.4.1.3}%
86+
\contentsline {definition}{\ifthmt@listswap Definition~4.1.4\else \numberline {4.1.4}Definition\fi }{68}{definition.4.1.4}%
87+
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.4\else \numberline {4.1.4}Theorem\fi }{69}{theorem.4.1.4}%
88+
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.5\else \numberline {4.1.5}Theorem\fi }{69}{theorem.4.1.5}%
89+
\contentsline {definition}{\ifthmt@listswap Definition~4.1.5\else \numberline {4.1.5}Definition\fi }{69}{definition.4.1.5}%
90+
\contentsline {definition}{\ifthmt@listswap Definition~4.1.6\else \numberline {4.1.6}Definition\fi }{69}{definition.4.1.6}%
91+
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.6\else \numberline {4.1.6}Theorem\fi }{69}{theorem.4.1.6}%
92+
\contentsline {theorem}{\ifthmt@listswap Theorem~4.1.7\else \numberline {4.1.7}Theorem\fi }{69}{theorem.4.1.7}%
93+
\contentsline {lemma}{\ifthmt@listswap Lemma~4.2.1\else \numberline {4.2.1}Lemma\fi }{70}{lemma.4.2.1}%
94+
\contentsline {lemma}{\ifthmt@listswap Lemma~4.2.2\else \numberline {4.2.2}Lemma\fi }{71}{lemma.4.2.2}%
95+
\contentsline {lemma}{\ifthmt@listswap Lemma~4.2.3\else \numberline {4.2.3}Lemma\fi \thmtformatoptarg {Lemma de Gronwall}}{71}{lemma.4.2.3}%

Diff for: Notes-Portugues/Introducao-Transporte-Otimo.lof

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
\contentsline {figure}{\numberline {1.6}{\ignorespaces Illustration of the algorithm for optimally transporting distribution $\mu $ in blue to distribution $\nu $ in red.}}{38}{figure.1.6}%
99
\addvspace {10\p@ }
1010
\addvspace {10\p@ }
11-
\contentsline {figure}{\numberline {3.1}{\ignorespaces Exemplo de subdiferencial.}}{62}{figure.3.1}%
11+
\contentsline {figure}{\numberline {3.1}{\ignorespaces Exemplo de subdiferencial. Perceba que considerando o subdiferencial generalizado, teríamos $p_1 \in \partial _G f(0)$ e $p_2 \in \partial _G f(0)$ para as duas imagens.}}{62}{figure.3.1}%
1212
\addvspace {10\p@ }

Diff for: Notes-Portugues/Introducao-Transporte-Otimo.pdf

5.34 KB
Binary file not shown.

Diff for: Notes-Portugues/Introducao-Transporte-Otimo.synctex(busy)

Whitespace-only changes.

Diff for: Notes-Portugues/Introducao-Transporte-Otimo.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
\newpage
9696
\tableofcontents
9797
\include{notation}
98-
\listoftheorems
98+
\listoftheorems[onlynamed]
9999
\listoffigures
100100

101101
\mainmatter

Diff for: Notes-Portugues/Introducao-Transporte-Otimo.toc

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
\contentsline {subsection}{\numberline {2.1.6}Wasserstein Gradient Flows}{58}{subsection.2.1.6}%
2121
\contentsline {chapter}{\numberline {3}Fluxo de Gradiente em Espaços de Wasserstein}{60}{chapter.3}%
2222
\contentsline {section}{\numberline {3.1}Introdução ao Fluxo de Gradiente}{61}{section.3.1}%
23-
\contentsline {chapter}{\numberline {4}Appendix}{65}{chapter.4}%
24-
\contentsline {section}{\numberline {4.1}Auxiliary - Probability and Analysis}{65}{section.4.1}%
25-
\contentsline {section}{\numberline {4.2}Auxiliary - Inequalities}{68}{section.4.2}%
23+
\contentsline {subsection}{\numberline {3.1.1}Definições Iniciais}{61}{subsection.3.1.1}%
24+
\contentsline {subsection}{\numberline {3.1.2}Resultados Básicos de Existência e Unicidade}{63}{subsection.3.1.2}%
25+
\contentsline {chapter}{\numberline {4}Appendix}{67}{chapter.4}%
26+
\contentsline {section}{\numberline {4.1}Auxiliary - Probability and Analysis}{67}{section.4.1}%
27+
\contentsline {section}{\numberline {4.2}Auxiliary - Inequalities}{70}{section.4.2}%

Diff for: Notes-Portugues/appendix.tex

+12
Original file line numberDiff line numberDiff line change
@@ -247,4 +247,16 @@ \section{Auxiliary - Inequalities}
247247
\end{equation}
248248
Where $||f||_{L^p(X)}^p = \int_X |f|^p d\mu$.
249249
\label{lem:minkowski}
250+
\end{lemma}
251+
252+
\begin{lemma}[Lemma de Gronwall]
253+
Seja $f:I\to \mathbb R$ uma função contínua e não negativa
254+
em um intervalo $I\subset \mathbb R$, tal que
255+
\begin{equation}
256+
f(t) \leq a +\left | \int_u^t b f(s) ds\right|
257+
\end{equation}
258+
para todo $t\in I$, com $a,b\geq 0$, e $u \in I$ constantes. Então
259+
\begin{equation}
260+
f(t) \leq a e^{b|t-u|}, \forall t \in I.
261+
\end{equation}
250262
\end{lemma}

Diff for: Tutorials/.ipynb_checkpoints/GradientFlow-checkpoint.ipynb

+84
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: Tutorials/GradientFlow.ipynb

+84
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)