Repository navigation
Conversation
This enables @[to_dual] to automatically translate between atom/coatom and lfp/gfp theorem names, preparing for expanded @[to_dual] coverage in subsequent commits. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add @[to_dual] to IsLUB.insert, isLUB_pair, IsLeast.unique, IsLeast.isLeast_iff_eq, and IsLUB.unique, auto-generating their duals instead of maintaining hand-written copies. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add @[to_dual] to 15 more theorems in Order.Bounds.Basic, auto-generating their duals instead of maintaining hand-written copies. Covers univ, empty set, bounds, and lt_iff sections. Co-Authored-By: Claude Opus 4.6 <[email protected]>
PR summary 067172054bImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
Add @[to_dual] to 7 more theorems: bddBelow_iff_subset_Ici, IsGreatest.insert, upperBounds_insert, OrderTop.bddAbove, isGreatest_pair, upperBounds_prod, and IsLUB.prod. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
These don't enable any new @[to_dual] annotations in Bounds.Basic (the Heyting pairs have type class issues), but prepare the dictionary for use elsewhere. Co-Authored-By: Claude Opus 4.6 <[email protected]>
a3056ce to
05f1371
Compare
1afd5fa to
24b87e0
Compare
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add @[to_dual existing] to sInf_lt_iff and @[to_dual] to lt_iSup_iff and lt_biSup_iff, auto-generating iInf_lt_iff and biInf_lt_iff. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add ~100 @[to_dual] annotations to primal theorems in Order.CompleteLattice.Basic and delete corresponding hand-written dual theorems. The `@[to_dual]` attribute auto-generates the dual versions by term-level translation. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
24b87e0 to
61bc773
Compare
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
61bc773 to
edb2da7
Compare
When a dual lemma is deleted because it is now auto-generated by @[to_dual], its original docstring is preserved via the @[to_dual /-- ... -/] syntax. Co-Authored-By: Claude Opus 4.6 <[email protected]>
When a dual lemma is deleted because it is now auto-generated by @[to_dual], its original docstring is preserved via the @[to_dual /-- ... -/] syntax. Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Fix wrong docstrings on to_dual for iSup_and' and iSup_option_elim
(should reference iInf versions, not iSup)
- Remove redundant comments (csInf_singleton, TODO(Jeremy), ciSup_const)
- Remove empty InfSet section
- Add explicit target name for Monotone.le_map_sSup → Monotone.map_sInf_le
- Use to_dual (dont_translate := ι) for biSup_{lt,le,gt,ge}_eq_iSup
- Add @[to_dual none] to IsLUB.exists_between{,'}
- Elaborate sInf_eq_bot TODO comment in Defs.lean
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Preserve docstrings from csInf_eq_of_forall_ge_of_forall_gt_exists_lt, csInf_lt_of_lt, csInf_eq_csInf_of_forall_exists_le, and ciInf_eq_of_forall_ge_of_forall_gt_exists_lt via @[to_dual /-- ... -/]. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
# Conflicts: # Mathlib/Order/Bounds/Basic.lean
|
This pull request has conflicts, please merge |
Resolve merge conflicts with master's ConditionallyCompletePartialOrder refactoring (PR leanprover-community#35047). The @[to_dual] annotations added by this branch in CCL/Basic.lean, CCL/Indexed.lean, CCL/Finset.lean, and CCL/Group.lean are incompatible with the new CCL→CCPO bridging instance, so these files take master's versions. The @[to_dual] changes in CompleteLattice/Basic.lean and all other files are preserved. Conflicted files: - Mathlib/Order/CompleteLattice/Basic.lean: kept branch's @[to_dual] additions and InfSet section removal; removed duplicate iInf_of_isEmpty - Mathlib/Order/ConditionallyCompleteLattice/Basic.lean: took master's version (incompatible with @[to_dual] due to CCPO instance) - Mathlib/Order/ConditionallyCompleteLattice/Indexed.lean: took master's version (same reason) Also reverted to master for CCL/Finset.lean and CCL/Group.lean where branch's @[to_dual existing] registrations conflict with the CCPO instance. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
This pull request has conflicts, please merge |
…ended # Conflicts: # Mathlib/Order/Bounds/Image.lean # Mathlib/Order/CompleteLattice/Basic.lean
|
This pull request has conflicts, please merge |
|
This PR/issue depends on: |
|
Closing — the to_dual chain has rotted too far against master; reopen if revived. |
This PR adds
@[to_dual]annotations across allConditionallyCompleteLatticefiles:Defs,Basic,Indexed,Finset, andGroup. Auto-generates dual theorems and deletes hand-written versions. (Absorbs the former PR #35212.)Diff relative to #35209
🤖 Prepared with Claude Code