Skip to content

Commit 826c27f

Browse files
Marginally generalize checks
1 parent 03a6851 commit 826c27f

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

MathlibTest/Delab/TopologicalSpace.lean

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,30 @@ import Mathlib.Topology.Order
33
open TopologicalSpace
44
open scoped Topology
55

6-
variable (p : ℕ → Prop) (s : Set ℕ)
6+
-- TODO If and when `(try)SynthInstance` in `#check` is fixed, replace `ℕ` and `Prop` with variables
77

8-
-- For unary ops, we check that `induced p inferInstance` triggers the delab and `inferInstance` does not
8+
variable {α : Type*} [TopologicalSpace α] (f : ℕ → α) (p : ℕ → Prop) (s : Set ℕ)
99

10-
/-- info: IsOpen[induced p inferInstance] s ↔ IsOpen s : Prop -/
11-
#guard_msgs(info) in
12-
#check IsOpen[induced p inferInstance] s ↔ IsOpen[inferInstance] s
10+
-- For unary ops, we check that `induced p inferInstance` triggers the delab and `inferInstance` does not
1311

14-
/-- info: IsClosed[induced p inferInstance] s ↔ IsClosed s : Prop -/
12+
/-- info: IsOpen[induced f inferInstance] s ↔ IsOpen s : Prop -/
1513
#guard_msgs(info) in
16-
#check IsClosed[induced p inferInstance] s ↔ IsClosed[inferInstance] s
14+
#check IsOpen[induced f inferInstance] s ↔ IsOpen[inferInstance] s
1715

18-
/-- info: closure[induced p inferInstance] s = closure s : Prop -/
16+
/-- info: IsClosed[induced f inferInstance] s ↔ IsClosed s : Prop -/
1917
#guard_msgs(info) in
20-
#check closure[induced p inferInstance] s = closure[inferInstance] s
18+
#check IsClosed[induced f inferInstance] s ↔ IsClosed[inferInstance] s
2119

22-
/-- info: Continuous[induced p inferInstance, inferInstance] p ↔ Continuous[inferInstance, coinduced p inferInstance] p : Prop -/
20+
/-- info: closure[induced f inferInstance] s = closure s : Prop -/
2321
#guard_msgs(info) in
24-
#check Continuous[induced p inferInstance, inferInstance] p ↔ Continuous[inferInstance, coinduced p inferInstance] p
22+
#check closure[induced f inferInstance] s = closure[inferInstance] s
2523

26-
-- For binary ops, we check that `(co)induced p inferInstance` in either or both slots triggers the delab
24+
-- For binary ops, we check that `(co)induced f inferInstance` in either or both slots triggers the delab
2725
-- and `inferInstance` in both slots does not
2826

29-
/-- info: Continuous[induced p inferInstance, inferInstance] p ↔ Continuous[inferInstance, coinduced p inferInstance] p : Prop -/
27+
/-- info: Continuous[induced f inferInstance, inferInstance] f ↔ Continuous[inferInstance, coinduced f inferInstance] f : Prop -/
3028
#guard_msgs(info) in
31-
#check Continuous[induced p inferInstance, inferInstance] p ↔ Continuous[inferInstance, coinduced p inferInstance] p
29+
#check Continuous[induced f inferInstance, inferInstance] f ↔ Continuous[inferInstance, coinduced f inferInstance] f
3230

3331
/-- info: Continuous[induced p inferInstance, coinduced p inferInstance] p ↔ Continuous p : Prop -/
3432
#guard_msgs(info) in

0 commit comments

Comments
 (0)