Skip to content

Expose retained uniform table of URF across Fintype instances - #467

Open
MarcIlunga wants to merge 1 commit into
mainfrom
feat/urf-retained-table
Open

MarcIlunga wants to merge 1 commit into
mainfrom
feat/urf-retained-table

Conversation

@MarcIlunga

Copy link
Copy Markdown
Collaborator

Exposes the retained uniform function-table presentation of Commons.URF and its converter attachments for any Fintype enumeration of ∀ i, A.X i → A.Y i, allowing callers to rewrite without unfolding Commons.URF or fighting Fintype instance diamonds.

Main changes

  • src/Probability/Distribution.lean: added uniform_congr_fintype and ProbDist.uniform_congr_fintype proving that any two Fintype enumerations of the same nonempty carrier define the same uniform law.
  • src/Commons/Definitions/Ideal.lean: added Commons.URF.eq_sample and Commons.URF.smul_eq_sample parameterized over an arbitrary [inst : Fintype (∀ i, A.X i → A.Y i)].
  • src/Tests/URFRetainedTable.lean (exported from src/Tests.lean): tests rewriting Commons.URF, 𝒰[...].1, and α • Commons.URF at a non-default Fintype enumeration with the domain fixed, and verifies repeat-query consistency (mass 0 for distinct replies; mass 1/2 for matching Boolean replies) directly from URF.eq_sample.

Validation

  • lake build --wfail (3160 jobs)
  • scripts/check-sources.sh and scripts/check-axioms.sh (14444 declarations in 384 modules, 0 outside standard axioms)
  • lake env lean -Dweak.linter.mathlibStandardSet=true clean on all touched files

Dependencies: none (standalone off main).

Closes #366.

@MarcIlunga
MarcIlunga force-pushed the feat/urf-retained-table branch from d95c973 to bac7e71 Compare November 24, 2026 15:45
@MarcIlunga
MarcIlunga force-pushed the feat/urf-retained-table branch from bac7e71 to 2e9473c Compare November 24, 2026 19:29

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose the retained uniform table of a random function across finite instances

1 participant