formalize-theory
/formalize-theory
Formalizuje w Lean wyniki matematyczne z literatury, w tym geometrię, dynamikę i analizę, i buduje na nich ponownie używalną teorię.
- Autor
- siddhartha-gadgil ↗
- Repozytorium
- LeanTheory ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Formalizuje w Lean wyniki matematyczne z literatury, w tym geometrię, dynamikę i analizę, i buduje na nich ponownie używalną teorię.
Oryginalny opis (EN)
Formalize sourced mathematical results in Lean for a LeanTheory-based formalization and build reusable theory above its domain kernel. Use for geometry, dynamics, analysis, PDE or stability results, error bounds, or engineering theorems taken from literature or a complete mathematical proof.
Jak działa
- Load only the relevant material
- Extract a source theorem before coding
- Design the Lean statement
- Build and verify incrementally
- Preserve the theorem's meaning
Podgląd SKILL.md
--- name: formalize-theory description: Formalize sourced mathematical results in Lean for a LeanTheory-based formalization and build reusable theory above its domain kernel. Use for geometry, dynamics, analysis, PDE or stability results, error bounds, or engineering theorems taken from literature or a complete mathematical proof. --- # Formalize theory ## Load only the relevant material Read `notes/domain-libraries.md`, the source research note and its dependencies, the actual kernel modules, `notes/formalization/00-model-contracts.md` and the relevant existing theory in `LeanTheory/Theory/`. Resolve paths relative to the selected repository even when this skill is installed globally. Confirm that required upstream results have named compiled declarations. If a dependency is only conjectural or sketched, do not silently formalize downstream of it as if it were established; formalize the prerequisite first or keep the theorem explicitly conditional. ## Extract a source theorem before coding Retrieve the primary paper or book chapter, including corrigenda and relevant supplements. Record authors, title, stable identifier, version, theorem/equation locator and retrieval date. Reconstruct the result in your own words and identify every geometric, analytic, boundary, normalization and model hypothesis. If only an abstract is available, record a literature lead; do not assert a theorem from the abstract. Distinguish published theorem, formal asymptotic calculation, numerical result and empirical fit. Check signs, unit factors, normalization conventions, and whether the conclusion is necessary, sufficient, local or asymptotic. ## Design the Lean statement 1. Write the intended informal theorem and its intended use. 2. Search existing declarations in the pinned dependencies with `rg` and inspect their signatures. 3. Choose the weakest adequate analytic interface: algebraic identities before PDE existence; an abstract quadratic form before the full operator; a fixed domain before a moving one. 4. State model laws as explicit hypotheses or typeclass arguments, following the kernel pattern (`OscillatorLaw` in `LeanTheory/Kernel/Example.lean`). 5. Choose spaces, measures, boundary traces, coordinate domains and regularity. Explain any restriction in the name and docstring. 6. List missing lemmas as a dependency graph. Keep mathematical infrastructure in reusable `Theory` modules rather than inside one design proof. Use Euclidean domains first when differential geometry would delay a useful result; add a manifold bridge through a theorem when needed. Do not assume that anticipated Sobolev, trace, differential-form, spectral or PDE APIs already exist in Mathlib. ## Build and verify incrementally Prove prerequisite lemmas, then the theorem, then corollaries and sanity cases. Check a file with `lake env lean <path>`; build changed modules one at a time (`lake build <module>`), and the library only when dependencies are fresh. Do not claim successful compilation if the toolchain or dependency retrieval blocks it. Use docstrings for every definition and theorem and a module docstring describing the model. Use `simp`, `norm_num`, `linarith`, `nlinarith`, `grind`, `fun_induction` and other proof-producing tactics; search for a conceptual lemma before brute-force unfolding. Follow `lean-proofs` for tactic choice and for concrete checks: no `decide` of any kind. Keep the library free of `sorry`, `admit`, new axioms and unchecked external numerical oracles. Do not put an assumption equivalent to the desired conclusion inside a misleadingly named law bundle. Inspect `#print axioms` for important public results and add certificate entry points to `scripts/check_axioms.lean`; only `propext`, `Classical.choice` and `Quot.sound` are allowed. ## Preserve the theorem's meaning Recheck the informal statement against the final Lean declaration. Verify that a nonempty admissible class remains (a concrete instance, as in `LeanTheory/Sanity/Example.lean`), that the chosen norm is the advertised one, and that boundary terms and symmetry modes have not disappeared through an unjustified restriction. A result on a finite subspace must say so in its name. Update the originating note and `notes/implementation-plan.md` with source locators, declaration names, assumptions, compiled checks, sanity theorems, remaining dependencies, barriers and newly ready notes. Deliver the next target. Label sketches and unformalized source results separately from verified library code.
Pliki w paczce (2)
- SKILL.md 4 KB
- agents/openai.yaml 1 KB
Wersje
W bazie nie ma innych skilli o nazwie formalize-theory.
Migawka bazy z 13.11.2026 · wersja paczki 7843084e66de (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90formalize
Formalizuje gotowe liście planu Markdown w Lean, wykonując dowody przez natywnych agentów i zapisując postęp w pliku. - 100discover-theory
Rozwija nową teorię matematyczną w projekcie LeanTheory przez pętle hipotez, dowodów, kontrprzykładów i udoskonaleń. - 100lean-formalize
Rozwija i weryfikuje dowód matematyczny w Lean, dokańcza niedokończony projekt lub sprawdza, czy dowód dotyczy oryginalnego twierdzenia. - 100lean-formalize
Rozwija i weryfikuje dowód matematyczny w Lean, kontynuuje niedokończony projekt lub sprawdza, czy dowodzi on pierwotnego twierdzenia, łącząc lematy, sprawdzając aksjomaty i przygotowując powtarzalne przekazanie. - 100lean-formalize
Rozwija i weryfikuje dowód matematyczny w Lean, kontynuuje niedokończony projekt lub sprawdza, czy dowodzi on pierwotnego twierdzenia, łącząc lematy, sprawdzając aksjomaty i przygotowując powtarzalne przekazanie. - 90develop-theory
Koordynuje rozwój teorii w projekcie LeanTheory przez cele, pytania i notatki badawcze, z Lean jako bramką ważności.