grind builds a proof rejected by the kernel for an overlapping match on Bool

Aperta
#16,902 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
43/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
compilers

Direzione di ricerca

Start with the minimal Lean example in the issue and reproduce the kernel rejection using the stated nightly version. Then investigate grind’s handling of overlapping matches on Bool, using #16168 as related context. Done means grind produces a proof the kernel accepts for this example.

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

Descrizione

bug
Prerequisites
Description

grind closes the goal below without errors, but produces a wrong proof which leads to the rejection by the kernel. The goal is true, so this is a "completeness bug" in grind.

Context

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

Steps to Reproduce
example (a b : Bool)
    (h : match a, b with
      | false, false => a = b
      | true, true => True
      | _, _ => False) :
    match a, b with
    | false, false => True
    | true, true => True
    | _, _ => a = a := by
  grind

Expected behavior: grind closes the goal and the kernel checks it to be correct

Actual behavior:

bug.lean:10:2: error: (kernel) application type mismatch
  ‹false = false›
argument has type
  x_0 = false
but function has type
  ∀ {h : false = false}, false = false
Versions
4.38.0-nightly-2026-11-30
Additional Information

Looks similar to #16168

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.5k
Fork
1.2k
Merge medio
19h 36m
PR unite (30g)
323

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.