nomeata / loogle

Mathlib search tool
https://loogle.lean-lang.org/
Apache License 2.0
61 stars 6 forks source link

False negative: |- (∑' (n :Nat), _ ^ n) = #2

Closed nomeata closed 10 months ago

nomeata commented 11 months ago

The query |- (∑' (n : Nat), _ ^ n) = _ doesn’t work, while |- (∑' (n : _), _ ^ n) = _ works.

Something with type classes, because it says

Found 40 definitions mentioning HPow.hPow, tsum and Eq. Of these, 7 match your pattern(s).

but

Found 0 definitions mentioning instPowNat, instTopologicalSpaceNat, Nat.addCommMonoid, HPow.hPow, tsum, Nat, instHPow and Eq. Of these, 0 match your pattern(s).

nomeata commented 11 months ago

These work:

|- (∑' (n :  _), _ ^ n) = (_ : Real)
|- (∑' (n :  _), @HPow.hPow Real Nat Real _ _ n) = _

These don’t

|- (∑' (n :  _), (_ ^ n : Real)) = (_ : Real)
|- (∑' (n :  _), ((_:Real) ^ (n : Nat) : Real)) = _
nomeata commented 11 months ago

Ah, maybe this is due to https://github.com/leanprover/lean4/issues/2220 somehow.

nomeata commented 10 months ago

yay, this got fixed along with https://github.com/leanprover/lean4/issues/2220!