AFTD Auto-Formalizing Theoretical Domains

QuantumMechanics.OneDimension.HilbertSpace.parityOperatorSchwartz

defimported Lean

The parity operator on the Schwartz maps is defined as the linear map from 𝓒(ℝ, β„‚) to itself, such that ψ is taken to fun x => ψ (-x).

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open MeasureTheory SchwartzMap in
noncomputable def QuantumMechanics.OneDimension.HilbertSpace.parityOperatorSchwartz : 𝓒(ℝ, β„‚) β†’L[β„‚] 𝓒(ℝ, β„‚)
Defined in
Physlib, `QuantumMechanics.OneDimension.HilbertSpace.parityOperatorSchwartz`
Lean proof
By Joseph Tooby-Smith, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2025 Joseph Tooby-Smith. 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.
Verified
10 Oct 2026
Axioms
none listed
Built on 2
Used by 3

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open MeasureTheory SchwartzMap in
/-- The parity operator on the Schwartz maps is defined as the linear map from `𝓒(ℝ, β„‚)` to itself, such that `ψ` is taken to `fun x => ψ (-x)`. -/
noncomputable def QuantumMechanics.OneDimension.HilbertSpace.parityOperatorSchwartz : 𝓒(ℝ, β„‚) β†’L[β„‚] 𝓒(ℝ, β„‚) := by
  refine (SchwartzMap.compCLM β„‚ (g := (fun x => - x : ℝ β†’ ℝ)) ⟨?_, ?_⟩ ?_)
  Β· fun_prop
  Β· intro n
    simp only [Real.norm_eq_abs]
    use 1, 1
    intro x
    simp only [pow_one, one_mul]
    rw [show (fun x : ℝ => -x) = -(fun x : ℝ => x) from rfl]
    rw [iteratedFDeriv_neg_apply]
    simp only [norm_neg]
    match n with
    | 0 => simp
    | 1 =>
      rw [iteratedFDeriv_succ_eq_comp_right]
      simp [ContinuousLinearMap.norm_id]
    | .succ (.succ n) =>
      rw [iteratedFDeriv_succ_eq_comp_right]
      simp only [Nat.succ_eq_add_one, fderiv_fun_id, Function.comp_apply,
        LinearIsometryEquiv.norm_map, ge_iff_le]
      rw [iteratedFDeriv_const_of_ne]
      simp only [Pi.zero_apply, norm_zero]
      apply add_nonneg
      Β· exact zero_le_one' ℝ
      Β· exact abs_nonneg x
      simp
  Β· simp
    use 1, 1
    intro x
    simp
See it in the graphDiscuss this resultChallenge it