login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for SandBox Lorentz Transformations revision 2 of 3

1 2 3
Editor: Bill Page
Time: 2009/10/14 16:41:23 GMT-7
Note: update

changed:
-  Z. Oziewicz, 2005 -- "Special relativity without Lorentz group":http://portal.axiom-developer.org/Members/billpage/catrel/velocity.pdf/file_view
  Z. Oziewicz, 2005 -- "Special relativity without Lorentz group":http://axiom-portal.newsynthesis.org/Members/page/catrel/velocity.pdf/file_view

Lorentz transformations relate one object or observer (represented by a time-like 4-vector) to another object or observer. A Lorentz transformation is not uniquely given by the relative velocity of these objects.

References

Z. Oziewicz, 2005
Special relativity without Lorentz group
Donald Fahnline, AJP, 1982
A covariant four-dimensional expression for Lorentz transformations
Daniel Gottlieb, 1996
Skew Symmetric Bundle Maps on Space-Time

Mathematical Preliminaries (from: SandBoxCategoricalRelativity?)

This package implements a vector as a n \times 1 matrix (column vector), a co-vector as a 1 \times n matrix (row vector), inner and outter (tensor) products with Minkowski signature - + + + and fast routines for checking equations.

aldor
#include "axiom.as"
#pile
-- Try RealClosure instead of AlgebraicNumber in order to -- avoid error message #305 ... but it takes too long. RAN ==> AlgebraicNumber --RAN ==> RealClosure( Fraction(Integer) ) EQ ==> Equation EXPR ==> Expression INT ==> Integer NNI ==> NonNegativeInteger SYMBOL ==> Symbol LIST ==> List MATRIX ==> Matrix
SCALAR ==> Expression Integer
import from INT, NNI EXPR INT EXPR RAN EQ EXPR INT LIST EXPR INT LIST LIST SYMBOL ListFunctions2(SCALAR, LIST SCALAR) ListFunctions2(SYMBOL, EQ SCALAR) ListFunctions2(SYMBOL, EQ EXPR RAN) ListFunctions2(SCALAR, LIST SYMBOL) ListFunctions2(EXPR RAN, LIST SYMBOL) MATRIX SCALAR MATRIX EXPR RAN
minkowski1(): with +++ Colum vector vect: LIST SCALAR -> MATRIX SCALAR ++ is represented as a nx1 matrix (column vector) +++ The Lorentz form g: () -> MATRIX SCALAR g: MATRIX SCALAR -> MATRIX SCALAR ++ applied to vector produces a row vector g: (MATRIX SCALAR,MATRIX SCALAR) -> SCALAR ++ as inner product of two vectors produces a scalar +++ replace symbols by random numerical values. possible: SCALAR -> SCALAR possible: EXPR RAN -> EXPR RAN possible: MATRIX SCALAR -> MATRIX SCALAR possible: EQ SCALAR -> EQ SCALAR possible: EQ MATRIX SCALAR -> EQ MATRIX SCALAR +++ verify equality Is?: EQ SCALAR -> Boolean Is?: EQ EXPR RAN -> Boolean Is?: EQ MATRIX EXPR RAN -> Boolean +++ Massive Objects obs: () -> MATRIX SCALAR obs?: MATRIX SCALAR -> Boolean +++ Relative Velocity w: (MATRIX SCALAR,MATRIX SCALAR) -> MATRIX SCALAR +++ outter (tensor) product /\: (MATRIX SCALAR,MATRIX SCALAR) ->MATRIX SCALAR +++ Lorentz factor gamma: MATRIX SCALAR -> SCALAR +++ binary boost b: (MATRIX SCALAR,MATRIX SCALAR) ->MATRIX SCALAR +++ addition of relative velocities addition: (MATRIX SCALAR,MATRIX SCALAR,MATRIX SCALAR) -> MATRIX SCALAR == add -- -- Local functions randumb(y:SYMBOL):EQ SCALAR == coerce(y)$SCALAR = coerce(random(100) - random(100))$SCALAR randumb(y:SYMBOL):EQ EXPR RAN == coerce(y)$EXPR(RAN) = coerce(random(100) - random(100))$EXPR(RAN) -- -- get list of unique variables varList(x:MATRIX SCALAR):LIST Symbol == removeDuplicates(reduce(append,map(variables,members(x)))) varList(x:EQ MATRIX SCALAR):LIST Symbol == removeDuplicates(reduce(append, append(map(variables,members(lhs x)),map(variables,members(rhs x))) )) varList(x:EQ SCALAR):LIST Symbol == removeDuplicates(append(variables lhs x,variables rhs x)) -- -- Exported functions vect(x:LIST SCALAR):MATRIX SCALAR == matrix( map(list,x) ) g():MATRIX SCALAR == diagonalMatrix([-1,1,1,1])$MATRIX(SCALAR) g(x:Matrix SCALAR):MATRIX SCALAR == transpose(x)*g() g(x:MATRIX SCALAR,y:MATRIX SCALAR):SCALAR == (g(x)*y).(1,1) -- -- For difficult verifications it is sometimes convenient to replace -- symbols by random numerical values. possible(x:SCALAR):SCALAR == eval(x, map(randumb,variables x)) possible(x:EXPR RAN):EXPR RAN == eval(x, map(randumb,variables x)) possible(x:MATRIX SCALAR):MATRIX SCALAR == eval(x, map(randumb,varList x)) -- -- We must be careful to give each variable the same value possible(x:EQ MATRIX SCALAR):EQ MATRIX SCALAR == rlist:LIST EQ SCALAR := map(randumb,varList x) eval(lhs x, rlist) = eval(rhs x, rlist) possible(x:EQ SCALAR):EQ SCALAR == rlist:List EQ SCALAR := map(randumb,varList x) eval(lhs x, rlist) = eval(rhs x, rlist) -- -- To verify equality, the AlgebraicNumber domain can test for -- equality of complicated expressions involving $\sqrt{n}$. Is?(eq:EQ SCALAR):Boolean == zero?(lhs(eq)-rhs(eq)) Is?(eq:EQ EXPR RAN):Boolean == zero?(lhs(eq)-rhs(eq)) Is?(eq:EQ Matrix EXPR RAN):Boolean == every?(zero?,lhs(eq)-rhs(eq)) -- -- Fast check: If the result of Is?(possible(...)) is false then the -- equality does not hold on the other hand if it returns true, then -- it is only probably true. obs():MATRIX SCALAR == p1:=new()$SYMBOL::SCALAR; p2:=new()$SYMBOL::SCALAR; p3:=new()$SYMBOL::SCALAR; vect [sqrt(p1^2::NNI+p2^2::NNI+p3^2::NNI+1),p1,p2,p3] obs?(P:MATRIX SCALAR):Boolean == Is?( (g(P,P) = -1$SCALAR)$EQ(SCALAR) ) w(P:MATRIX SCALAR,Q:MATRIX SCALAR):MATRIX SCALAR == -Q/g(P,Q)-P (/\)(P:MATRIX SCALAR,K:MATRIX SCALAR):MATRIX SCALAR == P*transpose(K) - K*transpose(P) gamma(v:MATRIX SCALAR):SCALAR == 1/sqrt(1-g(v,v)) b(P:MATRIX SCALAR,v:MATRIX SCALAR):MATRIX SCALAR == gamma(v)*(P+v) addition(v:MATRIX SCALAR,u:MATRIX SCALAR,uinv:MATRIX SCALAR):MATRIX SCALAR == ( u + v/gamma(u) - g(v,uinv)/g(u,u)*(u + uinv/gamma(u)) ) / (1-g(v,uinv)) ++ for u=w(A,B), uinv=w(B,A) and v=w(B,C) returns w(A,C)
aldor
   Compiling FriCAS source code from file 
      /var/zope2/var/LatexWiki/mink1.as using AXIOM-XL compiler and 
      options 
