Dataset Viewer
Auto-converted to Parquet Duplicate
version
stringclasses
20 values
section
stringclasses
12 values
text
stringlengths
11
1.75k
date
stringdate
2022-03-26 21:50:05
2025-12-14 08:01:30
change_type
stringclasses
5 values
is_breaking
bool
2 classes
affects_mathlib
bool
2 classes
files_changed
listlengths
0
30
v4.27.0
Language
#7965 lets recursive functions defined by well-founded recursion use a different fix function when the termination measure is of type Nat. This fix-point operator use structural recursion on “fuel”, initialized by the given measure, and is thus reasonable to reduce, e.g. in by decide proofs.
2025-12-01T13:26:35Z
Added
false
true
[ "src/Init/WF.lean", "src/Lean/Compiler/InlineAttrs.lean", "src/Lean/Elab/PreDefinition/WF/Fix.lean", "src/Lean/Elab/PreDefinition/WF/Main.lean", "src/Lean/Elab/PreDefinition/WF/Unfold.lean", "src/Lean/Meta/Tactic/FunInd.lean", "src/Std/Sat/AIG/Basic.lean", "stage0/src/stdlib_flags.h", "tests/lean/run/1026.lean", "tests/lean/run/4928.lean", "tests/lean/run/hasNotBit.lean", "tests/lean/run/issue10651.lean", "tests/lean/run/issue11181.lean", "tests/lean/run/issue2021.lean", "tests/lean/run/issue2102.lean", "tests/lean/run/issue2171.lean", "tests/lean/run/letToHaveCleanup.lean", "tests/lean/run/structuralEqn6.lean", "tests/lean/run/wfEqns5.lean", "tests/lean/run/wfirred.lean", "tests/lean/run/wfrec-nat.lean", "tests/lean/wfrecUnusedLet.lean.expected.out", "tests/pkg/module/Module/Basic.lean", "tests/pkg/module/Module/ImportedAll.lean", "tests/pkg/module/Module/NonModule.lean" ]
v4.27.0
Language
#11196 avoids match splitter calculation from testing all quadratically many pairs of alternatives for overlaps, by keeping track of possible overlaps during matcher calculation, storing that information in the MatcherInfo, and using that during matcher calculation.
2025-11-17T18:53:14Z
Changed
true
true
[ "src/Lean/Meta/Match/Match.lean", "src/Lean/Meta/Match/MatchEqs.lean", "src/Lean/Meta/Match/MatcherInfo.lean", "stage0/src/stdlib_flags.h" ]
v4.27.0
Language
#11200 changes how sparse case expressions represent the none-of-the-above information. Instead of of many x.ctorIdx ≠ i hypotheses, it introduces a single Nat.hasNotBit mask x.ctorIdx hypothesis which compresses that information into a bitmask. This avoids a quadratic overhead during splitter generation, where all n assumptions would be refined through .subst and .cases constructions for all n assumption of the splitter alternative.
2025-11-17T10:30:18Z
Added
true
true
[ "src/Init/Data/Nat/Bitwise/Basic.lean", "src/Lean/Meta/Constructions/SparseCasesOn.lean", "src/Lean/Meta/HasNotBit.lean", "src/Lean/Meta/Match/Match.lean", "src/Lean/Meta/Tactic/Cases.lean", "src/Lean/Meta/Tactic/Contradiction.lean", "tests/lean/run/hasNotBit.lean", "tests/lean/run/issue10749.lean", "tests/lean/run/issue11183.lean", "tests/lean/run/sparseCasesOn.lean" ]
v4.27.0
Language
#11221 lets realizeConst use withDeclNameForAuxNaming so that auxilary definitions created there get non-clashing names.
2025-11-17T21:40:58Z
Changed
false
true
[ "src/Lean/Meta/Basic.lean", "tests/lean/run/issue11221.lean" ]
v4.27.0
Language
#11222 implements elabToSyntax for creating scoped syntax s : Syntax for an arbitrary elaborator el : Option Expr -> TermElabM Expr such that elabTerm s = el.
2025-11-18T07:31:29Z
Added
false
false
[ "src/Lean/Elab/Term/TermElabM.lean", "tests/lean/run/elabToSyntax.lean" ]
v4.27.0
Language
#11236 extracts two modules from Match.MatchEqs, in preparation of #11220 and to use the module system to draw clear boundaries between concerns here.
2025-11-18T10:26:49Z
Changed
false
false
[ "src/Lean/Elab/PreDefinition/WF/Unfold.lean", "src/Lean/Meta/Match/MatchEqs.lean", "src/Lean/Meta/Match/SimpH.lean", "src/Lean/Meta/Match/SolveOverlap.lean" ]
v4.27.0
Language
#11239 adds a Unit assumption to alternatives of the splitter that would otherwise not have arguments. This fixes #11211.
null
Added
false
false
[]
v4.27.0
Language
#11245 improves the error message encountered in the case of a type class instance resolution failure, and adds an error explanation that discusses the common new-user case of binary operation overloading and points to the trace.Meta.synthInstance option for advanced debugging.
2025-11-21T21:57:59Z
Added
false
false
[ "src/Lean/Elab/Term/TermElabM.lean", "src/Lean/ErrorExplanations.lean", "src/Lean/ErrorExplanations/CtorResultingTypeMismatch.lean", "src/Lean/ErrorExplanations/DependsOnNoncomputable.lean", "src/Lean/ErrorExplanations/InductiveParamMismatch.lean", "src/Lean/ErrorExplanations/InductiveParamMissing.lean", "src/Lean/ErrorExplanations/InferBinderTypeFailed.lean", "src/Lean/ErrorExplanations/InferDefTypeFailed.lean", "src/Lean/ErrorExplanations/InvalidDottedIdent.lean", "src/Lean/ErrorExplanations/ProjNonPropFromProp.lean", "src/Lean/ErrorExplanations/PropRecLargeElim.lean", "src/Lean/ErrorExplanations/RedundantMatchAlt.lean", "src/Lean/ErrorExplanations/SynthInstanceFailed.lean", "src/Lean/ErrorExplanations/UnknownIdentifier.lean", "src/Lean/Meta/SynthInstance.lean", "tests/lean/1007.lean.expected.out", "tests/lean/1102.lean.expected.out", "tests/lean/2273.lean.expected.out", "tests/lean/297.lean.expected.out", "tests/lean/386.lean.expected.out", "tests/lean/448.lean.expected.out", "tests/lean/attrCmd.lean.expected.out", "tests/lean/defInst.lean.expected.out", "tests/lean/defaultInstance.lean.expected.out", "tests/lean/eagerUnfoldingIssue.lean.expected.out", "tests/lean/eraseInsts.lean.expected.out", "tests/lean/forErrors.lean.expected.out", "tests/lean/interactive/4880.lean.expected.out", "tests/lean/interactive/strInterpSynthError.lean.expected.out", "tests/lean/kernelMVarBug.lean.expected.out" ]
v4.27.0
Language
#11256 replaces MatcherInfo.numAltParams with a more detailed data structure that allows us, in particular, to distinguish between an alternative for a constructor with a Unit field and the alternative for a nullary constructor, where an artificial Unit argument is introduced.
2025-11-19T15:45:27Z
Added
true
true
[ "src/Lean/Compiler/LCNF/ToDecl.lean", "src/Lean/Elab/PreDefinition/Structural/BRecOn.lean", "src/Lean/Elab/PreDefinition/WF/Fix.lean", "src/Lean/Meta/Constructions/CasesOnSameCtor.lean", "src/Lean/Meta/Match/Match.lean", "src/Lean/Meta/Match/MatcherApp/Basic.lean", "src/Lean/Meta/Match/MatcherApp/Transform.lean", "src/Lean/Meta/Match/MatcherInfo.lean", "stage0/src/stdlib_flags.h" ]
v4.27.0
Language
#11261 continues the homogenization between matchers and splitters, following up on #11256. In particular it removes the ambiguity whether numParams includes the discrEqns or not.
2025-11-19T16:37:22Z
Removed
false
false
[ "src/Lean/Meta/Match/MatchEqs.lean", "src/Lean/Meta/Match/MatchEqsExt.lean", "src/Lean/Meta/Match/MatcherApp/Transform.lean", "src/Lean/Meta/Match/MatcherInfo.lean", "src/Lean/Meta/Tactic/Split.lean" ]
v4.27.0
Language
#11269 adds support for decidable equality of empty lists and empty arrays. Decidable equality for lists and arrays is suitably modified so that all diamonds are definitionally equal.
2025-11-20T20:52:34Z
Added
false
true
[ "src/Init/Data/Array/DecidableEq.lean", "src/Init/Data/Array/Extract.lean", "src/Init/Data/Array/Lemmas.lean", "src/Init/Data/Option/Basic.lean", "src/Init/Data/Vector/Lemmas.lean", "src/Init/Prelude.lean", "tests/lean/run/arrayDecEq.lean", "tests/lean/run/fun_cases.lean", "tests/lean/run/listDecEq.lean", "tests/lean/run/optionDecEq.lean" ]
v4.27.0
Language
#11292 adds intersection operation on ExtDTreeMap/ExtTreeMap/ExtTreeSet and proves several lemmas about it.
2025-11-21T11:51:23Z
Added
false
false
[ "src/Std/Data/DTreeMap/Internal/Lemmas.lean", "src/Std/Data/DTreeMap/Lemmas.lean", "src/Std/Data/DTreeMap/Raw/Lemmas.lean", "src/Std/Data/ExtDTreeMap/Basic.lean", "src/Std/Data/ExtDTreeMap/Lemmas.lean", "src/Std/Data/ExtTreeMap/Basic.lean", "src/Std/Data/ExtTreeMap/Lemmas.lean", "src/Std/Data/ExtTreeSet/Basic.lean", "src/Std/Data/ExtTreeSet/Lemmas.lean", "src/Std/Data/TreeMap/Lemmas.lean", "src/Std/Data/TreeMap/Raw/Lemmas.lean", "src/Std/Data/TreeSet/Lemmas.lean", "src/Std/Data/TreeSet/Raw/Lemmas.lean" ]
v4.27.0
Language
#11301 allows setting reducibilityCoreExt in async contexts (e.g. when using mkSparseCasesOn in a realizable definition)
2025-11-21T09:52:22Z
Changed
false
false
[ "src/Lean/ReducibilityAttrs.lean" ]
v4.27.0
Language
#11302 renames the CTests tests to use filenames as test names. So instead of 2080 - leanruntest_issue5767.lean (Failed) we get 2080 - tests/lean/run/issue5767.lean (Failed) which allows Ctrl-Click’ing on them in the VSCode terminal.
2025-11-21T13:02:18Z
Changed
false
true
[ "src/shell/CMakeLists.txt" ]
v4.27.0
Language
#11303 renames rename wrongly named backwards. options to backward.
2025-11-21T11:23:27Z
Changed
false
false
[ "src/Lean/Meta/Constructions/NoConfusion.lean", "src/Lean/Meta/Match/Match.lean", "tests/lean/run/issue10749.lean", "tests/lean/run/match1.lean" ]
v4.27.0
Language
#11304 documents that backward.* options are only temporary migration aids and may disappear without further notice after 6 months after their introduction. Users are kindly asked to report if they rely on these options.
2025-11-24T18:27:36Z
Changed
false
false
[ "src/Lean/Data/Options.lean", "src/Lean/Linter/Sets.lean", "src/Lean/Server/InfoUtils.lean", "src/Lean/Util/Trace.lean", "src/util/option_declarations.cpp", "stage0/src/stdlib_flags.h" ]
v4.27.0
Language
#11305 removes the group field from option descriptions. It is unused, does not have a clear meaning and often matches the first component of the option name.
2025-11-24T12:04:43Z
Removed
false
false
[ "src/Lean/Data/Options.lean", "src/Lean/Meta/SynthInstance.lean", "src/util/option_declarations.cpp" ]
v4.27.0
Language
#11307 removes all code that sets the Option.Decl.group field, which is unused and has no clearly documented meaning.
2025-11-21T17:12:19Z
Removed
false
true
[ "src/Lean/Compiler/LCNF/ConfigOptions.lean", "src/Lean/Compiler/Options.lean", "src/Lean/CoreM.lean", "src/Lean/DocString/Extension.lean", "src/Lean/Elab/DocString.lean", "src/Lean/Elab/MutualDef.lean", "src/Lean/Elab/MutualInductive.lean", "src/Lean/Elab/PreDefinition/Basic.lean", "src/Lean/Elab/Tactic/Do/VCGen/Basic.lean", "src/Lean/Elab/Tactic/Induction.lean", "src/Lean/Elab/Term/TermElabM.lean", "src/Lean/Elab/Util.lean", "src/Lean/Environment.lean", "src/Lean/Hygiene.lean", "src/Lean/Linter/Sets.lean", "src/Lean/Meta/ExprDefEq.lean", "src/Lean/Meta/Match/Match.lean", "src/Lean/Meta/PPGoal.lean", "src/Lean/Meta/SynthInstance.lean", "src/Lean/Meta/Tactic/Grind/EMatchTheorem.lean", "src/Lean/Meta/Tactic/Grind/Types.lean", "src/Lean/Meta/Tactic/Intro.lean", "src/Lean/Meta/Tactic/Simp/Simproc.lean", "src/Lean/Meta/Tactic/SplitIf.lean", "src/Lean/Meta/Tactic/Util.lean", "src/Lean/Parser/Extension.lean", "src/Lean/PrettyPrinter.lean", "src/Lean/PrettyPrinter/Delaborator/Options.lean", "src/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.lean", "src/Lean/PrettyPrinter/Formatter.lean" ]
v4.27.0
Language
#11325 adds CoreM.toIO', the analogue of CoreM.toIO dropping the state from the return type, and similarly for TermElabM.toIO' and MetaM.toIO'.
2025-11-23T11:21:42Z
Added
false
false
[ "src/Lean/CoreM.lean" ]
v4.27.0
Language
#11333 adds infrastructure for parallel execution across Lean's tactic monads.
2025-11-25T00:15:23Z
Added
false
false
[ "src/Init/System/IO.lean", "src/Lean/Elab.lean", "src/Lean/Elab/Parallel.lean", "src/Lean/Elab/Task.lean", "tests/lean/run/task_iterators.lean" ]
v4.27.0
Language
#11338 upstreams the with_weak_namespace command from Mathlib: with_weak_namespace <id> <cmd> changes the current namespace to <id> for the duration of executing command <cmd>, without causing scoped things to go out of scope. This is in preparation for upstreaming the scoped[Foo.Bar] syntax from Mathlib, which will be useful now that we are adding grind annotations in scopes.
2025-11-25T03:22:51Z
Changed
false
true
[ "src/Lean/Elab.lean", "src/Lean/Elab/Command/WithWeakNamespace.lean", "src/Lean/Parser/Command.lean", "tests/lean/run/withWeakNamespace.lean" ]
v4.27.0
Language
#11346 modifies the error message for type synthesis failure for the case where the type class in question is potentially derivable using a deriving command. Also changes the error explanation for type class instance synthesis failure with an illustration of this pattern.
2025-12-01T14:50:17Z
Changed
false
false
[ "src/Lean/Elab/Deriving/Basic.lean", "src/Lean/Elab/Term/TermElabM.lean", "src/Lean/ErrorExplanations/SynthInstanceFailed.lean", "tests/lean/defInst.lean.expected.out", "tests/lean/run/derivingReflBEq.lean", "tests/lean/run/mightBeDerivable.lean" ]
v4.27.0
Language
#11347 adds a focused error explanation aimed at the case where someone tries to use Natural-Numbers-Game-style induction proofs directly in Lean, where such proofs are not syntactically valid.
2025-11-25T19:13:58Z
Added
false
true
[ "src/Lean/CoreM.lean", "src/Lean/Elab/Tactic/Induction.lean", "src/Lean/ErrorExplanations/InductionWithNoAlts.lean", "tests/lean/notNaturalNumbersGame.lean", "tests/lean/notNaturalNumbersGame.lean.expected.out" ]
v4.27.0
Language
#11353 applies beta reduction to specialization keys, allowing us to reuse specializations in more situations.
2025-11-25T12:33:58Z
Changed
false
false
[ "src/Lean/Compiler/LCNF/Specialize.lean" ]
v4.27.0
Language
#11379 sets @[macro_inline] on the (trivial) .ctorIdx for inductive types with one constructor, to reduce the number of symbols generated by the compiler.
2025-11-26T11:43:49Z
Changed
false
true
[ "src/Lean/Meta/Constructions/CtorIdx.lean" ]
v4.27.0
Language
#11385 lets implicit instance names avoid name clashes with private declarations. This fixes #10329.
null
Added
false
false
[]
v4.27.0
Language
#11408 adds a difference operation on ExtDTreeMap/ExtTreeMap/TreeSet and proves several lemmas about it.
2025-12-05T10:28:31Z
Added
false
false
[ "src/Std/Data/ExtDTreeMap/Basic.lean", "src/Std/Data/ExtDTreeMap/Lemmas.lean", "src/Std/Data/ExtTreeMap/Basic.lean", "src/Std/Data/ExtTreeMap/Lemmas.lean", "src/Std/Data/ExtTreeSet/Basic.lean", "src/Std/Data/ExtTreeSet/Lemmas.lean" ]
v4.27.0
Language
#11422 uses a kernel-reduction optimized variant of Mon.mul in grind.
2025-12-01T00:19:32Z
Changed
false
true
[ "src/Init/Grind/Ring/CommSolver.lean", "tests/lean/run/grind_ring_5.lean" ]
v4.27.0
Language
#11425 changes Lean.Order.CCPO and .CompleteLattice to carry a Prop. This avoids the CCPO IO instance from being noncomputable.
2025-12-04T14:00:28Z
Changed
false
true
[ "src/Init/Internal/Order/Basic.lean", "tests/lean/run/8894.lean", "tests/lean/run/partial_fixpoint_coinductive_pred.lean", "tests/lean/run/partial_fixpoint_monadic.lean", "tests/lean/run/partial_fixpoint_mutual.lean", "tests/lean/run/partial_fixpoint_probability.lean" ]
v4.27.0
Language
#11432 fixes a typo in the docstring of #guard_mgs.
2025-11-30T15:05:53Z
Fixed
false
false
[ "src/Init/Notation.lean" ]
v4.27.0
Language
#11453 fixes undefined behavior where delete (instead of delete[]) is called on an object allocated with new[].
2025-12-10T17:14:50Z
Removed
false
false
[ "src/runtime/mpz.cpp" ]
v4.27.0
Language
#11456 refines several error error messages, mostly involving invalid use of field notation, generalized field notation, and numeric projection. Provides a new error explanation for field notation.
2025-12-02T18:19:47Z
Added
false
false
[ "src/Lean/Elab/App.lean", "src/Lean/Elab/ErrorUtils.lean", "src/Lean/Elab/SyntheticMVars.lean", "src/Lean/ErrorExplanations.lean", "src/Lean/ErrorExplanations/InvalidField.lean", "src/Lean/Message.lean", "tests/lean/1038.lean.expected.out", "tests/lean/346.lean.expected.out", "tests/lean/funind_errors.lean.expected.out", "tests/lean/run/3031.lean", "tests/lean/run/9312.lean", "tests/lean/run/invalidProjection.lean", "tests/lean/run/invalidTupleProjHints.lean", "tests/lean/run/invalid_field_notation_function.lean", "tests/lean/run/issue10821.lean", "tests/lean/run/noErrorUtil.lean", "tests/pkg/module/Module/Basic.lean", "tests/pkg/module/Module/Imported.lean" ]
v4.27.0
Language
#11463 fixes a panic in getEqnsFor? when called on matchers generated from match expressions in theorem types.
2025-12-02T08:16:34Z
Fixed
false
false
[ "src/Lean/Meta/Eqns.lean", "tests/lean/run/try_panic.lean" ]
v4.27.0
Language
#11474 generalizes the noConfusion constructions to heterogeneous equalities (assuming propositional equalities between the indices). This lays ground work for better support for applying injection to heterogeneous equalities in grind.
2025-12-02T15:50:19Z
Added
false
true
[ "src/Init/Data/Int/Basic.lean", "src/Init/Prelude.lean", "src/Lean/Compiler/LCNF/ToLCNF.lean", "src/Lean/Meta/AppBuilder.lean", "src/Lean/Meta/Basic.lean", "src/Lean/Meta/Constructions/NoConfusion.lean", "src/Lean/Meta/Injective.lean", "src/Lean/Meta/Tactic/FunInd.lean", "src/Lean/Meta/Tactic/Injection.lean", "tests/lean/run/issue11449.lean", "tests/lean/run/issue11450.lean", "tests/lean/run/linearNoConfusion.lean", "tests/lean/run/noConfusionCtorInjection.lean", "tests/lean/run/noConfusionCtors.lean", "tests/lean/run/structuralMutual.lean" ]
v4.27.0
Language
#11476 adds a {givenInstance}`C` documentation role that adds an instance of C to the document's local assumptions.
2025-12-02T19:54:23Z
Added
false
false
[ "src/Lean/Elab/DocString.lean", "src/Lean/Elab/DocString/Builtin.lean", "stage0/src/stdlib_flags.h", "tests/lean/run/versoDocMarkdown.lean", "tests/lean/run/versoDocs.lean" ]
v4.27.0
Language
#11482 gives suggestions based on the currently-available constants when projecting from an unknown type.
2025-12-03T21:11:04Z
Changed
false
false
[ "src/Lean/Elab/App.lean", "tests/lean/run/invalid_field_notation_mvar.lean" ]
v4.27.0
Language
#11485 ensures that Nats in .olean files use a deterministic serialization in the case where LEAN_USE_GMP is not set.
2025-12-09T11:22:33Z
Changed
false
true
[ "src/runtime/compact.cpp", "src/runtime/compact.h" ]
v4.27.0
Language
#11490 prevents try swallowing heartbeat errors from nested simp calls, and more generally ensures the isRuntime flag is propagated by throwNestedTacticEx. This prevents the behavior of proofs (especially those using aesop) being affected by the current recursion depth or heartbeat limit.
2025-12-10T10:48:40Z
Changed
false
true
[ "src/Lean/CoreM.lean", "src/Lean/Exception.lean", "src/Lean/Log.lean", "src/Lean/Message.lean", "tests/lean/run/7811.lean" ]
v4.27.0
Language
#11492 uses the the helper functions withImplicitBinderInfos and mkArrowN in more places.
2025-12-03T09:03:36Z
Changed
false
false
[ "src/Lean/Elab/Tactic/Ext.lean", "src/Lean/Meta/CongrTheorems.lean", "src/Lean/Meta/Constructions/CtorIdx.lean", "src/Lean/Meta/Injective.lean", "src/Lean/Meta/Match/MatchEqs.lean" ]
v4.27.0
Language
#11493 makes Match.MatchEqs a leaf module, to be less restricted in which features we can use there.
2025-12-03T09:40:07Z
Changed
false
false
[ "src/Lean/Elab/BuiltinEvalCommand.lean", "src/Lean/Elab/Match.lean", "src/Lean/Elab/PreDefinition/Eqns.lean", "src/Lean/Elab/PreDefinition/EqnsUtils.lean", "src/Lean/Elab/PreDefinition/Structural/Eqns.lean", "src/Lean/Elab/PreDefinition/WF/GuessLex.lean", "src/Lean/Elab/Tactic/Do/VCGen/Split.lean", "src/Lean/Meta/Match/AltTelescopes.lean", "src/Lean/Meta/Match/Basic.lean", "src/Lean/Meta/Match/MatchEqs.lean", "src/Lean/Meta/Match/MatchEqsExt.lean", "src/Lean/Meta/Match/MatcherApp/Transform.lean", "src/Lean/Meta/Match/NamedPatterns.lean", "src/Lean/Meta/MatchUtil.lean", "src/Lean/Meta/Tactic/CasesOnStuckLHS.lean", "src/Lean/Meta/Tactic/FunInd.lean", "src/Lean/Meta/Tactic/Grind/Internalize.lean" ]
v4.27.0
Language
#11502 adds two benchmarks for elaborating match statements of many Nat literals, one without and one with splitter generation.
2025-12-04T08:44:36Z
Added
false
false
[ "tests/bench/big_match_nat.lean", "tests/bench/big_match_nat_split.lean", "tests/bench/speedcenter.exec.velcom.yaml" ]
v4.27.0
Language
#11508 avoids generating hyps when not needed (i.e. if there is a catch-all so no completeness checking needed) during matching on values. This tweak was made possible by #11220.
2025-12-05T16:56:29Z
Changed
false
true
[ "src/Lean/Meta/Match/CaseValues.lean", "src/Lean/Meta/Match/Match.lean", "src/Lean/Meta/Tactic/Intro.lean", "tests/lean/run/match_nat.lean" ]
v4.27.0
Language
#11510 avoids running substCore twice in caseValues.
2025-12-04T16:26:51Z
Changed
false
true
[ "src/Lean/Elab/Match.lean", "src/Lean/Elab/PreDefinition/Structural/Eqns.lean", "src/Lean/Meta/Constructions/CasesOnSameCtor.lean", "src/Lean/Meta/IndPredBelow.lean", "src/Lean/Meta/Match/Basic.lean", "src/Lean/Meta/Match/CaseArraySizes.lean", "src/Lean/Meta/Match/CaseValues.lean", "src/Lean/Meta/Match/Match.lean", "src/Lean/Meta/Match/MatchEqs.lean", "src/Lean/Meta/Match/MatchEqsExt.lean", "src/Lean/Meta/Match/MatcherApp/Basic.lean", "src/Lean/Meta/Match/MatcherApp/Transform.lean", "src/Lean/Meta/Match/MatcherInfo.lean", "stage0/src/stdlib_flags.h", "tests/lean/run/casesOnSameCtor.lean", "tests/lean/run/issue8274.lean", "tests/lean/run/match2.lean", "tests/lean/run/matchSparse.lean", "tests/lean/run/split1.lean" ]
v4.27.0
Language
#11511 implements a linter that warns when a deprecated coercion is applied. It also warns when the Option coercion or the Subarray-to-Array coercion is used in Init or Std. The linter is currently limited to Coe instances; CoeFun instances etc. are not considered.
2025-12-12T15:50:38Z
Added
false
true
[ "src/Init/Data/Slice/Array/Iterator.lean", "src/Init/Data/Slice/Array/Lemmas.lean", "src/Lean/Elab/InfoTree/Main.lean", "src/Lean/Elab/SyntheticMVars.lean", "src/Lean/Elab/Term/TermElabM.lean", "src/Lean/Linter.lean", "src/Lean/Linter/Coe.lean", "src/Lean/Meta/Coe.lean", "stage0/src/stdlib_flags.h", "tests/lean/binopInfoTree.lean.expected.out", "tests/lean/run/linterCoe.lean" ]
v4.27.0
Language
#11518 provides an additional hint when the type of an autobound implicit is required to have function type or equality type — this fails, and the existing error message does not address the fact that the source of the error is an unknown identifier that was automatically bound.
2025-12-05T03:28:32Z
Changed
false
false
[ "src/Lean/Elab/App.lean", "src/Lean/Elab/BuiltinNotation.lean", "src/Lean/Elab/ErrorUtils.lean", "src/Lean/Elab/Term/TermElabM.lean", "tests/lean/302.lean.expected.out", "tests/lean/3989_1.lean.expected.out", "tests/lean/3989_2.lean.expected.out", "tests/lean/autoBoundPostponeLoop.lean.expected.out", "tests/lean/unknownCannotBeComplex.lean", "tests/lean/unknownCannotBeComplex.lean.expected.out" ]
v4.27.0
Language
#11541 adds support for underscores as digit separators in String.toNat?, String.toInt?, and related parsing functions. This makes the string parsing functions consistent with Lean's numeric literal syntax, which already supports underscores for readability (e.g., 100_000_000).
2025-12-08T04:20:09Z
Added
false
false
[ "src/Init/Data/String/Slice.lean", "src/Init/Data/String/Substring.lean", "tests/lean/run/string_toNat_underscores.lean" ]
v4.27.0
Language
#11554 adds @[suggest_for] annotations to Lean, allowing lean to provide corrections for .every or .some methods in place of .all or .any methods for most default-imported types (arrays, lists, strings, substrings, and subarrays, and vectors).
2025-12-10T23:17:05Z
Added
false
true
[ "src/Init/Core.lean", "src/Init/Data/Array/Basic.lean", "src/Init/Data/Array/Subarray.lean", "src/Init/Data/List/Basic.lean", "src/Init/Data/String/Search.lean", "src/Init/Data/String/Slice.lean", "src/Init/Data/String/Substring.lean", "src/Init/Data/Vector/Basic.lean", "src/Init/Prelude.lean", "tests/lean/run/idSuggestEvery.lean", "tests/lean/run/idSuggestStandalone.lean" ]
v4.27.0
Language
#11555 scans the environment for viable replacements for a dotted identifier (like .zero) and suggests concrete alternatives as replacements.
2025-12-09T17:49:54Z
Changed
false
false
[ "src/Lean/Elab/App.lean", "src/Lean/Elab/PatternVar.lean", "src/Lean/IdentifierSuggestion.lean", "tests/lean/10488.lean", "tests/lean/10488.lean.expected.out", "tests/lean/1719.lean.expected.out", "tests/lean/coeM.lean", "tests/lean/emptyTypeAscription.lean.expected.out", "tests/lean/run/change.lean", "tests/lean/run/coinductive_syntax.lean", "tests/lean/run/constructor_as_variable.lean", "tests/lean/run/dottedIdentNotation.lean", "tests/lean/run/identifierSuggestions.lean", "tests/lean/run/invalid_field_notation_mvar.lean" ]
v4.27.0
Language
#11566 lets the compiler treat per-constructor noConfusion like the general one, and moves some more logic closer to no confusion generation.
2025-12-10T09:42:10Z
Changed
false
true
[ "src/Lean/AuxRecursor.lean", "src/Lean/Compiler/LCNF/ToLCNF.lean", "src/Lean/Meta/Constructions/NoConfusion.lean", "stage0/src/stdlib_flags.h", "tests/lean/librarySearch.lean.expected.out" ]
v4.27.0
Language
#11571 lets whnf not consult isNoConfusion, to speed up this hot path a bit.
2025-12-09T23:59:16Z
Changed
false
true
[ "src/Lean/AuxRecursor.lean", "src/Lean/Meta/WHNF.lean", "src/library/CMakeLists.txt", "src/library/aux_recursors.cpp", "src/library/aux_recursors.h", "src/library/constructions/cases_on.cpp" ]
v4.27.0
Language
#11587 adjusts the new meta keyword of the experimental module system not to imply partial for general consistency.
2025-12-12T12:03:52Z
Added
false
true
[ "src/Lean/Elab/DeclModifiers.lean", "src/Lean/Elab/PreDefinition/Main.lean" ]
v4.27.0
Language
#11607 makes argument-less tactic invokations of Std.Do tactics such as mintro emit a proper error message "mintro expects at least one pattern" instead of claiming that Std.Tactic.Do needs to be imported.
2025-12-11T18:08:58Z
Changed
false
false
[ "src/Std/Tactic/Do/Syntax.lean", "tests/lean/run/11509.lean" ]
v4.27.0
Language
#11611 fixes a noConfusion compilation introduced by #11562.
2025-12-10T16:28:07Z
Added
false
true
[ "src/Init/Core.lean", "src/Init/Data/Array/DecidableEq.lean", "src/Init/Data/List/Basic.lean", "src/Init/Data/List/BasicAux.lean", "src/Init/Data/Option/Basic.lean", "src/Init/Data/Option/Instances.lean", "src/Init/Prelude.lean", "src/Lean/Meta/Constructions/NoConfusion.lean", "src/Lean/Meta/Injective.lean", "src/Lean/Meta/Tactic/Grind/Ctor.lean", "stage0/src/runtime/uv/timer.cpp", "stage0/stdlib/Init/Data/Format/Basic.c", "stage0/stdlib/Init/Data/Ord/Basic.c", "stage0/stdlib/Init/Data/String/Decode.c", "stage0/stdlib/Init/Grind/PP.c", "stage0/stdlib/Init/Meta/Defs.c", "stage0/stdlib/Init/MetaTypes.c", "stage0/stdlib/Init/System/IO.c", "stage0/stdlib/Init/While.c", "stage0/stdlib/Lake/Build/Common.c", "stage0/stdlib/Lake/Build/Job/Basic.c", "stage0/stdlib/Lake/CLI/Init.c", "stage0/stdlib/Lake/Config/Lang.c", "stage0/stdlib/Lake/Config/LeanConfig.c", "stage0/stdlib/Lake/Config/OutFormat.c", "stage0/stdlib/Lake/Toml/Elab/Expression.c", "stage0/stdlib/Lake/Util/Log.c", "stage0/stdlib/Lake/Util/Version.c", "stage0/stdlib/Lean/AddDecl.c", "stage0/stdlib/Lean/Attributes.c" ]
v4.27.0
Language
#11619 allows Lean to present suggestions based on @[suggest_for] annotations for unknown identifiers without internal dots. (The annotations in #11554 only gave suggestion for dotted identifiers like Array.every->Array.all and not for bare identifiers like Result->Except or ℕ->Nat.)
2025-12-10T23:17:05Z
Changed
false
true
[ "src/Init/Core.lean", "src/Init/Data/Array/Basic.lean", "src/Init/Data/Array/Subarray.lean", "src/Init/Data/List/Basic.lean", "src/Init/Data/String/Search.lean", "src/Init/Data/String/Slice.lean", "src/Init/Data/String/Substring.lean", "src/Init/Data/Vector/Basic.lean", "src/Init/Prelude.lean", "tests/lean/run/idSuggestEvery.lean", "tests/lean/run/idSuggestStandalone.lean" ]
v4.27.0
Language
#11620 ports Batteries.WF to Init.WFC for executable well-founded fixpoints. It introduces csimp theorems to replace the recursors and non-executable definitions with executable definitions.
2025-12-12T18:47:25Z
Added
true
true
[ "src/Init.lean", "src/Init/WF.lean", "src/Init/WFComputable.lean", "tests/lean/run/wfcomputable.lean" ]
v4.27.0
Language
#11621 causes Lean to search through @[suggest_for] annotations on certain errors that look like unknown identifiers that got incorrectly autobound. This will correctly identify that a declaration of type Maybe String should be Option String instead.
2025-12-11T22:04:05Z
Fixed
false
false
[ "src/Lean/Elab/BuiltinNotation.lean", "src/Lean/Elab/Term/TermElabM.lean", "src/Lean/IdentifierSuggestion.lean", "tests/lean/1021.lean", "tests/lean/1021.lean.expected.out", "tests/lean/run/idSuggestShort.lean", "tests/lean/unknownCannotBeComplex.lean.expected.out" ]
v4.27.0
Language
#11624 fixes a SIGFPE crash on x86_64 when evaluating INT_MIN / -1 or INT_MIN % -1 for signed integer types.
2025-12-13T03:19:00Z
Fixed
false
false
[ "src/include/lean/lean.h", "stage0/src/stdlib_flags.h", "tests/lean/run/sint_div_overflow.lean" ]
v4.27.0
Language
#11637 declares the module system as no longer experimental and makes the experimental.module option a no-op, to be removed.
2025-12-12T21:46:00Z
Removed
true
true
[ ".github/workflows/build-template.yml", "script/lakefile.toml", "src/Lean/Language/Lean.lean", "src/lakefile.toml.in", "tests/bench/speedcenter.exec.velcom.yaml", "tests/common.sh", "tests/lake/lakefile.toml", "tests/lake/tests/cache/lakefile.lean", "tests/lake/tests/module/dep/lakefile.toml", "tests/lake/tests/module/lakefile.toml", "tests/lakefile.toml", "tests/lean/run/test_single.sh", "tests/lean/run/whereCmd.lean", "tests/lean/test_single.sh", "tests/pkg/def_clash/deps/fooA/lakefile.toml", "tests/pkg/def_clash/deps/fooB/lakefile.toml", "tests/pkg/def_clash/deps/useA/lakefile.toml", "tests/pkg/def_clash/deps/useB/lakefile.toml", "tests/pkg/def_clash/lakefile.toml", "tests/pkg/mod_clash/depA/lakefile.toml", "tests/pkg/mod_clash/depB/lakefile.toml", "tests/pkg/mod_clash/lakefile.toml", "tests/pkg/module/lakefile.toml", "tests/pkg/rebuild/lakefile.toml", "tests/pkg/structure_docstrings/lakefile.toml", "tests/pkg/ver_clash/DiamondExample-A/lakefile.toml", "tests/pkg/ver_clash/DiamondExample-B/lakefile.toml", "tests/pkg/ver_clash/DiamondExample-C/lakefile.toml", "tests/pkg/ver_clash/DiamondExample-D/lakefile.toml" ]
v4.27.0
Language
#11644 makes .ctorIdx not an abbrev; we don't want grind to unfold it.
2025-12-13T09:47:59Z
Changed
false
false
[ "src/Lean/Meta/Constructions/CtorIdx.lean", "stage0/src/stdlib_flags.h", "tests/lean/run/ctorIdx.lean" ]
v4.27.0
Language
#11645 fixes the docstring of propagateForallPropUp. It was copy’n’pasta before.
2025-12-13T08:33:56Z
Fixed
false
false
[ "src/Lean/Meta/Tactic/Grind/ForallProp.lean" ]
v4.27.0
Language
#11652 teaches grind how to reduce .ctorIdx applied to constructors. It can also handle tasks like xs ≍ Vec.cons x xs' → xs.ctorIdx = 1 thanks to a .ctorIdx.hinj theorem (generated on demand).
2025-12-13T13:51:39Z
Changed
false
false
[ "src/Init/Data/Nat/Bitwise/Basic.lean", "src/Lean/Meta.lean", "src/Lean/Meta/Basic.lean", "src/Lean/Meta/Constructions/CtorIdx.lean", "src/Lean/Meta/Constructions/NoConfusion.lean", "src/Lean/Meta/CtorIdxHInj.lean", "src/Lean/Meta/Tactic/Grind/CtorIdx.lean", "src/Lean/Meta/Tactic/Grind/Main.lean", "src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/CtorIdx.lean", "src/Lean/MonadEnv.lean", "tests/lean/run/ctorIdxHInj.lean", "tests/lean/run/grind_ctorIdx.lean" ]
v4.27.0
Language
#11657 improves upon #11652 by keeping the kernel-reduction-optimized definition.
2025-12-13T17:24:21Z
Changed
false
false
[ "src/Init/Data/Nat/Bitwise/Basic.lean" ]
v4.27.0
Library
#8406 adds lemmas of the form getElem_swapIfInBounds* and deprecates getElem_swap'.
2025-11-25T00:15:23Z
Added
false
false
[ "src/Init/Data/Array/Basic.lean", "src/Init/Data/Array/Lemmas.lean" ]
v4.27.0
Library
#9302 modifies Option.instDecidableEq and Option.decidableEqNone so that the latter can be made into a global instance without causing diamonds. It also adds Option.decidabeNoneEq.
2025-11-20T02:14:42Z
Added
false
true
[ "src/Init/Data/Option/Basic.lean", "src/Init/Data/Option/Instances.lean", "tests/lean/run/optionDecEq.lean" ]
v4.27.0
Library
#10204 changes the interface of the ForIn, ForIn', and ForM typeclasses to not take a Monad m parameter. This is a breaking change for most downstream instances, which will will now need to assume [Monad m].
2025-11-25T12:47:22Z
Changed
false
true
[ "src/Init/Control/Basic.lean", "src/Init/Core.lean", "src/Init/Data/Array/Basic.lean", "src/Init/Data/ByteArray/Basic.lean", "src/Init/Data/FloatArray/Basic.lean", "src/Init/Data/Iterators/Consumers/Loop.lean", "src/Init/Data/Iterators/Consumers/Monadic/Loop.lean", "src/Init/Data/List/Control.lean", "src/Init/Data/Option/Instances.lean", "src/Init/Data/Range/Basic.lean", "src/Init/Data/Slice/List/Iterator.lean", "src/Init/Data/Slice/Operations.lean", "src/Init/Data/Stream.lean", "src/Init/Data/Vector/Basic.lean", "src/Init/While.lean", "src/Lean/Data/AssocList.lean", "src/Lean/Data/KVMap.lean", "src/Lean/Data/Lsp/Internal.lean", "src/Lean/Data/NameMap/Basic.lean", "src/Lean/Data/Options.lean", "src/Lean/Data/PersistentArray.lean", "src/Lean/Data/PersistentHashMap.lean", "src/Lean/Data/PersistentHashSet.lean", "src/Lean/Data/RBMap.lean", "src/Lean/Data/RBTree.lean", "src/Lean/Data/SMap.lean", "src/Lean/Expr.lean", "src/Lean/Level.lean", "src/Lean/LocalContext.lean", "src/Lean/Parser/Basic.lean" ]
v4.27.0
Library
#10945 adds Std.Tricho r, a typeclass for relations which identifies them as trichotomous. This is preferred to Std.Antisymm (¬ r · ·) in all cases (which it is equivalent to).
2025-11-18T13:45:38Z
Added
false
false
[ "src/Init/Core.lean", "src/Init/Data/Array/Lex/Lemmas.lean", "src/Init/Data/Char/Lemmas.lean", "src/Init/Data/List/BasicAux.lean", "src/Init/Data/List/Lex.lean", "src/Init/Data/Nat/Basic.lean", "src/Init/Data/Order/Factories.lean", "src/Init/Data/Order/Lemmas.lean", "src/Init/Data/String/Lemmas.lean", "src/Init/Data/Vector/Lex.lean" ]
v4.27.0
Library
#11038 introduces a new fixpoint combinator, WellFounded.extrinsicFix. A termination proof, if provided at all, can be given extrinsically, i.e., looking at the term from the outside, and is only required if one intends to formally verify the behavior of the fixpoint. The new combinator is then applied to the iterator API. Consumers such as toList or ForIn no longer require a proof that the underlying iterator is finite. If one wants to ensure the termination of them intrinsically, there are strictly terminating variants available as, for example, it.ensureTermination.toList instead of it.toList.
2025-12-08T16:34:27Z
Added
false
true
[ "src/Init/Data/Iterators/Basic.lean", "src/Init/Data/Iterators/Combinators/Monadic/Attach.lean", "src/Init/Data/Iterators/Combinators/Monadic/FilterMap.lean", "src/Init/Data/Iterators/Combinators/Monadic/FlatMap.lean", "src/Init/Data/Iterators/Combinators/Monadic/Take.lean", "src/Init/Data/Iterators/Combinators/Monadic/ULift.lean", "src/Init/Data/Iterators/Consumers.lean", "src/Init/Data/Iterators/Consumers/Collect.lean", "src/Init/Data/Iterators/Consumers/Loop.lean", "src/Init/Data/Iterators/Consumers/Monadic/Collect.lean", "src/Init/Data/Iterators/Consumers/Monadic/Loop.lean", "src/Init/Data/Iterators/Consumers/Monadic/Total.lean", "src/Init/Data/Iterators/Consumers/Total.lean", "src/Init/Data/Iterators/Lemmas/Combinators/Monadic/FilterMap.lean", "src/Init/Data/Iterators/Lemmas/Consumers/Collect.lean", "src/Init/Data/Iterators/Lemmas/Consumers/Loop.lean", "src/Init/Data/Iterators/Lemmas/Consumers/Monadic/Collect.lean", "src/Init/Data/Iterators/Lemmas/Consumers/Monadic/Loop.lean", "src/Init/Data/Iterators/Producers/Monadic/List.lean", "src/Init/Data/Range/Polymorphic/RangeIterator.lean", "src/Init/Data/Slice/Array/Iterator.lean", "src/Init/Data/String/Lemmas/Search.lean", "src/Init/Data/String/Slice.lean", "src/Init/WFExtrinsicFix.lean", "src/Std/Data/DHashMap/Internal/AssocList/Iterator.lean", "src/Std/Data/Iterators/Combinators/Monadic/Drop.lean", "src/Std/Data/Iterators/Combinators/Monadic/DropWhile.lean", "src/Std/Data/Iterators/Combinators/Monadic/StepSize.lean", "src/Std/Data/Iterators/Combinators/Monadic/TakeWhile.lean", "src/Std/Data/Iterators/Combinators/Monadic/Zip.lean" ]
v4.27.0
Library
#11112 adds intersection operation on DHashMap/HashMap/HashSet and provides several lemmas about its behaviour.
2025-11-18T10:04:26Z
Added
false
false
[ "src/Std/Data/DHashMap/Basic.lean", "src/Std/Data/DHashMap/Internal/Defs.lean", "src/Std/Data/DHashMap/Internal/Model.lean", "src/Std/Data/DHashMap/Internal/Raw.lean", "src/Std/Data/DHashMap/Internal/RawLemmas.lean", "src/Std/Data/DHashMap/Internal/WF.lean", "src/Std/Data/DHashMap/Lemmas.lean", "src/Std/Data/DHashMap/Raw.lean", "src/Std/Data/DHashMap/RawDef.lean", "src/Std/Data/DHashMap/RawLemmas.lean", "src/Std/Data/HashMap/Basic.lean", "src/Std/Data/HashMap/Lemmas.lean", "src/Std/Data/HashMap/Raw.lean", "src/Std/Data/HashMap/RawLemmas.lean", "src/Std/Data/HashSet/Basic.lean", "src/Std/Data/HashSet/Lemmas.lean", "src/Std/Data/HashSet/Raw.lean", "src/Std/Data/HashSet/RawLemmas.lean", "src/Std/Data/Internal/List/Associative.lean" ]
v4.27.0
Library
#11141 provides a polymorphic ForIn instance for slices and an MPL spec lemma for the iteration over slices using for ... in. It also provides a version specialized to Subarray.
2025-11-17T16:26:33Z
Changed
true
true
[ "src/Init/Data/Array/Lemmas.lean", "src/Init/Data/Iterators/ToIterator.lean", "src/Init/Data/Slice/Array/Iterator.lean", "src/Init/Data/Slice/Array/Lemmas.lean", "src/Init/Data/Slice/Lemmas.lean", "src/Init/Data/Slice/Operations.lean", "src/Std/Do/Triple/SpecLemmas.lean", "tests/lean/run/doLogicTests.lean" ]
v4.27.0
Library
#11165 provides intersection on DTreeMap/TreeMap/TreeSetand provides several lemmas about it.
2025-11-20T15:36:57Z
Changed
true
true
[ "src/Std/Data/DTreeMap/Basic.lean", "src/Std/Data/DTreeMap/Internal/Lemmas.lean", "src/Std/Data/DTreeMap/Internal/Operations.lean", "src/Std/Data/DTreeMap/Internal/WF/Defs.lean", "src/Std/Data/DTreeMap/Internal/WF/Lemmas.lean", "src/Std/Data/DTreeMap/Lemmas.lean", "src/Std/Data/DTreeMap/Raw/Basic.lean", "src/Std/Data/DTreeMap/Raw/Lemmas.lean", "src/Std/Data/DTreeMap/Raw/WF.lean", "src/Std/Data/HashMap/RawLemmas.lean", "src/Std/Data/TreeMap/Basic.lean", "src/Std/Data/TreeMap/Lemmas.lean", "src/Std/Data/TreeMap/Raw/Basic.lean", "src/Std/Data/TreeMap/Raw/Lemmas.lean", "src/Std/Data/TreeMap/Raw/WF.lean", "src/Std/Data/TreeSet/Basic.lean", "src/Std/Data/TreeSet/Lemmas.lean", "src/Std/Data/TreeSet/Raw/Basic.lean", "src/Std/Data/TreeSet/Raw/Lemmas.lean", "src/Std/Data/TreeSet/Raw/WF.lean" ]
v4.27.0
Library
#11178 provides more lemmas about Subarray and ListSlice and it also adds support for subslices of these two types of slices.
2025-11-20T11:11:37Z
Added
false
true
[ "src/Init/Data/List/Lemmas.lean", "src/Init/Data/List/Nat/TakeDrop.lean", "src/Init/Data/Range/Polymorphic/Lemmas.lean", "src/Init/Data/Slice/Array/Basic.lean", "src/Init/Data/Slice/Array/Lemmas.lean", "src/Init/Data/Slice/List/Basic.lean", "src/Init/Data/Slice/List/Lemmas.lean", "tests/lean/run/slice.lean" ]
v4.27.0
Library
#11180 redefines String.take and variants to operate on String.Slice. While previously functions returning a substring of the input sometimes returned String and sometimes returned Substring.Raw, they now uniformly return String.Slice.
2025-11-18T16:37:23Z
Changed
false
true
[ "src/Init/Data/String/Basic.lean", "src/Init/Data/String/Slice.lean", "src/Init/Data/String/TakeDrop.lean", "src/Init/Data/ToString/Name.lean", "src/Init/System/IO.lean", "src/Init/System/Uri.lean", "src/Lean/Compiler/Old.lean", "src/Lean/Data/Lsp/Communication.lean", "src/Lean/DocString/Markdown.lean", "src/Lean/DocString/Parser.lean", "src/Lean/Elab/Command.lean", "src/Lean/Elab/Deriving/FromToJson.lean", "src/Lean/Elab/DocString/Builtin.lean", "src/Lean/Elab/DocString/Builtin/Keywords.lean", "src/Lean/Elab/GuardMsgs.lean", "src/Lean/Elab/Quotation.lean", "src/Lean/Elab/Syntax.lean", "src/Lean/Elab/Tactic/Do/VCGen.lean", "src/Lean/Elab/Tactic/Doc.lean", "src/Lean/Elab/Tactic/Try.lean", "src/Lean/ErrorExplanation.lean", "src/Lean/Linter/List.lean", "src/Lean/LoadDynlib.lean", "src/Lean/Parser/Basic.lean", "src/Lean/Parser/Tactic/Doc.lean", "src/Lean/Parser/Term/Doc.lean", "src/Lean/PrettyPrinter/Formatter.lean", "src/Lean/Server/Completion/ImportCompletion.lean", "src/Lean/Server/FileWorker/ExampleHover.lean", "src/Lean/Server/FileWorker/SetupFile.lean" ]
v4.27.0
Library
#11212 adds support for difference operation for DHashMap/HashMap/HashSet and proves several lemmas about it.
2025-11-27T13:31:35Z
Added
false
false
[ "src/Std/Data/DHashMap/Basic.lean", "src/Std/Data/DHashMap/Internal/Defs.lean", "src/Std/Data/DHashMap/Internal/Model.lean", "src/Std/Data/DHashMap/Internal/Raw.lean", "src/Std/Data/DHashMap/Internal/RawLemmas.lean", "src/Std/Data/DHashMap/Internal/WF.lean", "src/Std/Data/DHashMap/Lemmas.lean", "src/Std/Data/DHashMap/Raw.lean", "src/Std/Data/DHashMap/RawLemmas.lean", "src/Std/Data/HashMap/Basic.lean", "src/Std/Data/HashMap/Lemmas.lean", "src/Std/Data/HashMap/Raw.lean", "src/Std/Data/HashMap/RawLemmas.lean", "src/Std/Data/HashSet/Basic.lean", "src/Std/Data/HashSet/Lemmas.lean", "src/Std/Data/HashSet/Raw.lean", "src/Std/Data/HashSet/RawLemmas.lean", "src/Std/Data/Internal/List/Associative.lean" ]
v4.27.0
Library
#11218 renames String.offsetOfPos to String.Pos.Raw.offsetOfPos to align with the other String.Pos.Raw operations.
2025-11-18T07:46:28Z
Changed
false
false
[ "src/Init/Data/String/Basic.lean" ]
v4.27.0
Library
#11222 implements elabToSyntax for creating scoped syntax s : Syntax for an arbitrary elaborator el : Option Expr -> TermElabM Expr such that elabTerm s = el.
2025-11-18T07:31:29Z
Added
false
false
[ "src/Lean/Elab/Term/TermElabM.lean", "tests/lean/run/elabToSyntax.lean" ]
v4.27.0
Library
#11223 adds missing lemmas relating emptyWithCapacity/empty and toList/keys/values for DHashMap/HashMap/HashSet.
2025-11-18T08:43:50Z
Added
false
false
[ "src/Std/Data/DHashMap/Internal/RawLemmas.lean", "src/Std/Data/DHashMap/Internal/WF.lean", "src/Std/Data/DHashMap/Lemmas.lean", "src/Std/Data/DHashMap/RawLemmas.lean", "src/Std/Data/HashMap/Lemmas.lean", "src/Std/Data/HashMap/RawLemmas.lean", "src/Std/Data/HashSet/Lemmas.lean", "src/Std/Data/HashSet/RawLemmas.lean", "src/Std/Data/Internal/List/Associative.lean" ]
v4.27.0
Library
#11231 adds several lemmas that relate getMin/getMin?/getMin!/getMinD and insertion to the empty (D)TreeMap/TreeSet and their extensional variants.
2025-11-20T16:59:06Z
Added
false
false
[ "src/Std/Data/DTreeMap/Internal/Lemmas.lean", "src/Std/Data/DTreeMap/Lemmas.lean", "src/Std/Data/DTreeMap/Raw/Lemmas.lean", "src/Std/Data/ExtDTreeMap/Lemmas.lean", "src/Std/Data/ExtTreeMap/Lemmas.lean", "src/Std/Data/ExtTreeSet/Lemmas.lean", "src/Std/Data/Internal/List/Associative.lean", "src/Std/Data/TreeMap/Lemmas.lean", "src/Std/Data/TreeMap/Raw/Lemmas.lean", "src/Std/Data/TreeSet/Lemmas.lean", "src/Std/Data/TreeSet/Raw/Lemmas.lean" ]
v4.27.0
Library
#11232 deprecates String.toSubstring in favor of String.toRawSubstring (cf. #11154).
2025-11-18T14:14:18Z
Deprecated
true
true
[ "src/Init/Data/String/Defs.lean", "src/Init/Prelude.lean" ]
v4.27.0
Library
#11235 registers a node kind for Lean.Parser.Term.elabToSyntax in order to support the Lean.Elab.Term.elabToSyntax functionality without registering a dedicated parser for user-accessible syntax.
2025-11-18T10:12:35Z
Changed
false
false
[ "src/Lean/Elab/Term/TermElabM.lean" ]
v4.27.0
Library
#11237 fixes the error thrown by UInt64.fromJson? and USize.fromJson? to use the missing s!.
2025-11-18T10:51:47Z
Fixed
false
false
[ "src/Lean/Data/Json/FromToJson/Basic.lean" ]
v4.27.0
Library
#11240 renames String.ValidPos to String.Pos, String.endValidPos to String.endPos and String.startValidPos to String.startPos.
2025-11-24T17:10:09Z
Changed
false
true
[ "script/Shake.lean", "src/Init/Data/String/Basic.lean", "src/Init/Data/String/Bootstrap.lean", "src/Init/Data/String/Defs.lean", "src/Init/Data/String/Extra.lean", "src/Init/Data/String/Iterator.lean", "src/Init/Data/String/Lemmas/Basic.lean", "src/Init/Data/String/Lemmas/Modify.lean", "src/Init/Data/String/Lemmas/Splits.lean", "src/Init/Data/String/Modify.lean", "src/Init/Data/String/Pattern/Basic.lean", "src/Init/Data/String/PosRaw.lean", "src/Init/Data/String/Search.lean", "src/Init/Data/String/Substring.lean", "src/Init/Data/String/Termination.lean", "src/Init/Prelude.lean", "src/Init/System/FilePath.lean", "src/Lean/Compiler/ExternAttr.lean", "src/Lean/Compiler/NameMangling.lean", "src/Lean/Data/EditDistance.lean", "src/Lean/DocString/Links.lean", "src/Lean/DocString/Markdown.lean", "src/Lean/DocString/Parser.lean", "src/Lean/ErrorExplanation.lean", "src/Lean/Meta/TryThis.lean", "src/Lean/Server/FileWorker/ExampleHover.lean", "src/Lean/Server/FileWorker/SignatureHelp.lean", "src/Std/Internal/Parsec/String.lean", "src/lake/Lake/CLI/Main.lean", "src/lake/Lake/Config/Artifact.lean" ]
v4.27.0
Library
#11241 provides intersection operation for ExtDHashMap/ExtHashMap/ExtHashSet and proves several lemmas about it.
2025-11-20T16:08:27Z
Changed
false
false
[ "src/Std/Data/DHashMap/Internal/RawLemmas.lean", "src/Std/Data/DHashMap/Lemmas.lean", "src/Std/Data/DHashMap/Raw.lean", "src/Std/Data/DHashMap/RawLemmas.lean", "src/Std/Data/ExtDHashMap/Basic.lean", "src/Std/Data/ExtDHashMap/Lemmas.lean", "src/Std/Data/ExtHashMap/Basic.lean", "src/Std/Data/ExtHashMap/Lemmas.lean", "src/Std/Data/ExtHashSet/Basic.lean", "src/Std/Data/ExtHashSet/Lemmas.lean", "src/Std/Data/HashMap/Lemmas.lean", "src/Std/Data/HashMap/Raw.lean", "src/Std/Data/HashMap/RawLemmas.lean", "src/Std/Data/HashSet/Lemmas.lean", "src/Std/Data/HashSet/Raw.lean", "src/Std/Data/HashSet/RawLemmas.lean", "src/Std/Data/Internal/List/Associative.lean" ]
v4.27.0
Library
#11242 significantly changes the signature of the ToIterator type class. The obtained iterators' state is no longer dependently typed and is an outParam instead of being bundled inside the class. Among other benefits, simp can now rewrite inside of Slice.toList and Slice.toArray. The downside is that we lose flexibility. For example, the former combinator-based implementation of Subarray's iterators is no longer feasible because the states are dependently typed. Therefore, this PR provides a hand-written iterator for Subarray, which does not require a dependently typed state and is faster than the previous one.
2025-11-22T13:02:05Z
Added
false
true
[ "src/Init/Data/Array/Lemmas.lean", "src/Init/Data/Iterators/ToIterator.lean", "src/Init/Data/List/Lemmas.lean", "src/Init/Data/Slice/Array/Iterator.lean", "src/Init/Data/Slice/Array/Lemmas.lean", "src/Init/Data/Slice/Lemmas.lean", "src/Init/Data/Slice/List/Iterator.lean", "src/Init/Data/Slice/List/Lemmas.lean", "src/Init/Data/Slice/Operations.lean", "src/Std/Data/DTreeMap/Internal/Zipper.lean", "src/Std/Data/Iterators/Lemmas/Producers/Slice.lean", "src/Std/Data/Iterators/Producers/Slice.lean", "src/Std/Do/Triple/SpecLemmas.lean", "tests/bench/sigmaIterator.lean", "tests/bench/speedcenter.exec.velcom.yaml" ]
v4.27.0
Library
#11243 adds ofArray to DHashMap/HashMap/HashSet and proves a simp lemma allowing to rewrite ofArray to ofList.
2025-11-26T17:53:32Z
Added
false
false
[ "src/Std/Data/DHashMap/Basic.lean", "src/Std/Data/DHashMap/Internal/Raw.lean", "src/Std/Data/DHashMap/Internal/WF.lean", "src/Std/Data/DHashMap/Lemmas.lean", "src/Std/Data/DHashMap/Raw.lean", "src/Std/Data/DHashMap/RawLemmas.lean", "src/Std/Data/HashMap/Basic.lean", "src/Std/Data/HashMap/Lemmas.lean", "src/Std/Data/HashMap/Raw.lean", "src/Std/Data/HashMap/RawLemmas.lean", "src/Std/Data/HashSet/Lemmas.lean", "src/Std/Data/HashSet/RawLemmas.lean" ]
v4.27.0
Library
#11250 introduces a function String.split which is based on String.Slice.split and therefore supports all pattern types and returns a Std.Iter String.Slice.
2025-11-19T10:01:16Z
Added
false
false
[ "src/Init/Data/Format/Instances.lean", "src/Init/Data/String.lean", "src/Init/Data/String/Basic.lean", "src/Init/Data/String/Legacy.lean", "src/Init/Data/String/Search.lean", "src/Init/Data/String/Slice.lean", "src/Init/System/FilePath.lean", "src/Lean/Compiler/FFI.lean", "src/Lean/Data/Lsp/Communication.lean", "src/Lean/DocString/Formatter.lean", "src/Lean/DocString/Links.lean", "src/Lean/DocString/Parser.lean", "src/Lean/Elab/DocString.lean", "src/Lean/Elab/DocString/Builtin/Keywords.lean", "src/Lean/Elab/GuardMsgs.lean", "src/Lean/Elab/Tactic/Doc.lean", "src/Lean/Elab/Tactic/Try.lean", "src/Lean/ErrorExplanation.lean", "src/Lean/Message.lean", "src/Lean/Parser/Tactic/Doc.lean", "src/Lean/Parser/Term/Doc.lean", "src/Lean/Server/Test/Runner.lean", "src/Lean/SubExpr.lean", "src/lake/Lake/Build/Actions.lean", "src/lake/Lake/Build/Key.lean", "src/lake/Lake/CLI/Actions.lean", "src/lake/Lake/CLI/Build.lean", "src/lake/Lake/CLI/Main.lean", "src/lake/Lake/Config/Cache.lean", "src/lake/Lake/Toml/Data/DateTime.lean" ]
v4.27.0
Library
#11255 reduces the allocations when using string patterns. In particular startsWith, dropPrefix?, endsWith, dropSuffix? are optimized.
2025-11-19T13:48:11Z
Fixed
false
false
[ "src/Init/Data/String/Defs.lean", "src/Init/Data/String/Pattern/Basic.lean", "src/Init/Data/String/Pattern/String.lean", "src/Init/Data/String/Slice.lean", "src/include/lean/lean.h", "src/lake/Lake/Util/FilePath.lean", "src/runtime/object.cpp", "stage0/src/stdlib_flags.h" ]
v4.27.0
Library
#11263 fixes several memory leaks in the new String API.
2025-11-19T18:57:22Z
Added
false
false
[ "src/Init/Data/String/Basic.lean", "src/runtime/object.cpp" ]
v4.27.0
Library
#11266 adds BEq instance for DHashMap/HashMap/HashSet and their extensional variants and proves lemmas relating it to the equivalence of hashmaps/equality of extensional variants.
2025-12-10T16:09:03Z
Added
false
false
[ "src/Init/Data/List/Perm.lean", "src/Std/Data/DHashMap/Basic.lean", "src/Std/Data/DHashMap/Internal/Defs.lean", "src/Std/Data/DHashMap/Internal/Raw.lean", "src/Std/Data/DHashMap/Internal/RawLemmas.lean", "src/Std/Data/DHashMap/Internal/WF.lean", "src/Std/Data/DHashMap/Lemmas.lean", "src/Std/Data/DHashMap/Raw.lean", "src/Std/Data/DHashMap/RawDef.lean", "src/Std/Data/DHashMap/RawLemmas.lean", "src/Std/Data/ExtDHashMap/Basic.lean", "src/Std/Data/ExtHashMap/Basic.lean", "src/Std/Data/ExtHashSet/Basic.lean", "src/Std/Data/HashMap/Basic.lean", "src/Std/Data/HashMap/Lemmas.lean", "src/Std/Data/HashMap/Raw.lean", "src/Std/Data/HashMap/RawLemmas.lean", "src/Std/Data/HashSet/Basic.lean", "src/Std/Data/HashSet/Lemmas.lean", "src/Std/Data/HashSet/Raw.lean", "src/Std/Data/HashSet/RawLemmas.lean", "src/Std/Data/Internal/List/Associative.lean" ]
v4.27.0
Library
#11267 renames congruence lemmas for union on DHashMap/HashMap/HashSet/DTreeMap/TreeMap/TreeSet to fit the convention of being in the Equiv namespace.
2025-11-21T11:51:23Z
Changed
false
false
[ "src/Std/Data/DHashMap/Internal/RawLemmas.lean", "src/Std/Data/DHashMap/Lemmas.lean", "src/Std/Data/DHashMap/RawLemmas.lean", "src/Std/Data/DTreeMap/Internal/Lemmas.lean", "src/Std/Data/DTreeMap/Lemmas.lean", "src/Std/Data/DTreeMap/Raw/Lemmas.lean", "src/Std/Data/ExtDHashMap/Basic.lean", "src/Std/Data/ExtDTreeMap/Basic.lean", "src/Std/Data/HashMap/Lemmas.lean", "src/Std/Data/HashMap/RawLemmas.lean", "src/Std/Data/HashSet/Lemmas.lean", "src/Std/Data/HashSet/RawLemmas.lean", "src/Std/Data/Internal/List/Associative.lean", "src/Std/Data/TreeMap/Lemmas.lean", "src/Std/Data/TreeMap/Raw/Lemmas.lean", "src/Std/Data/TreeSet/Lemmas.lean", "src/Std/Data/TreeSet/Raw/Lemmas.lean" ]
v4.27.0
Library
#11276 cleans up the API around String.find and moves it uniformly to the new position types String.ValidPos and String.Slice.Pos
2025-11-23T19:02:36Z
Added
false
true
[ "src/Init/Data/String/Basic.lean", "src/Init/Data/String/Search.lean", "src/Init/Data/String/Slice.lean", "src/Init/Data/String/Substring.lean", "src/Init/System/FilePath.lean", "src/Lean/Elab/StructInstHint.lean", "src/Lean/Meta/Tactic/Grind/Intro.lean", "src/Lean/Meta/TryThis.lean", "src/Lean/PrettyPrinter/Formatter.lean", "src/Lean/Server/Test/Runner.lean", "src/Lean/Shell.lean", "src/lake/Lake/CLI/Main.lean", "src/lake/Lake/Config/Artifact.lean", "src/lake/Lake/Config/Cache.lean", "src/lake/Lake/Util/Cli.lean", "src/lake/Lake/Util/Version.lean" ]
v4.27.0
Library
#11281 adds a few deprecations for functions that never existed but that are still helpful for people migrating their code post-#11180.
2025-11-18T16:37:23Z
Added
false
true
[ "src/Init/Data/String/Basic.lean", "src/Init/Data/String/Slice.lean", "src/Init/Data/String/TakeDrop.lean", "src/Init/Data/ToString/Name.lean", "src/Init/System/IO.lean", "src/Init/System/Uri.lean", "src/Lean/Compiler/Old.lean", "src/Lean/Data/Lsp/Communication.lean", "src/Lean/DocString/Markdown.lean", "src/Lean/DocString/Parser.lean", "src/Lean/Elab/Command.lean", "src/Lean/Elab/Deriving/FromToJson.lean", "src/Lean/Elab/DocString/Builtin.lean", "src/Lean/Elab/DocString/Builtin/Keywords.lean", "src/Lean/Elab/GuardMsgs.lean", "src/Lean/Elab/Quotation.lean", "src/Lean/Elab/Syntax.lean", "src/Lean/Elab/Tactic/Do/VCGen.lean", "src/Lean/Elab/Tactic/Doc.lean", "src/Lean/Elab/Tactic/Try.lean", "src/Lean/ErrorExplanation.lean", "src/Lean/Linter/List.lean", "src/Lean/LoadDynlib.lean", "src/Lean/Parser/Basic.lean", "src/Lean/Parser/Tactic/Doc.lean", "src/Lean/Parser/Term/Doc.lean", "src/Lean/PrettyPrinter/Formatter.lean", "src/Lean/Server/Completion/ImportCompletion.lean", "src/Lean/Server/FileWorker/ExampleHover.lean", "src/Lean/Server/FileWorker/SetupFile.lean" ]
v4.27.0
Library
#11282 adds the alias String.Slice.any for String.Slice.contains.
2025-11-20T13:47:37Z
Added
false
false
[ "src/Init/Data/String/Slice.lean" ]
v4.27.0
Library
#11285 adds Std.Slice.Pattern instances for p : Char -> Prop as long as DecidablePred p, to allow things like "hello".dropWhile (· = 'h').
2025-11-20T16:08:27Z
Added
false
false
[ "src/Init/Data/String/Pattern/Basic.lean", "src/Init/Data/String/Pattern/Char.lean", "src/Init/Data/String/Pattern/Pred.lean", "src/Init/Data/String/Pattern/String.lean", "src/Init/Data/String/Search.lean", "src/Init/Data/String/Slice.lean", "src/Init/Data/String/TakeDrop.lean", "tests/lean/run/string_kmp.lean", "tests/lean/run/string_slice.lean" ]
v4.27.0
Library
#11286 adds a function String.Slice.length, with the following deprecation string: There is no constant-time length function on slices. Use s.positions.count instead, or isEmpty if you only need to know whether the slice is empty.
2025-11-20T14:57:21Z
Added
false
false
[ "src/Init/Data/String/Slice.lean", "src/Lean/ErrorExplanation.lean", "src/Lean/Server/FileWorker/ExampleHover.lean", "src/lake/Lake/Toml/Data/DateTime.lean" ]
v4.27.0
Library
#11289 redefines String.foldl, String.isNat to use their String.Slice counterparts.
2025-11-21T11:42:39Z
Changed
false
false
[ "src/Init/Data/String/Basic.lean", "src/Init/Data/String/Extra.lean", "src/Init/Data/String/Lemmas/Basic.lean", "src/Init/Data/String/Repr.lean", "src/Init/Data/String/Search.lean", "src/Init/Data/String/Substring.lean", "src/Init/Data/String/Termination.lean", "src/Init/System/Uri.lean", "src/Lean/Data/Json/Printer.lean", "src/Std/Time/Format/Basic.lean", "src/lake/Lake/Build/Trace.lean", "src/lake/Lake/Toml/Data/Value.lean", "src/lake/Lake/Util/Url.lean" ]
v4.27.0
Library
#11290 renames String.replaceStartEnd to String.slice, String.replaceStart to String.sliceFrom, and String.replaceEnd to String.sliceTo, and similar for the corresponding functions on String.Slice.
2025-11-20T17:13:12Z
Changed
false
false
[ "src/Init/Data/String/Basic.lean", "src/Init/Data/String/Lemmas/Splits.lean", "src/Init/Data/String/Modify.lean", "src/Init/Data/String/Search.lean", "src/Init/Data/String/Slice.lean", "src/Lean/ErrorExplanation.lean", "src/Lean/Server/FileWorker/ExampleHover.lean", "src/Std/Internal/Parsec/String.lean" ]
v4.27.0
Library
#11299 add many @[grind] annotations for Fin, and updates the tests.
2025-11-22T03:14:32Z
Added
false
true
[ "src/Init/Data/BitVec/Lemmas.lean", "src/Init/Data/Fin/Basic.lean", "src/Init/Data/Fin/Lemmas.lean", "src/Init/GrindInstances/ToInt.lean", "src/Init/Prelude.lean", "tests/lean/grind/grind_fin.lean", "tests/lean/run/grind_cutsat_toint_1.lean", "tests/lean/run/grind_fin.lean" ]
v4.27.0
Library
#11308 redefines front and back on String to go through String.Slice and adds the new String functions front?, back?, positions, chars, revPositions, revChars, byteIterator, revBytes, lines.
2025-11-23T15:56:20Z
Added
false
true
[ "src/Init/Data/String/Basic.lean", "src/Init/Data/String/Search.lean", "src/Init/Data/String/Slice.lean", "src/Init/Data/ToString/Name.lean", "src/Init/System/IO.lean", "src/Lean/Data/Lsp/LanguageFeatures.lean", "src/Lean/Data/Name.lean" ]
v4.27.0
Library
#11316 adds grind_pattern Exists.choose_spec => P.choose.
2025-11-22T02:46:16Z
Added
false
true
[ "src/Init/Classical.lean" ]
v4.27.0
Library
#11317 adds grind_pattern Subtype.property => self.val.
2025-11-22T02:47:39Z
Added
false
true
[ "src/Init/Prelude.lean" ]
End of preview. Expand in Data Studio

