We are considering removing `.` as an alternative for `·` in the lambda dot notation (e.g., `(·+·)`). Reasons: - `.` is not a perfect replacement for `·` (e.g., `(·.insert ·)`) - `.` is too overloaded: `(f.x)` and `(f .x)` and `(f . x)`. We want to keep the first two.
17 lines
255 B
Text
17 lines
255 B
Text
structure A where
|
|
x : Nat := 0
|
|
y : Nat := 0
|
|
f : Nat → Nat := (· + 10)
|
|
|
|
structure B extends A where
|
|
z : Nat
|
|
|
|
structure C extends A where
|
|
w : Nat
|
|
|
|
set_option structureDiamondWarning false
|
|
|
|
structure D extends B, C where
|
|
a : Nat
|
|
|
|
#print D.toC
|