-O -Fasy -Fao -Flsp -laxiom -Mno-ALDOR_W_WillObsolete -DAxiom -Y $AXIOM/algebra -I $AXIOM/algebra
      Use the system command )set compiler args to change these 
      options.
   Compiling Lisp source code from file ./mink1.lsp
   Issuing )library command for mink1
   Reading /var/zope2/var/LatexWiki/mink1.asy
   minkowski1 is now explicitly exposed in frame initial 
   minkowski1 will be automatically loaded when needed from 
      /var/zope2/var/LatexWiki/mink1

axiom
)lib mink1
axiom
Reading /var/zope2/var/LatexWiki/mink1.asy
   minkowski1 is already explicitly exposed in frame initial 
   minkowski1 will be automatically loaded when needed from 
      /var/zope2/var/LatexWiki/mink1
axiom
)show minkowski1
minkowski1 is a domain constructor Abbreviation for minkowski1 is MINKOWS This constructor is exposed in this frame. ------------------------------- Operations -------------------------------- ?/\? : (Matrix(Expression(Integer)),Matrix(Expression(Integer))) -> Matrix(Expression(Integer)) Is? : Equation(Expression(Integer)) -> Boolean Is? : Equation(Expression(AlgebraicNumber)) -> Boolean Is? : Equation(Matrix(Expression(AlgebraicNumber))) -> Boolean addition : (Matrix(Expression(Integer)),Matrix(Expression(Integer)),Matrix(Expression(Integer))) -> Matrix(Expression(Integer)) b : (Matrix(Expression(Integer)),Matrix(Expression(Integer))) -> Matrix(Expression(Integer)) g : () -> Matrix(Expression(Integer)) g : Matrix(Expression(Integer)) -> Matrix(Expression(Integer)) g : (Matrix(Expression(Integer)),Matrix(Expression(Integer))) -> Expression(Integer) gamma : Matrix(Expression(Integer)) -> Expression(Integer) obs : () -> Matrix(Expression(Integer)) obs? : Matrix(Expression(Integer)) -> Boolean possible : Expression(Integer) -> Expression(Integer) possible : Expression(AlgebraicNumber) -> Expression(AlgebraicNumber) possible : Matrix(Expression(Integer)) -> Matrix(Expression(Integer)) possible : Equation(Expression(Integer)) -> Equation(Expression(Integer)) possible : Equation(Matrix(Expression(Integer))) -> Equation(Matrix(Expression(Integer))) vect : List(Expression(Integer)) -> Matrix(Expression(Integer)) w : (Matrix(Expression(Integer)),Matrix(Expression(Integer))) -> Matrix(Expression(Integer))

