refactor(Computability.Encoding): unbundle Γ and remove FinEncoding#37928
refactor(Computability.Encoding): unbundle Γ and remove FinEncoding#37928AlexeyMilovanov wants to merge 4 commits intoleanprover-community:masterfrom
Conversation
Welcome new contributor!Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests. We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the If you haven't already done so, please come to https://leanprover.zulipchat.com/, introduce yourself, and mention your new PR. Thank you again for joining our community. |
PR summary 35e1c7ee9fImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
This PR unbundles the alphabet
Γfrom theEncodingstructure and completely removesFinEncoding.Encoding: The alphabetΓis now an explicit parameter:structure Encoding (α : Type u) (Γ : Type v).FinEncoding: Removed. Finiteness is now handled via standard typeclasses (e.g.,[Fintype Γ] (e : Encoding α Γ)).Combinators: Functions like
finEncodingPairare simplified toencodingPair, dropping thefinprefix and[Fintype]requirements where no longer needed.Downstream: Mechanically updated
Mathlib.ComputabilityandMathlib.ModelTheoryto pass the explicitΓand use[Fintype Γ]whereFinEncodingwas previously required.