chore: safe-subset golfing batch from #16 (fun_prop + named lemmas) (−62 lines)#30
Merged
Merged
Conversation
Mines safe-subset replacements from the PR #16 autoGolf draft and applies them to current main, skipping the suspicious subset (lia / bare assumption / Real.ext_cauchy / grind only on non-arithmetic goals). `fun_prop` adoptions (replace hand-built `Measurable.const_mul + Finset.measurable_sum + .comp` chains): - `DeFinetti/ViaKoopman/BlockAverage.lean` (1 site) - `DeFinetti/ViaL2/BlockAvgDef.lean` (1 site) - `DeFinetti/ViaL2/AlphaConvergence.lean` (2 sites) - `DeFinetti/ViaL2/CesaroConvergence.lean` (3 sites) - `DeFinetti/ViaL2/DirectingMeasureIntegral.lean` (4 sites, incl. one Integrable wrap via `fun_prop`) - `DeFinetti/ViaL2/MainConvergence.lean` (1 site) - `DeFinetti/ViaMartingale/PairLawEquality.lean` (1 site, `measurable_consRV` → fun_prop) - `Ergodic/ShiftInvariantRepresentatives.lean` (1 site, `measurable_coe_real_ereal.comp …` → fun_prop) - `Core.lean:683` — collapse `simpa using (show … from by fun_prop)` to bare `fun_prop`. Named-lemma replacements: - `DeFinetti/ViaL2/DirectingMeasureIntegral.lean` 2× hand-built `IsPiSystem` proof for `Set.range Iic` → `isPiSystem_Iic`. - `Contractability.lean:perm_range_eq` — 4-line `ext`+`use`+`simp` → `Finset.image_univ_equiv σ`. Minor `by exact` removals in `BlockAvgDef.lean`. Out of scope (per the audit, suspicious-category from #16): - `BlockAverage.lean:82` `congr 1; ring` → `lia` swap (opaque substitution on non-arithmetic context). - The proof-golfing-branch reversion of #18's `exists_perm_extending_strictMono` refactor. Net -62 lines across 10 files. Build clean (3527 jobs), axioms standard, 0 sorries. No statement or signature changes.
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.
Summary
Mines safe-subset replacements from the PR #16 autoGolf draft and applies them to current main, skipping the suspicious category (
lia/ bareassumption/Real.ext_cauchy/grind onlyon non-arithmetic goals).Net diff: 10 files, +22 / −84 (−62 lines).
What changed
fun_propadoption — replaces hand-builtMeasurable.const_mul + Finset.measurable_sum + .compchainsDeFinetti/ViaKoopman/BlockAverage.leanblockAvg_tendsto_condExpDeFinetti/ViaL2/BlockAvgDef.leanblockAvg_measurableDeFinetti/ViaL2/AlphaConvergence.leanhA_meas_nm, the AEStronglyMeasurable wrapDeFinetti/ViaL2/CesaroConvergence.leanh_meas_n,h_meas_n', thememLp_two_of_boundedmeasurability obligationDeFinetti/ViaL2/DirectingMeasureIntegral.leanhg_avg_meas/hA_meassites + oneIntegrablederivation (was 3 lines via.sub+.norm)DeFinetti/ViaL2/MainConvergence.leanhA_measDeFinetti/ViaMartingale/PairLawEquality.leanh_consSeq_meas(was asimpa [consSeq] using measurable_consRV …)Ergodic/ShiftInvariantRepresentatives.leanhstep(wasmeasurable_coe_real_ereal.comp hreal)Core.lean:683simpa using (show … from by fun_prop)to barefun_propNamed-lemma replacements
DeFinetti/ViaL2/DirectingMeasureIntegral.lean: 2 hand-built proofs thatSet.range Iicis a π-system (obtain ⟨s, rfl⟩; obtain ⟨t, rfl⟩; use min s t; exact Set.Iic_inter_Iic.symm) → one-callisPiSystem_Iicfrom mathlib.Contractability.lean:perm_range_eq— 4-lineext+simp only+use σ.symm x+simp→Finset.image_univ_equiv σ.Minor
BlockAvgDef.lean: two:= by exact …→:= …(style).Out of scope (deliberately not applied from #16)
BlockAverage.lean:82congr 1; ring→liaswap — opaque substitution on a non-arithmetic context; in the suspicious category per the audit.exists_perm_extending_strictMonorefactor (already superseded).Core.leanother minor non-fun_prop golfing (cylinder_subset_prefixCylinders:= by rfl,pathLaw_map_prefix_permby exactremoval) — low-yield style polish; left for a later pass.Verification
lake buildExchangeability)No statement or signature changes.