Missing order instances for `Bool`
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- devtools
Direzione di ricerca
Start from the five failing #synth lines in the issue and find where the existing LE, LT, Ord, Min and Max instances for Bool are defined in the core Lean library's Init sources. The targets are the Std.IsLinearOrder and Std.LawfulOrder* classes. Done when all five #synth checks succeed and the new instances compile with their proofs, which requires some familiarity with Lean theorem proving.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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”) - When reporting a perceived soundness bug: Does it affect
lake check --paranoid?
If in doubt, please reach out on [email protected] for responsible disclosure.
Description
There are some order instances for Bool, but most of the order properties are missing. This is not the case for other types such as Nat, String, List, etc.
Context
Mathlib has a LinearOrder instance for Bool which needs to be defined manually. If we had these instances, then it could be defined using LinearOrder.ofStd.
Steps to Reproduce
-- These work
#synth LE Bool
#synth LT Bool
#synth Ord Bool
#synth Min Bool
#synth Max Bool
-- These fail
#synth Std.IsLinearOrder Bool
#synth Std.LawfulOrderLT Bool
#synth Std.LawfulOrderOrd Bool
#synth Std.LawfulOrderMin Bool
#synth Std.LawfulOrderMax Bool
Expected behavior: All the instances above exist.
Actual behavior: The instances don't exist.
Versions
Lean 4.37.0-nightly-2026-11-11
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
- 19h 8m
- PR unite (30g)
- 421
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di leanprover/lean4
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
leanprover/lean4#16681 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
leanprover/lean4#16305 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
leanprover/lean4#16299 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
leanprover/lean4#16257 ·
I maintainer di solito rispondono entro 1 giorno
-
`IO.FS.realPath` reports every failure as `noFileOrDirectory` instead of classifying by `errno`Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
leanprover/lean4#15683 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di leanprover/lean4
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
cloudflare/workers-sdk#17139 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
low-priority plugin:egregore source:discussion
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
athola/claude-night-market#1308 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
aws/aws-sdk-js-v3#8440 ·
I maintainer di solito rispondono entro 1 giorno