Lean 4 · 2
declarations statementsfull
theorem uncapped_gap_le {w : ℝ} {z : Node} {ps : List ℕ} (hp : uncappedAllowed w 2 z ps) :
(terminal w z ps).gap ≤ z.gap := by proof · 8 lines
induction ps generalizing z with
| nil => exact le_rfl
| cons p ps ih =>
obtain ⟨hc,ht⟩ := hp
have hx : 2 < primeExponent w p := (Finset.mem_filter.mp hc).2.1
calc
_ ≤ (step w z p).gap := ih (z:=step w z p) ht
_ ≤ z.gap := sub_le_self _ (by linarith)theorem source_terminal_geometry {B w : ℝ} (hB : 4 ≤ B) (start : Node)
(hi : start.side=.even) (h199 : 199/100 ≤ start.ratio) (h23 : start.ratio ≤ 23/10)
(hc : Consistent start) (hcut : start.cutoff=B) {ps : List ℕ} (hp : uncappedAllowed w 2 start ps) :
Valid (terminal w start ps).side (terminal w start ps).ratio ∧
Consistent (terminal w start ps) ∧ BoundaryDomain (terminal w start ps).side (terminal w start ps).gap ∧
2 < (terminal w start ps).cutoff ∧ (terminal w start ps).cutoff ≤ B ∧
0 < (terminal w start ps).gap ∧ (terminal w start ps).gap ≤ (23/10:ℝ)*B := by proof · 7 lines
obtain ⟨hs,hr,_hBstart,hsize⟩ := source_node_bounds (by linarith : 0 < B) start hi h199 h23 hc hcut
obtain ⟨U,_hU,hpU⟩ := (uncapped_iff_exists_ceiling w 2 start ps).mp hp
refine ⟨terminal_valid hs hpU,terminal_consistent (by norm_num) hr hs hc hpU,
source_boundary_domain hB le_rfl start hi h199 h23 hc hcut hp,
uncapped_cutoff_gt_two (by rw [hcut]; linarith) hp,?_,uncapped_gap_positive (by norm_num) hr hs hp,
(uncapped_gap_le hp).trans hsize⟩
simpa only [hcut] using uncapped_cutoff_le hpOutline
Xet Storage Details
- Size:
- 2.12 kB
- Xet hash:
- ef1b49212ad453b99c235543162db4dcec9ad203cdcf9795b49e11235d4fad0d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.