Skip to content

Commit c669683

Browse files
committed
chore(Order/Defs/Unbundled): deprecate def AntiSymmetric in favor of class Std.Antisymm (leanprover-community#35025)
1 parent 20fad7b commit c669683

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

Mathlib/Analysis/Convex/Extreme.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ protected theorem IsExtreme.trans (hAB : IsExtreme 𝕜 A B) (hBC : IsExtreme
8989
(hAB.left_mem_of_mem_openSegment hx₁A hx₂A (hBC.subset hxC) hx)
9090
(hAB.right_mem_of_mem_openSegment hx₁A hx₂A (hBC.subset hxC) hx) hxC hx
9191

92-
protected theorem IsExtreme.antisymm : AntiSymmetric (IsExtreme 𝕜 : Set E → Set E → Prop) :=
93-
fun _ _ hAB hBA ↦ Subset.antisymm hBA.1 hAB.1
92+
protected theorem IsExtreme.antisymm : Std.Antisymm (IsExtreme 𝕜 : Set E → Set E → Prop) :=
93+
fun _ _ hAB hBA ↦ Subset.antisymm hBA.1 hAB.1
9494

9595
instance : IsPartialOrder (Set E) (IsExtreme 𝕜) where
9696
refl := IsExtreme.refl 𝕜
9797
trans _ _ _ := IsExtreme.trans
98-
antisymm := IsExtreme.antisymm
98+
__ := IsExtreme.antisymm
9999

100100
theorem IsExtreme.inter (hAB : IsExtreme 𝕜 A B) (hAC : IsExtreme 𝕜 A C) :
101101
IsExtreme 𝕜 A (B ∩ C) := by

Mathlib/ModelTheory/Order.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ instance model_partialOrder [PartialOrder M] [L.OrderedStructure M] :
327327
simp only [partialOrderTheory, Theory.model_insert_iff, Relations.realize_antisymmetric,
328328
relMap_leSymb, Fin.isValue, Matrix.cons_val_zero, Matrix.cons_val_one,
329329
model_preorder, and_true]
330-
exact fun _ _ => le_antisymm
330+
infer_instance
331331

332332
section LinearOrder
333333

@@ -382,8 +382,8 @@ def preorderOfModels [h : M ⊨ L.preorderTheory] : Preorder M where
382382
/-- Any model of a theory of partial orders is a partial order. -/
383383
def partialOrderOfModels [h : M ⊨ L.partialOrderTheory] : PartialOrder M where
384384
__ := L.preorderOfModels M
385-
le_antisymm := Relations.realize_antisymmetric.1 ((Theory.model_iff _).1 h _
386-
(by simp only [partialOrderTheory, Set.mem_insert_iff, true_or]))
385+
le_antisymm := (Relations.realize_antisymmetric.mp <|
386+
Theory.model_iff _ |>.mp h _ <| by simp [partialOrderTheory]).antisymm
387387

388388
/-- Any model of a theory of linear orders is a linear order. -/
389389
def linearOrderOfModels [h : M ⊨ L.linearOrderTheory]

Mathlib/ModelTheory/Semantics.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,9 +967,9 @@ theorem realize_symmetric : M ⊨ r.symmetric ↔ Symmetric fun x y : M => RelMa
967967

968968
@[simp]
969969
theorem realize_antisymmetric :
970-
M ⊨ r.antisymmetric ↔ AntiSymmetric fun x y : M => RelMap r ![x, y] :=
971-
forall_congr' fun _ =>
972-
forall_congr' fun _ => imp_congr realize_rel₂ (imp_congr realize_rel₂ Iff.rfl)
970+
M ⊨ r.antisymmetric ↔ Std.Antisymm fun x y : M => RelMap r ![x, y] := by
971+
refine .trans ?_ ⟨Std.Antisymm.mk, (·.antisymm)⟩
972+
exact forall₂_congr fun _ _ ↦ imp_congr realize_rel₂ <| imp_congr realize_rel₂ .rfl
973973

974974
@[simp]
975975
theorem realize_transitive : M ⊨ r.transitive ↔ Transitive fun x y : M => RelMap r ![x, y] :=

Mathlib/Order/Defs/Unbundled.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def Transitive := ∀ ⦃x y z⦄, x ≺ y → y ≺ z → x ≺ z
188188
def Irreflexive := ∀ x, ¬x ≺ x
189189

190190
/-- `Std.Antisymm` as a definition, suitable for use in proofs. -/
191+
@[deprecated Std.Antisymm (since := "2026-02-09")]
191192
def AntiSymmetric := ∀ ⦃x y⦄, x ≺ y → y ≺ x → x = y
192193

193194
/-- `Std.Total` as a definition, suitable for use in proofs. -/

0 commit comments

Comments
 (0)