شعار Lean Public Release

Lean Public Release

المجتمع
scottnarmstrong
lean-public-release

جهّز مستودع Lean خاصًا للنشر العام وتحقق منه. استخدم هذه المهارة لتنظيف المصدر، وإجراء مزامنة انتقائية، والحفاظ على سجل نظيف، ومراجعة حالة البراهين والتراخيص، والبناء من نسخة مستنسخة حديثًا، وإضافة بيانات اختيارية إلى السجل أو المقارن، وإجراء مراجعة مستقلة، ووضع بوابة نشر صريحة.

Add to TypingMind

نظرة عامة

الناشرscottnarmstrong
المستودعLeanAutoformalizationSkills
اسم المهارةlean-public-release
النجوم
66
التفريعات
7
الملفات المرفقة
1
الترخيصCC-BY-4.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 1

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها scottnarmstrong على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Lean Public Release في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/scottnarmstrong/LeanAutoformalizationSkills/tree/main/skills/lean-public-release
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scottnarmstrong/LeanAutoformalizationSkills.git /tmp/LeanAutoformalizationSkills
mkdir -p .claude/skills
cp -r /tmp/LeanAutoformalizationSkills/skills/lean-public-release .claude/skills/lean-public-release
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Lean Public Release في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Lean Public Release تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Lean Public Release بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Lean public release

Prepare a reader-facing public repository without exposing private paths, internal history, credentials, campaign records, or unpublished source material. Read the repository's instructions and release destination rules before choosing a workflow. Preparing a release does not itself authorize a commit, push, visibility change, registry submission, or publication.

Freeze the release contract

Record before editing:

  • the exact source revision and release target;
  • which library modules, verification tools, documentation, metadata, and license files will ship;
  • the intended proof-status policy, including any authorized drafts;
  • third-party code, data, text, and licenses that require attribution;
  • whether the public repository is a one-time export or a maintained mirror;
  • optional destination requirements such as a registry, archive, or challenge format.

Preserve source-to-statement fidelity throughout. Scrubbing must not change binders, carriers, quantifiers, hypotheses, conclusions, constants, endpoint conditions, or unique-characterization semantics. Never convert a proof step into an assumption or replace a definition with hypotheses about an abstract object. Keep draft theorems quarantined and honestly labeled.

Selective sync

  • Use an allowlist of files and directories that may ship. Treat everything else as excluded until reviewed.
  • Run a forbidden-reference lint on the trial tree. Check private repository names, usernames, absolute paths, scratch locations, internal issue or packet labels, credentials, unpublished-source paths, and excluded tooling.
  • Keep a no-commit preview mode. Sync first to a disposable checkout and inspect the complete resulting tree and diff.
  • If a fresh public history is desired, create it only after approval. A one-commit history is an option, not a universal requirement.
  • Define how later public changes are synchronized. Do not assume rewriting published history is acceptable.

Source and documentation scrub

Replace internal generation suffixes, work-item names, unstable line-number citations, and private file references with stable public declaration names, paper theorem numbers, labels, or public URLs. Verify every renamed declaration and cross-reference mechanically where possible.

Do not erase provenance or required attribution. Preserve copyright notices, third-party licenses, paper citations, and authorship information. Separate release-facing explanations from private process history, but retain audit artifacts that the release contract says are part of the public verification story.

Lean integrity gates

Run checks against the exact proposed public tree:

  1. Search for unauthorized sorry, admit, custom axioms, placeholder definitions, theorem-shaped proposition packages, and disabled checks.
  2. Run the repository's axiom audit from probes or a dedicated audit target. Do not leave expensive #print axioms commands in ordinary source files.
  3. Confirm imports resolve only through declared dependencies at pinned revisions. Remove private path dependencies, source symlinks, copied build trees, and hidden search paths.
  4. Build in a fresh checkout with empty project artifacts and the documented dependency setup. This is the isolation test; a build in the development checkout is insufficient.
  5. Run every shipped checker exactly as documented for readers.
  6. Compare public theorem statements with their authoritative sources after every rename or module move.

Respect local cache rules. A first-time fresh-checkout build may need to create dependency artifacts; a guard designed for an already-populated development checkout must account for that setup explicitly.

Optional registry and challenge requirements

Apply this section only when the chosen destination requires it. Read the current registry policy at release time; size limits, module rules, metadata, and schemas can change.

If every Lean file must be a module, port project modules and shipped checkers before release. Publish and pin project-owned dependencies in dependency order. Validate module headers, imports, visibility modifiers, root names, and aggregator files in the synced tree.

If comparator-style challenges are required:

  • give each main result a challenge with the destination's required deliberate proof hole and a solution proving the byte-identical statement;
  • match the allowed dependency closure and avoid private declarations whose generated names differ by module;
  • define every source-defined notion needed by the statement inside the permitted challenge surface;
  • for an object defined by unique characterization, include its actual construction or audited defining interface and verify existence and uniqueness without extra assumptions;
  • use concise definitions to meet size limits; do not hide definitions in hypotheses or move them outside the reviewed closure;
  • invalidate only the exact challenge artifacts before verification.

Registry-specific helper scripts from companion skills may be used only when they exist in the installed skill set and match the destination's current rules.

Hosted CI

