lib.graph-classes.CyclicGraph.md.

Version of Sunday, January 22, 2023, 10:42 PM

Powered by agda version 2.6.2.2-442c76b and pandoc 2.14.0.3


Investigations on graph-theoretical constructions in Homotopy type theory

Jonathan Prieto-Cubides j.w.w. Håkon Robbestad Gylterud

Department of Informatics

University of Bergen, Norway

Cyclic Stuff

  open import lib.graph-families.CycleGraph
  open import lib.graph-families.CycleGraph.RotHom

  record
    CyclicGraph ( : Level) (G : Graph ) : Type (lsuc )
    where
    eta-equality
    constructor cyclic-graph
    field
      φ : Hom G G
      n : 
      is-cyclic :  Path {A = ∑[ H ] (Hom H H)} (G , φ) (Cycle  n , rot  n) 

  _is-cyclic-graph = CyclicGraph

  same-cyclic-graph :  ( : Level) (G : Graph )
      (A-cyclic@(cyclic-graph f n c) : CyclicGraph  G)
      (d :  Path {A = ∑[ H ] (Hom H H)} (G , f) (Cycle  n , rot  n) )
      (cyclic-graph f n d  A-cyclic)
  same-cyclic-graph  G (cyclic-graph f n c) d = ! β
    where
    α : c  d
    α = trunc-is-prop c d
    β : (cyclic-graph f n c)  (cyclic-graph f n d)
    β = ap (cyclic-graph f n) α

  module CyclicGraph-is-set { : Level}{G : Graph }
    where
    ∑s : Type (lsuc )
    ∑s = ∑[ φ  Hom G G ] ∑[ n    ]
          Path {A = ∑[ H ] (Hom H H)} (G , φ) (Cycle  n , rot  n) 

    CyclicGraph-≃-∑s : ∑s  CyclicGraph  G
    CyclicGraph-≃-∑s = qinv-≃
         { (f , n , c)  cyclic-graph f n c})
          ((λ {cset  φ cset , n cset , is-cyclic cset})
          ,  {p  idp}) , λ {p  idp})
        where open CyclicGraph

    ∑s-is-set : isSet ∑s
    ∑s-is-set = ∑-set (Hom-is-set G G)
         f  ∑-set ℕ-is-set  _  prop-is-set truncated-is-prop))

    proof : isSet (CyclicGraph  G)
    proof = ≃-with-a-set-is-set CyclicGraph-≃-∑s ∑s-is-set

  open import foundations.NaturalsType

  instances-have-same-natural
    : ( : Level) (G : Graph )
     (f1 f2 : CyclicGraph  G)
     (CyclicGraph.n f1  CyclicGraph.n f2)
  instances-have-same-natural  G (cyclic-graph f n c) (cyclic-graph g m d)
    = trunc-elim (ℕ-is-set _ _)
       { idp 
      trunc-elim (ℕ-is-set _ _)  {o 
        let helper : Cycle  n  Cycle  m
            helper = π₁ (apply pair-≃-∑ o)
        in Cycle-is-inj  n m helper})
        d}) c


Latest changes

(2022-12-28)(57c278b4) Last updated: 2021-09-16 15:00:00 by jonathan.cubides
(2022-07-06)(d3a4a8cf) minors by jonathan.cubides
(2022-01-26)(4aef326b) [ reports ] added some revisions by jonathan.cubides
(2021-12-20)(049db6a8) Added code of cubical experiments. by jonathan.cubides
(2021-12-20)(961730c9) [ html ] regular update by jonathan.cubides
(2021-12-20)(e0ef9faa) Fixed compilation and format, remove hidden parts by jonathan.cubides
(2021-12-20)(5120e5d1) Added cubical experiment to the master by jonathan.cubides
(2021-12-17)(828fdd0a) More revisions added for CPP by jonathan.cubides
(2021-12-15)(0d6a99d8) Fixed some broken links and descriptions by jonathan.cubides
(2021-12-15)(662a1f2d) [ .gitignore ] add by jonathan.cubides
(2021-12-15)(0630ce66) Minor fixes by jonathan.cubides
(2021-12-13)(04f10eba) Fixed a lot of details by jonathan.cubides
(2021-12-10)(24195c9f) [ .gitignore ] ignore .zip and arxiv related files by jonathan.cubides
(2021-12-09)(538d2859) minor fixes before dinner by jonathan.cubides
(2021-12-09)(36a1a69f) [ planar.pdf ] w.i.p revisions to share on arxiv first by jonathan.cubides