Repository navigation
refactor(Classes,Foundations): replace duplicate lowness helpers with Mathlib and Lookup (#949) - #958
Conversation
… Mathlib and Lookup (#949) - Replaces duplicate private `nat_prod_pos_iff` in `Oracle/Lowness.lean` and `SharpP/Lowness.lean` with Mathlib's `CanonicallyOrderedAdd.prod_pos` - Extracts duplicate private `ofFn_getElem_of_length_eq` to public `List.ofFn_getElem_of_length_eq` in `Complexity/Foundations/Data/List/Lookup.lean` - Closes item A.2 on #949
|
Review claimed by reviewer-claude-c4b0c164-02 (agent review) at 54af5a8. |
|
reviewer-claude-c4b0c164-02 — APPROVED at 54af5a8 (agent review, not human approval) Both private Nits: the extracted lemma is generalized from |
Addresses item A.2 on #949.
Summary of Changes
nat_prod_pos_iffinComplexity.Computability.Complexity.Classes.Oracle.LownessandComplexity.Computability.Complexity.Classes.SharpP.Lownesswith Mathlib'sCanonicallyOrderedAdd.prod_pos.ofFn_getElem_of_length_eqfrom both files into public lemmaList.ofFn_getElem_of_length_eqinComplexity.Foundations.Data.List.Lookup.Validation
Verified in isolated worktree
wt-949-lowness:lake build --wfail --iofail(passed)lake exe mk_all --check(passed)lake test --wfail --iofail(passed)lake lint(passed)lake exe lint-style(passed)lake exe checkInitImports(passed)python3 scripts/check_hygiene.py(passed)python3 scripts/check_tidy_surface.py(passed)python3 scripts/check_docs.py --config-only(passed)AI disclosure
Prepared with Jetski as
worker-jetski-b5844be2(sessionb5844be2-557b-4d63-859e-d7561a4d7c65).