Repository navigation
Expose retained uniform table of URF across Fintype instances - #467
Open
MarcIlunga wants to merge 1 commit into
Open
MarcIlunga wants to merge 1 commit into
MarcIlunga wants to merge 1 commit into
Conversation
MarcIlunga
force-pushed
the
feat/urf-retained-table
branch
from
November 24, 2026 15:45
d95c973 to
bac7e71
Compare
MarcIlunga
force-pushed
the
feat/urf-retained-table
branch
from
November 24, 2026 19:29
bac7e71 to
2e9473c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Exposes the retained uniform function-table presentation of
Commons.URFand its converter attachments for anyFintypeenumeration of∀ i, A.X i → A.Y i, allowing callers to rewrite without unfoldingCommons.URFor fightingFintypeinstance diamonds.Main changes
src/Probability/Distribution.lean: addeduniform_congr_fintypeandProbDist.uniform_congr_fintypeproving that any twoFintypeenumerations of the same nonempty carrier define the same uniform law.src/Commons/Definitions/Ideal.lean: addedCommons.URF.eq_sampleandCommons.URF.smul_eq_sampleparameterized over an arbitrary[inst : Fintype (∀ i, A.X i → A.Y i)].src/Tests/URFRetainedTable.lean(exported fromsrc/Tests.lean): tests rewritingCommons.URF,𝒰[...].1, andα • Commons.URFat a non-defaultFintypeenumeration with the domain fixed, and verifies repeat-query consistency (mass0for distinct replies; mass1/2for matching Boolean replies) directly fromURF.eq_sample.Validation
lake build --wfail(3160 jobs)scripts/check-sources.shandscripts/check-axioms.sh(14444 declarations in 384 modules, 0 outside standard axioms)lake env lean -Dweak.linter.mathlibStandardSet=trueclean on all touched filesDependencies: none (standalone off
main).Closes #366.