Download data/lean/OAI/Analysis/DifferentialForms/Manifold/Functions.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.25 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DifferentialForms/Manifold/Functions.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/DifferentialForms/Manifold/Functions.lean
-
curl -L -o Functions.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DifferentialForms/Manifold/Functions.lean
2.25 kB
| import Mathlib.Analysis.Calculus.ContDiff.Operations | |
| import Mathlib.Analysis.Complex.Basic | |
| /-! # Functions -/ | |
| namespace OAI.Analysis.DifferentialForms.Manifold.Functions | |
| /-! | |
| The carrier consists of actual functions with mathlib's `ContDiff β β` | |
| property. It is the degree-zero coefficient space for the local de Rham | |
| complex, not a replacement for forms on an algebraic variety. | |
| -/ | |
| open scoped ContDiff | |
| variable (E : Type*) [NormedAddCommGroup E] [NormedSpace β E] | |
| /-- The complex submodule of smooth complex-valued functions. -/ | |
| def smoothFunctions : Submodule β (E β β) where | |
| carrier := {f | ContDiff β β f} | |
| zero_mem' := by | |
| change ContDiff β β (fun _ : E => (0 : β)) | |
| exact contDiff_const | |
| add_mem' := by | |
| intro f g hf hg | |
| change ContDiff β β f at hf | |
| change ContDiff β β g at hg | |
| change ContDiff β β (fun x => f x + g x) | |
| exact hf.add hg | |
| smul_mem' := by | |
| intro c f hf | |
| change ContDiff β β f at hf | |
| change ContDiff β β (fun x => c β’ f x) | |
| exact hf.const_smul c | |
| /-- A smooth complex-valued function on the underlying real normed space. -/ | |
| abbrev SmoothFunction := β₯(smoothFunctions E) | |
| namespace SmoothFunction | |
| variable {E} | |
| instance : CoeFun (SmoothFunction E) (fun _ => E β β) := β¨Subtype.valβ© | |
| /-- A bundled smooth function has the stated smoothness property. -/ | |
| theorem smooth (f : SmoothFunction E) : ContDiff β β (f : E β β) := f.property | |
| @[ext] | |
| theorem ext {f g : SmoothFunction E} (h : β x, f x = g x) : f = g := | |
| Subtype.ext (funext h) | |
| @[simp] | |
| theorem zero_apply (x : E) : (0 : SmoothFunction E) x = 0 := rfl | |
| @[simp] | |
| theorem add_apply (f g : SmoothFunction E) (x : E) : (f + g) x = f x + g x := rfl | |
| @[simp] | |
| theorem smul_apply (c : β) (f : SmoothFunction E) (x : E) : (c β’ f) x = c * f x := rfl | |
| /-- The constant smooth function with a prescribed complex value. -/ | |
| def const (c : β) : SmoothFunction E := β¨fun _ => c, by | |
| change ContDiff β β (fun _ : E => c) | |
| exact contDiff_constβ© | |
| @[simp] | |
| theorem const_apply (c : β) (x : E) : (const c : SmoothFunction E) x = c := rfl | |
| end SmoothFunction | |
| end OAI.Analysis.DifferentialForms.Manifold.Functions | |