Skip to content

Improve theorem search across the installed Lean library - #69

Merged
LikC1606 merged 2 commits into
mainfrom
codex/theorem-search
Nov 29, 2026
Merged

LikC1606 merged 2 commits into
mainfrom
codex/theorem-search

Conversation

@LikC1606

Copy link
Copy Markdown
Collaborator

TheoremOS can now find installed Mathlib declarations from theorem aliases, supported Chinese and English descriptions, and Lean goals that use different notation or specialize theorem arguments. Goal ranking uses local types and available hypotheses. Reversed equalities and equivalences return an application hint for .symm. Results retain their source and import module, including declarations produced by @[to_additive].

The solver and Web catalog share the frozen library search data. The CLI checks the pinned source corpus, and Lean checks each proposed application.

On the pinned Lean 4.36.0 corpus, all 48 expected Lean goal results ranked first, including six reversed goals. Lean checked all six suggested .symm applications. The 12 focused test files passed with 367 tests.

@LikC1606
LikC1606 merged commit d4da8ca into main Nov 29, 2026
4 checks passed
@LikC1606
LikC1606 deleted the codex/theorem-search branch December 1, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant