PhysLean Documentation

PhysLean.SpaceAndTime.Space.SpaceStruct

SpaceStruct d #

This is a work in progress reimplmentation of Space d that abstracts over the underlying EuclideanSpace

Space d is planned to be deprecated in favor of SpaceStruct d. Once the necessary components are migrated to be compatible with SpaceStruct, it will become the default implementation of Space

structure SpaceStruct (d : := 3) :

The type SpaceStruct d representes d dimensional Euclidean space. The default value of d is 3. Thus SpaceStuct = Spacestruct 3.

Instances For

    Basic operations on Space. #

    noncomputable instance instAddSpaceStruct {d : } :
    Equations
    @[simp]
    theorem add_val {d : } (x y : SpaceStruct d) :
    x + y = { val := x.val + y.val }
    Equations
    @[simp]
    theorem neg_val {d : } (x : SpaceStruct d) :
    (-x).val = -x.val
    noncomputable instance instSubSpaceStruct {d : } :
    Equations
    Equations
    Equations
    noncomputable instance instInnerRealSpaceStruct (d : ) :
    Equations
    Equations

    Instances on Space #

    noncomputable instance instAddGroupSpaceStruct {d : } :
    Equations
    • One or more equations did not get rendered due to their size.
    noncomputable instance instAddCommGroupSpaceStruct {d : } :
    Equations

    Inner product #

    theorem inner_eq_sum {d : } (p q : SpaceStruct d) :
    inner p q = i : Fin d, p.val i * q.val i