-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port Analysis.NormedSpace.DualNumber (#4627)
- Loading branch information
1 parent
1ca6740
commit f055042
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/- | ||
Copyright (c) 2023 Eric Wieser. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Eric Wieser | ||
! This file was ported from Lean 3 source module analysis.normed_space.dual_number | ||
! leanprover-community/mathlib commit 806c0bb86f6128cfa2f702285727518eb5244390 | ||
! Please do not edit these lines, except to modify the commit id | ||
! if you have ported upstream changes. | ||
-/ | ||
import Mathlib.Algebra.DualNumber | ||
import Mathlib.Analysis.NormedSpace.TrivSqZeroExt | ||
|
||
/-! | ||
# Results on `DualNumber R` related to the norm | ||
These are just restatements of similar statements about `TrivSqZeroExt R M`. | ||
## Main results | ||
* `exp_eps` | ||
-/ | ||
|
||
|
||
namespace DualNumber | ||
|
||
open TrivSqZeroExt | ||
|
||
variable (π : Type _) {R : Type _} | ||
|
||
variable [IsROrC π] [NormedCommRing R] [NormedAlgebra π R] | ||
|
||
variable [TopologicalRing R] [CompleteSpace R] [T2Space R] | ||
|
||
@[simp] | ||
theorem exp_eps : exp π (eps : DualNumber R) = 1 + eps := | ||
exp_inr _ _ | ||
#align dual_number.exp_eps DualNumber.exp_eps | ||
|
||
@[simp] | ||
theorem exp_smul_eps (r : R) : exp π (r β’ eps : DualNumber R) = 1 + r β’ eps := by | ||
rw [eps, β inr_smul, exp_inr, Nat.cast_one] | ||
#align dual_number.exp_smul_eps DualNumber.exp_smul_eps | ||
|
||
end DualNumber |