Skip to content

Commit 9640859

Browse files
peabrainiacriccardobrasca
authored andcommitted
doc(Analysis/DifferentialForm): fix equations in docstrings (leanprover-community#37567)
Fix equations in the docstrings in `Mathlib.Analysis.DifferentialForm.VectorField`.
1 parent dc62f3d commit 9640859

1 file changed

Lines changed: 32 additions & 34 deletions

File tree

Mathlib/Analysis/Calculus/DifferentialForm/VectorField.lean

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ In this file we prove the following formula and its corollaries.
1616
If `ω` is a differentiable `k`-form and `V i` are `k + 1` differentiable vector fields, then
1717
1818
$$
19-
dω(V_0(x), \dots, V_n(x)) =
20-
\left(\sum_{i=0}^k (-1)^i • D_x(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_k(x)))(V_i(x)) +
21-
\sum_{0 \le i < j\le k} (-1)^{i + j}
22-
ω(x; [V_i, V_j](x), V_0(x), …, \widehat{V_i(x)}, …, \widehat{V_j(x)}, …, V_k(x)),
19+
dω(V_0(x), \dots, V_n(x)) = \sum_{i=0}^k (-1)^i •
20+
D_x\left(ω\big(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_k(x)\big)\right)(V_i(x)) +
21+
\sum_{0 \le i < j\le k} (-1)^{i + j}
22+
ω\big(x; [V_i, V_j](x), V_0(x), …, \widehat{V_i(x)}, …, \widehat{V_j(x)}, …, V_k(x)\big),
2323
$$
24-
where $$[V_i, V_j]$$ is the commutator of the vector fields $$V_i$$ and $$V_j$$.
25-
As usual, $$\widehat{V_i(x)}$$ means that this item is removed from the sequence.
24+
where $[V_i, V_j]$ is the commutator of the vector fields $V_i$ and $V_j$.
25+
As usual, $\widehat{V_i(x)}$ means that this item is removed from the sequence.
2626
2727
There is no convenient way to write the second term in Lean for `k = 0`,
2828
so we only state this theorem for `k = n + 1`,
@@ -51,25 +51,25 @@ If `ω` is a differentiable `(n + 1)`-form and `V i` are `n + 2` differentiable
5151
5252
$$
5353
dω(V_0(x), \dots, V_{n + 1}(x)) =
54-
\left(\sum_{i=0}^{n + 1}
55-
(-1)^i • D_x(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)))(V_i(x)) -
54+
\sum_{i=0}^{n + 1} (-1)^i •
55+
D_x\left(ω\big(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)\big)\right)(V_i(x)) -
5656
\sum_{0 \le i \le j\le n} (-1)^{i + j}
57-
ω(x; [V_i, V_{j + 1}](x),
58-
V_0(x), …, \widehat{V_i(x)}, …, \widehat{V_{j + 1}(x)}, …, V_k(x)),
57+
ω\big(x; [V_i, V_{j + 1}](x),
58+
V_0(x), …, \widehat{V_i(x)}, …, \widehat{V_{j + 1}(x)}, …, V_k(x)\big),
5959
$$
6060
61-
where $$[V_i, V_{j + 1}]$$ is the commutator of the vector fields $$V_i$$ and $$V_{j + 1}$$.
62-
As usual, $$\widehat{V_i(x)}$$ means that this item is removed from the sequence.
61+
where $[V_i, V_{j + 1}]$ is the commutator of the vector fields $V_i$ and $V_{j + 1}$.
62+
As usual, $\widehat{V_i(x)}$ means that this item is removed from the sequence.
6363
6464
In informal texts, this formula is usually written as
6565
6666
$$
6767
dω(V_0(x), \dots, V_{n + 1}(x)) =
68-
\left(\sum_{i=0}^{n + 1}
69-
(-1)^i • D_x(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)))(V_i(x)) -
68+
\sum_{i=0}^{n + 1} (-1)^i •
69+
D_x\left(ω\big(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)\big)\right)(V_i(x)) -
7070
\sum_{0 \le i < j\le n + 1} (-1)^{i + j}
71-
ω(x; [V_i, V_j](x),
72-
V_0(x), …, \widehat{V_i(x)}, …, \widehat{V_j(x)}, …, V_k(x)).
71+
ω\big(x; [V_i, V_j](x),
72+
V_0(x), …, \widehat{V_i(x)}, …, \widehat{V_j(x)}, …, V_k(x)\big).
7373
$$
7474
7575
In the sum from our formalization,
@@ -112,25 +112,25 @@ If `ω` is a differentiable `(n + 1)`-form and `V i` are `n + 2` differentiable
112112
113113
$$
114114
dω(V_0(x), \dots, V_{n + 1}(x)) =
115-
\left(\sum_{i=0}^{n + 1}
116-
(-1)^i • D_x(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)))(V_i(x)) -
115+
\sum_{i=0}^{n + 1} (-1)^i •
116+
D_x\left(ω\big(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)\big)\right)(V_i(x)) -
117117
\sum_{0 \le i \le j\le n} (-1)^{i + j}
118-
ω(x; [V_i, V_{j + 1}](x),
119-
V_0(x), …, \widehat{V_i(x)}, …, \widehat{V_{j + 1}(x)}, …, V_k(x)),
118+
ω\big(x; [V_i, V_{j + 1}](x),
119+
V_0(x), …, \widehat{V_i(x)}, …, \widehat{V_{j + 1}(x)}, …, V_k(x)\big),
120120
$$
121121
122-
where $$[V_i, V_{j + 1}]$$ is the commutator of the vector fields $$V_i$$ and $$V_{j + 1}$$.
123-
As usual, $$\widehat{V_i(x)}$$ means that this item is removed from the sequence.
122+
where $[V_i, V_{j + 1}]$ is the commutator of the vector fields $V_i$ and $V_{j + 1}$.
123+
As usual, $\widehat{V_i(x)}$ means that this item is removed from the sequence.
124124
125125
In informal texts, this formula is usually written as
126126
127127
$$
128128
dω(V_0(x), \dots, V_{n + 1}(x)) =
129-
\left(\sum_{i=0}^{n + 1}
130-
(-1)^i • D_x(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)))(V_i(x)) -
129+
\sum_{i=0}^{n + 1} (-1)^i •
130+
D_x\left(ω\big(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)\big)\right)(V_i(x)) -
131131
\sum_{0 \le i < j\le n + 1} (-1)^{i + j}
132-
ω(x; [V_i, V_j](x),
133-
V_0(x), …, \widehat{V_i(x)}, …, \widehat{V_j(x)}, …, V_k(x)).
132+
ω\big(x; [V_i, V_j](x),
133+
V_0(x), …, \widehat{V_i(x)}, …, \widehat{V_j(x)}, …, V_k(x)\big).
134134
$$
135135
136136
In the sum from our formalization,
@@ -153,12 +153,11 @@ theorem extDeriv_apply_vectorField {ω : E → E [⋀^Fin (n + 1)]→L[𝕜] F}
153153
exact extDerivWithin_apply_vectorField hω hV (by simp)
154154

