Download data/lean/OAI/Geometry/BallPacking/Layers/LayerBallEmbedding.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 16.4 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Layers/LayerBallEmbedding.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/BallPacking/Layers/LayerBallEmbedding.lean
-
curl -L -o LayerBallEmbedding.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Layers/LayerBallEmbedding.lean
16.4 kB
| import Mathlib | |
| import OAI.Geometry.BallPacking.Layers.SmoothFormTransport | |
| namespace OAI | |
| noncomputable section | |
| namespace PackingSufficiencySupport.Hamiltonian | |
| section | |
| open scoped ContDiff Topology BigOperators | |
| open Set Function | |
| variable {ΞΉ : Type*} [Fintype ΞΉ] [DecidableEq ΞΉ] | |
| def splitCapacityBall (r : β) : Set (Plane Γ PlanePhase ΞΉ) := | |
| {z | radialArea z.1 + β i, planeMoments z.2 i β€ r} | |
| private theorem inverse_layer_product_pullback {F : (ΞΉ β β) β β} | |
| {g : Plane Γ PlanePhase ΞΉ β Plane Γ PlanePhase ΞΉ} | |
| {fβ : Plane Γ PlanePhase ΞΉ β β} | |
| (hF : ContDiff β β F) (hf : ContDiff β β fβ) | |
| {U W : Set (Plane Γ PlanePhase ΞΉ)} (hU : IsOpen U) (hW : IsOpen W) | |
| (hg : ContDiffOn β β g W) (hr : β y β W, g y β U β§ layerChart F fβ (g y) = y) | |
| {q : Plane ββ Plane} (hqs : ContDiff β β q) | |
| (hqform : β x v w, planarArea (fderiv β q x v) (fderiv β q x w) = planarArea v w) | |
| {z : Plane Γ PlanePhase ΞΉ} (hz : planarProduct q z β W) (v w : Plane Γ PlanePhase ΞΉ) : | |
| layerForm F fβ ((g β planarProduct q) z) | |
| (fderiv β (g β planarProduct q) z v) (fderiv β (g β planarProduct q) z w) = | |
| productForm phaseArea v w := by | |
| exact inverse_chart_composition_pullback | |
| (E := Plane Γ PlanePhase ΞΉ) (f := layerChart F fβ) (g := g) | |
| (q := (planarProduct q : Plane Γ PlanePhase ΞΉ β Plane Γ PlanePhase ΞΉ)) | |
| (U := U) (W := W) hU hW | |
| (layerChart_smooth hF hf).contDiffOn hg hr (layerForm F fβ) (productForm phaseArea) | |
| (fun x _ u t => layerChart_pullback hF hf x u t) (planarProduct_smooth (E := PlanePhase ΞΉ) (q := q) hqs) | |
| (fun x u t => planarProduct_pullback (E := PlanePhase ΞΉ) (q := q) hqs hqform (phaseArea (ΞΉ := ΞΉ)) x u t) hz v w | |
| theorem exists_ball_in_layer {F : (ΞΉ β β) β β} {f : Plane Γ PlanePhase ΞΉ β β} | |
| (hF : ContDiff β β F) (hf : ContDiff β β f) | |
| {V : Set (ΞΉ β β)} (hV : IsOpen (planeMoments β»ΒΉ' V)) {a b : β} (hab : a < b) | |
| (H : (ΞΉ β β) β β) | |
| (hderiv : β T β Ioo (0:β) 1, β v, planeMoments v β V β β s β Ioo a b, | |
| 0 < deriv (fun r => f ((r,T),v)) s) | |
| (hlo : β T β Ioo (0:β) 1, β v, planeMoments v β V β f ((a,T),v) = 0) | |
| (hhi : β T β Ioo (0:β) 1, β v, planeMoments v β V β H (planeMoments v) < f ((b,T),v)) | |
| {r r' : β} (hr' : 0 β€ r') (hrr : r' < r) | |
| (hsimplex : β p : ΞΉ β β, (β i, 0 β€ p i) β (β i, p i) β€ r' β p β V) | |
| (hheight : β p : ΞΉ β β, (β i, 0 β€ p i) β p β V β r-β i, p i β€ H p) : | |
| β (N : Set (Plane Γ PlanePhase ΞΉ)) (Ο : Plane Γ PlanePhase ΞΉ β Plane Γ PlanePhase ΞΉ), | |
| IsOpen N β§ splitCapacityBall r' β N β§ ContDiffOn β β Ο N β§ | |
| Topology.IsEmbedding (fun z : N => Ο z) β§ | |
| (β z β N, Ο z β (Ioo a b ΓΛ’ Ioo (0:β) 1) ΓΛ’ (planeMoments β»ΒΉ' V)) β§ | |
| (β z β N, β v w, layerForm F f (Ο z) (fderiv β Ο z v) (fderiv β Ο z w) = | |
| productForm phaseArea v w) := by | |
| let U := (Ioo a b ΓΛ’ Ioo (0:β) 1) ΓΛ’ (planeMoments β»ΒΉ' V) | |
| have hU : IsOpen U := (isOpen_Ioo.prod isOpen_Ioo).prod hV | |
| obtain β¨W,g,hW,hg,himage,ha,hl,hrβ© := layerChart_inverse hF hf hV hab H hderiv hlo hhi | |
| let Ξ΄ := (r-r')/2 | |
| have hΞ΄ : 0 < Ξ΄ := by dsimp [Ξ΄]; linarith | |
| have hΞ΄r : r'+Ξ΄ < r := by dsimp [Ξ΄]; linarith | |
| obtain β¨q,hqs,_,hqform,hqboundβ© := exists_thin_planar_embedding hr' hΞ΄ | |
| let Q : (Plane Γ PlanePhase ΞΉ) ββ (Plane Γ PlanePhase ΞΉ) := planarProduct q | |
| have hQ : ContDiff β β Q := planarProduct_smooth hqs | |
| let N := Q β»ΒΉ' W | |
| let Ο := g β Q | |
| have hN : IsOpen N := hW.preimage Q.continuous | |
| have hball : splitCapacityBall r' β N := by | |
| intro z hz | |
| have hsum : 0 β€ β i, planeMoments z.2 i := | |
| Finset.sum_nonneg (fun i _ => planeMoments_nonneg z.2 i) | |
| have hz' : radialArea z.1 + β i, planeMoments z.2 i β€ r' := hz | |
| have hrad : radialArea z.1 β€ r' := by linarith | |
| have hps : (β i, planeMoments z.2 i) β€ r' := by linarith [radialArea_nonneg z.1] | |
| have hpV := hsimplex (planeMoments z.2) (planeMoments_nonneg z.2) hps | |
| have hqb := hqbound z.1 hrad | |
| apply ha (Q z) hqb.2.2 hpV hqb.1 | |
| change (q z.1).1 < H (planeMoments z.2) | |
| have hh := hheight (planeMoments z.2) (planeMoments_nonneg z.2) hpV | |
| linarith [hqb.2.1] | |
| have hsΟ : ContDiffOn β β Ο N := hg.comp hQ.contDiffOn (fun _ hz => hz) | |
| have hge : Topology.IsEmbedding (fun y : W => g y) := | |
| inverse_chart_isEmbedding (layerChart_smooth hF hf).continuous.continuousOn | |
| hg.continuousOn himage.symm hl hr | |
| let j : N β W := fun z => β¨Q z,z.propertyβ© | |
| have hje : Topology.IsEmbedding j := | |
| (Q.isEmbedding.comp Topology.IsEmbedding.subtypeVal).codRestrict W (fun z => z.property) | |
| refine β¨N,Ο,hN,hball,hsΟ,hge.comp hje,?_,?_β© | |
| Β· intro z hz | |
| exact (hr (Q z) hz).1 | |
| Β· intro z hz v w | |
| exact inverse_layer_product_pullback hF hf hU hW hg hr hqs hqform hz v w | |
| end | |
| section | |
| open scoped ContDiff Topology BigOperators | |
| open Set Function | |
| def complexSplitPhaseLinear (m : β) : Ambient (m+1) ββ[β] Plane Γ PlanePhase (Fin m) where | |
| toFun z := (((z 0).re,(z 0).im),fun j => ((z j.succ).re,(z j.succ).im)) | |
| invFun p := Fin.cons (β¨p.1.1,p.1.2β© : β) (fun j => (β¨(p.2 j).1,(p.2 j).2β© : β)) | |
| left_inv z := by funext i; exact Fin.cases rfl (fun j => rfl) i | |
| right_inv p := rfl | |
| map_add' _ _ := rfl | |
| map_smul' a z := by | |
| ext <;> simp [Pi.smul_apply] | |
| def complexSplitPhase (m : β) : Ambient (m+1) βL[β] Plane Γ PlanePhase (Fin m) := | |
| (complexSplitPhaseLinear m).toContinuousLinearEquiv | |
| @[simp] theorem complexSplitPhase_apply (m : β) (z : Ambient (m+1)) : | |
| complexSplitPhase m z=(((z 0).re,(z 0).im),fun j => ((z j.succ).re,(z j.succ).im)) := rfl | |
| theorem complexSplitPhase_capacity (m : β) (z : Ambient (m+1)) : | |
| radialArea (complexSplitPhase m z).1 + β j,planeMoments (complexSplitPhase m z).2 j = capacity z := by | |
| simp only [complexSplitPhase_apply,radialArea,radiusSq,planeMoments,capacity,Fin.sum_univ_succ, | |
| Complex.normSq_apply,Finset.mul_sum,mul_add,pow_two] | |
| theorem complexSplitPhase_form (m : β) (v w : Ambient (m+1)) : | |
| productForm phaseArea (complexSplitPhase m v) (complexSplitPhase m w)=standardForm v w := by | |
| simp only [productForm_apply,phaseArea_apply,complexSplitPhase_apply,standardForm,Fin.sum_univ_succ] | |
| rfl | |
| @[simp] theorem complexSplitPhase_preimage_ball (m : β) (r : β) : | |
| complexSplitPhase m β»ΒΉ' splitCapacityBall r=closedBall (m+1) r := by | |
| ext z | |
| change radialArea (complexSplitPhase m z).1+β j,planeMoments (complexSplitPhase m z).2 j β€ r β capacity z β€ r | |
| rw [complexSplitPhase_capacity] | |
| theorem complex_ball_of_split_embedding {m : β} {r : β} | |
| {Ξ© : Plane Γ PlanePhase (Fin m) β (Plane Γ PlanePhase (Fin m)) βL[β] | |
| (Plane Γ PlanePhase (Fin m)) βL[β] β} | |
| {N : Set (Plane Γ PlanePhase (Fin m))} {Ο : Plane Γ PlanePhase (Fin m) β Plane Γ PlanePhase (Fin m)} | |
| (hN : IsOpen N) (hball : splitCapacityBall r β N) (hs : ContDiffOn β β Ο N) | |
| (he : Topology.IsEmbedding (fun z : N => Ο z)) | |
| (hform : β z β N,β v w,Ξ© (Ο z) (fderiv β Ο z v) (fderiv β Ο z w)=productForm phaseArea v w) : | |
| β U : Set (Ambient (m+1)),IsOpen U β§ closedBall (m+1) r β U β§ | |
| ContDiffOn β β (Ο β complexSplitPhase m) U β§ | |
| Topology.IsEmbedding (fun z : U => Ο (complexSplitPhase m z)) β§ | |
| (β z β U,Ο (complexSplitPhase m z)βΟ '' N) β§ | |
| β z β U,β v w,Ξ© (Ο (complexSplitPhase m z)) | |
| (fderiv β (Ο β complexSplitPhase m) z v) (fderiv β (Ο β complexSplitPhase m) z w)=standardForm v w := by | |
| let e := complexSplitPhase m | |
| let U := e β»ΒΉ' N | |
| have hU : IsOpen U := hN.preimage e.continuous | |
| have hm : MapsTo e U N := fun _ hz => hz | |
| let j : U β N := fun z => β¨e z,z.propertyβ© | |
| have hj : Topology.IsEmbedding j := | |
| (e.toHomeomorph.isEmbedding.comp Topology.IsEmbedding.subtypeVal).codRestrict N (fun z => z.property) | |
| refine β¨U,hU,?_,hs.comp e.contDiff.contDiffOn hm,he.comp hj,?_,?_β© | |
| Β· intro z hz | |
| apply hball | |
| have hz' : zβe β»ΒΉ' splitCapacityBall r := by | |
| simpa only [e,complexSplitPhase_preimage_ball] using hz | |
| exact hz' | |
| Β· intro z hz | |
| exact mem_image_of_mem Ο hz | |
| Β· intro z hz v w | |
| have hd := fderiv_comp z | |
| ((hs.contDiffAt (hN.mem_nhds hz)).differentiableAt (by simp)) e.differentiableAt | |
| rw [hd,e.fderiv] | |
| change Ξ© (Ο (e z)) (fderiv β Ο (e z) (e v)) (fderiv β Ο (e z) (e w))=standardForm v w | |
| rw [hform (e z) hz,complexSplitPhase_form] | |
| end | |
| section | |
| open scoped ContDiff Topology | |
| open Set Function | |
| variable {E F Q : Type*} [NormedAddCommGroup E] [NormedSpace β E] [CompleteSpace E] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| [NormedAddCommGroup Q] [NormedSpace β Q] [CompleteSpace Q] | |
| theorem parametric_inverse_on_local (f : Q Γ E β E) | |
| (D : Set (Q Γ E)) (hD : IsOpen D) (hf : ContDiffOn β β f D) | |
| (hinj : β t, InjOn (fun x => f (t,x)) {x | (t,x) β D}) | |
| (hi : β p β D, (fderiv β (fun x => f (p.1,x)) p.2).IsInvertible) : | |
| β (U : Set (Q Γ E)) (g : Q Γ E β E), IsOpen U β§ ContDiffOn β β g U β§ | |
| U = (fun p => (p.1,f p)) '' D β§ | |
| (β p β D, (p.1,f p) β U β§ g (p.1,f p) = p.2) β§ | |
| (β p β U, (p.1,g p) β D β§ f (p.1,g p) = p.2) := by | |
| let F : Q Γ E β Q Γ E := fun p => (p.1,f p) | |
| have hF : ContDiffOn β β F D := contDiffOn_fst.prodMk hf | |
| have hFi : InjOn F D := by | |
| rintro β¨t,xβ© hp β¨s,yβ© hq he | |
| have ht : t = s := congrArg (fun z : Q Γ E => z.1) he | |
| cases ht | |
| have hx : f (t,x) = f (t,y) := congrArg (fun z : Q Γ E => z.2) he | |
| exact Prod.ext rfl (hinj t hp hq hx) | |
| have hFd (p : Q Γ E) (hp : pβD) : fderiv β F p = | |
| (ContinuousLinearMap.fst β Q E).prod (fderiv β f p) := by | |
| exact (hasFDerivAt_fst.prodMk ((hf.contDiffAt (hD.mem_nhds hp)).differentiableAt (by simp)).hasFDerivAt).fderiv | |
| have hFiv (p : Q Γ E) (hp : p β D) : (fderiv β F p).IsInvertible := by | |
| rw [hFd p hp] | |
| apply clockGraph_linear_invertible | |
| have hd : fderiv β (fun x => f (p.1,x)) p.2 = | |
| (fderiv β f p).comp (ContinuousLinearMap.inr β Q E) := by | |
| exact (((hf.contDiffAt (hD.mem_nhds hp)).differentiableAt (by simp)).hasFDerivAt.comp p.2 | |
| ((hasFDerivAt_const p.1 p.2).prodMk (hasFDerivAt_id p.2))).fderiv | |
| rw [β hd] | |
| exact hi p hp | |
| obtain β¨hU,hg,hleft,hrightβ© := smooth_inverse_on hD hF hFi hFiv | |
| let g : Q Γ E β E := fun p => (invFunOn F D p).2 | |
| refine β¨F '' D,g,hU,hg.snd,rfl,?_,?_β© | |
| Β· intro p hp | |
| refine β¨β¨p,hp,rflβ©,?_β© | |
| exact congrArg Prod.snd (hleft p hp) | |
| Β· intro p hp | |
| have he := hright p hp | |
| change ((invFunOn F D p).1,f (invFunOn F D p)) = p at he | |
| have hfirst := congrArg (fun z : Q Γ E => z.1) he | |
| have hmem := invFunOn_mem hp | |
| have hid : (p.1,g p) = invFunOn F D p := Prod.ext hfirst.symm rfl | |
| rw [hid] | |
| exact β¨hmem,congrArg (fun z : Q Γ E => z.2) heβ© | |
| end | |
| section | |
| open scoped ContDiff Topology | |
| open Set Function | |
| variable {Q : Type*} [NormedAddCommGroup Q] [NormedSpace β Q] [CompleteSpace Q] | |
| theorem monotone_strip_inverse_local {f : Q Γ β β β} | |
| {U : Set Q} (hU : IsOpen U) {a b : β} (hab : a < b) | |
| (hf : ContDiffOn β β f (U ΓΛ’ Icc a b)) {h : Q β β} | |
| (hderiv : β q β U, β s β Ioo a b, 0 < deriv (fun r => f (q,r)) s) | |
| (hlo : β q β U, f (q,a) = 0) (hhi : β q β U, h q < f (q,b)) : | |
| β (W : Set (Q Γ β)) (g : Q Γ β β β), IsOpen W β§ ContDiffOn β β g W β§ | |
| W = (fun p : Q Γ β => (p.1,f p)) '' (U ΓΛ’ Ioo a b) β§ | |
| (β q β U, β x, 0 < x β x < h q β (q,x) β W) β§ | |
| (β q β U, β s β Ioo a b, g (q,f (q,s)) = s) β§ | |
| (β p β W, p.1 β U β§ g p β Ioo a b β§ f (p.1,g p) = p.2) := by | |
| have hc (q : Q) (hq : qβU) : ContinuousOn (fun s => f (q,s)) (Icc a b) := | |
| hf.continuousOn.comp (continuous_const.prodMk continuous_id).continuousOn (fun _ hs => β¨hq,hsβ©) | |
| have hm (q : Q) (hq : q β U) : StrictMonoOn (fun s => f (q,s)) (Icc a b) := by | |
| apply strictMonoOn_of_deriv_pos (convex_Icc a b) (hc q hq) | |
| simpa only [interior_Icc] using hderiv q hq | |
| have hinj (q : Q) : InjOn (fun s => f (q,s)) {s | (q,s) β U ΓΛ’ Ioo a b} := by | |
| intro s hs t ht he | |
| exact (hm q hs.1).injOn β¨hs.2.1.le,hs.2.2.leβ© β¨ht.2.1.le,ht.2.2.leβ© he | |
| have hiv (p : Q Γ β) (hp : p β U ΓΛ’ Ioo a b) : | |
| (fderiv β (fun s => f (p.1,s)) p.2).IsInvertible := by | |
| let c := deriv (fun s => f (p.1,s)) p.2 | |
| have hc0 : c β 0 := ne_of_gt (hderiv p.1 hp.1 p.2 hp.2) | |
| let e : β βL[β] β := (LinearEquiv.smulOfNeZero β β c hc0).toContinuousLinearEquiv | |
| refine β¨e,?_β© | |
| ext | |
| simp [e,c] | |
| obtain β¨W,g,hWo,hgs,hWe,hleft,hrightβ© := parametric_inverse_on_local f | |
| (U ΓΛ’ Ioo a b) (hU.prod isOpen_Ioo) (hf.mono (prod_mono_right Ioo_subset_Icc_self)) hinj hiv | |
| refine β¨W,g,hWo,hgs,hWe,?_,?_,?_β© | |
| Β· intro q hq x hx0 hxh | |
| have hh : x β Ioo (f (q,a)) (f (q,b)) := β¨by rwa [hlo q hq],hxh.trans (hhi q hq)β© | |
| obtain β¨s,hs,hseβ© := intermediate_value_Ioo hab.le (hc q hq) hh | |
| rw [hWe] | |
| exact β¨(q,s),β¨hq,hsβ©,Prod.ext rfl hseβ© | |
| Β· intro q hq s hs | |
| exact (hleft (q,s) β¨hq,hsβ©).2 | |
| Β· intro p hp | |
| exact β¨(hright p hp).1.1,(hright p hp).1.2,(hright p hp).2β© | |
| end | |
| open scoped ContDiff Topology | |
| open Set Function | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] [CompleteSpace E] | |
| theorem stripChart_inverse_local {f : Plane Γ E β β} | |
| {V : Set E} (hV : IsOpen V) {a b : β} (hab : a < b) | |
| (hf : ContDiffOn β β f ((Icc a b ΓΛ’ Ioo (0:β) 1) ΓΛ’ V)) (H : E β β) | |
| (hderiv : β T β Ioo (0:β) 1, β v β V, β s β Ioo a b, | |
| 0 < deriv (fun r => f ((r,T),v)) s) | |
| (hlo : β T β Ioo (0:β) 1, β v β V, f ((a,T),v) = 0) | |
| (hhi : β T β Ioo (0:β) 1, β v β V, H v < f ((b,T),v)) : | |
| β (W : Set (Plane Γ E)) (g : Plane Γ E β Plane Γ E), | |
| IsOpen W β§ ContDiffOn β β g W β§ | |
| W = stripChart f '' ((Ioo a b ΓΛ’ Ioo (0:β) 1) ΓΛ’ V) β§ | |
| (β p, p.1.2 β Ioo (0:β) 1 β p.2 β V β 0 < p.1.1 β p.1.1 < H p.2 β p β W) β§ | |
| (β p β (Ioo a b ΓΛ’ Ioo (0:β) 1) ΓΛ’ V, g (stripChart f p) = p) β§ | |
| (β p β W, g p β (Ioo a b ΓΛ’ Ioo (0:β) 1) ΓΛ’ V β§ stripChart f (g p) = p) := by | |
| let e : (Plane Γ E) βL[β] ((β Γ E) Γ β) := layerOrder | |
| let f' : (β Γ E) Γ β β β := f β e.symm | |
| have hf' : ContDiffOn β β f' ((Ioo (0:β) 1 ΓΛ’ V) ΓΛ’ Icc a b) := | |
| hf.comp e.symm.contDiff.contDiffOn (fun _ hp => β¨β¨hp.2,hp.1.1β©,hp.1.2β©) | |
| obtain β¨W,g,hWo,hgs,hWe,havailable,hleft,hrightβ© := monotone_strip_inverse_local | |
| (isOpen_Ioo.prod hV) hab hf' (h := fun q : β Γ E => H q.2) | |
| (fun q hq s hs => hderiv q.1 hq.1 q.2 hq.2 s hs) | |
| (fun q hq => hlo q.1 hq.1 q.2 hq.2) | |
| (fun q hq => hhi q.1 hq.1 q.2 hq.2) | |
| let G : Plane Γ E β Plane Γ E := fun p => ((g (e p),p.1.2),p.2) | |
| refine β¨e β»ΒΉ' W,G,hWo.preimage e.continuous,?_,?_,?_,?_,?_β© | |
| Β· have hg : ContDiffOn β β (fun p => g (e p)) (e β»ΒΉ' W) := | |
| hgs.comp e.contDiff.contDiffOn (fun _ hp => hp) | |
| exact (hg.prodMk (contDiff_snd.comp contDiff_fst).contDiffOn).prodMk contDiff_snd.contDiffOn | |
| Β· ext p | |
| constructor | |
| Β· intro hp | |
| obtain β¨q,hq,hqeβ© := by simpa only [hWe] using hp | |
| refine β¨e.symm q,β¨β¨hq.2,hq.1.1β©,hq.1.2β©,?_β© | |
| apply e.injective | |
| change (q.1,f' q) = e p | |
| exact hqe | |
| Β· rintro β¨q,hq,rflβ© | |
| change e (stripChart f q) β W | |
| rw [hWe] | |
| exact β¨e q,β¨β¨hq.1.2,hq.2β©,hq.1.1β©,rflβ© | |
| Β· intro p hpT hpV hp0 hpH | |
| exact havailable (p.1.2,p.2) β¨hpT,hpVβ© p.1.1 hp0 hpH | |
| Β· intro p hp | |
| have hh := hleft (p.1.2,p.2) β¨hp.1.2,hp.2β© p.1.1 hp.1.1 | |
| change ((g ((p.1.2,p.2),f p),p.1.2),p.2) = p | |
| change g ((p.1.2,p.2),f p) = p.1.1 at hh | |
| rw [hh] | |
| Β· intro p hp | |
| have hh := hright (e p) hp | |
| refine β¨β¨β¨hh.2.1,hh.1.1β©,hh.1.2β©,?_β© | |
| change ((f ((g (e p),p.1.2),p.2),p.1.2),p.2) = p | |
| have he : f ((g (e p),p.1.2),p.2) = p.1.1 := hh.2.2 | |
| rw [he] | |
| end PackingSufficiencySupport.Hamiltonian | |
| end | |
| end OAI | |