Download data/lean/OAI/Analysis/DifferentialForms/ExactWedge.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.76 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DifferentialForms/ExactWedge.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/DifferentialForms/ExactWedge.lean
-
curl -L -o ExactWedge.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DifferentialForms/ExactWedge.lean
7.76 kB
| /- | |
| Copyright 2026 The Formal Conjectures Authors. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| https://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| This file has been modified. | |
| -/ | |
| import OAI.Analysis.Foundations.NormedSpaceWedgeCovectors | |
| import Mathlib.Analysis.Calculus.DifferentialForm.Basic | |
| /-! # Exact Wedge -/ | |
| namespace OAI.Analysis.DifferentialForms.ExactWedge.DifferentialForm | |
| noncomputable section | |
| /-! | |
| # Wedges of exact one-forms | |
| Wedging the differentials of `p` scalar functions, all differentiated within one set, gives a | |
| differential `p`-form on that set. This file proves it is closed, by identifying it with the | |
| pullback of the constant volume form on `β^p` along the map assembling the functions and applying | |
| naturality of the exterior derivative. | |
| Multiplying such a wedge by an analytic scalar therefore has exterior derivative the wedge of the | |
| scalar's differential with it β the only case of the Leibniz rule the holomorphic de Rham complex | |
| needs. | |
| -/ | |
| open _root_.ContinuousAlternatingMap | |
| open scoped ContDiff | |
| /-- A wedge of derivatives is the pullback of the standard constant volume form. -/ | |
| lemma wedgeFDerivWithin_eq_standardVolumeForm_comp | |
| (E : Type*) [NormedAddCommGroup E] [NormedSpace β E] | |
| (p : β) (f : Fin p β E β β) (s : Set E) (x : E) | |
| (hf : β i, DifferentiableWithinAt β (f i) s x) | |
| (hs : UniqueDiffWithinAt β s x) : | |
| Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors β E (fun i β¦ fderivWithin β (f i) s x) = | |
| (Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p)).compContinuousLinearMap | |
| (fderivWithin β (fun y i β¦ f i y) s x) := by | |
| refine ContinuousAlternatingMap.ext fun v β¦ ?_ | |
| rw [Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors_apply_eq_det, | |
| ContinuousAlternatingMap.compContinuousLinearMap_apply, | |
| Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm, Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors_apply_eq_det] | |
| congr 1 | |
| rw [fderivWithin_pi hf hs] | |
| simp | |
| /-- A wedge of differentials of scalar functions, all differentiated within the same set. -/ | |
| def exactWedgeWithin (E : Type*) [NormedAddCommGroup E] [NormedSpace β E] | |
| (p : β) (f : Fin p β E β β) (s : Set E) : | |
| E β E [β^Fin p]βL[β] β := | |
| fun x β¦ Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors β E (fun i β¦ fderivWithin β (f i) s x) | |
| /-- A wedge of exact one-forms is closed. The proof identifies it with the pullback of the | |
| constant volume form and applies naturality of the exterior derivative. -/ | |
| lemma extDerivWithin_exactWedgeWithin_eq_zero | |
| (E : Type*) [NormedAddCommGroup E] [NormedSpace β E] | |
| (p : β) (f : Fin p β E β β) (s : Set E) (x : E) | |
| (hs : IsOpen s) (hx : x β s) | |
| (hf : β i, ContDiffOn β Ο (f i) s) : | |
| extDerivWithin (exactWedgeWithin E p f s) s x = 0 := by | |
| let F : E β (Fin p β β) := fun y i β¦ f i y | |
| let Ξ· : (Fin p β β) β (Fin p β β) [β^Fin p]βL[β] β := | |
| fun _ β¦ Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p) | |
| have hF : ContDiffWithinAt β Ο F s x := contDiffWithinAt_pi.2 fun i β¦ hf i x hx | |
| have hEq : Set.EqOn (exactWedgeWithin E p f s) | |
| (fun y β¦ (Ξ· (F y)).compContinuousLinearMap | |
| (fderivWithin β F s y)) s := by | |
| intro y hy | |
| exact wedgeFDerivWithin_eq_standardVolumeForm_comp E p f s y | |
| (fun i β¦ (hf i y hy).differentiableWithinAt (by simp)) | |
| (hs.uniqueDiffWithinAt hy) | |
| rw [extDerivWithin_congr' hEq hx] | |
| rw [extDerivWithin_pullback | |
| (hΟ := differentiableAt_const (x := F x) (Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p)) |>.differentiableWithinAt) | |
| (hf := hF) (hr := by simp) (hs := hs.uniqueDiffOn) | |
| (hxc := by simpa [hs.interior_eq] using (show x β closure s from subset_closure hx)) | |
| (hxs := hx) (hst := Set.mapsTo_univ F s)] | |
| have hΞ· : extDerivWithin Ξ· Set.univ (F x) = 0 := by | |
| rw [extDerivWithin, show fderivWithin β Ξ· Set.univ (F x) = 0 from | |
| congrFun (fderivWithin_const (π := β) (E := Fin p β β) | |
| (s := Set.univ) (Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p))) (F x)] | |
| exact map_zero _ | |
| rw [hΞ·] | |
| refine ContinuousAlternatingMap.ext fun v β¦ ?_ | |
| simp [ContinuousAlternatingMap.compContinuousLinearMap_apply] | |
| lemma exactWedgeWithin_differentiableWithinAt | |
| (E : Type*) [NormedAddCommGroup E] [NormedSpace β E] | |
| (p : β) (f : Fin p β E β β) (s : Set E) (x : E) | |
| (hs : IsOpen s) (hx : x β s) | |
| (hf : β i, ContDiffOn β Ο (f i) s) : | |
| DifferentiableWithinAt β (exactWedgeWithin E p f s) s x := by | |
| let F : E β (Fin p β β) := fun y i β¦ f i y | |
| let Ξ· : (Fin p β β) β (Fin p β β) [β^Fin p]βL[β] β := | |
| fun _ β¦ Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p) | |
| have hF : ContDiffWithinAt β Ο F s x := contDiffWithinAt_pi.2 fun i β¦ hf i x hx | |
| have hDF : DifferentiableWithinAt β (fderivWithin β F s) s x := | |
| (hF.fderivWithin_right (m := 1) hs.uniqueDiffOn (by simp) hx).differentiableWithinAt | |
| one_ne_zero | |
| have hPull : DifferentiableWithinAt β | |
| (fun y β¦ (Ξ· (F y)).compContinuousLinearMap (fderivWithin β F s y)) s x := | |
| DifferentiableWithinAt.continuousAlternatingMapCompContinuousLinearMap | |
| (differentiableWithinAt_const (c := Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p))) hDF | |
| apply hPull.congr | |
| Β· intro y hy | |
| exact wedgeFDerivWithin_eq_standardVolumeForm_comp E p f s y | |
| (fun i β¦ (hf i y hy).differentiableWithinAt (by simp)) | |
| (hs.uniqueDiffWithinAt hy) | |
| Β· exact wedgeFDerivWithin_eq_standardVolumeForm_comp E p f s x | |
| (fun i β¦ (hf i x hx).differentiableWithinAt (by simp)) | |
| (hs.uniqueDiffWithinAt hx) | |
| /-- Exterior differentiation of `a Β· dfβ β§ β― β§ dfβ` gives | |
| `da β§ dfβ β§ β― β§ dfβ`. -/ | |
| lemma extDerivWithin_smul_exactWedgeWithin | |
| (E : Type*) [NormedAddCommGroup E] [NormedSpace β E] | |
| (p : β) (a : E β β) (f : Fin p β E β β) (s : Set E) (x : E) | |
| (hs : IsOpen s) (hx : x β s) (ha : ContDiffOn β Ο a s) | |
| (hf : β i, ContDiffOn β Ο (f i) s) : | |
| extDerivWithin (fun y β¦ a y β’ exactWedgeWithin E p f s y) s x = | |
| Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors β E | |
| (Fin.cases (fderivWithin β a s x) | |
| (fun i β¦ fderivWithin β (f i) s x)) := by | |
| rw [extDerivWithin, fderivWithin_fun_smul | |
| (hs.uniqueDiffWithinAt hx) | |
| ((ha x hx).differentiableWithinAt (by simp)) | |
| (exactWedgeWithin_differentiableWithinAt E p f s x hs hx hf), | |
| ContinuousAlternatingMap.alternatizeUncurryFin_add, | |
| ContinuousAlternatingMap.alternatizeUncurryFin_smul] | |
| change a x β’ extDerivWithin (exactWedgeWithin E p f s) s x + _ = _ | |
| rw [extDerivWithin_exactWedgeWithin_eq_zero E p f s x hs hx hf, smul_zero, zero_add] | |
| rw [Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors_succ p] | |
| rfl | |
| end | |
| end OAI.Analysis.DifferentialForms.ExactWedge.DifferentialForm | |