Generalize `RelationAlgebra`

オープン
#1,262 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)

主要言語
Lean
スター
847
フォーク
234
平均マージ
2日 21時間
マージ済み PR(30日)
49

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

leanprover/cslib のほかの issue

leanprover/cslib の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。