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.
13 lines
411 B
Text
13 lines
411 B
Text
/-
|
||
Verifies that `let`-bodies are reduced accordingly when trying to construct default fields.
|
||
Fixes `#3146`
|
||
-/
|
||
|
||
def Product (m₁ : Type → Type) (m₂ : Type → Type) (α : Type) := m₁ α × m₂ α
|
||
|
||
instance [Monad m₁] [Monad m₂] : Monad (Product m₁ m₂) where
|
||
pure x := (pure x, pure x)
|
||
bind o f :=
|
||
let y₁ := do f (← o.1) |>.1
|
||
let y₂ := do f (← o.2) |>.2
|
||
(y₁, y₂)
|