Skip to content

Commit ee5567b

Browse files
chore: bump mathlib to 73b2611, fix breaking changes (#640)
Bump `mathlib` dependency to [73b2611](leanprover-community/mathlib4@73b2611): chore(Order/Defs/Unbundled): deprecate `def Symmetric` in favor of `class Std.Symm` (#38092) (2026-06-10) Previously at: [8589236](leanprover-community/mathlib4@8589236): chore: move Data/Nat/Lattice to Order (#39990) (2026-06-09) Closes #639 Failure log from the validation run: [download](https://github.com/leanprover-community/downstream-reports/actions/runs/27427486135/artifacts/7596930467) _(link expires after 1 year)_ --- This PR bumps `mathlib` to an identified incompatible (first-known-bad) commit (`73b2611`) so you can reproduce and fix the incompatibility locally by checking out this branch. _Opened automatically by [downstream-reports/track-incompatibility](https://github.com/leanprover-community/downstream-reports) via [this workflow run](https://github.com/leanprover/cslib/actions/runs/27442101619)._ --------- Co-authored-by: mathlib-nightly-testing[bot] <mathlib-nightly-testing[bot]@users.noreply.github.com> Co-authored-by: Chris Henson <chrishenson.net@gmail.com>
1 parent d6c0b90 commit ee5567b

4 files changed

Lines changed: 10 additions & 13 deletions

File tree

Cslib/Foundations/Data/Relation.lean

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ abbrev MJoin (r : α → α → Prop) := Join (ReflTransGen r)
138138
theorem MJoin.refl (a : α) : MJoin r a a := by
139139
use a
140140

141-
theorem MJoin.symm : Symmetric (MJoin r) := Relation.symmetric_join
142-
143141
theorem MJoin.single (h : ReflTransGen r a b) : MJoin r a b := by
144142
use b
145143

@@ -420,7 +418,7 @@ theorem Confluent.toChurchRosser (h : Confluent r) : ChurchRosser r := by
420418
induction h_eqv with
421419
| rel _ b => exists b; grind [ReflTransGen.single]
422420
| refl a => exists a
423-
| symm a b _ ih => exact symmetric_join ih
421+
| symm a b _ ih => exact symm ih
424422
| trans _ _ _ _ _ ih1 ih2 =>
425423
obtain ⟨u, _, hbu⟩ := ih1
426424
obtain ⟨v, hbv, _⟩ := ih2
@@ -681,10 +679,8 @@ abbrev StronglyConfluent (r : α → α → Prop) :=
681679
def Commute (r₁ r₂ : α → α → Prop) := ∀ {x y₁ y₂},
682680
ReflTransGen r₁ x y₁ → ReflTransGen r₂ x y₂ → ∃ z, ReflTransGen r₂ y₁ z ∧ ReflTransGen r₁ y₂ z
683681

684-
theorem Commute.symmetric : Symmetric (@Commute α) := by
685-
intro r₁ r₂ h x y₁ y₂ x_y₁ x_y₂
686-
obtain ⟨_, _, _⟩ := h x_y₂ x_y₁
687-
grind
682+
instance : Std.Symm (@Commute α) where
683+
symm r₁ r₂ h x y₁ y₂ x_y₁ x_y₂ := by grind [h x_y₂ x_y₁]
688684

689685
theorem Commute.toConfluent : Commute r r = Confluent r := rfl
690686

@@ -760,7 +756,7 @@ theorem Commute.join_confluent (c₁ : Confluent r₁) (c₂ : Confluent r₂) (
760756
induction ab generalizing c with
761757
| refl => exists c
762758
| @tail x y ax xy ih =>
763-
have h_comm : Commute (r₁ ⊔ r₂) (r₁ ⊔ r₂) := by apply_rules [join_left, symmetric]
759+
have h_comm : Commute (r₁ ⊔ r₂) (r₁ ⊔ r₂) := by apply_rules [join_left, symm]
764760
obtain ⟨z, xz, cz⟩ := ih ac
765761
obtain ⟨w, yw, zw⟩ := h_comm (.single xy) xz
766762
exact ⟨w, yw, cz.trans zw⟩

Cslib/Languages/LambdaCalculus/LocallyNameless/Untyped/FullBetaEtaConfluence.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ theorem confluent_beta_eta : Confluent (@FullBetaEta Var) := by
9696
apply join_confluent
9797
· exact confluence_beta
9898
· exact stronglyConfluent_eta.toConfluent
99-
exact symmetric stronglyCommute_eta_beta.toCommute
99+
apply symm
100+
exact stronglyCommute_eta_beta.toCommute
100101

101102
end LambdaCalculus.LocallyNameless.Untyped.Term
102103

lake-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"type": "git",
66
"subDir": null,
77
"scope": "leanprover-community",
8-
"rev": "8589236b8b8cc82492e3306df39c0fb308e0523c",
8+
"rev": "73b2611ac34fe053446b21322ee51d19cb27b3e7",
99
"name": "mathlib",
1010
"manifestFile": "lake-manifest.json",
11-
"inputRev": "8589236b8b8cc82492e3306df39c0fb308e0523c",
11+
"inputRev": "73b2611ac34fe053446b21322ee51d19cb27b3e7",
1212
"inherited": false,
1313
"configFile": "lakefile.lean"},
1414
{"url": "https://github.com/leanprover-community/plausible",
@@ -75,7 +75,7 @@
7575
"type": "git",
7676
"subDir": null,
7777
"scope": "leanprover-community",
78-
"rev": "0bbac0a875ac0fd9366cb5bd4211da92d960ac84",
78+
"rev": "5dd219c775e402f818b42cd3997b5cf21017babf",
7979
"name": "batteries",
8080
"manifestFile": "lake-manifest.json",
8181
"inputRev": "main",

lakefile.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ weak.linter.unicodeLinter = false
1818
[[require]]
1919
name = "mathlib"
2020
scope = "leanprover-community"
21-
rev = "8589236b8b8cc82492e3306df39c0fb308e0523c"
21+
rev = "73b2611ac34fe053446b21322ee51d19cb27b3e7"
2222

2323
[[lean_lib]]
2424
name = "Cslib"

0 commit comments

Comments
 (0)