155155
/-- Let `ω` be a differentiable `n`-form and `V i` be `n + 1` differentiable vector fields.
156-
If `V i` pairwise commute at `x`, i.e., $$[V_i, V_j](x) = 0$$ for all `i ≠ j`, then
156+
If `V i` pairwise commute at `x`, i.e., $[V_i, V_j](x) = 0$ for all `i ≠ j`, then
157157
158158
$$
159-
dω(V_0(x), \dots, V_{n + 1}(x)) =
160-
\left(\sum_{i=0}^{n + 1}
161-
(-1)^i • D_x(ω(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)))(V_i(x)).
159+
dω(V_0(x), \dots, V_{n + 1}(x)) = \sum_{i=0}^{n + 1} (-1)^i •
160+
D_x\left(ω\big(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)\big)\right)(V_i(x)).
162161
$$
163162
-/
164163
theorem extDerivWithin_apply_vectorField_of_pairwise_commute
@@ -179,12 +178,11 @@ theorem extDerivWithin_apply_vectorField_of_pairwise_commute
179178
simp
180179

181180
/-- Let `ω` be a differentiable `n`-form and `V i` be `n + 1` differentiable vector fields.
182-
If `V i` pairwise commute at `x`, i.e., $$[V_i, V_j](x) = 0$$ for all `i ≠ j`, then
181+
If `V i` pairwise commute at `x`, i.e., $[V_i, V_j](x) = 0$ for all `i ≠ j`, then
183182
184183
$$
185-
dω(V_0(x), \dots, V_{n + 1}(x)) =
186-
\left(\sum_{i=0}^{n + 1}
187-
(-1)^i • D_x(ω(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)))(V_i(x)).
184+
dω(V_0(x), \dots, V_{n + 1}(x)) = \sum_{i=0}^{n + 1} (-1)^i •
185+
D_x\left(ω\big(x; V_0(x), \dots, \widehat{V_i(x)}, \dots, V_{n + 1}(x)\big)\right)(V_i(x)).
188186
$$
189187
-/
190188
theorem extDeriv_apply_vectorField_of_pairwise_commute

0 commit comments

Comments
 (0)