grind builds a proof rejected by the kernel for an overlapping match on Bool
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 43/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- compilers
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Prerequisites
- Check that your issue is not already filed:
https://github.com/leanprover/lean4/issues - Reduce the issue to a minimal, self-contained, reproducible test case.
Avoid dependencies to Mathlib or Batteries. - Test your test case against the latest nightly release, for example on
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
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.
- Lenguaje dominante
- Lean
- Estrellas
- 10.5k
- Forks
- 1.2k
- Merge medio
- 19 h 36 min
- PR fusionados (30 d)
- 323
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de leanprover/lean4
-
P-medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
leanprover/lean4#16958 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
leanprover/lean4#16897 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
leanprover/lean4#16892 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 86/100
leanprover/lean4#16886 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
leanprover/lean4#16820 ·
Los mantenedores suelen responder en 1 día
Todos los issues de leanprover/lean4
Issues similares
-
chat compiler P1
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
HerringtonDarkholme/hd-lang#2793 ·
Los mantenedores suelen responder en 1 día
-
area-dart-model gardening
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
Los mantenedores suelen responder en 1 día
-
`shift(x, y)` with a uint256 shift amount >= 2**255 shifts in the wrong directionPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 71/100
facebookexperimental/semcode#195 ·
Los mantenedores suelen responder en 2 días