Using Simplify
with certain trivial assumptions makes Mathematica forget that a given matrix is Hermitian. See the minimal example below:
expr = Exp[I*2*π*Re[n]]
mat = {{Re[n], a*expr}, {Conjugate[a]*Conjugate[expr], Re[n]}}
HermitianMatrixQ[mat]
simplifiedmat = Assuming[n ∈ Integers, Simplify[mat]]
HermitianMatrixQ[simplifiedmat]
Here I create a Hermitian matrix mat
with some integer variable n
.
Mathematica correctly asserts that mat
is Hermitian. After this I simplify the matrix under the assumption that n
is an integer. This nicely removes the exponential expression in the matrix, as expected. However, according to Mathematica this simplified matrix simplifiedmat
is no longer Hermitian.
This is clearly wrong. Thus I ask if there is any other way to simplify mat
and maintaining that simplifiedmat
is Hermitian?