/ Модель

Характеристики

Контекст
40 960 токенов
Параметры
7,6 млрд
Размер весов
16,4 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Goedel-Prover-V2-8B
Библиотека
transformers
Опубликована
27 фев 2026

gAPRIL-wo-exp

Генерация текстаТекст → текст3 профессии

Модель исправляет ошибочные формальные доказательства на Lean 4 по тексту ошибки компилятора.

110скачиваний за 30 дней1лайквеса обновлены1 мар 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

gAPRIL-wo-exp — языковая модель, разработанная uw-math-ai для исправления ошибочных формальных доказательств на Lean 4. Это вариант Goedel-Prover-V2-8B, дообученный методом LoRA на наборе APRIL; обучение было сосредоточено на исправлении доказательств без обучения объяснениям. Модель принимает чатовый запрос с ошибочным доказательством, состоянием цели и сообщением компилятора, а в ответ генерирует исправленный код Lean.

Модель содержит 7,6 млрд параметров, использует плотную архитектуру Qwen3 и поддерживает контекст до 40 960 токенов. В тестировании на наборе APRIL точность pass@1 составила 36,7% для полного исправления доказательства, 48,5% для исправления тактики и 25,5% для исправления строки; проверка выполнялась компиляцией Lean. Модель ориентирована на одношаговое исправление и не предоставляет интерпретируемых диагностических объяснений. Распространяется по лицензии Apache-2.0.

Сценарии применения

  • исправление ошибочного доказательства Lean 4 по диагностике компилятора
  • исправление некорректных тактик в Lean
  • починка отдельных строк формального доказательства
  • автоматизация одношагового ремонта доказательств Lean

Ограничения

Модель не обучалась выдавать диагностические объяснения и может не исправить доказательство с первой попытки; на тесте APRIL точность pass@1 для полного доказательства составила 36,7%.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

APRIL-Goedel-8B: Lean Proof Repair (Repair Only)

This model is a LoRA finetune of Goedel-Prover-V2-8B on the APRIL dataset for Lean 4 proof repair without explanation supervision. Given an erroneous Lean proof and compiler feedback, the model directly produces a corrected proof. This variant maximizes single-shot repair accuracy by training exclusively on the repair objective.

Model Details

  • Base model: Goedel-Prover-V2-8B
  • Method: Supervised finetuning with LoRA (rank 32, α = 64)
  • Training data: APRIL — 260K paired erroneous/correct Lean proofs with compiler diagnostics (explanations excluded from supervision)
  • Task: Proof repair only
  • Lean version: 4.22.0-rc4

Results

Single-shot proof repair accuracy (pass@1) on the APRIL test set (1,835 examples), evaluated by Lean compilation:

Error TypeThis Model (w/o exp)With ExplanationsBase Goedel-8BGoedel-32B
Full36.7%34.6%15.5%26.8%
Tactic48.5%41.7%19.6%34.2%
Line25.5%18.5%20.0%28.5%
Theorem37.5%36.8%12.7%23.0%
Multi-Line24.3%20.8%19.4%32.6%

Training exclusively for repair (without explanation supervision) yields the highest pass@1 accuracy, gaining ~2% over the joint variant. However, this model does not produce human-interpretable diagnostics. See the with-explanation variant for the trade-off discussion.

Model & Dataset Download

ResourceDescriptionLink
APRIL Dataset260K Lean proof-repair tuples with compiler diagnostics and explanationsuw-math-ai/APRIL
gAPRIL-w-expGoedel-8B finetuned on APRIL with joint explanation supervisionuw-math-ai/gAPRIL-w-exp
gAPRIL-wo-expGoedel-8B finetuned on APRIL for repair only (no explanations)uw-math-ai/gAPRIL-wo-exp

Usage

The model expects a chat-formatted prompt with the erroneous proof, goal state, error line, and compiler error message. The assistant response contains the corrected proof in a lean code block.

System: You are diagnosing a single failing proof

User:

Explain the error, suggest a fix, and provide the corrected proof based on the context:

Incorrect Proof: <erroneous proof>
State: <goal state before error from InfoView>
Line at error: <error-occurred line of code>
Lean error: <error messages from InfoView>

