chars int64 40 24k | content_type stringclasses 9
values | id stringlengths 13 64 | source stringclasses 5
values | subset stringclasses 31
values | text stringlengths 40 24k |
|---|---|---|---|---|---|
102 | leanexplore_declaration | leanexplore:376987 | leanexplore_sqlite | leanexplore_declarations | lemma weeks_div_seconds : weeks / seconds = (604800 : ℝ≥0) := NNReal.eq <| by
simp [weeks]; norm_num |
106 | leanexplore_declaration | leanexplore:376988 | leanexplore_sqlite | leanexplore_declarations | lemma days_div_minutes : days / minutes = (1440 : ℝ≥0) := NNReal.eq <| by
simp [days, minutes]; norm_num |
110 | leanexplore_declaration | leanexplore:376989 | leanexplore_sqlite | leanexplore_declarations | lemma weeks_div_minutes : weeks / minutes = (10080 : ℝ≥0) := NNReal.eq <| by
simp [weeks, minutes]; norm_num |
96 | leanexplore_declaration | leanexplore:376990 | leanexplore_sqlite | leanexplore_declarations | lemma days_div_hours : days / hours = (24 : ℝ≥0) := NNReal.eq <| by simp [hours, days]; norm_num |
102 | leanexplore_declaration | leanexplore:376991 | leanexplore_sqlite | leanexplore_declarations | lemma weeks_div_hours : weeks / hours = (168 : ℝ≥0) := NNReal.eq <| by
simp [weeks, hours]; norm_num |
596 | leanexplore_declaration | leanexplore:376992 | leanexplore_sqlite | leanexplore_declarations | lemma fderiv_space_eq_fderiv_curry {M} [NormedAddCommGroup M] [NormedSpace ℝ M]
(f : Time → Space d → M) (t : Time) (x dx : Space d)
(hf : Differentiable ℝ ↿f) :
fderiv ℝ (fun x' => f t x') x dx = fderiv ℝ ↿f (t, x) (0, dx) := by
change fderiv ℝ (↿f ∘ fun x' => (t, x')) x dx = _
rw [fderiv_comp]
simp ... |
595 | leanexplore_declaration | leanexplore:376993 | leanexplore_sqlite | leanexplore_declarations | lemma fderiv_time_eq_fderiv_curry {M} [NormedAddCommGroup M] [NormedSpace ℝ M]
(f : Time → Space d → M) (t dt : Time) (x : Space d)
(hf : Differentiable ℝ ↿f) :
fderiv ℝ (fun t' => f t' x) t dt = fderiv ℝ ↿f (t, x) (dt, 0) := by
change fderiv ℝ (↿f ∘ fun t' => (t', x)) t dt = _
rw [fderiv_comp]
simp o... |
1,522 | leanexplore_declaration | leanexplore:376994 | leanexplore_sqlite | leanexplore_declarations | /-- Derivatives along space coordinates and time commute. -/
lemma fderiv_time_commute_fderiv_space {M} [NormedAddCommGroup M] [NormedSpace ℝ M]
(f : Time → Space d → M) (t dt : Time) (x dx : Space d)
(hf : ContDiff ℝ 2 ↿f) :
fderiv ℝ (fun t' => fderiv ℝ (fun x' => f t' x') x dx) t dt
= fderiv ℝ (fun x'... |
413 | leanexplore_declaration | leanexplore:376995 | leanexplore_sqlite | leanexplore_declarations | lemma time_deriv_comm_space_deriv {d i} {M} [NormedAddCommGroup M] [NormedSpace ℝ M]
{f : Time → Space d → M} (hf : ContDiff ℝ 2 ↿f) (t : Time) (x : Space d) :
Time.deriv (fun t' => Space.deriv i (f t') x) t
= Space.deriv i (fun x' => Time.deriv (fun t' => f t' x') t) x := by
simp only [Time.deriv_eq, Spa... |
804 | leanexplore_declaration | leanexplore:376996 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
lemma space_deriv_differentiable_time {d i} {M} [NormedAddCommGroup M] [NormedSpace ℝ M]
{f : Time → Space d → M} (hf : ContDiff ℝ 2 ↿f) (x : Space d) :
Differentiable ℝ (fun t => Space.deriv i (f t) x) := by
conv =>
enter [2, t];
rw [Space.deriv_eq_fderiv_basis]
apply Differentiable.clm... |
789 | leanexplore_declaration | leanexplore:376997 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
lemma time_deriv_differentiable_space {d } {M} [NormedAddCommGroup M] [NormedSpace ℝ M]
{f : Time → Space d → M} (hf : ContDiff ℝ 2 ↿f) (t : Time) :
Differentiable ℝ (fun x => Time.deriv (f · x) t) := by
conv =>
enter [2, x];
rw [Time.deriv_eq]
apply Differentiable.clm_apply
· have hdd... |
315 | leanexplore_declaration | leanexplore:376998 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
lemma curl_differentiable_time
(fₜ : Time → Space → EuclideanSpace ℝ (Fin 3))
(hf : ContDiff ℝ 2 ↿fₜ) (x : Space) :
Differentiable ℝ (fun t => (∇ ⨯ fₜ t) x) := by
rw [differentiable_euclidean]
intro i
fin_cases i
all_goals
simp only [Fin.zero_eta, Fin.isValue, curl]
fun_prop |
845 | leanexplore_declaration | leanexplore:376999 | leanexplore_sqlite | leanexplore_declarations | /-- Curl and time derivative commute. -/
lemma time_deriv_curl_commute (fₜ : Time → Space → EuclideanSpace ℝ (Fin 3))
(t : Time) (x : Space) (hf : ContDiff ℝ 2 ↿fₜ) :
∂ₜ (fun t => (∇ ⨯ fₜ t) x) t = (∇ ⨯ fun x => (∂ₜ (fun t => fₜ t x) t)) x:= by
ext i
rw [← Time.deriv_euclid]
· fin_cases i
all_goals
... |
623 | leanexplore_declaration | leanexplore:377000 | leanexplore_sqlite | leanexplore_declarations | lemma space_fun_of_time_deriv_eq_zero {d} {M} [NormedAddCommGroup M] [NormedSpace ℝ M]
{f : Time → Space d → M} (hf : Differentiable ℝ ↿f)
(h : ∀ t x, ∂ₜ (f · x) t = 0) :
∃ (g : Space d → M), ∀ t x, f t x = g x := by
use fun x => f 0 x
intro t x
simp only
change (fun t' => f t' x) t = (fun t' => f t... |
784 | leanexplore_declaration | leanexplore:377001 | leanexplore_sqlite | leanexplore_declarations | lemma time_fun_of_space_deriv_eq_zero {d} {M} [NormedAddCommGroup M] [NormedSpace ℝ M]
{f : Time → Space d → M} (hf : Differentiable ℝ ↿f)
(h : ∀ t x i, Space.deriv i (f t) x = 0) :
∃ (g : Time → M), ∀ t x, f t x = g t := by
use fun t => f t 0
intro t x
simp only
change (fun x' => f t x') x = (fun x... |
518 | leanexplore_declaration | leanexplore:377002 | leanexplore_sqlite | leanexplore_declarations | lemma const_of_time_deriv_space_deriv_eq_zero {d} {M} [NormedAddCommGroup M] [NormedSpace ℝ M]
{f : Time → Space d → M} (hf : Differentiable ℝ ↿f)
(h₁ : ∀ t x, ∂ₜ (f · x) t = 0)
(h₂ : ∀ t x i, Space.deriv i (f t) x = 0) :
∃ (c : M), ∀ t x, f t x = c := by
obtain ⟨g, hg⟩ := space_fun_of_time_deriv_eq_z... |
819 | leanexplore_declaration | leanexplore:377003 | leanexplore_sqlite | leanexplore_declarations | lemma equal_up_to_const_of_deriv_eq {d} {M} [NormedAddCommGroup M] [NormedSpace ℝ M]
{f g : Time → Space d → M} (hf : Differentiable ℝ ↿f) (hg : Differentiable ℝ ↿g)
(h₁ : ∀ t x, ∂ₜ (f · x) t = ∂ₜ (g · x) t)
(h₂ : ∀ t x i, Space.deriv i (f t) x = Space.deriv i (g t) x) :
∃ (c : M), ∀ t x, f t x = g t x ... |
534 | leanexplore_declaration | leanexplore:377004 | leanexplore_sqlite | leanexplore_declarations | /-- The time derivative of a distribution dependent on time and space. -/
noncomputable def distTimeDeriv {M d} [NormedAddCommGroup M] [NormedSpace ℝ M] :
((Time × Space d) →d[ℝ] M) →ₗ[ℝ] (Time × Space d) →d[ℝ] M where
toFun f :=
let ev : ((Time × Space d) →L[ℝ] M) →L[ℝ] M := {
toFun v := v (1, 0)
... |
212 | leanexplore_declaration | leanexplore:377005 | leanexplore_sqlite | leanexplore_declarations | lemma distTimeDeriv_apply {M d} [NormedAddCommGroup M] [NormedSpace ℝ M]
(f : (Time × Space d) →d[ℝ] M) (ε : 𝓢(Time × Space d, ℝ)) :
(distTimeDeriv f) ε = fderivD ℝ f ε (1, 0) := by
simp [distTimeDeriv] |
309 | leanexplore_declaration | leanexplore:377006 | leanexplore_sqlite | leanexplore_declarations | lemma distTimeDeriv_apply' {M d} [NormedAddCommGroup M] [NormedSpace ℝ M]
(f : (Time × Space d) →d[ℝ] M) (ε : 𝓢(Time × Space d, ℝ)) :
(distTimeDeriv f) ε =
-f (SchwartzMap.evalCLM ℝ (Time × Space d) ℝ (1, 0)
((fderivCLM ℝ (Time × Space d) ℝ) ε)) := by
rw [distTimeDeriv_apply, fderivD_apply] |
303 | leanexplore_declaration | leanexplore:377007 | leanexplore_sqlite | leanexplore_declarations | lemma apply_fderiv_eq_distTimeDeriv {M d} [NormedAddCommGroup M] [NormedSpace ℝ M]
(f : (Time × Space d) →d[ℝ] M) (ε : 𝓢(Time × Space d, ℝ)) :
f (SchwartzMap.evalCLM ℝ (Time × Space d) ℝ (1, 0) ((fderivCLM ℝ (Time × Space d) ℝ) ε)) =
- (distTimeDeriv f) ε := by
simp [distTimeDeriv_apply'] |
286 | leanexplore_declaration | leanexplore:377008 | leanexplore_sqlite | leanexplore_declarations | lemma distTimeDeriv_apply_CLM {M M2 d} [NormedAddCommGroup M] [NormedSpace ℝ M]
[NormedAddCommGroup M2] [NormedSpace ℝ M2] (f : (Time × Space d) →d[ℝ] M)
(c : M →L[ℝ] M2) : distTimeDeriv (c ∘L f) = c ∘L (distTimeDeriv f) := by
ext ε
simp [distTimeDeriv_apply, fderivD_apply] |
552 | leanexplore_declaration | leanexplore:377009 | leanexplore_sqlite | leanexplore_declarations | /-- The space derivative of a distribution dependent on time and space. -/
noncomputable def distSpaceDeriv {M d} [NormedAddCommGroup M] [NormedSpace ℝ M]
(i : Fin d) : ((Time × Space d) →d[ℝ] M) →ₗ[ℝ] (Time × Space d) →d[ℝ] M where
toFun f :=
let ev : (Time × Space d →L[ℝ] M) →L[ℝ] M := {
toFun v := v ... |
235 | leanexplore_declaration | leanexplore:377010 | leanexplore_sqlite | leanexplore_declarations | lemma distSpaceDeriv_apply {M d} [NormedAddCommGroup M] [NormedSpace ℝ M]
(i : Fin d) (f : (Time × Space d) →d[ℝ] M) (ε : 𝓢(Time × Space d, ℝ)) :
(distSpaceDeriv i f) ε = fderivD ℝ f ε (0, basis i) := by
simp [distSpaceDeriv] |
335 | leanexplore_declaration | leanexplore:377011 | leanexplore_sqlite | leanexplore_declarations | lemma distSpaceDeriv_apply' {M d} [NormedAddCommGroup M] [NormedSpace ℝ M]
(i : Fin d) (f : (Time × Space d) →d[ℝ] M) (ε : 𝓢(Time × Space d, ℝ)) :
(distSpaceDeriv i f) ε =
- f ((SchwartzMap.evalCLM ℝ (Time × Space d) ℝ (0, basis i))
((fderivCLM ℝ (Time × Space d) ℝ) ε)) := by
rw [distSpaceDeriv_apply... |
332 | leanexplore_declaration | leanexplore:377012 | leanexplore_sqlite | leanexplore_declarations | lemma apply_fderiv_eq_distSpaceDeriv {M d} [NormedAddCommGroup M] [NormedSpace ℝ M]
(i : Fin d) (f : (Time × Space d) →d[ℝ] M) (ε : 𝓢(Time × Space d, ℝ)) :
f ((SchwartzMap.evalCLM ℝ (Time × Space d) ℝ (0, basis i))
((fderivCLM ℝ (Time × Space d) ℝ) ε)) =
- (distSpaceDeriv i f) ε := by
simp [distSpace... |
1,027 | leanexplore_declaration | leanexplore:377013 | leanexplore_sqlite | leanexplore_declarations | lemma distSpaceDeriv_commute {M d} [NormedAddCommGroup M] [NormedSpace ℝ M]
(i j : Fin d) (f : (Time × Space d) →d[ℝ] M) :
distSpaceDeriv i (distSpaceDeriv j f) = distSpaceDeriv j (distSpaceDeriv i f) := by
ext κ
rw [distSpaceDeriv_apply, distSpaceDeriv_apply, fderivD_apply, fderivD_apply]
rw [distSpaceDe... |
310 | leanexplore_declaration | leanexplore:377014 | leanexplore_sqlite | leanexplore_declarations | lemma distSpaceDeriv_apply_CLM {M M2 d} [NormedAddCommGroup M] [NormedSpace ℝ M]
[NormedAddCommGroup M2] [NormedSpace ℝ M2]
(i : Fin d) (f : (Time × Space d) →d[ℝ] M)
(c : M →L[ℝ] M2) : distSpaceDeriv i (c ∘L f) = c ∘L (distSpaceDeriv i f) := by
ext ε
simp [distSpaceDeriv_apply, fderivD_apply] |
1,019 | leanexplore_declaration | leanexplore:377015 | leanexplore_sqlite | leanexplore_declarations | lemma distTimeDeriv_commute_distSpaceDeriv {M d} [NormedAddCommGroup M] [NormedSpace ℝ M]
(i : Fin d) (f : (Time × Space d) →d[ℝ] M) :
distTimeDeriv (distSpaceDeriv i f) = distSpaceDeriv i (distTimeDeriv f) := by
ext κ
rw [distTimeDeriv_apply, distSpaceDeriv_apply, fderivD_apply, fderivD_apply]
rw [distTi... |
475 | leanexplore_declaration | leanexplore:377016 | leanexplore_sqlite | leanexplore_declarations | /-- The spatial gradient of a distribution dependent on time and space. -/
noncomputable def distSpaceGrad {d} :
((Time × Space d) →d[ℝ] ℝ) →ₗ[ℝ] (Time × Space d) →d[ℝ] (EuclideanSpace ℝ (Fin d)) where
toFun f := {
toFun := fun ε => WithLp.toLp 2 fun i => distSpaceDeriv i f ε
map_add' ε1 ε2 := by ext ... |
155 | leanexplore_declaration | leanexplore:377017 | leanexplore_sqlite | leanexplore_declarations | lemma distSpaceGrad_apply {d} (f : (Time × Space d) →d[ℝ] ℝ) (ε : 𝓢(Time × Space d, ℝ)) :
distSpaceGrad f ε = fun i => distSpaceDeriv i f ε := by
rfl |
515 | leanexplore_declaration | leanexplore:377018 | leanexplore_sqlite | leanexplore_declarations | /-- The spatial divergence of a distribution dependent on time and space. -/
noncomputable def distSpaceDiv {d} :
((Time × Space d) →d[ℝ] (EuclideanSpace ℝ (Fin d))) →ₗ[ℝ] (Time × Space d) →d[ℝ] ℝ where
toFun f := {
toFun ε := ∑ i, distSpaceDeriv i f ε i
map_add' ε1 ε2 := by simp [Finset.sum_add_distrib]
... |
197 | leanexplore_declaration | leanexplore:377019 | leanexplore_sqlite | leanexplore_declarations | lemma distSpaceDiv_apply_eq_sum_distSpaceDeriv {d}
(f : (Time × Space d) →d[ℝ] EuclideanSpace ℝ (Fin d)) (η : 𝓢(Time ×Space d, ℝ)) :
distSpaceDiv f η = ∑ i, distSpaceDeriv i f η i := by rfl |
1,515 | leanexplore_declaration | leanexplore:377020 | leanexplore_sqlite | leanexplore_declarations | /-- The curl of a distribution dependent on time and space. -/
noncomputable def distSpaceCurl : ((Time × Space 3) →d[ℝ] (EuclideanSpace ℝ (Fin 3))) →ₗ[ℝ]
(Time × Space 3) →d[ℝ] (EuclideanSpace ℝ (Fin 3)) where
toFun f :={
toFun ε := WithLp.toLp 2 fun i =>
match i with
| 0 => distSpaceDeriv 2 f ε ... |
1,906 | leanexplore_declaration | leanexplore:377021 | leanexplore_sqlite | leanexplore_declarations | lemma continuous_time_integral {d} (η : 𝓢(Time × Space d, ℝ)) :
Continuous (fun x : Space d => ∫ t : Time, η (t, x)) := by
obtain ⟨rt, hrt⟩ : ∃ r, Integrable (fun x : Time => ‖((1 + ‖x‖) ^ r)⁻¹‖) volume := by
obtain ⟨r, h⟩ := Measure.HasTemperateGrowth.exists_integrable (μ := volume (α := Time))
use r
... |
6,208 | leanexplore_declaration | leanexplore:377022 | leanexplore_sqlite | leanexplore_declarations | lemma time_integral_hasFDerivAt {d : ℕ} (η : 𝓢(Time × Space d, ℝ)) (x₀ : Space d) :
HasFDerivAt (fun x => ∫ (t : Time), η (t, x))
(∫ (t : Time), fderiv ℝ (fun x : Space d => η (t, x)) x₀) x₀ := by
let F : Space d → Time → ℝ := fun x t => η (t, x)
let F' : Space d → Time → Space d →L[ℝ] ℝ :=
fun x₀ t ... |
194 | leanexplore_declaration | leanexplore:377023 | leanexplore_sqlite | leanexplore_declarations | lemma time_integral_differentiable {d : ℕ} (η : 𝓢(Time × Space d.succ, ℝ)) :
Differentiable ℝ (fun x => ∫ (t : Time), η (t, x)) :=
fun x => (time_integral_hasFDerivAt η x).differentiableAt |
4,870 | leanexplore_declaration | leanexplore:377024 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
lemma integrable_fderiv_space {d : ℕ} (η : 𝓢(Time × Space d, ℝ)) (x : Space d) :
Integrable (fun t => fderiv ℝ (fun x => η (t, x)) x) volume := by
obtain ⟨rt, hrt⟩ : ∃ r, Integrable (fun x : Time => ‖((1 + ‖x‖) ^ r)⁻¹‖) volume := by
obtain ⟨r, h⟩ := Measure.HasTemperateGrowth.exists_integrable ... |
1,678 | leanexplore_declaration | leanexplore:377025 | leanexplore_sqlite | leanexplore_declarations | lemma time_integral_contDiff {d : ℕ} (n : ℕ) (η : 𝓢(Time × Space d, ℝ)) :
ContDiff ℝ n (fun x => ∫ (t : Time), η (t, x)) := by
revert η
induction n with
| zero =>
intro η
simp only [CharP.cast_eq_zero, contDiff_zero]
exact continuous_time_integral η
| succ n ih =>
intro η
simp only [Nat... |
1,225 | leanexplore_declaration | leanexplore:377026 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
lemma integrable_time_integral {d : ℕ} (η : 𝓢(Time × Space d, ℝ)) (x : Space d) :
Integrable (fun t => η (t, x)) volume := by
haveI : Measure.HasTemperateGrowth ((Measure.map (fun t => (t, x)) (volume (α := Time)))) := by
refine { exists_integrable := ?_ }
obtain ⟨r, hr⟩ := Measure.HasTem... |
2,540 | leanexplore_declaration | leanexplore:377027 | leanexplore_sqlite | leanexplore_declarations | lemma pow_mul_iteratedFDeriv_norm_le {n m} {d : ℕ} :
∃ rt, ∀ (η : 𝓢(Time × Space d, ℝ)), ∀ (x : Space d),
Integrable (fun x : Time => ‖((1 + ‖x‖) ^ rt)⁻¹‖) volume ∧
∀ t, ‖(t, x)‖ ^m * ‖iteratedFDeriv ℝ n ⇑η (t, x)‖ ≤
(2 ^ (rt + m, n).1 *
((Finset.Iic (rt + m, n)).sup fun m => SchwartzMap.se... |
1,072 | leanexplore_declaration | leanexplore:377028 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
lemma iteratedFDeriv_norm_mul_pow_integrable {d : ℕ} (n m : ℕ) (η : 𝓢(Time × Space d, ℝ))
(x : Space d) :
Integrable (fun t => ‖(t, x)‖ ^ m * ‖iteratedFDeriv ℝ n ⇑η (t, x)‖) volume := by
obtain ⟨rt, hrt⟩ := pow_mul_iteratedFDeriv_norm_le (m := m) (d := d)
have hbound := (hrt η x).2
have hrt :... |
260 | leanexplore_declaration | leanexplore:377029 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
lemma iteratedFDeriv_norm_integrable {n} {d : ℕ} (η : 𝓢(Time × Space d, ℝ))
(x : Space d) :
Integrable (fun t => ‖iteratedFDeriv ℝ n ⇑η (t, x)‖) volume := by
convert iteratedFDeriv_norm_mul_pow_integrable n 0 η x using 1
funext t
simp |
674 | leanexplore_declaration | leanexplore:377030 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
lemma iteratedFDeriv_integrable {n} {d : ℕ} (η : 𝓢(Time × Space d, ℝ)) (x : Space d) :
Integrable (fun t => iteratedFDeriv ℝ n ⇑η (t, x)) volume := by
rw [← MeasureTheory.integrable_norm_iff]
apply iteratedFDeriv_norm_integrable η x
haveI : SecondCountableTopologyEither Time
(ContinuousMultil... |
4,749 | leanexplore_declaration | leanexplore:377031 | leanexplore_sqlite | leanexplore_declarations | lemma time_integral_iteratedFDeriv_apply {d : ℕ} (n : ℕ) (η : 𝓢(Time × Space d, ℝ)) :
∀ x, ∀ y, iteratedFDeriv ℝ n (fun x => ∫ (t : Time), η (t, x)) x y =
∫ (t : Time), (iteratedFDeriv ℝ n η (t, x)) (fun i => (0, y i)) := by
induction n with
| zero =>
simp
| succ n ih =>
intro x y
rw [itera... |
496 | leanexplore_declaration | leanexplore:377032 | leanexplore_sqlite | leanexplore_declarations | lemma time_integral_iteratedFDeriv_eq {d : ℕ} (n : ℕ) (η : 𝓢(Time × Space d, ℝ))
(x : Space d) :
iteratedFDeriv ℝ n (fun x => ∫ (t : Time), η (t, x)) x =
((∫ (t : Time), iteratedFDeriv ℝ n η (t, x)).compContinuousLinearMap
(fun _ => ContinuousLinearMap.prod (0 : Space d →L[ℝ] Time)
(Continuou... |
608 | leanexplore_declaration | leanexplore:377033 | leanexplore_sqlite | leanexplore_declarations | lemma time_integral_iteratedFDeriv_norm_le {d : ℕ} (n : ℕ) (η : 𝓢(Time × Space d, ℝ))
(x : Space d) :
‖iteratedFDeriv ℝ n (fun x => ∫ (t : Time), η (t, x)) x‖ ≤
(∫ (t : Time), ‖iteratedFDeriv ℝ n η (t, x)‖) *
‖(ContinuousLinearMap.prod (0 : Space d →L[ℝ] Time)
(ContinuousLinearMap.id ℝ ... |
2,499 | leanexplore_declaration | leanexplore:377034 | leanexplore_sqlite | leanexplore_declarations | lemma time_integral_mul_pow_iteratedFDeriv_norm_le {d : ℕ} (n m : ℕ) :
∃ rt, ∀ (η : 𝓢(Time × Space d, ℝ)),∀ (x : Space d),
Integrable (fun x : Time => ‖((1 + ‖x‖) ^ rt)⁻¹‖) volume ∧
‖x‖ ^ m * ‖iteratedFDeriv ℝ n (fun x => ∫ (t : Time), η (t, x)) x‖ ≤
((∫ (t : Time), ‖((1 + ‖t‖) ^ rt)⁻¹‖) *
... |
1,102 | leanexplore_declaration | leanexplore:377035 | leanexplore_sqlite | leanexplore_declarations | /-- The continuous linear map taking Schwartz maps on `Time × Space d` to
`space d` by integrating over time. -/
def timeIntegralSchwartz {d : ℕ} :
𝓢(Time × Space d, ℝ) →L[ℝ] 𝓢(Space d, ℝ) := by
refine SchwartzMap.mkCLM (fun η x => ∫ (t : Time), η (t, x)) ?_ ?_ ?_ ?_
· intro η1 η2 x
simp only [SchwartzM... |
147 | leanexplore_declaration | leanexplore:377036 | leanexplore_sqlite | leanexplore_declarations | lemma timeIntegralSchwartz_apply {d : ℕ} (η : 𝓢(Time × Space d, ℝ)) (x : Space d) :
timeIntegralSchwartz η x = ∫ (t : Time), η (t, x) := by rfl |
377 | leanexplore_declaration | leanexplore:377037 | leanexplore_sqlite | leanexplore_declarations | /-- Distributions on `Time × Space d` from distributions on `Space d`.
These distributions are constant in time. -/
def constantTime {M : Type} [NormedAddCommGroup M] [NormedSpace ℝ M] {d : ℕ} :
((Space d) →d[ℝ] M) →ₗ[ℝ] (Time × Space d) →d[ℝ] M where
toFun f := f ∘L timeIntegralSchwartz
map_add' f g := by
... |
205 | leanexplore_declaration | leanexplore:377038 | leanexplore_sqlite | leanexplore_declarations | lemma constantTime_apply {M : Type} [NormedAddCommGroup M] [NormedSpace ℝ M]
{d : ℕ} (f : (Space d) →d[ℝ] M)
(η : 𝓢(Time × Space d, ℝ)) :
constantTime f η = f (timeIntegralSchwartz η) := by rfl |
1,338 | leanexplore_declaration | leanexplore:377039 | leanexplore_sqlite | leanexplore_declarations | lemma constantTime_distSpaceDeriv {M : Type} {d : ℕ} [NormedAddCommGroup M] [NormedSpace ℝ M]
(i : Fin d) (f : (Space d) →d[ℝ] M) :
Space.distSpaceDeriv i (constantTime f) = constantTime (Space.distDeriv i f) := by
ext η
simp [constantTime_apply]
rw [Space.distDeriv_apply, Space.distSpaceDeriv_apply]
rw... |
307 | leanexplore_declaration | leanexplore:377040 | leanexplore_sqlite | leanexplore_declarations | lemma constantTime_distSpaceGrad {d : ℕ} (f : (Space d) →d[ℝ] ℝ) :
Space.distSpaceGrad (constantTime f) = constantTime (Space.distGrad f) := by
ext η i
simp [constantTime_apply]
rw [Space.distSpaceGrad_apply, Space.distGrad_apply]
simp only
rw [constantTime_distSpaceDeriv, constantTime_apply] |
355 | leanexplore_declaration | leanexplore:377041 | leanexplore_sqlite | leanexplore_declarations | lemma constantTime_distSpaceDiv {d : ℕ} (f : (Space d) →d[ℝ] EuclideanSpace ℝ (Fin d)) :
Space.distSpaceDiv (constantTime f) = constantTime (Space.distDiv f) := by
ext η
simp [constantTime_apply]
rw [Space.distSpaceDiv_apply_eq_sum_distSpaceDeriv, Space.distDiv_apply_eq_sum_distDeriv]
congr
funext i
rw ... |
325 | leanexplore_declaration | leanexplore:377042 | leanexplore_sqlite | leanexplore_declarations | lemma constantTime_spaceCurlD (f : (Space 3) →d[ℝ] EuclideanSpace ℝ (Fin 3)) :
Space.distSpaceCurl (constantTime f) = constantTime (Space.distCurl f) := by
ext η i
rw [constantTime_apply]
fin_cases i
all_goals
simp [Space.distSpaceCurl, Space.distCurl, constantTime_distSpaceDeriv, constantTime_apply]
... |
2,167 | leanexplore_declaration | leanexplore:377043 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma constantTime_distTimeDeriv {M : Type} [NormedAddCommGroup M] [NormedSpace ℝ M] {d : ℕ}
(f : (Space d) →d[ℝ] M) :
Space.distTimeDeriv (constantTime f) = 0 := by
ext η
simp [Space.distTimeDeriv_apply, fderivD_apply, constantTime_apply]
suffices h : (timeIntegralSchwartz ((SchwartzMap.evalCLM ℝ... |
274 | leanexplore_declaration | leanexplore:377044 | leanexplore_sqlite | leanexplore_declarations | /-- The Boltzmann constant in units of `m ^ 2 kg s ^ (-2) K ^ (-1)`.
As long as one does not use the underlying value of this quantity,
then it can be used as Boltzmann's constant in an arbitrary set of units. -/
def kBAx : {p : ℝ | 0 < p} := ⟨1.380649e-23, by norm_num⟩ |
175 | leanexplore_declaration | leanexplore:377045 | leanexplore_sqlite | leanexplore_declarations | /-- The Boltzmann constant in a given but arbitrary set of units.
Boltzman's constant has dimension equivalent to `Energy/Temperature`. -/
noncomputable def kB : ℝ := kBAx.1 |
74 | leanexplore_declaration | leanexplore:377046 | leanexplore_sqlite | leanexplore_declarations | /-- The Boltzmann constant is positive. -/
lemma kB_pos : 0 < kB := kBAx.2 |
90 | leanexplore_declaration | leanexplore:377047 | leanexplore_sqlite | leanexplore_declarations | /-- The Boltzmann constant is non-negative. -/
lemma kB_nonneg : 0 ≤ kB := le_of_lt kBAx.2 |
103 | leanexplore_declaration | leanexplore:377048 | leanexplore_sqlite | leanexplore_declarations | /-- The Boltzmann constant is not equal to zero. -/
lemma kB_ne_zero : kB ≠ 0 := by
linarith [kB_pos] |
1,316 | leanexplore_declaration | leanexplore:377049 | leanexplore_sqlite | leanexplore_declarations | /-- A Canonical ensemble is described by a type `ι`, corresponding to the type of microstates,
and a map `ι → ℝ` which associates which each microstate an energy
and physical constants needed to define dimensionless thermodynamic quantities. -/
structure CanonicalEnsemble (ι : Type) [MeasurableSpace ι] : Type where
/... |
45 | leanexplore_declaration | leanexplore:377050 | leanexplore_sqlite | leanexplore_declarations | instance : SigmaFinite 𝓒.μ := 𝓒.μ_sigmaFinite |
221 | leanexplore_declaration | leanexplore:377051 | leanexplore_sqlite | leanexplore_declarations | @[ext]
lemma ext {𝓒 𝓒' : CanonicalEnsemble ι} (h_energy : 𝓒.energy = 𝓒'.energy)
(h_dof : 𝓒.dof = 𝓒'.dof) (h_h : 𝓒.phaseSpaceunit = 𝓒'.phaseSpaceunit)
(h_μ : 𝓒.μ = 𝓒'.μ) : 𝓒 = 𝓒' := by
cases 𝓒; cases 𝓒'; simp_all |
191 | leanexplore_declaration | leanexplore:377052 | leanexplore_sqlite | leanexplore_declarations | @[ext]
lemma ext {𝓒 𝓒' : CanonicalEnsemble ι} (h_energy : 𝓒.energy = 𝓒'.energy)
(h_dof : 𝓒.dof = 𝓒'.dof) (h_h : 𝓒.phaseSpaceunit = 𝓒'.phaseSpaceunit)
(h_μ : 𝓒.μ = 𝓒'.μ) : 𝓒 = 𝓒' := by |
81 | leanexplore_declaration | leanexplore:377053 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
lemma energy_measurable' : Measurable 𝓒.energy := 𝓒.energy_measurable |
595 | leanexplore_declaration | leanexplore:377054 | leanexplore_sqlite | leanexplore_declarations | /-- The addition of two `CanonicalEnsemble`. The degrees of freedom are added.
Note: This is only physically meaningful if the two systems share the same `phase_space_unit`. -/
noncomputable instance {ι1 ι2 : Type} [MeasurableSpace ι1] [MeasurableSpace ι2] :
HAdd (CanonicalEnsemble ι1) (CanonicalEnsemble ι2)
(C... |
171 | leanexplore_declaration | leanexplore:377055 | leanexplore_sqlite | leanexplore_declarations | /-- The canonical ensemble with no microstates. -/
def empty : CanonicalEnsemble Empty where
energy := isEmptyElim
dof := 0
μ := 0
energy_measurable := by fun_prop |
533 | leanexplore_declaration | leanexplore:377056 | leanexplore_sqlite | leanexplore_declarations | /-- Given a measurable equivalence `e : ι1 ≃ᵐ ι`, this is the corresponding canonical ensemble
on `ι1`. The physical properties (`dof`, `phase_space_unit`) are unchanged. -/
noncomputable def congr (e : ι1 ≃ᵐ ι) : CanonicalEnsemble ι1 where
energy := fun i => 𝓒.energy (e i)
dof := 𝓒.dof
phaseSpaceunit := 𝓒.pha... |
128 | leanexplore_declaration | leanexplore:377057 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma congr_energy_comp_symmm (e : ι1 ≃ᵐ ι) :
(𝓒.congr e).energy ∘ e.symm = 𝓒.energy := by
funext i
simp [congr] |
448 | leanexplore_declaration | leanexplore:377058 | leanexplore_sqlite | leanexplore_declarations | /-- Scalar multiplication of `CanonicalEnsemble`, defined such that
`nsmul n 𝓒` represents `n` non-interacting, distinguishable copies of the ensemble `𝓒`. -/
noncomputable def nsmul (n : ℕ) (𝓒 : CanonicalEnsemble ι) : CanonicalEnsemble (Fin n → ι) where
energy := fun f => ∑ i, 𝓒.energy (f i)
dof := n * 𝓒.dof
... |
130 | leanexplore_declaration | leanexplore:377059 | leanexplore_sqlite | leanexplore_declarations | /-- The microstates of a canonical ensemble. -/
@[nolint unusedArguments]
abbrev microstates (𝓒 : CanonicalEnsemble ι) : Type := ι |
121 | leanexplore_declaration | leanexplore:377060 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma dof_add (𝓒1 : CanonicalEnsemble ι) (𝓒2 : CanonicalEnsemble ι1) :
(𝓒1 + 𝓒2).dof = 𝓒1.dof + 𝓒2.dof := rfl |
147 | leanexplore_declaration | leanexplore:377061 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma phase_space_unit_add (𝓒1 : CanonicalEnsemble ι) (𝓒2 : CanonicalEnsemble ι1) :
(𝓒1 + 𝓒2).phaseSpaceunit = 𝓒1.phaseSpaceunit := rfl |
68 | leanexplore_declaration | leanexplore:377062 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma dof_nsmul (n : ℕ) : (nsmul n 𝓒).dof = n * 𝓒.dof := rfl |
103 | leanexplore_declaration | leanexplore:377063 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma phase_space_unit_nsmul (n : ℕ) :
(nsmul n 𝓒).phaseSpaceunit = 𝓒.phaseSpaceunit := rfl |
74 | leanexplore_declaration | leanexplore:377064 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma dof_congr (e : ι1 ≃ᵐ ι) :
(𝓒.congr e).dof = 𝓒.dof := rfl |
109 | leanexplore_declaration | leanexplore:377065 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma phase_space_unit_congr (e : ι1 ≃ᵐ ι) :
(𝓒.congr e).phaseSpaceunit = 𝓒.phaseSpaceunit := rfl |
47 | leanexplore_declaration | leanexplore:377066 | leanexplore_sqlite | leanexplore_declarations | lemma μ_add : (𝓒 + 𝓒1).μ = 𝓒.μ.prod 𝓒1.μ := rfl |
84 | leanexplore_declaration | leanexplore:377067 | leanexplore_sqlite | leanexplore_declarations | lemma μ_nsmul (n : ℕ) : (nsmul n 𝓒).μ = MeasureTheory.Measure.pi fun _ => 𝓒.μ := rfl |
123 | leanexplore_declaration | leanexplore:377068 | leanexplore_sqlite | leanexplore_declarations | lemma μ_nsmul_zero_eq : (nsmul 0 𝓒).μ = Measure.pi (fun _ => 0) := by
simp [nsmul]
congr
funext x
exact Fin.elim0 x |
119 | leanexplore_declaration | leanexplore:377069 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma energy_add_apply (i : microstates (𝓒 + 𝓒1)) :
(𝓒 + 𝓒1).energy i = 𝓒.energy i.1 + 𝓒1.energy i.2 := rfl |
124 | leanexplore_declaration | leanexplore:377070 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma energy_nsmul_apply (n : ℕ) (f : Fin n → microstates 𝓒) :
(nsmul n 𝓒).energy f = ∑ i, 𝓒.energy (f i) := rfl |
106 | leanexplore_declaration | leanexplore:377071 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma energy_congr_apply (e : ι1 ≃ᵐ ι) (i : ι1) :
(𝓒.congr e).energy i = 𝓒.energy (e i) := rfl |
535 | leanexplore_declaration | leanexplore:377072 | leanexplore_sqlite | leanexplore_declarations | lemma nsmul_succ (n : ℕ) [SigmaFinite 𝓒.μ] : nsmul n.succ 𝓒 = (𝓒 + nsmul n 𝓒).congr
(MeasurableEquiv.piFinSuccAbove (fun _ => ι) 0) := by
ext1
· ext x
simp only [Nat.succ_eq_add_one, energy_nsmul_apply]
exact Fin.sum_univ_succAbove (fun i => 𝓒.energy (x i)) 0
· simp [Nat.succ_eq_add_one, Nat.succ... |
319 | leanexplore_declaration | leanexplore:377073 | leanexplore_sqlite | leanexplore_declarations | instance [NeZero 𝓒.μ] [NeZero 𝓒1.μ] : NeZero (𝓒 + 𝓒1).μ := by
simp [μ_add]
refine { out := ?_ }
rw [← @Measure.measure_univ_pos]
have h1 : (𝓒.μ.prod (𝓒1.μ)) Set.univ =
(𝓒.μ Set.univ) * (𝓒1.μ Set.univ) := by
rw [← @Measure.prod_prod]
simp
rw [h1]
exact NeZero.pos (𝓒.μ Set.univ * 𝓒1.μ ... |
278 | leanexplore_declaration | leanexplore:377074 | leanexplore_sqlite | leanexplore_declarations | instance μ_neZero_congr [NeZero 𝓒.μ] (e : ι1 ≃ᵐ ι) :
NeZero (𝓒.congr e).μ := by
refine { out := ?_ }
rw [← @Measure.measure_univ_pos]
simp only [Measure.measure_univ_pos, ne_eq]
refine (Measure.map_ne_zero_iff ?_).mpr ?_
· fun_prop
· exact Ne.symm (NeZero.ne' _) |
268 | leanexplore_declaration | leanexplore:377075 | leanexplore_sqlite | leanexplore_declarations | instance [NeZero 𝓒.μ] (n : ℕ) : NeZero (nsmul n 𝓒).μ := by
induction n with
| zero =>
rw [μ_nsmul_zero_eq]
rw [@neZero_iff]
simp only [ne_eq]
refine Measure.measure_univ_ne_zero.mp ?_
simp
| succ n ih =>
rw [nsmul_succ]
infer_instance |
199 | leanexplore_declaration | leanexplore:377076 | leanexplore_sqlite | leanexplore_declarations | /-- The Boltzmann measure on the space of microstates. -/
noncomputable def μBolt (T : Temperature) : MeasureTheory.Measure ι :=
𝓒.μ.withDensity (fun i => ENNReal.ofReal (exp (- T.β * 𝓒.energy i))) |
162 | leanexplore_declaration | leanexplore:377077 | leanexplore_sqlite | leanexplore_declarations | instance (T : Temperature) : SigmaFinite (𝓒.μBolt T) :=
inferInstanceAs
(SigmaFinite (𝓒.μ.withDensity (fun i => ENNReal.ofReal (exp (- β T * 𝓒.energy i))))) |
327 | leanexplore_declaration | leanexplore:377078 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma μBolt_add (T : Temperature) :
(𝓒 + 𝓒1).μBolt T = (𝓒.μBolt T).prod (𝓒1.μBolt T) := by
simp_rw [μBolt, μ_add]
rw [MeasureTheory.prod_withDensity]
congr
funext i
rw [← ENNReal.ofReal_mul, ← Real.exp_add]
simp only [energy_add_apply, neg_mul]
ring_nf
· exact exp_nonneg _
· fun_prop
... |
400 | leanexplore_declaration | leanexplore:377079 | leanexplore_sqlite | leanexplore_declarations | lemma μBolt_congr (e : ι1 ≃ᵐ ι) (T : Temperature) : (𝓒.congr e).μBolt T =
(𝓒.μBolt T).map e.symm := by
simp [congr, μBolt]
refine Measure.ext_of_lintegral _ fun φ hφ ↦ ?_
rw [lintegral_withDensity_eq_lintegral_mul₀]
rw [lintegral_map, lintegral_map, lintegral_withDensity_eq_lintegral_mul₀]
congr
funex... |
480 | leanexplore_declaration | leanexplore:377080 | leanexplore_sqlite | leanexplore_declarations | lemma μBolt_nsmul [SigmaFinite 𝓒.μ] (n : ℕ) (T : Temperature) :
(nsmul n 𝓒).μBolt T = MeasureTheory.Measure.pi fun _ => (𝓒.μBolt T) := by
induction n with
| zero =>
simp [nsmul, μBolt]
congr
funext x
exact Fin.elim0 x
| succ n ih =>
rw [nsmul_succ, μBolt_congr]
rw [μBolt_add]
re... |
519 | leanexplore_declaration | leanexplore:377081 | leanexplore_sqlite | leanexplore_declarations | lemma μBolt_ne_zero_of_μ_ne_zero (T : Temperature) (h : 𝓒.μ ≠ 0) :
𝓒.μBolt T ≠ 0 := by
simp [μBolt] at ⊢ h
rw [Measure.ext_iff'] at ⊢ h
simp only [Measure.coe_zero, Pi.zero_apply]
have hs : {x | ENNReal.ofReal (rexp (-(↑T.β * 𝓒.energy x))) ≠ 0} = Set.univ := by
ext i
simp only [ne_eq, ENNReal.ofR... |
157 | leanexplore_declaration | leanexplore:377082 | leanexplore_sqlite | leanexplore_declarations | instance (T : Temperature) [NeZero 𝓒.μ] : NeZero (𝓒.μBolt T) := by
refine { out := ?_ }
apply μBolt_ne_zero_of_μ_ne_zero
exact Ne.symm (NeZero.ne' 𝓒.μ) |
174 | leanexplore_declaration | leanexplore:377083 | leanexplore_sqlite | leanexplore_declarations | instance (T : Temperature) [IsFiniteMeasure (𝓒.μBolt T)] [IsFiniteMeasure (𝓒1.μBolt T)] :
IsFiniteMeasure ((𝓒 + 𝓒1).μBolt T) := by
simp only [μBolt_add]; infer_instance |
151 | leanexplore_declaration | leanexplore:377084 | leanexplore_sqlite | leanexplore_declarations | instance (T : Temperature) [IsFiniteMeasure (𝓒.μBolt T)] (n : ℕ) :
IsFiniteMeasure ((nsmul n 𝓒).μBolt T) := by
simp [μBolt_nsmul]; infer_instance |
317 | leanexplore_declaration | leanexplore:377085 | leanexplore_sqlite | leanexplore_declarations | /-- The mathematical partition function, defined as the integral of the Boltzmann factor.
This quantity may have physical dimensions. See `CanonicalEnsemble.partitionFunction` for
the dimensionless physical version. -/
noncomputable def mathematicalPartitionFunction (T : Temperature) : ℝ := (𝓒.μBolt T).real Set.univ |
381 | leanexplore_declaration | leanexplore:377086 | leanexplore_sqlite | leanexplore_declarations | lemma mathematicalPartitionFunction_eq_integral (T : Temperature) :
mathematicalPartitionFunction 𝓒 T = ∫ i, exp (- T.β * 𝓒.energy i) ∂𝓒.μ := by
trans ∫ i, 1 ∂𝓒.μBolt T
· simp only [integral_const, smul_eq_mul, mul_one]
rfl
rw [μBolt]
erw [integral_withDensity_eq_integral_smul]
congr
funext x
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.