This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
42 lines
609 B
Text
42 lines
609 B
Text
/-!
|
|
# Testing eta reduction for structure instances
|
|
|
|
Implemented in PR #2478 for issue #2451.
|
|
-/
|
|
|
|
set_option pp.structureInstances.flatten false
|
|
|
|
structure A where
|
|
x : Nat
|
|
|
|
structure B extends A
|
|
|
|
structure C extends B
|
|
|
|
structure D extends B
|
|
|
|
def a : A := ⟨ 0 ⟩
|
|
|
|
def b : B := { a with }
|
|
/--
|
|
info: def b : B :=
|
|
have __src := a;
|
|
{ toA := __src }
|
|
-/
|
|
#guard_msgs in #print b
|
|
|
|
def c : C := { a with }
|
|
/--
|
|
info: def c : C :=
|
|
have __src := a;
|
|
{ toB := { toA := __src } }
|
|
-/
|
|
#guard_msgs in #print c
|
|
|
|
def d : D := { c with }
|
|
/--
|
|
info: def d : D :=
|
|
have __src := c;
|
|
{ toB := __src.toB }
|
|
-/
|
|
#guard_msgs in #print d
|