introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
5.13 kB
import OAI.AlgebraicGeometry.CharacterVarieties.Frames.FramedFlags
namespace OAI
noncomputable section
namespace IntegralCharacterVarieties.SurfacePresentation.Diagram
open scoped Classical Matrix
open OccurrenceIncidence VertexTable MatrixExpression NamedBandGrades HomTransport
/-- Frame values depend only on the ports and ranks, hence are unchanged by the
choice of boundary enumeration. -/
lemma frameValues_canonical {F S V K : Type} {arity : S β†’ β„•}
[CommRing K] [Finite S] (D : Diagram F S V arity)
(frames : D.PortFrames (R:=K)) (s : S) (b : Bool) :
D.frameValues frames s b =
(SurfacePresentation.fromPorts D.ports D.rank D.genus D.seamRank).frameValues frames s b := rfl
/-- A frame generator evaluates in the canonical boundary presentation using the
same port frame. -/
lemma valuesFromPorts_frame_canonical {F S V K : Type} {arity : S β†’ β„•}
[CommRing K] [Finite S] (D : Diagram F S V arity)
(frames : D.PortFrames (R:=K)) (side : D.SideValues (R:=K))
(handle : D.HandleValues (R:=K)) (s : S) (b : Bool) :
D.valuesFromPorts frames side handle (.frame s b) =
(SurfacePresentation.fromPorts D.ports D.rank D.genus D.seamRank).frameValues frames s b := rfl
/-- Evaluating and reindexing a frame does not depend on the boundary enumeration. -/
lemma valuesFromPorts_frameCoordinates_canonical {F S V K Ξ± Ξ² : Type} {arity : S β†’ β„•}
[CommRing K] [Finite S] [Fintype Ξ±] [Fintype Ξ²] (D : Diagram F S V arity)
(frames : D.PortFrames (R:=K)) (side : D.SideValues (R:=K))
(handle : D.HandleValues (R:=K)) (s : S) (b : Bool)
(e : Ξ± ≃ Fin (D.seamDim s)) (f : Ξ² ≃ Fin (D.seamDim s)) :
((MatrixIso.unit (D.valuesFromPorts frames side handle (.frame s b))).reindex e f).linearEquiv =
((MatrixIso.unit ((SurfacePresentation.fromPorts D.ports D.rank D.genus D.seamRank).frameValues
frames s b)).reindex e f).linearEquiv := rfl
/-- The evaluated parent coordinates use only the port and rank data. -/
lemma valuesFromPorts_parentCoordinates_canonical {F S V K R Ξ± : Type} {arity : S β†’ β„•}
[CommRing K] [CommRing R] [Finite S] [Fintype Ξ±] (D : Diagram F S V arity)
(frames : D.PortFrames (R:=K)) (side : D.SideValues (R:=K))
(handle : D.HandleValues (R:=K)) (s : S) (Ο† : R β†’+* K)
(e : Ξ± ≃ Fin (D.seamDim s)) :
((MatrixIso.unit ((D.parentWord s).eval Ο† (D.valuesFromPorts frames side handle))).reindex e e).linearEquiv =
((MatrixIso.unit (((SurfacePresentation.fromPorts D.ports D.rank D.genus D.seamRank).parentWord s).eval Ο†
((SurfacePresentation.fromPorts D.ports D.rank D.genus D.seamRank).valuesFromPorts
frames side handle))).reindex e e).linearEquiv := by
unfold parentWord
erw [Term.eval_cast_unit Ο† (D.valuesFromPorts frames side handle) (D.seamRank s), Term.eval_cast_unit Ο† ((SurfacePresentation.fromPorts D.ports D.rank D.genus D.seamRank).valuesFromPorts frames side handle) (D.seamRank s)]
rfl
/-- The evaluated inverse child coordinates use only the port and rank data. -/
lemma valuesFromPorts_childCoordinates_canonical {F S V K R Ξ± : Type} {arity : S β†’ β„•}
[CommRing K] [CommRing R] [Finite S] [Fintype Ξ±] (D : Diagram F S V arity)
(frames : D.PortFrames (R:=K)) (side : D.SideValues (R:=K))
(handle : D.HandleValues (R:=K)) (s : S) (Ο† : R β†’+* K)
(e : Ξ± ≃ Fin (D.seamDim s)) :
((MatrixIso.unit ((Term.block (D.childDim s) (fun j => Term.inv (D.childWord s j))).eval Ο†
(D.valuesFromPorts frames side handle))).reindex e e).linearEquiv =
((MatrixIso.unit ((Term.block
((SurfacePresentation.fromPorts D.ports D.rank D.genus D.seamRank).childDim s)
(fun j => Term.inv ((SurfacePresentation.fromPorts D.ports D.rank D.genus D.seamRank).childWord s j))).eval Ο†
((SurfacePresentation.fromPorts D.ports D.rank D.genus D.seamRank).valuesFromPorts
frames side handle))).reindex e e).linearEquiv := rfl
/-- Child coordinates for values induced by ports and side transports. -/
lemma valuesFromPorts_childWord_coordinates
{F S V R K : Type} {arity : S β†’ β„•} [CommRing R] [Field K]
(D : Diagram F S V arity) (s : S) (Ο† : R β†’+* K)
(frames : D.PortFrames (R:=K)) (side : D.SideValues (R:=K))
(handle : D.HandleValues (R:=K)) {m : β„•} (d : Fin m β†’ β„•)
(c : Fin m ≃ Fin (arity s)) (hc : βˆ€ i,d i=D.childDim s (c i))
(old : (i : Fin m) β†’ (Matrix (Fin (d i)) (Fin (d i)) K)Λ£)
(ho : βˆ€ i,rebaseUnit (hc i).symm (side ⟨s,some (c i)⟩)=old i)
(e : ((i : Fin m) Γ— Fin (d i)) ≃ Fin (D.seamDim s))
(he : e=(Equiv.sigmaCongr c (fun i=>finCongr (hc i))).trans
(blockIndex (D.childDim s)).symm) :
((MatrixIso.unit ((Term.block (D.childDim s)
(fun j => Term.inv (D.childWord s j))).eval Ο†
(D.valuesFromPorts frames side handle))).reindex e e).linearEquiv=
(MatrixIso.block (fun i=>MatrixIso.unit (old i)⁻¹)).linearEquiv := by
exact D.childWord_coordinates s Ο† (D.valuesFromPorts frames side handle)
d c hc old ho e he
end IntegralCharacterVarieties.SurfacePresentation.Diagram
end
end OAI