Lean 4 Changelog Dataset

Dataset Description

The Lean 4 Changelog Dataset provides structured, machine-readable entries for changes in Lean 4, including language and library updates, fixes, deprecations, and other modifications. This dataset focuses on release notes from Lean 4’s official changelogs, capturing the key updates that are most likely to impact users, developers, or researchers working with Lean 4.

By offering structured data for these changes, this dataset enables tooling and machine learning workflows that analyze Lean 4’s evolution, assist in migration between versions, or build question-answering systems for Lean-specific features.

Dataset Structure

The dataset includes the following fields:

  • version: The Lean 4 version associated with the change (e.g., "v4.16.0").
  • section: The section of the changelog where the change appears (e.g., "## Language," "## Libraries").
  • text: The content of the change
  • pull request: The associated pull request.

Example Row

  • version: "v4.16.0"
  • section: "## Language"
  • title: "#6204"
  • description: "Lets _ be used in numeric literals as a separator, e.g., 1_000_000."

Source Code

The dataset was created by processing the official Lean 4 changelogs to extract and structure their content into individual, machine-readable entries. While the changelogs cover Lean 4's development comprehensively, this dataset focuses on capturing actionable updates for users and researchers. References to GitHub pull requests (e.g., "#6204") are included in the title field, while the description field provides a clean, detailed summary of the update.

Usage

This dataset is designed for:

  • Formal Methods Research: Understanding the evolution of Lean 4 features and their impact on theorem proving.
  • Machine Learning Applications: Training models for Lean 4 version prediction, changelog summarization, or migration tool development.
  • Educational Purposes: Teaching Lean 4 users about recent changes or deprecated features in new releases.

License

This dataset is distributed under the Apache 2.0 license, aligning with the licensing of the Lean 4 project.

Acknowledgments

  • Official Lean 4 Repository: https://github.com/leanprover/lean4
  • Dataset Maintainer: phanerozoic (Charles Norton)
  • Inspired by: Andreas Florath's Facts, Propositions, and Proofs Dataset
Downloads last month
164

Collection including phanerozoic/Lean4-Changelog