Skip to content

Commit b3e502c

Browse files
committed
Move instance to better locations
1 parent 828e3dc commit b3e502c

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

Mathlib/Geometry/Manifold/IsManifold/ExtChartAt.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,3 +936,7 @@ theorem FiniteDimensional.of_locallyCompact_manifold
936936
exact FiniteDimensional.of_locallyCompactSpace 𝕜
937937

938938
end Topology
939+
940+
instance {M : Type*} [TopologicalSpace M] [ChartedSpace H M] {x : M} [FiniteDimensional 𝕜 E] :
941+
FiniteDimensional 𝕜 (TangentSpace I x) :=
942+
inferInstanceAs (FiniteDimensional 𝕜 E)

Mathlib/Geometry/Manifold/VectorBundle/CovariantDerivative/LeviCivita.lean

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,6 @@ theorem tensorialAt_leviCivitaAuxInner₃
303303
inner_add_left, inner_add_right]
304304
ring
305305

306-
-- TODO move!
307-
instance : FiniteDimensional ℝ (TangentSpace I x) := inferInstanceAs (FiniteDimensional ℝ E)
308-
309-
-- TODO move!
310-
instance : CompleteSpace (TangentSpace I x) := FiniteDimensional.complete ℝ _
311-
312306
/-- Almost the function underlying our construction of the Levi-Civita connection:
313307
this is the desired `(1,1)`-tensor, but without considerations to the junk value when
314308
applied to non-differentiable vector fields. -/

Mathlib/Geometry/Manifold/VectorBundle/Riemannian.lean

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,3 +268,14 @@ instance (g : ContMDiffRiemannianMetric IB n F E) :
268268
end Construction
269269

270270
end Bundle
271+
272+
section
273+
274+
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {H : Type*} [TopologicalSpace H]
275+
{I : ModelWithCorners ℝ E H} {M : Type*} [TopologicalSpace M] [ChartedSpace H M]
276+
[RiemannianBundle (fun (x : M) ↦ TangentSpace I x)]
277+
278+
instance [FiniteDimensional ℝ E] {x : M} : CompleteSpace (TangentSpace I x) :=
279+
FiniteDimensional.complete ℝ _
280+
281+
end

0 commit comments

Comments
 (0)