Skip to content

Commit d842eb7

Browse files
committed
Scope the notation for value, restrict, range
1 parent 192d7df commit d842eb7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Foundation/FirstOrder/SetTheory/Function.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ noncomputable def value (f x : V) : V := {z ∈ ⋃ˢ range f ; ∃ y, z ∈ y
383383
-- noncomputable def value {X Y : V} (f x : V) (hf : f ∈ Y ^ X) (hx : x ∈ X) : V := Classical.choose! ((mem_function_iff.mp hf).2 x hx)
384384

385385
/-- If `x` is in `domain f`, then `f ‘ x` is the value of `f` at `x`, else it is `∅`.-/
386-
notation f:arg " ‘ " x:arg => value f x
386+
scoped notation f:arg " ‘ " x:arg => value f x
387387

388388
def value.dfn : Semisentence ℒₛₑₜ 3 := f“v f x. ∀ z, z ∈ v ↔ z ∈ !sUnion.dfn (!range.dfn f) ∧ ∃ y, z ∈ y ∧ !kpair.dfn x y ∈ f”
389389

@@ -409,7 +409,7 @@ lemma value_mem_range (f x : V) {X Y : V} {hf : f ∈ Y ^ X} {hx : x ∈ X} : f
409409
noncomputable def restrict (R A : V) : V := R ∩ (A ×ˢ range R)
410410

411411
/-- Restricting the domain of a relation -/
412-
notation R:arg " ↾ " A:arg => restrict R A
412+
scoped notation R:arg " ↾ " A:arg => restrict R A
413413

414414
def restrict.dfn : Semisentence ℒₛₑₜ 3 := f“r R A. r = !inter.dfn R (!prod.dfn A (!range.dfn R))”
415415

@@ -433,7 +433,7 @@ lemma domain_restrict_eq (R A : V) : domain (R ↾ A) = domain R ∩ A := by
433433
noncomputable def image (R A : V) : V := range (restrict R A)
434434

435435
/-- Image of a set under a relation -/
436-
notation R:arg " “ " A:arg => restrict R A
436+
scoped notation R:arg " “ " A:arg => restrict R A
437437

438438
def image.dfn : Semisentence ℒₛₑₜ 3 := f“B R A. B = !range.dfn (!restrict.dfn R A)”
439439

0 commit comments

Comments
 (0)