Stacked pillow refinement
Lax919488.StackedPillows · concepts/Lax919488/StackedPillows.lean · lax-919488
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
Insert pillows at each face gluing. Each pillow consists of two -simplices paired along the facets containing vertex . Their opposite facets attach to their two neighbors. Seam is the gluing after the first pillows. The two end seams use the frames of the old gluing. With the construction recovers the original face pairings.
Concept map
In the paper
- page 5 of this submission's paper
Lean source view on GitHub
| 1 | import Lax919488.FacePairings |
| 2 | import Mathlib.Data.Nat.Log |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Stacked pillow refinement |
| 7 | type: definition |
| 8 | --- |
| 9 | Insert pillows at each face gluing. Each pillow consists of two |
| 10 | -simplices paired along the facets containing vertex . Their |
| 11 | opposite facets attach to their two neighbors. Seam is the gluing after |
| 12 | the first pillows. The two end seams use the frames of the old gluing. |
| 13 | With the construction recovers the original face pairings. |
| 14 | -/ |
| 15 | |
| 16 | namespace Lax919488.StackedPillows |
| 17 | |
| 18 | open FacePairings |
| 19 | |
| 20 | abbrev Cell (V E : Type) (s : ℕ) := V ⊕ (E × Fin (2*s)) |
| 21 | abbrev Joint (d : ℕ) (E : Type) (s : ℕ) := E × (Fin (s+1) ⊕ (Fin s × Fin d)) |
| 22 | |
| 23 | def leftHalf {s : ℕ} (j : Fin s) : Fin (2*s) := ⟨2*j.val, by omega⟩ |
| 24 | def rightHalf {s : ℕ} (j : Fin s) : Fin (2*s) := ⟨2*j.val+1, by omega⟩ |
| 25 | |
| 26 | def originalSide {d s : ℕ} {V E : Type} (a : Side d V) : Side d (Cell V E s) := |
| 27 | ⟨.inl a.cell, a.frame⟩ |
| 28 | |
| 29 | def 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 | |
| 36 | def 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. -/ |
| 44 | def layers (n : ℕ) := 2 * Nat.clog 2 n - 1 |
| 45 | |
| 46 | /-- A zero-dimensional triangulation needs no pillows. -/ |
| 47 | def depth (d n : ℕ) := if d = 0 then 0 else layers n |
| 48 | |
| 49 | /-- The shorter stacks used for the leading constant in the abstract. -/ |
| 50 | def shortLayers (d n : ℕ) := if d ≤ 1 ∨ n ≤ 5 then 0 else Nat.clog 2 n |
| 51 | |
| 52 | end Lax919488.StackedPillows |
| 53 |
Builds on
From Mathlib
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments