You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lean : le backend wsl de LeanRunner ne verifie pas un theoreme a litteral Nat (unexpected token '+'), reproductible #17612
Decouvert en reparant #16952 (Lean-7-LLM-Integration.ipynb, EPIC #16638). La reference committee du notebook sur main porte la trace d'une execution cote Windows : ses sorties affichent LeanRunner initialise (backend: wsl) et Resultat: ECHEC. La re-execution recente, faite dans le kernel que le notebook declare (python3-wsl), affiche backend: subprocess et Resultat: SUCCES.
Les deux canaux ne sont donc pas interchangeables, et le canal Windows est celui qui echoue.
Mesure (firsthand, 2026-09-23)
1. Via l'API du module. Depuis le venv Windows py3119, dans le repertoire du notebook :
LeanRunner(backend="auto") selectionne bien Backend.WSL sur Windows (platform.system() == "Windows" et _check_wsl_available() vrai), puis echoue.
2. Le REPL seul, sans passer par le Python. Le projet ~/lean-projects/notebook_context existe, repl et lean sont sur le PATH (elan). Depuis ce repertoire, la commande JSON documentee par _run_wsl rend la meme erreur :
$ cd ~/lean-projects/notebook_context && echo '{"cmd": "theorem t (n : Nat) : n + 0 = n := by rfl"}' | repl
{"messages":
[{"severity": "error",
"pos": {"line": 1, "column": 23},
"data": "unexpected token '+'; expected ':=', 'where' or '|'"}],
L'echec est donc dans le prelude/environnement charge par le REPL dans ce repertoire, pas dans le wrapper Python ni dans un repertoire manquant.
Impact
Toute re-execution cote Windows de Lean-7-LLM-Integration.ipynb produit une demonstration en echec ([ECHEC] Pas de preuve trouvee apres 3 iterations) la ou le canal WSL natif reussit en 1 iteration.
Un theoreme a litteral Nat (theorem t (n : Nat) : n + 0 = n := by rfl) se verifie par ProofVerifier(backend="wsl") depuis Windows, avec success = True.
Perimetre
MyIA.AI.Notebooks/SymbolicAI/Lean/lean_runner.py (LeanRunner._run_wsl et/ou le prelude du projet notebook_context). Hors perimetre de #16952, qui porte la reaccentuation du notebook.
Contexte
Decouvert en reparant #16952 (
Lean-7-LLM-Integration.ipynb, EPIC #16638). La reference committee du notebook surmainporte la trace d'une execution cote Windows : ses sorties affichentLeanRunner initialise (backend: wsl)etResultat: ECHEC. La re-execution recente, faite dans le kernel que le notebook declare (python3-wsl), affichebackend: subprocessetResultat: SUCCES.Les deux canaux ne sont donc pas interchangeables, et le canal Windows est celui qui echoue.
Mesure (firsthand, 2026-09-23)
1. Via l'API du module. Depuis le venv Windows
py3119, dans le repertoire du notebook :LeanRunner(backend="auto")selectionne bienBackend.WSLsur Windows (platform.system() == "Windows"et_check_wsl_available()vrai), puis echoue.2. Le REPL seul, sans passer par le Python. Le projet
~/lean-projects/notebook_contextexiste,repletleansont sur le PATH (elan). Depuis ce repertoire, la commande JSON documentee par_run_wslrend la meme erreur :L'echec est donc dans le prelude/environnement charge par le REPL dans ce repertoire, pas dans le wrapper Python ni dans un repertoire manquant.
Impact
Lean-7-LLM-Integration.ipynbproduit une demonstration en echec ([ECHEC] Pas de preuve trouvee apres 3 iterations) la ou le canal WSL natif reussit en 1 iteration.language_infoa la base et re-casserait la demonstration.Acceptance proposee
Un theoreme a litteral
Nat(theorem t (n : Nat) : n + 0 = n := by rfl) se verifie parProofVerifier(backend="wsl")depuis Windows, avecsuccess = True.Perimetre
MyIA.AI.Notebooks/SymbolicAI/Lean/lean_runner.py(LeanRunner._run_wslet/ou le prelude du projetnotebook_context). Hors perimetre de #16952, qui porte la reaccentuation du notebook.