Erase a redundant filter before selecting transcript entries

未關閉
#369 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
55/100
Issue 類型
重構
描述清晰度
基本清楚
活躍度
活躍
領域
data

研究方向

Start in the Probability.List module and find the existing List.filter/List.filterMap lemmas this equality is meant to build on. Re-state the goal (xs.filter keep).filterMap f = xs.filterMap f under the stated discard condition, then derive it from those laws rather than proving it from scratch. Check the acceptance case with a list whose kept entry sits between two equal selected values and confirm both remain in order; the work is done when the module builds and that example holds.

由索引模型根據 Issue 內容生成。

描述

Background

For a partial selector f, filtering first preserves the selected list whenever each discarded entry of xs has f x = none.

(xs.filter keep).filterMap f = xs.filterMap f
Proposed change

Derive the equality from the existing list laws in Probability.List.

Acceptance criteria

Drop an entry between two equal selected values. Both occurrences must remain in order.

主要語言
Lean
星號
3
分支
0
平均合併
1 天 7 小時
30 天內合併 PR
123

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

trailofbits/constructive-cryptography 的其他 Issue

查看 trailofbits/constructive-cryptography 的全部 Issue

相似的 Issue

更多 Data Engineering Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。