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.
19 lines
575 B
Text
19 lines
575 B
Text
section Mathlib.Order.Monotone.Defs
|
||
|
||
variable {α β : Type} [LT α] [LE α] [LE β] {f : α → β} {a b : α}
|
||
|
||
def Monotone (f : α → β) : Prop := ∀ ⦃a b⦄, a ≤ b → f a ≤ f b
|
||
|
||
theorem Monotone.imp (hf : Monotone f) (h : a ≤ b) : f a ≤ f b := sorry
|
||
|
||
theorem monotone_iff_forall_lt : Monotone f ↔ ∀ ⦃a b⦄, a < b → f a ≤ f b := sorry
|
||
|
||
end Mathlib.Order.Monotone.Defs
|
||
|
||
#guard_msgs (drop error) in
|
||
theorem pow_self_mono : Monotone fun n : Nat ↦ n ^ n := by
|
||
grind -verbose [
|
||
monotone_iff_forall_lt,
|
||
Monotone.imp,
|
||
Nat.lt_pow_self
|
||
]
|