Files
agdaproofs/Graphs/Bipartite.agda
2020-02-23 12:12:53 +00:00

14 lines
657 B
Agda
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{-# OPTIONS --warning=error --safe --without-K #-}
open import LogicalFormulae
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
open import Functions
open import Setoids.Setoids
open import Setoids.Subset
open import Graphs.Definition
module Graphs.Bipartite where
Bipartite : {a b : _} {c : _} {V' : Set a} {V : Setoid {a} {b} V'} (G : Graph c V) Set _
Bipartite {V' = V'} {V = V} G = Sg (V' Set) (λ partition ((x y : V') (Setoid.__ V x y) partition x partition y) & ((x : V') (partition x) || ((partition x) False)) & ((x y : V') (Graph._<->_ G x y) (partition x) ((partition y) False)))