Probably wrong definition of subtyping
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 50/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Ambito
- documentation
Direzione di ricerca
Apri website/docs-smtlib/01 - logic/05 - Quantifiers.md alle tre righe collegate e confronta le definizioni dei sottotipi con l'esempio SMT-LIB nell'issue. Verifica i risultati di soddisfacibilità dell'esempio, quindi aggiorna la notazione e conferma che la documentazione renderizzata corrisponda agli assiomi dei sottotipi previsti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I think = should be => in the following three lines.
Otherwise, the specification prohibits the existence of non-root types. Specifically, the following program (where the only interesting lines are the last three lines) prints sat unsat.
(declare-sort Type)
(declare-fun subtype (Type Type) Bool)
(declare-fun array-of (Type) Type)
(assert (forall ((x Type)) (subtype x x)))
(assert (forall ((x Type) (y Type) (z Type))
(= (and (subtype x y) (subtype y z))
(subtype x z))))
(assert (forall ((x Type) (y Type))
(= (and (subtype x y) (subtype y x))
(= x y))))
(assert (forall ((x Type) (y Type) (z Type))
(= (and (subtype x y) (subtype x z))
(or (subtype y z) (subtype z y)))))
(assert (forall ((x Type) (y Type))
(= (subtype x y)
(subtype (array-of x) (array-of y)))))
(declare-const root-type Type)
(assert (forall ((x Type)) (subtype x root-type)))
(check-sat)
(declare-const another-type Type)
(assert (not (= root-type another-type)))
(check-sat)
- Lingua principale
- JavaScript
- Stelle
- 123
- Fork
- 34
- Merge medio
- 3h 48m
- PR unite (30g)
- 4
Guida per i contributori
Apri 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 microsoft/z3guide
-
microsoft/z3guide#207 · 1 commento · 1 reazione · 1 assegnatario ·
-
subtype example backwards? Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 35/100
-
updating docusaurus to 3.0 Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
enhancement
-
C# examples Apertacontent enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
Tutte le issue di microsoft/z3guide
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mksglu/context-mode#1200 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
neondatabase/website#5944 ·
-
module: core
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
bigbluebutton/bigbluebutton#25849 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jaegertracing/jaeger-ui#4506 ·