Zulip Chat Archive
Stream: general
Topic: Loogle bug with export
Kenny Lau (Sep 04 2025 at 13:36):
Searching Finset.HasAntidiagonal.antidiagonal on Loogle will give you theorems mentioning Finset.antidiagonal, but searching Finset.antidiagonal gives you an "unknown identifier".
This is because antidiagonal has been exported out of the Finset.HasAntidiagonal namespace. @Joachim Breitner would you know how to fix this?
/-- The class of additive monoids with an antidiagonal -/
class HasAntidiagonal (A : Type*) [AddMonoid A] where
/-- The antidiagonal of an element `n` is the finset of pairs `(i, j)` such that `i + j = n`. -/
antidiagonal : A → Finset (A × A)
/-- A pair belongs to `antidiagonal n` iff the sum of its components is equal to `n`. -/
mem_antidiagonal {n} {a} : a ∈ antidiagonal n ↔ a.fst + a.snd = n
export HasAntidiagonal (antidiagonal mem_antidiagonal)
Aaron Liu (Sep 04 2025 at 14:26):
You can search @loogle (Finset.antidiagonal)
loogle (Sep 04 2025 at 14:26):
:search: Finset.hasAntidiagonal_congr, Finset.sigmaAntidiagonalEquivProd, and 109 more
Aaron Liu (Sep 04 2025 at 14:26):
if you put parentheses it interprets it as a term
Joachim Breitner (Sep 04 2025 at 16:54):
So loogle needs to use something else for name resolution? could someone report an issue at https://github.com/nomeata/loogle/issues/? Probably not hard to fix.
Last updated: Dec 20 2025 at 21:32 UTC