Objects

axiom
P:=obs(); Q:=obs();
Type: Matrix(Expression(Integer))
axiom
R:=obs(); S:=obs();
Type: Matrix(Expression(Integer))

Lorentz boost (Oziewicz)

M is a g-skew-symmetric endomorphism on the vector space

axiom
M(P,Q) == P*g(Q) - Q*g(P)
Type: Void
axiom
Is?(M(vect [a1,a2,a3,a4], vect [b1,b2,b3,b4]) = _
   (vect [a1,a2,a3,a4] /\ vect [b1,b2,b3,b4])*g())
axiom
Compiling function M with type (Matrix(Expression(Integer)),Matrix(
      Expression(Integer))) -> Matrix(Expression(Integer))

\label{eq1} \mbox{\rm true} (1)
Type: Boolean

The Lorentz transformation is an isometry (Oziewicz):

axiom
L(b) == 1 + b + b^2/(1+sqrt(1+1/2*trace(b^2)))
Type: Void

It maps P into Q,

axiom
Is?(possible( L(M(P,Q)) * P = Q ))
There are 11 exposed and 5 unexposed library operations named + having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op + to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named + with argument type(s) PositiveInteger Matrix(Expression(Integer))
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code.

\label{eq2} \mbox{\rm true} (2)
Type: Boolean

maps observers into observers R \rightarrow S

axiom
S := L(M(P,Q)) * R;
Type: Matrix(Expression(Integer))
axiom
obs?(possible(S))

\label{eq3} \mbox{\rm true} (3)
Type: Boolean

and the relative velocity of w(P,Q) into minus the inverse velocity w(Q,P)

axiom
u:=w(P,Q);
Type: Matrix(Expression(Integer))
axiom
u':=w(Q,P);
Type: Matrix(Expression(Integer))
axiom
Is?(possible( L(M(P,Q)) * u = -u' ))

\label{eq4} \mbox{\rm true} (4)
Type: Boolean

This Lorentz boost can be applied to other objects, for example we can apply the boost L(M(P,Q)) to the object R to obtain S. But in general the relative velocity w(P,Q) is not the same as the relative velocity w(R,S)! Further since u and v belong to separate sub-spaces, E_P and E_R respectively, we can not even directly compare their directions.

axiom
v:=w(R,S);
Type: Matrix(Expression(Integer))
axiom
p:=possible(u=v); Is?(p)

\label{eq5} \mbox{\rm false} (5)
Type: Boolean
axiom
up:=lhs(p); vp:=rhs(p);
Type: Matrix(Expression(Integer))
axiom
Is?( g(up,up) = g(vp,vp) )

\label{eq6} \mbox{\rm false} (6)
Type: Boolean
axiom
( g(up,up) = g(vp,vp) )::EQ EXPR Float

\label{eq7}{0.99999985625620998016}={0.99999999999999958715}(7)
Type: Equation(Expression(Float))

The next command fails due to bug #305

axiom
Is?(possible( g(u,u) = g(v,v) ))

\label{eq8} \mbox{\rm false} (8)
Type: Boolean