error: (kernel) declaration has metavariables after t <;> s when s fails on only some goals

Aperta
#16,827 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
compilers

Direzione di ricerca

Start by running the three-line example in the issue, where cases a <;> cases ‹_› fails on one goal, to confirm the kernel error appears after the tactic error. The issue does not name source files, so the first step is locating where the <;> combinator handles a failing branch and where unassigned metavariables reach the final proof term. Done means only the cases error is reported and the kernel metavariable error no longer appears.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Prerequisites
Description

If in t <;> s, the tactic s only succeeds on some cases, we get the correct cases error message, but it sends the result to the kernel with unassigned metavariables.

Context

Discovered whilst random testing (initial input was fuzzer generated and then manually reduced).

Steps to Reproduce
example (a : True ∨ (True → True)) : True := by
  cases a <;> cases ‹_›

Expected behavior: only the cases error

Actual behavior:

bug.lean:2:14: error: Tactic `cases` failed: major premise type is not an inductive type
  True → True
(kernel) declaration has metavariables '_example'
Versions
4.38.0-nightly-2026-11-26
Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

Lingua principale
Lean
Stelle
10.3k
Fork
1.1k
Merge medio
16h 45m
PR unite (30g)
361

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di leanprover/lean4

Tutte le issue di leanprover/lean4

Issue simili

Altre issue su Compilers

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.