Homomorphisms from finite subgraphs #
This file defines the type of finite subgraphs of a SimpleGraph
and proves a compactness result
for homomorphisms to a finite codomain.
Main statements #
SimpleGraph.nonempty_hom_of_forall_finite_subgraph_hom
: If every finite subgraph of a (possibly infinite) graphG
has a homomorphism to some finite graphF
, then there is also a homomorphismG →g F
.
Notations #
→fg
is a module-local variant on →g
where the domain is a finite subgraph of some supergraph
G
.
Implementation notes #
The proof here uses compactness as formulated in nonempty_sections_of_finite_inverse_system
. For
finite subgraphs G'' ≤ G'
, the inverse system finsubgraphHomFunctor
restricts homomorphisms
G' →fg F
to domain G''
.
The subtype of G.subgraph
comprising those subgraphs with finite vertex sets.
Equations
- G.Finsubgraph = { G' : G.Subgraph // G'.verts.Finite }
Instances For
A graph homomorphism from a finite subgraph of G to F.
Equations
- SimpleGraph.FinsubgraphHom G' F = ((↑G').coe →g F)
Instances For
Equations
- SimpleGraph.Finsubgraph.instOrderBot = OrderBot.mk ⋯
Equations
- SimpleGraph.Finsubgraph.instGeneralizedCoheytingAlgebra = Function.Injective.generalizedCoheytingAlgebra (fun (a : { G' : G.Subgraph // G'.verts.Finite }) => ↑a) ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- SimpleGraph.Finsubgraph.instCompletelyDistribLattice = Function.Injective.completelyDistribLattice (fun (a : { G' : G.Subgraph // G'.verts.Finite }) => ↑a) ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
The finite subgraph of G generated by a single vertex.
Equations
- SimpleGraph.singletonFinsubgraph v = ⟨G.singletonSubgraph v, ⋯⟩
Instances For
The finite subgraph of G generated by a single edge.
Equations
- SimpleGraph.finsubgraphOfAdj e = ⟨G.subgraphOfAdj e, ⋯⟩
Instances For
Given a homomorphism from a subgraph to F
, construct its restriction to a sub-subgraph.
Equations
- SimpleGraph.FinsubgraphHom.restrict h f = { toFun := fun (x : ↑(↑G'').verts) => match x with | ⟨v, hv⟩ => f.toFun ⟨v, ⋯⟩, map_rel' := ⋯ }
Instances For
The inverse system of finite homomorphisms.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If every finite subgraph of a graph G
has a homomorphism to a finite graph F
, then there is
a homomorphism from the whole of G
to F
.