If the release ships continuous integration:

  • Use two workflows, each with a README badge under the title: one builds the project and runs the axiom audit for every advertised theorem plus the module and metadata checks; the other runs the comparator checks with the independent kernel replay. Keep them manual-dispatch drafts until release, then trigger on pushes and pull requests to the default branch. Give each workflow its own build-cache key; restores may fall back to the other's prefix.

  • Free disk space first in every workflow that builds the project or runs comparators. A hosted runner starts with roughly 14 GB free, and replaying an exported solution over the full Mathlib closure in an independent kernel exhausts it. The typical signature is that both builds and both exports succeed, then the kernel replay dies with no space left on device. That is an environment failure, not a verification failure, but it still fails the badge. Put a step like this right after checkout:

    yaml
        - name: Free runner disk space
          run: |
            set -Eeuo pipefail
            # Only remove preinstalled, unused SDKs on disposable hosted runners.
            if [[ "${RUNNER_ENVIRONMENT:-}" == github-hosted ]]; then
              sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
              sudo docker image prune --all --force > /dev/null || true
            fi
            df -h .
            available_kib="$(df -Pk . | awk 'NR==2 {print $4}')"
            test "$available_kib" -ge 20971520
  • Read the failing step's log before diagnosing. A failing comparator job after green local runs is usually a runner resource limit, not a statement mismatch.

  • Let every workflow finish green on the exact pushed commit before the repository becomes public; badges show no status until a run completes.

Reader-facing files

The README should tell a new reader:

  • what is formalized and which source results correspond to it;
  • the exact Lean toolchain and pinned dependencies;
  • how to obtain caches or build dependencies, build the project, run audits, and reproduce optional challenges;
  • which results belong to upstream dependencies;
  • the honest status of drafts, gaps, axioms, and excluded material;
  • the license and citation requirements.

Add docs/ERRATA-AND-DEVIATIONS.md and a README "Errata and deviations" section with counts per source, verified independently against the pinned sources before publication. Follow the lean-orchestrator skill's references/errata-and-deviations.md. Erratum vocabulary is scrubbed from code comments, not from this record.

GitHub renders README math after HTML sanitizing. Inside math, write \lt and \gt instead of < or > directly before a letter or backslash (\sum_{i<j} breaks the formula). Escape literal $ outside code in generated Markdown such as logs or transcripts. GitHub's MathJax also rejects macros outside its allowlist ("The following macros are not allowed: operatorname"). Write \mathrm{Im} or \mathop{\mathrm{Res}}, never \operatorname, \DeclareMathOperator, \newcommand or \def. Grep every shipped .md file for these before each sync. Check the rendered page on GitHub; local renderers do not reproduce these failures.

A comparator CI workflow on GitHub-hosted ubuntu-24.04 runners must install the sandbox before lake comparator runs; otherwise it fails with "bwrap is required to run lake comparator". Ubuntu 24.04 also restricts unprivileged user namespaces through AppArmor. Add this step before the comparator step:

yaml
- name: Install bubblewrap for lake comparator's sandbox
  run: |
    sudo apt-get update -qq >/dev/null
    sudo apt-get install -y -qq bubblewrap >/dev/null
    sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

README lean blocks that quote a theorem statement must be complete and verbatim. Never cut the source at its first :=: statements can contain (by have := …) or let x := …. Cut at the proof-region marker or at the := that ends the signature line. Then check each block is a substring of its source file, followed only by := and the proof.

Check LICENSE, citation metadata, repository metadata, and dependency licenses together. A code license does not automatically cover manuscript text, figures, datasets, or vendored third-party material.

Independent review and release gate

Have a reviewer who did not perform the scrub inspect the exact proposed tree:

  • statement and definition fidelity against pinned sources;
  • proof status, axiom output, draft quarantine, and absence of proof smuggling;
  • dependency isolation and fresh-checkout reproducibility;
  • forbidden references, secrets, and private artifacts;
  • README accuracy, licenses, attribution, and optional registry compliance.

Resolve each finding or record a justified disposition. Present the complete release tree, README, verification results, unresolved limitations, and planned external actions for approval. Only then perform the separately authorized commit, push, visibility change, archive upload, or registry submission.

Suggested sequence

  1. Freeze scope, source revision, proof-status policy, licenses, and destination rules.
  2. Scrub names and references in the private source while preserving statement meaning.
  3. Prepare public documentation, metadata, licenses, and CI in draft form.
  4. Build an allowlisted no-commit sync and burn forbidden-reference findings down to zero.
  5. Verify the trial tree in a fresh checkout and run all shipped checks.
  6. Obtain independent review and resolve findings.
  7. Obtain explicit approval for the README and proposed external actions.
  8. Commit or publish only within that approval.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Lean Public Release؟

جهّز مستودع Lean خاصًا للنشر العام وتحقق منه. استخدم هذه المهارة لتنظيف المصدر، وإجراء مزامنة انتقائية، والحفاظ على سجل نظيف، ومراجعة حالة البراهين والتراخيص، والبناء من نسخة مستنسخة حديثًا، وإضافة بيانات اختيارية إلى السجل أو المقارن، وإجراء مراجعة مستقلة، ووضع بوابة نشر صريحة.

لماذا تستخدم Lean Public Release على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Lean Public Release عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Lean Public Release في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/scottnarmstrong/LeanAutoformalizationSkills/tree/main/skills/lean-public-release. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Lean Public Release؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Lean Public Release؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Lean Public Release معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Lean Public Release مجانية؟

نعم. نشرها scottnarmstrong على GitHub بموجب ترخيص CC-BY-4.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