Skip to content

Commit be5f7ad

Browse files
2 parents 8c9c5ff + d300915 commit be5f7ad

File tree

1,147 files changed

+8874
-3703
lines changed

Some content is hidden

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

1,147 files changed

+8874
-3703
lines changed

.github/workflows/actionlint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,15 @@ jobs:
1717
with:
1818
tool_name: actionlint
1919
fail_level: any
20+
21+
ensure-sha-pinned-actions:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+
27+
# Using our fork's PR branch until upstream merges the improved error reporting:
28+
# https://github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/pull/288
29+
# TODO: Update to upstream release once merged.
30+
- name: Ensure all actions are pinned to SHA
31+
uses: kim-em/github-actions-ensure-sha-pinned-actions@00f51cdb5bbc21f5bc873ef3a2dceef45df213af # improve-error-reporting

.github/workflows/daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ jobs:
314314
reinstall-transient-toolchain: true
315315

316316
- name: Install Rust
317-
uses: dtolnay/rust-toolchain@stable
317+
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
318318

319319
- name: Check Mathlib using nanoda # make sure this name is consistent with "Get job status and URLs" in the notify job
320320
id: nanoda

.github/workflows/nightly-docgen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
rm -rf "$HOME/.cache/mathlib"
1919
2020
- name: Checkout mathlib
21-
uses: actions/checkout@v6.0.2
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
repository: leanprover-community/mathlib4-nightly-testing
2424
ref: nightly-testing-green

.github/workflows/splice_bot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions: {}
99
jobs:
1010
call-splice-bot:
1111
if: ${{ contains(github.event.comment.body, 'splice-bot') }}
12-
uses: leanprover-community/SpliceBot/.github/workflows/splice.yaml@master
12+
uses: leanprover-community/SpliceBot/.github/workflows/splice.yaml@fdb442693d6f613b25d2599ad64fd87cf019b9ce # master
1313
with:
1414
# Optional override; omit to use the reusable workflow's default "master"
1515
base_ref: master

.github/workflows/splice_bot_wf_run.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions: {}
1010
jobs:
1111
run-reusable:
1212
if: ${{ github.event.workflow_run.conclusion == 'success' }}
13-
uses: leanprover-community/SpliceBot/.github/workflows/splice_wf_run.yaml@master
13+
uses: leanprover-community/SpliceBot/.github/workflows/splice_wf_run.yaml@fdb442693d6f613b25d2599ad64fd87cf019b9ce # master
1414
with:
1515
source_workflow: ${{ github.event.workflow_run.name }}
1616
push_to_fork: leanprover-community/mathlib4_copy

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
.cache
55
# `lake` stores its files here:
66
.lake
7+
# Python bytecode cache from scripts/
8+
scripts/__pycache__/
9+
# Progress file from scripts/rm_set_option.py
10+
scripts/.rm_set_option_progress.jsonl

Archive/Imo/Imo1961Q3.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ website.
2121

2222
open Real
2323

24-
set_option backward.isDefEq.respectTransparency false in
2524
theorem Imo1961Q3 {n : ℕ} {x : ℝ} (h₀ : n ≠ 0) :
2625
(cos x) ^ n - (sin x) ^ n = 1
2726
(∃ k : ℤ, k * π = x) ∧ Even n ∨ (∃ k : ℤ, k * (2 * π) = x) ∧ Odd n ∨

Archive/Imo/Imo1972Q5.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Problem: `f` and `g` are real-valued functions defined on the real line. For all
1414
Prove that `|g(x)| ≤ 1` for all `x`.
1515
-/
1616

17-
set_option backward.isDefEq.respectTransparency false in
1817
/--
1918
This proof begins by introducing the supremum of `f`, `k ≤ 1` as well as `k' = k / ‖g y‖`. We then
2019
suppose that the conclusion does not hold (`hneg`) and show that `k ≤ k'` (by
@@ -71,7 +70,6 @@ theorem imo1972_q5 (f g : ℝ → ℝ) (hf1 : ∀ x, ∀ y, f (x + y) + f (x - y
7170
k' < k := H₁
7271
_ ≤ k' := H₂
7372

74-
set_option backward.isDefEq.respectTransparency false in
7573
/-- IMO 1972 Q5
7674
7775
Problem: `f` and `g` are real-valued functions defined on the real line. For all `x` and `y`,

Archive/Imo/Imo1982Q1.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ namespace IsGood
5555
variable {f : ℕ+ → ℕ} (hf : IsGood f)
5656
include hf
5757

58-
set_option backward.isDefEq.respectTransparency false in
5958
lemma f₁ : f 1 = 0 := by
6059
have h : f 2 = 2 * f 1 ∨ f 2 = 2 * f 1 + 1 := by rw [two_mul]; exact hf.rel 1 1
6160
obtain h₁ | h₂ := hf.f₂ ▸ h

Archive/Imo/Imo1988Q6.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ end Imo1988Q6
188188

189189
open Imo1988Q6
190190

191-
set_option backward.isDefEq.respectTransparency false in
192191
/-- Question 6 of IMO1988. If a and b are two natural numbers
193192
such that a*b+1 divides a^2 + b^2, show that their quotient is a perfect square. -/
194193
theorem imo1988_q6 {a b : ℕ} (h : a * b + 1 ∣ a ^ 2 + b ^ 2) :
@@ -245,7 +244,6 @@ theorem imo1988_q6 {a b : ℕ} (h : a * b + 1 ∣ a ^ 2 + b ^ 2) :
245244
· -- There is no base case in this application of Vieta jumping.
246245
simp
247246

248-
set_option backward.isDefEq.respectTransparency false in
249247
/-
250248
The following example illustrates the use of constant descent Vieta jumping
251249
in the presence of a non-trivial base case.

0 commit comments

Comments
 (0)