Skip to content

Commit abb35a6

Browse files
committed
Merge branch 'master' into diffgeo-docstrings-preelaborators
2 parents 9dcaa53 + 5027efb commit abb35a6

2,847 files changed

Lines changed: 17863 additions & 7492 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/get-mathlib-ci/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
# Default pinned commit used by workflows unless they explicitly override.
1111
# Update this ref as needed to pick up changes to mathlib-ci scripts
1212
# This is also updated automatically by .github/workflows/update_dependencies.yml
13-
default: aafe3df227b81f681afa3978f9eab0e2bbcd0582
13+
default: 194b03113712fdf55c2c29651f161893f0305fe8
1414
path:
1515
description: Checkout destination path.
1616
required: false

.github/workflows/build_template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ jobs:
222222
223223
- name: validate lake-manifest.json inputRevs
224224
# Only enforce this on the main mathlib4 repository, not on nightly-testing
225-
if: github.repository == 'leanprover-community/mathlib4'
225+
if: github.repository == 'leanprover-community/mathlib4' && github.ref_name != 'nightly-testing'
226226
shell: bash
227227
run: |
228228
cd pr-branch

.github/workflows/lake_cache_shadow.yml

Lines changed: 558 additions & 0 deletions
Large diffs are not rendered by default.

Archive/Examples/IfNormalization/Result.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ We add some local simp lemmas so we can unfold the definitions of the normalizat
2424
attribute [local simp] normalized hasNestedIf hasConstantIf hasRedundantIf disjoint vars
2525
List.disjoint
2626

27+
set_option warning.simp.varHead false in
2728
attribute [local simp] apply_ite ite_eq_iff'
2829

2930
variable {b : Bool} {f : ℕ → Bool} {i : ℕ} {t e : IfExpr}

Archive/Examples/IfNormalization/WithoutAesop.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,27 +65,27 @@ def normalize' (l : AList (fun _ : ℕ => Bool)) :
6565
· congr
6666
ext w
6767
by_cases h : w = v
68-
· substs h
68+
· subst h
6969
simp_all
7070
· simp_all
7171
· congr
7272
ext w
7373
by_cases h : w = v
74-
· substs h
74+
· subst h
7575
simp_all
7676
· simp_all
7777
· simp only [cond_true, h, ht₁]
7878
refine ⟨fun _ => ?_, fun _ => ?_⟩
7979
· congr
8080
ext w
8181
by_cases h : w = v
82-
· substs h
82+
· subst h
8383
simp_all
8484
· simp_all
8585
· congr
8686
ext w
8787
by_cases h : w = v
88-
· substs h
88+
· subst h
8989
simp_all
9090
· simp_all
9191
· have := ht₃ v

Archive/Imo/Imo1959Q2.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Copyright (c) 2024 Yury Kudryashov. All rights reserved.
33
Released under Apache 2.0 license as described in the file LICENSE.
44
Authors: Yury Kudryashov
55
-/
6-
import Mathlib.Data.Real.Sqrt
6+
import Mathlib.Analysis.Real.Sqrt
77

88
/-!
99
# IMO 1959 Q2

Archive/Imo/Imo1960Q2.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Copyright (c) 2024 Yury Kudryashov. All rights reserved.
33
Released under Apache 2.0 license as described in the file LICENSE.
44
Authors: Yury Kudryashov
55
-/
6-
import Mathlib.Data.Real.Sqrt
6+
import Mathlib.Analysis.Real.Sqrt
77

88
/-!
99
# IMO 1960 Q2

Archive/Imo/Imo1977Q6.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ theorem imo1977_q6 (f : ℕ+ → ℕ+) (h : ∀ n, f (f n) < f (n + 1)) : ∀ n,
4242
refine imo1977_q6_nat (fun m => if 0 < m then f m.toPNat' else 0) ?_ n
4343
intro x; cases x
4444
· simp
45-
· simpa using h _
45+
· simpa using! h _
4646
simpa

Archive/Imo/Imo1987Q1.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def fixedPointsEquiv' :
8585
theorem main_fintype : ∑ k ∈ range (card α + 1), k * p α k = card α * (card α - 1)! := by
8686
have A : ∀ (k) (σ : fiber α k), card (fixedPoints (↑σ : Perm α)) = k := fun k σ => σ.2
8787
simpa [A, ← Fin.sum_univ_eq_sum_range, -card_ofFinset, Finset.card_univ, card_fixed_points,
88-
mul_comm] using card_congr (fixedPointsEquiv' α)
88+
mul_comm] using! card_congr (fixedPointsEquiv' α)
8989

9090
/-- Main statement for permutations of `Fin n`, a version that works for `n = 0`. -/
9191
theorem main₀ (n : ℕ) : ∑ k ∈ range (n + 1), k * p (Fin n) k = n * (n - 1)! := by

Archive/Imo/Imo1988Q6.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ theorem constant_descent_vieta_jumping (x y : ℕ) {claim : Prop} {H : ℕ →
171171
rw [exceptional_empty, Set.diff_empty]
172172
-- Now we are ready to prove that p' = (c, m_x) lies on the upper branch.
173173
-- We need to check two conditions: H(c, m_x) and c < m_x.
174-
constructor <;> dsimp only
174+
constructor
175175
· -- The first condition is not so hard. After all, c is the other root of the quadratic equation.
176176
rw [H_symm, H_quad]
177177
simpa using h_root

0 commit comments

Comments
 (0)