Przejdź do treści
Biblioteka skilli
Nauka i badania · Nauka i wyjaśnianie

lean-learnings

/lean-learnings

Zbiera wnioski z formalizacji w Lean 4 i Mathlib: wybór nośnika, układ repozytorium, koszty elaboracji i powtarzalne wzorce dowodów.

Licencja
Apache-2.0
Ostatnia zmiana repozytorium
13.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
7
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Zbiera wnioski z formalizacji w Lean 4 i Mathlib: wybór nośnika, układ repozytorium, koszty elaboracji i powtarzalne wzorce dowodów.

Oryginalny opis (EN)

Reusable Lean 4 and Mathlib lessons for analysis formalizations. Use when choosing an ambient carrier or repository layout, debugging elaboration and typeclass costs, preserving constant dependencies, or looking for recurring proof and API patterns.

Jak działa

  1. Reference map
  2. Working principles
  3. Related skills
Sekcje z nagłówków SKILL.md, w oryginale · 51 linii, 362 słów
Podgląd SKILL.md
---
name: lean-learnings
description: Reusable Lean 4 and Mathlib lessons for analysis formalizations. Use when choosing an ambient carrier or repository layout, debugging elaboration and typeclass costs, preserving constant dependencies, or looking for recurring proof and API patterns.
---

# Lean Learnings

Use these empirical lessons as hypotheses to test, not as universal policy. Check
the repository's own instructions, inspect the definitions and imports in the
current version of Mathlib, profile before changing architecture, and A/B any
performance intervention.

## Reference map

| Situation | Reference |
|---|---|
| Organizing modules, imports, and namespaces | [references/repo_structure_policy.md](references/repo_structure_policy.md) |
| Diagnosing expensive carriers, instances, or large proofs | [references/Lean4_EuclideanSpace_Elaboration_Guide.md](references/Lean4_EuclideanSpace_Elaboration_Guide.md) |
| Planning an analysis, PDE, or probability development | [references/dos_and_donts.md](references/dos_and_donts.md) |
| Constant dependencies, quantifiers, Mathlib idioms, and proof shapes | [references/lean_learnings.md](references/lean_learnings.md) |
| Variational PDE, multiscale, Besov, locality, concentration, and compiler-gate recipes | [references/advanced_analysis_patterns.md](references/advanced_analysis_patterns.md) |

## Working principles

- Treat the dependency set and quantifier order of every public constant as part
  of the theorem. Audit types and instance arguments as well as named binders.
- Keep source statements, source dependency topology, Lean declarations, and
  Lean proof status distinct. A source dependency graph records source topology;
  it does not certify a Lean proof.
- Do not add axioms, placeholders, or proof-step hypotheses to make a theorem
  elaborate. Preserve the mathematical statement and change the proof or API.
- Profile the dominant phase before restructuring. Narrow imports, helper
  extraction, explicit arguments, local instance caches, and carrier changes
  address different causes.
- Treat `EuclideanSpace`, direct Pi types, bundled `Lp`, and bare functions as
  design choices with different APIs and elaboration costs. Change carriers only
  after checking the mathematics, downstream API, and measured cost.
- Keep nonlinear and transcendental expressions opaque while proving small
  algebraic side lemmas. Prefer controlled rewriting and minimal automation.
- Preserve dependency build artifacts according to the current repository's
  build policy. Never turn a project-specific cache rule into a general Lake
  command.
- Record a reproducible lesson: Lean/Mathlib version, minimal trigger, measured
  symptom, intervention, and an A/B check.

## Related skills

- `lean-workflow` — router for choosing the appropriate Lean workflow
- `lean-project-architecture` — declarations, module boundaries, and reusable APIs
- `lean-proof-patterns` — stable translations from mathematics to Lean proofs
- `lean-search-discovery` — finding existing Mathlib declarations
- `lean-elaboration` — profiling and improving elaboration performance
- `lean-statement-audit` — source, binder, semantics, consumption, and axiom checks
- `build-proof-dependency-graph` — source-level dependency topology
Pliki w paczce (7)
  • SKILL.md 3 KB
  • agents/openai.yaml 1 KB
  • references/Lean4_EuclideanSpace_Elaboration_Guide.md 6 KB
  • references/advanced_analysis_patterns.md 16 KB
  • references/dos_and_donts.md 5 KB
  • references/lean_learnings.md 10 KB
  • references/repo_structure_policy.md 3 KB

Wersje

W bazie nie ma innych skilli o nazwie lean-learnings.

Migawka bazy z 13.11.2026 · wersja paczki 3ae8c9657f82 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90lean-search-discovery
    Szuka w Mathlib istniejących deklaracji, nazw twierdzeń i plików przed napisaniem nowego dowodu w Lean.
  • 100cipherlean
    Formalizuje twierdzenie z artykułu o kryptoanalizie w Lean 4 z Mathlib, sprawdza założenia, dowodzi lematy po kolei i weryfikuje brak sorry.
  • 100writing-lean-proofs
    Pisze i sprawdza uporządkowane dowody w Lean 4 oraz projektuje biblioteki zgodne z konwencjami Mathlib.
  • 100lean-workflow
    Porządkuje pracę w Lean 4 według konwencji Mathlib i Lake: edycja plików, zgodność źródeł i aksjomatów, zależności oraz artefakty budowy.
  • 100lean
    Wspiera pracę w Lean 4: naprawa dowodów, rozwój twierdzeń, programy weryfikowane, projekt modeli i specyfikacji, dowody terminacji, wyszukiwanie w Std i mathlib, diagnostyka Lake oraz audyty zaufania.
  • 91setup
    Zakłada i naprawia infrastrukturę projektu Lean: środowisko Lean i Mathlib, blueprint w Obsidianie, MkDocs, GitHub Pages i CI.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.