AFTD Auto-Formalizing Theoretical Domains

Space.basis

defimported Lean

The standard basis of Space based on Fin d.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
noncomputable def Space.basis {d} : OrthonormalBasis (Fin d) ℝ (Space d)
Defined in
Physlib, `Space.basis`
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.
What was changed in Space.basis
--- Physlib/SpaceAndTime/Space/Module.lean:331 (Space.basis)
+++ as compiled here
@@ -1,3 +1,4 @@
-/-- The standard basis of Space based on `Fin d`. -/
-noncomputable def basis {d} : OrthonormalBasis (Fin d) ℝ (Space d) where
+set_option autoImplicit true in
+set_option relaxedAutoImplicit true in
+noncomputable def Space.basis {d} : OrthonormalBasis (Fin d) ℝ (Space d) where
   repr := {
@@ -19,2 +20,3 @@
       intro x
-      simp [norm_eq, PiLp.norm_eq_of_L2]}
+      simp [norm_eq, PiLp.norm_eq_of_L2]
+      rfl}
Verified
09 Oct 2026
Axioms
none listed
Built on 57
Used by 16

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
/-- The standard basis of Space based on `Fin d`. -/
noncomputable def Space.basis {d} : OrthonormalBasis (Fin d) ℝ (Space d) where
  repr := {
    toFun p := WithLp.toLp 2 fun i => p i
    invFun := fun v => ⟨v⟩
    left_inv := by
      intro p
      rfl
    right_inv := by
      intro v
      rfl
    map_add' := by
      intro v1 v2
      rfl
    map_smul' := by
      intro c v
      rfl
    norm_map' := by
      intro x
      simp [norm_eq, PiLp.norm_eq_of_L2]
      rfl}
See it in the graphDiscuss this resultChallenge it