cfahlgren1's picture
download
raw
778 Bytes
import Mathlib.Data.Fintype.Card
import Mathlib.Data.Finset.Union
namespace OAI
namespace SeymourSecondNeighborhood
variable {V : Type*}
structure IsOriented (r : V → V → Prop) : Prop where
loopless : ∀ v, ¬ r v v
asymmetric : ∀ {u v}, r u v → ¬ r v u
variable [Fintype V] [DecidableEq V]
noncomputable section
def firstNeighbors (r : V → V → Prop) (v : V) : Finset V := by
classical
exact Finset.univ.filter (r v)
def secondNeighbors (r : V → V → Prop) (v : V) : Finset V := by
classical
exact Finset.univ.filter (fun w =>
w ≠ v ∧ ¬ r v w ∧ ∃ u, r v u ∧ r u w)
def GoodVertex (r : V → V → Prop) (v : V) : Prop :=
(firstNeighbors r v).card ≤ (secondNeighbors r v).card
end
end SeymourSecondNeighborhood
end OAI

Xet Storage Details

Size:
778 Bytes
·
Xet hash:
0087dc45ed6c2fc5a92020bea10581b1db61ad77544317e2d67c08a694730729

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.