Zulip Chat Archive

Stream: Is there code for X?

Topic: Exponential of reals are real - as a subset of complex


Mark Gerads (Jul 07 2022 at 02:24):

I would like [import all and librarysearch] to result in a solution for this problem. Here is a sorry minimal working example:

import data.complex.exponential

open complex

lemma expOfRealIsReal (z:) (zIsReal:z.im=0) : (exp z).im=0 :=
begin
  sorry,
end

Heather Macbeth (Jul 07 2022 at 02:42):

docs#complex.exp_of_real_im is this but with the hypothesis in a different format:

lemma expOfRealIsReal (b:) (bIsReal:b.im=0) : (exp b).im=0 :=
begin
  obtain x, y := b,
  have : y = 0 := bIsReal,
  rw this,
  exact exp_of_real_im x,
end

Mark Gerads (Jul 07 2022 at 02:52):

Thank you.


Last updated: Dec 20 2023 at 11:08 UTC