open import Paths
open import Spaces::Sphere::S1::Core

def S¹-T³ (p : ) (q : ) (r : ) : 
| base, base, basebase3
| loop i, base, baseline1 i
| base, loop i, baseline2 i
| base, base, loop iline3 i
| base, loop i, loop jface1 i j
| loop i, base, loop jface2 i j
| loop i, loop j, baseface3 i j
| loop i, loop j, loop kfill3 i j k

open data 
| base3
| line1 : base3 = base3
| line2 : base3 = base3
| line3 : base3 = base3
| face1 (i j : I) {  i := line3 j |  j := line2 i }
| face2 (i j : I) {  i := line3 j |  j := line1 i }
| face3 (i j : I) {  i := line2 j |  j := line1 i }
| fill3 (i j k : I) {
  |  i := face1 j k
  |  j := face2 i k
  |  k := face3 i j
}