AFTD Auto-Formalizing Theoretical Domains

IsTestFunction.fderiv_apply

theoremverifiedformalizationimported Lean

IsTestFunction.fderiv_apply

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Module in
variable
  {X} [NormedAddCommGroup X] [NormedSpace ℝ X]
  {U} [NormedAddCommGroup U] [NormedSpace ℝ U]
  {V'} [NormedAddCommGroup V'] [NormedSpace ℝ V'] in
open ContDiff InnerProductSpace MeasureTheory in
@[fun_prop]
lemma IsTestFunction.fderiv_apply {f : X → U} (hf : IsTestFunction f) (δx : X) :
    IsTestFunction (fderiv ℝ f · δx)
Formalizes
Physlib, `IsTestFunction.fderiv_apply`
Lean proof
By Tomas Skrivan, Joseph Tooby-Smith, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2025 Tomas Skrivan. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
What was changed in IsTestFunction.fderiv_apply
--- Physlib/Mathematics/VariationalCalculus/IsTestFunction.lean:240 (IsTestFunction.fderiv_apply)
+++ as compiled here
@@ -1 +1,9 @@
+set_option autoImplicit true in
+set_option relaxedAutoImplicit true in
+open Module in
+variable
+  {X} [NormedAddCommGroup X] [NormedSpace ℝ X]
+  {U} [NormedAddCommGroup U] [NormedSpace ℝ U]
+  {V'} [NormedAddCommGroup V'] [NormedSpace ℝ V'] in
+open ContDiff InnerProductSpace MeasureTheory in
 @[fun_prop]
Verified
09 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
Used by 1

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen Module invariable  {X} [NormedAddCommGroup X] [NormedSpace ℝ X]  {U} [NormedAddCommGroup U] [NormedSpace ℝ U]  {V'} [NormedAddCommGroup V'] [NormedSpace ℝ V'] inopen ContDiff InnerProductSpace MeasureTheory in@[fun_prop]lemma IsTestFunction.fderiv_apply {f : X → U} (hf : IsTestFunction f) (δx : X) :    IsTestFunction (fderiv ℝ f · δx) where  smooth := by    apply ContDiff.fderiv_apply (m := ∞)    · fun_prop    · fun_prop    · fun_prop    · exact Preorder.le_refl (∞ + 1)  supp := by    apply HasCompactSupport.fderiv_apply    exact hf.supp
See it in the graphDiscuss this resultChallenge it