Generalize `RelationAlgebra`

Aperta
#1,262 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
backend

Direzione di ricerca

Start by reading the existing RelationAlgebra definition and its uses in the project; the issue does not name files or tests. Work out a class design for the proposed NA, WA, SA, and RA hierarchy, then check that the listed axioms and associativity conditions are represented consistently. Done means the weaker forms and increasingly stronger conditions are defined as intended.

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

Descrizione

When I wrote RelationAlgebra, I made a decision to delay defining its commonly used weaker forms. I think it's time to revisit this. I need to consider the tradoffs of the class design, but math-wise what we want is (at least):

  • $\mathrm{NA}$, with sup_mul, star_sup, tarski
  • $\mathrm{WA}$, with (a ⊓ 1) * ⊤ * ⊤ = (a ⊓ 1) * ⊤
  • $\mathrm{SA} = \mathrm{RA}_3$, with a * b * ⊤ = a * (b * ⊤)
  • $\mathrm{RA} = \mathrm{RA}_4$, with a * b * c = a * (b * c)

that add increasingly stronger associativity conditions.

(Here $\mathrm{RA}_n$ are relation algebras with an n-dimensional basis. There are a few definitions, but perhaps the most intuitive is that you are capping the number of variables allowed in proofs to n. This is what motivated me to go ahead and think of this, but is not a prereq for the refactor)

Lingua principale
Lean
Stelle
847
Fork
234
Merge medio
2g 21h
PR unite (30g)
49

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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/cslib

Tutte le issue di leanprover/cslib

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.