Zulip Chat Archive

Stream: new members

Topic: How to do n_pow in the both side of the inequality?


Wenrong Zou (Aug 30 2023 at 07:23):

Hi, everyone !
I don't know how to do 'n_pow' in the both side of the inequality. I don't know how to solve this sorry.

import Mathlib.Analysis.SpecialFunctions.Pow.Real
theorem th1 {a b : } {m : } {n : } (hn : n  0) (ha: 0 < a)
(hb : 0 < b) (h : a < b ^ (m / n)) :
  a ^ n < b ^ m := by sorry

I noticed that there are some Type coercion in the goal, which make m, n to \R. Does this coercion lose the information that n is \N and m is \Z.
Thanks in advance!

Yaël Dillies (Aug 30 2023 at 07:45):

This is a bug. There's a fix somewhere on Zulip but I don't know how to find it :grimacing:

Xavier Roblot (Aug 30 2023 at 08:05):

The fix is to add

local macro_rules | `($x ^ $y)   => `(HPow.hPow $x $y)

See issue lean4#2220

Wenrong Zou (Aug 30 2023 at 08:23):

Xavier Roblot 发言道

The fix is to add

local macro_rules | `($x ^ $y)   => `(HPow.hPow $x $y)

See issue lean4#2220

Thank you very much! I have fixed this bug.


Last updated: Dec 20 2023 at 11:08 UTC