Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

wlog gets slow #806

@cipher1024

Description

@cipher1024

The following code takes ~30s to execute because of wlog

import algebra.module
import data.real.basic
import data.set.intervals

variables {α : Type*}
  [add_comm_group α] [vector_space ℝ α]
  (A : set α) (B : set α) (x : α)

open set

def convex (A : set α) :=
∀ {x y : α} {a b : ℝ}, x ∈ A → y ∈ A → 0 ≤ a → 0 ≤ b → a + b = 1 →
a • x  + b • y ∈ A

lemma convex_Ioo (r s : ℝ): convex (Ioo r s) :=
begin
  intros x y a b hx hy ha hb hab,
  wlog h : x ≤ y using [x y a b, y x b a],
end

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions