cfahlgren1/math / lean /OAI /Combinatorics /Chromatic /Walls /ComparisonRefinement.lean
cfahlgren1's picture
download
raw
7.26 kB
import Mathlib
import OAI.Combinatorics.Chromatic.GradedAlgebra.PureComparisonIdentification
namespace OAI
section
namespace ElementaryPositivity.RationalFiber
open QuantumTorus PowerSeries
noncomputable section
variable {K M : Type*} [Field K] [AddCommGroup M]
variable (v : Kˣ) (Ω : M →+ M →+ ℤ) (hΩ : ∀m,Ω m m=0)
variable (δ k : M →+ ℤ) (p : M) (hp : k p=1) (B : ℕ)
local instance : Ring (Torus v Ω) := Torus.instRing v Ω
local instance : AddCommMonoid (Torus v Ω) := (Torus.instRing v Ω).toAddCommMonoid
local instance : AddGroup (Torus v Ω) := (Torus.instRing v Ω).toAddGroup
local instance : NonUnitalSemiring (Torus v Ω) := (Torus.instRing v Ω).toNonUnitalSemiring
local instance : NonUnitalNonAssocSemiring (Torus v Ω) :=
(Torus.instRing v Ω).toNonUnitalNonAssocSemiring
inductive CrossingClose (D : ℕ) : ComparisonCrossing v Ω δ k B → ComparisonCrossing v Ω δ k B → Prop where
| pure (b : Bool) : CrossingClose D (.pure b) (.pure b)
| bounded (u w : (biSupportedSubring v Ω δ k)ˣ)
(hf : RegradeBound v Ω δ B u.val.val) (hi : RegradeBound v Ω δ B u.inv.val)
(hf' : RegradeBound v Ω δ B w.val.val) (hi' : RegradeBound v Ω δ B w.inv.val)
(he : ∀n≤B*D,coeff n u.val.val=coeff n w.val.val) :
CrossingClose D (.bounded u hf hi) (.bounded w hf' hi')
lemma CrossingClose.action {D : ℕ} {c c' : ComparisonCrossing v Ω δ k B}
(hc : CrossingClose v Ω δ k B D c c')
(f g : PowerSeries (FiberTorus v (complementOmega k Ω) (complementAlpha k p Ω)))
(hf : ∀n≤D,coeff n f=coeff n g) :
∀d≤D,coeff d (comparisonAction v Ω hΩ δ k p hp B c f)=
coeff d (comparisonAction v Ω hΩ δ k p hp B c' g) := by
cases hc with
| pure b=>
intro d hd
exact comparisonAction_input_congr v Ω hΩ δ k p hp B (.pure b) f g d
(fun n hn=>hf n (hn.trans hd))
| bounded u w hf hi hf' hi' he=>exact bounded_action_congr v Ω hΩ δ k p hp B D u w hf hi hf' hi' he f g ‹_›
lemma bounded_action_trivial (D : ℕ) (u : (biSupportedSubring v Ω δ k)ˣ)
(hf : RegradeBound v Ω δ B u.val.val) (hi : RegradeBound v Ω δ B u.inv.val)
(he : ∀n≤B*D,coeff n u.val.val=coeff n 1)
(f : PowerSeries (FiberTorus v (complementOmega k Ω) (complementAlpha k p Ω))) :
∀d≤D,coeff d (comparisonAction v Ω hΩ δ k p hp B (.bounded u hf hi) f)=coeff d f := by
have H:=bounded_action_congr v Ω hΩ δ k p hp B D u 1 hf hi
(RegradeBound.one v Ω δ B) (RegradeBound.one v Ω δ B) he f f (fun _ _=>rfl)
intro d hd
have HE:=H d hd
change coeff d (comparisonAction v Ω hΩ δ k p hp B (.bounded u hf hi) f)=
coeff d (rationalRegrade v Ω hΩ k p hp δ B 1*f*rationalRegrade v Ω hΩ k p hp δ B 1) at HE
simpa only [rationalRegrade_one,one_mul,mul_one] using HE
inductive WordRefines (D : ℕ) : List (ComparisonCrossing v Ω δ k B) →
List (ComparisonCrossing v Ω δ k B) → Prop where
| nil : WordRefines D [] []
| cons {c c' l l'} (hc : CrossingClose v Ω δ k B D c c') (hl : WordRefines D l l') :
WordRefines D (c::l) (c'::l')
| insert {l l'} (u : (biSupportedSubring v Ω δ k)ˣ)
(hf : RegradeBound v Ω δ B u.val.val) (hi : RegradeBound v Ω δ B u.inv.val)
(he : ∀n≤B*D,coeff n u.val.val=coeff n 1) (hl : WordRefines D l l') :
WordRefines D l (.bounded u hf hi::l')
lemma WordRefines.action {D : ℕ} {l l' : List (ComparisonCrossing v Ω δ k B)}
(hl : WordRefines v Ω δ k B D l l')
(f g : PowerSeries (FiberTorus v (complementOmega k Ω) (complementAlpha k p Ω)))
(hf : ∀n≤D,coeff n f=coeff n g) :
∀d≤D,coeff d (comparisonWordAction v Ω hΩ δ k p hp B l f)=
coeff d (comparisonWordAction v Ω hΩ δ k p hp B l' g) := by
induction hl with
| nil=>exact hf
| cons hc hl ih=>exact hc.action v Ω hΩ δ k p hp B _ _ ih
| insert u hv hi he hl ih=>
intro d hd
rw [ih d hd]
exact (bounded_action_trivial v Ω hΩ δ k p hp B D u hv hi he _ d hd).symm
end
end ElementaryPositivity.RationalFiber
end
section
namespace ElementaryPositivity.RationalFiber
open QuantumTorus PowerSeries
noncomputable section
variable {K M : Type*} [Field K] [AddCommGroup M]
variable (v : Kˣ) (Ω : M →+ M →+ ℤ) (δ k : M →+ ℤ) (B : ℕ)
local instance : Ring (Torus v Ω) := Torus.instRing v Ω
local instance : AddCommMonoid (Torus v Ω) := (Torus.instRing v Ω).toAddCommMonoid
local instance : AddGroup (Torus v Ω) := (Torus.instRing v Ω).toAddGroup
local instance : NonUnitalSemiring (Torus v Ω) := (Torus.instRing v Ω).toNonUnitalSemiring
local instance : NonUnitalNonAssocSemiring (Torus v Ω) :=
(Torus.instRing v Ω).toNonUnitalNonAssocSemiring
inductive CrossingTrivial (N : ℕ) : ComparisonCrossing v Ω δ k B → Prop where
| bounded (u : (biSupportedSubring v Ω δ k)ˣ)
(hf : RegradeBound v Ω δ B u.val.val) (hi : RegradeBound v Ω δ B u.inv.val)
(he : ∀n≤N,coeff n u.val.val=coeff n 1) :
CrossingTrivial N (.bounded u hf hi)
lemma CrossingTrivial.mono {N K : ℕ} {c : ComparisonCrossing v Ω δ k B}
(hc : CrossingTrivial v Ω δ k B N c) (h : K≤N) :
CrossingTrivial v Ω δ k B K c := by
cases hc with
| bounded u hf hi he=>exact .bounded u hf hi (fun n hn=>he n (hn.trans h))
lemma CrossingClose.refl (D : ℕ) (c : ComparisonCrossing v Ω δ k B) :
CrossingClose v Ω δ k B D c c := by
cases c with
| pure b=>exact .pure b
| bounded u hf hi=>exact .bounded u u hf hi hf hi (fun _ _=>rfl)
def orientedBounded (u : (biSupportedSubring v Ω δ k)ˣ)
(hf : RegradeBound v Ω δ B u.val.val) (hi : RegradeBound v Ω δ B u.inv.val)
(b : Bool) : ComparisonCrossing v Ω δ k B :=
if b then .bounded u hf hi else .bounded u⁻¹ hi hf
lemma orientedBounded_trivial (u : (biSupportedSubring v Ω δ k)ˣ)
(hf : RegradeBound v Ω δ B u.val.val) (hi : RegradeBound v Ω δ B u.inv.val)
(b : Bool) (N : ℕ) (he : ∀n≤N,coeff n u.val.val=coeff n 1) :
CrossingTrivial v Ω δ k B N (orientedBounded v Ω δ k B u hf hi b) := by
cases b
· exact .bounded u⁻¹ hi hf (oldUnit_inverse_congr v Ω δ k u 1 N he)
· exact .bounded u hf hi he
lemma CrossingTrivial.insert {D : ℕ} {c : ComparisonCrossing v Ω δ k B}
(hc : CrossingTrivial v Ω δ k B (B*D) c)
{l l' : List (ComparisonCrossing v Ω δ k B)}
(hl : WordRefines v Ω δ k B D l l') :
WordRefines v Ω δ k B D l (c::l') := by
cases hc with
| bounded u hf hi he=>exact .insert u hf hi he hl
lemma filter_word_refines {A : Type*} (keep : A → Bool)
(letter : A → ComparisonCrossing v Ω δ k B) (D : ℕ) (l : List A)
(H : ∀a∈l,keep a=false → CrossingTrivial v Ω δ k B (B*D) (letter a)) :
WordRefines v Ω δ k B D ((l.filter keep).map letter) (l.map letter) := by
induction l with
| nil=>exact .nil
| cons a l ih=>
have ih':=ih (fun a ha=>H a (List.mem_cons_of_mem _ ha))
cases hh : keep a
· simp only [List.filter_cons,hh,List.map_cons]
exact (H a List.mem_cons_self hh).insert v Ω δ k B ih'
· simp only [List.filter_cons,hh,↓reduceIte,List.map_cons]
exact .cons (CrossingClose.refl v Ω δ k B D (letter a)) ih'
end
end ElementaryPositivity.RationalFiber
end
end OAI

Xet Storage Details

Size:
7.26 kB
·
Xet hash:
8355ec99bb330cace9103aeee9a5360a260ef45a1fbf2c54528806ef2bc5ea75

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.