Stacked pillow refinement

Lax919488.StackedPillows · concepts/Lax919488/StackedPillows.lean · lax-919488

definition

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Definition

    Insert ss pillows at each face gluing. Each pillow consists of two dd-simplices paired along the dd facets containing vertex 00. Their opposite facets attach to their two neighbors. Seam jj is the gluing after the first jj pillows. The two end seams use the frames of the old gluing. With s=0s=0 the construction recovers the original face pairings.

    Concept map
    2 concepts; 4 descendants hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    In the paper

    • page 5 of this submission's paper

    Lean source view on GitHub

    1import Lax919488.FacePairings
    2import Mathlib.Data.Nat.Log
    3
    4/-!
    5---
    6title: Stacked pillow refinement
    7type: definition
    8---
    9Insert ss pillows at each face gluing. Each pillow consists of two
    10dd-simplices paired along the dd facets containing vertex 00. Their
    11opposite facets attach to their two neighbors. Seam jj is the gluing after
    12the first jj pillows. The two end seams use the frames of the old gluing.
    13With s=0s=0 the construction recovers the original face pairings.
    14-/
    15
    16namespace Lax919488.StackedPillows
    17
    18open FacePairings
    19
    20abbrev Cell (V E : Type) (s : ℕ) := V ⊕ (E × Fin (2*s))
    21abbrev Joint (d : ℕ) (E : Type) (s : ℕ) := E × (Fin (s+1) ⊕ (Fin s × Fin d))
    22
    23def leftHalf {s : ℕ} (j : Fin s) : Fin (2*s) := ⟨2*j.val, by omega⟩
    24def rightHalf {s : ℕ} (j : Fin s) : Fin (2*s) := ⟨2*j.val+1, by omega⟩
    25
    26def originalSide {d s : ℕ} {V E : Type} (a : Side d V) : Side d (Cell V E s) :=
    27 ⟨.inl a.cell, a.frame⟩
    28
    29def seam {d : ℕ} {V E : Type} (T : Diagram d V E) (s : ℕ) (e : E) (j : Fin (s+1)) :
    30 Bool → Side d (Cell V E s)
    31 | false => if h : j.val = 0 then originalSide (T.side e false)
    32 else ⟨.inr (e,rightHalf ⟨j.val-1,by omega⟩), 1⟩
    33 | true => if h : j.val < s then ⟨.inr (e,leftHalf ⟨j.val,h⟩), 1⟩
    34 else originalSide (T.side e true)
    35
    36def refine {d : ℕ} {V E : Type} (T : Diagram d V E) (s : ℕ) :
    37 Diagram d (Cell V E s) (Joint d E s) where
    38 side
    39 | (e,.inl j), b => seam T s e j b
    40 | (e,.inr (j,i)), b =>
    41 ⟨.inr (e, if b then rightHalf j else leftHalf j), Equiv.swap 0 i.succ⟩
    42
    43/-- The number of pillows in equation (1), truncated at zero. -/
    44def layers (n : ℕ) := 2 * Nat.clog 2 n - 1
    45
    46/-- A zero-dimensional triangulation needs no pillows. -/
    47def depth (d n : ℕ) := if d = 0 then 0 else layers n
    48
    49/-- The shorter stacks used for the leading constant in the abstract. -/
    50def shortLayers (d n : ℕ) := if d ≤ 1 ∨ n ≤ 5 then 0 else Nat.clog 2 n
    51
    52end Lax919488.StackedPillows
    53

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…