Assistant (model output):

Explanation: <explanation of error cause>
Fix: <code manipulation fix suggestion>
Corrected Proof: <corrected proof>

Example Inference

import re

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

torch.manual_seed(42)


def extract_proof_from_text(output):
    lean_codes = re.findall(r"```lean\s*(.*?)\s*```", output, re.DOTALL)
    if not lean_codes or len(lean_codes) == 0:
        lean_codes = re.findall(r"```lean4\s*(.*?)\s*```", output, re.DOTALL)
    words = ["by", ":="]

    for i in range(len(lean_codes)):
        lean_code = lean_codes[-i - 1]
        if all(word in lean_code for word in words):
            return lean_code
    return None


model_id = "uw-math-ai/gAPRIL-wo-exp"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id, device_map="auto", torch_dtype=torch.bfloat16, trust_remote_code=True
)

system_prompt = (
    "You are a Lean 4 programmer diagnosing a single failing proof. "
    "Assume you only see the incorrect proof text, the infoview state"
    " near the failure, and Lean's error message."
)

# Context information for the incorrect proof
incorrect_proof = """
theorem lean_problem : IsLeast {x : ℕ | x > 0 ∧ (7 * x) % 100 = 29} 47 := by
  constructor
  · constructor
    · norm_num
    · norm_num
  · intro x ⟨hx_pos, hx_cong⟩
    by_contra h
    push_neg at h
    obtain ⟨h_le, h_ne⟩ := lt_iff_le_and_ne.mp h
    have h_lt := h_le
    revert x hx_pos hx_cong h_lt
    refine' Nat.le_induction _ _ 47 _ <;> intros x hx_lt hx_pos hx_cong
    · rfl
    · have : x < 47 := by omega
      interval_cases x
      all_goals try { norm_num at hx_cong; norm_num }
""".strip()

infoview_state = (
    "case right.intro.refine'_4 ⊢ ∀ (n : ℕ), sorry ≤ n → "
    "(∀ ⦃x : ℕ⦄, x > 0 → 7 * x % 100 = 29 → x < n → x ≤ n → x ≠ n → x ≤ n → False) → "
    "∀ ⦃x : ℕ⦄, x > 0 → 7 * x % 100 = 29 → x < n + 1 → x ≤ n + 1 → x ≠ n + 1 → x ≤ n + 1 → False"
)

line_at_error = "refine' Nat.le_induction _ _ 47 _ <;> intros x hx_lt hx_pos hx_cong"

error_message = (
    "tactic 'introN' failed, insufficient number of binders\n"
    "case right.intro.refine'_1\n⊢ ℕ"
)

user_prompt = f"""
**Instruction:** Provide the full corrected Lean 4 theorem/proof in a single ```lean``` code block.

**Context:**

Incorrect proof:
```lean
{incorrect_proof}
```

Infoview state:
{infoview_state}

Line at error:
{line_at_error}

Lean error:
{error_message}
""".strip()


chat = [
    {"role": "system", "content": system_prompt},
    {"role": "user", "content": user_prompt},
]

inputs = tokenizer.apply_chat_template(
    chat, tokenize=True, add_generation_prompt=True, return_tensors="pt"
).to(model.device)

outputs = model.generate(inputs, max_new_tokens=8192)
decoded_outputs = tokenizer.batch_decode(outputs)
proof = extract_proof_from_text(decoded_outputs[0])
print(proof)

Citation

@article{wang2026repairlean,
  title  = {Learning to Repair Lean Proofs from Compiler Feedback},
  author = {Wang, Evan and Chess, Simon and Lee, Daniel and Ge, Siyuan and Mallavarapu, Ajit and Ilin, Vasily},
  journal= {arXiv preprint arXiv:2602.02990},
  year   = {2026},
  doi    = {10.48550/arXiv.2602.02990},
  url    = {https://arxiv.org/abs/2602.02990}
}

Acknowledgements

Work by the Math AI Lab, University of Washington. Supported by UW eScience School, UW IT (AWS credits), UW Department of Applied Mathematics (GPU access), and Nebius (LLM cloud credits).

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
b3efe52

0 моделей