Documentation

LeanMlir.Proofs.Nets.MobileNet.MobileNetV2FullBSeal

MobileNetV2's non-degeneracy seal, on the full-width batched net (levels 2 and 3) #

planning/full_width_seals.md §4.3. MobileNetV2FullBVJP.lean proves mobilenetv2ForwardB_full_has_vjp_at: the whole-net VJP at any (w, x) satisfying 19 clause bundles — the stem's relu6, one per bottleneck, and the head's — covering 35 relu6 sites, each a two-sided window ≠ 0 ∧ ≠ 6. A conditional theorem of that shape says nothing unless its hypotheses are jointly satisfiable at a point with a nonzero Jacobian, and until now that was exhibited only on a per-example, two-block, 2-channel proxy, deleted when this file landed. This file exhibits it on mobilenetv2ForwardB_full itself: the seventeen bottlenecks of the [t,c,n,s] table, 32→1280 channels, XLA-SAME stride-2 padding, batch BatchNorm, at 224×224.

The witness #

Weights are structural, not trained (planning/full_width_seals.md §7):

N = 2, and the input is the shared ray sealX t = rayX … t.

⭐⭐ Every one of the 35 clauses is weight-only #

Better than ResNet-34, whose post-residual relu still needed 0 ≤ activation. Two facts compose: every relu6 in this net sits directly on a BatchNorm output, and BatchSeal.bnBatchLA_window bounds a BN output inside (0, 6) at every input once |γ|·√(N·h·w) < β = 3; and the linear bottleneck has no relu after the residual add, so there is no post-residual clause at all. The margin holds at every site because the widest is 2·112² = 25 088 and √25 088 / 64 < 2.48 (BatchSeal.margin192). Consequence: no nonnegativity layer, no positional injectivity, and — with no max-pool anywhere in this net — no no-tie argument.

⭐ The carrier threads twenty-two BatchNorms #

MobileNetV2's channel-changing blocks have no skip — the body is the block — so unlike ResNet's carrier, which saw only the projection of each downsample, this one crosses every BN inside them: 1 (stem) + 2 (b1) + 3 × 6 + 1 (head). The ten residual blocks pass it through untouched. BatchSeal.EDiff is the invariant, BatchSeal.bnBatchLA_exdiff the step that survives per-channel batch BN, and ⭐ BatchSeal.EDiff_dw is the one genuinely new shape: a depthwise cannot broadcast, so where a centre-tap conv collapses the carrier to fun _ => s · δ 0 at every output channel, a centre-tap depthwise scales the whole function δ channel by channel. The class-0 output difference between the two examples is t · Rr t with Rr a 22-fold product of 1/64 · istd, continuous and positive, so g'(0) = Rr 0 ≠ 0.

⚠⚠ Every collapse below is stated at variable N, h, w, ic, mid, oc and instantiated at the witness's numerals afterwards, never proved at them (planning/full_width_seals.md §3.5).

noncomputable def Proofs.Mnv2FullBSeal.sealIVW (ic mid oc : ) :
IVW ic mid oc
Equations
  • One or more equations did not get rendered due to their size.
Instances For
    noncomputable def Proofs.Mnv2FullBSeal.sealResW (c mid : ) :
    IVW c mid c
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      noncomputable def Proofs.Mnv2FullBSeal.sealNoExpW (ic oc : ) :
      IVWNoExp ic oc
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        noncomputable def Proofs.Mnv2FullBSeal.sealW (nCls : ) :
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          @[reducible, inline]
          abbrev Proofs.Mnv2FullBSeal.Mg (N h w : ) :
          Equations
          Instances For
            theorem Proofs.Mnv2FullBSeal.win (N oc h w : ) (hm : Mg N h w) (v : Vec (N * (oc * h * w))) (k : Fin (N * (oc * h * w))) :
            0 < StableHLO.bnBatchLA N oc h w 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 3) v k StableHLO.bnBatchLA N oc h w 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 3) v k < 6
            theorem Proofs.Mnv2FullBSeal.win6 (N oc h w : ) (hm : Mg N h w) (v : Vec (N * (oc * h * w))) (k : Fin (N * (oc * h * w))) :
            StableHLO.bnBatchLA N oc h w 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 3) v k 0 StableHLO.bnBatchLA N oc h w 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 3) v k 6
            theorem Proofs.Mnv2FullBSeal.cbrB_eq {N ic oc h w kH kW : } (W : Kernel4 oc ic kH kW) (b : Vec oc) (hm : Mg N h w) (x : Vec (N * (ic * h * w))) :
            StableHLO.cbrB N W b 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 3) x = StableHLO.bnBatchLA N oc h w 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 3) (StableHLO.batchMap N (flatConv W b) x)
            theorem Proofs.Mnv2FullBSeal.dwbrB_eq {N c h w kH kW : } (W : DepthwiseKernel c kH kW) (b : Vec c) (hm : Mg N h w) (x : Vec (N * (c * h * w))) :
            StableHLO.dwbrB N W b 1 (BatchSeal.kv c (1 / 64)) (BatchSeal.kv c 3) x = StableHLO.bnBatchLA N c h w 1 (BatchSeal.kv c (1 / 64)) (BatchSeal.kv c 3) (StableHLO.batchMap N (depthwiseFlat W b) x)
            theorem Proofs.Mnv2FullBSeal.dwbrBstrided_eq {N c h w kH kW : } (W : DepthwiseKernel c kH kW) (b : Vec c) (hm : Mg N h w) (x : Vec (N * (c * (2 * h) * (2 * w)))) :
            theorem Proofs.Mnv2FullBSeal.mnv2StemB_eq {N h w ic oc kH kW : } (Ws : Kernel4 oc ic kH kW) (bs : Vec oc) (hm : Mg N h w) (x : Vec (N * (ic * (2 * h) * (2 * w)))) :
            mnv2StemB N h w Ws bs 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 3) x = StableHLO.bnBatchLA N oc h w 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 3) (StableHLO.batchMap N (flatConvStride2Xla Ws bs) x)
            theorem Proofs.Mnv2FullBSeal.sealResBody (N h w c mid : ) (hn : 0 < N * (h * w)) (v : Vec (N * (c * h * w))) :
            mnv2ExpOnlyB N h w (sealResW c mid) v = fun (x : Fin (N * (c * h * w))) => 0
            theorem Proofs.Mnv2FullBSeal.sealResB_eq (N h w c mid : ) (hn : 0 < N * (h * w)) (v : Vec (N * (c * h * w))) :
            mnv2ResidB N h w (sealResW c mid) v = v
            theorem Proofs.Mnv2FullBSeal.sealExpB_eq (N h w ic mid oc : ) (hm : Mg N h w) (v : Vec (N * (ic * h * w))) :
            mnv2ExpOnlyB N h w (sealIVW ic mid oc) v = StableHLO.bnBatchLA N oc h w 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 0) (StableHLO.batchMap N (flatConv (BatchSeal.ctK oc mid 1 1 1) (BatchSeal.kv oc 0)) (StableHLO.bnBatchLA N mid h w 1 (BatchSeal.kv mid (1 / 64)) (BatchSeal.kv mid 3) (StableHLO.batchMap N (depthwiseFlat (BatchSeal.ctDW mid 3 3 1) (BatchSeal.kv mid 0)) (StableHLO.bnBatchLA N mid h w 1 (BatchSeal.kv mid (1 / 64)) (BatchSeal.kv mid 3) (StableHLO.batchMap N (flatConv (BatchSeal.ctK mid ic 1 1 1) (BatchSeal.kv mid 0)) v)))))
            theorem Proofs.Mnv2FullBSeal.sealStridedB_eq (N h w ic mid oc : ) (hme : Mg N (2 * h) (2 * w)) (hmd : Mg N h w) (v : Vec (N * (ic * (2 * h) * (2 * w)))) :
            mnv2StridedB N h w (sealIVW ic mid oc) v = StableHLO.bnBatchLA N oc h w 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 0) (StableHLO.batchMap N (flatConv (BatchSeal.ctK oc mid 1 1 1) (BatchSeal.kv oc 0)) (StableHLO.bnBatchLA N mid h w 1 (BatchSeal.kv mid (1 / 64)) (BatchSeal.kv mid 3) (StableHLO.batchMap N (depthwiseStride2FlatXla (BatchSeal.ctDW mid 3 3 1) (BatchSeal.kv mid 0)) (StableHLO.bnBatchLA N mid (2 * h) (2 * w) 1 (BatchSeal.kv mid (1 / 64)) (BatchSeal.kv mid 3) (StableHLO.batchMap N (flatConv (BatchSeal.ctK mid ic 1 1 1) (BatchSeal.kv mid 0)) v)))))
            theorem Proofs.Mnv2FullBSeal.sealNoExpB_eq (N h w ic oc : ) (hm : Mg N h w) (v : Vec (N * (ic * h * w))) :
            mnv2NoExpB N h w (sealNoExpW ic oc) v = StableHLO.bnBatchLA N oc h w 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 0) (StableHLO.batchMap N (flatConv (BatchSeal.ctK oc ic 1 1 1) (BatchSeal.kv oc 0)) (StableHLO.bnBatchLA N ic h w 1 (BatchSeal.kv ic (1 / 64)) (BatchSeal.kv ic 3) (StableHLO.batchMap N (depthwiseFlat (BatchSeal.ctDW ic 3 3 1) (BatchSeal.kv ic 0)) v)))
            theorem Proofs.Mnv2FullBSeal.cbrB_continuous (N : ) {ic oc h w kH kW : } (W : Kernel4 oc ic kH kW) (b : Vec oc) (ε : ) ( : 0 < ε) (γ β : Vec oc) :
            Continuous (StableHLO.cbrB N W b ε γ β)
            theorem Proofs.Mnv2FullBSeal.dwbB_continuous (N : ) {c h w kH kW : } (W : DepthwiseKernel c kH kW) (b : Vec c) (ε : ) ( : 0 < ε) (γ β : Vec c) :
            theorem Proofs.Mnv2FullBSeal.dwbrB_continuous (N : ) {c h w kH kW : } (W : DepthwiseKernel c kH kW) (b : Vec c) (ε : ) ( : 0 < ε) (γ β : Vec c) :
            Continuous (StableHLO.dwbrB N W b ε γ β)
            theorem Proofs.Mnv2FullBSeal.dwbrBstrided_continuous (N : ) {c h w kH kW : } (W : DepthwiseKernel c kH kW) (b : Vec c) (ε : ) ( : 0 < ε) (γ β : Vec c) :
            theorem Proofs.Mnv2FullBSeal.mnv2StemB_continuous (N h w : ) {ic oc kH kW : } (Ws : Kernel4 oc ic kH kW) (bs : Vec oc) (εs : ) (hεs : 0 < εs) (γs βs : Vec oc) :
            Continuous (mnv2StemB N h w Ws bs εs γs βs)
            theorem Proofs.Mnv2FullBSeal.mnv2NoExpB_continuous (N h w : ) {ic oc : } (p : IVWNoExp ic oc) (hd : 0 < p.) (hp : 0 < p.) :
            theorem Proofs.Mnv2FullBSeal.mnv2ExpOnlyB_continuous (N h w : ) {ic mid oc : } (p : IVW ic mid oc) (he : 0 < p.) (hd : 0 < p.) (hp : 0 < p.) :
            theorem Proofs.Mnv2FullBSeal.mnv2ResidB_continuous (N h w : ) {c mid : } (p : IVW c mid c) (he : 0 < p.) (hd : 0 < p.) (hp : 0 < p.) :
            theorem Proofs.Mnv2FullBSeal.mnv2StridedB_continuous (N h w : ) {ic mid oc : } (p : IVW ic mid oc) (he : 0 < p.) (hd : 0 < p.) (hp : 0 < p.) :
            noncomputable def Proofs.Mnv2FullBSeal.sealX (t : ) :
            Vec (2 * (3 * (2 * 112) * (2 * 112)))

            The witness input: the shared ray at 224×224, N = 2. Both examples carry the same ramp in channel 0, and sealV adds t to all of example 0's channel 0. ⭐ Every clause of this net is weight-only, so the ramp is doing no work beyond keeping one witness shape across the four sealed nets.

            Equations
            Instances For
              noncomputable def Proofs.Mnv2FullBSeal.sealV :
              Vec (2 * (3 * (2 * 112) * (2 * 112)))

              Its direction — all of example 0's channel 0.

              Equations
              Instances For
                theorem Proofs.Mnv2FullBSeal.EDiff_sealX (t : ) :
                BatchSeal.EDiff (fun (ci : Fin 3) => if ci = 0 then t else 0) (sealX t)
                noncomputable def Proofs.Mnv2FullBSeal.rf (n : ) (z : Vec n) :
                Equations
                Instances For
                  theorem Proofs.Mnv2FullBSeal.rf_pos (n : ) (z : Vec n) :
                  0 < rf n z
                  theorem Proofs.Mnv2FullBSeal.rf_cont (n : ) (k : Fin n) :
                  Continuous fun (z : Vec n) => rf n z
                  theorem Proofs.Mnv2FullBSeal.rfac_cont (oc h w : ) (k : Fin (2 * (h * w))) (c : Fin oc) (Z : Vec (2 * (oc * h * w))) (hZ : Continuous Z) :
                  Continuous fun (t : ) => rf (2 * (h * w)) (BatchSeal.bnRowLA 2 oc h w (Z t) c)
                  theorem Proofs.Mnv2FullBSeal.sealIVPos (ic mid oc : ) :
                  IVPos (sealIVW ic mid oc)
                  theorem Proofs.Mnv2FullBSeal.sealIVSmooth (N h w ic mid oc : ) (hm : Mg N h w) (v : Vec (N * (ic * h * w))) :
                  IVSmoothAtB N h w (sealIVW ic mid oc) v
                  theorem Proofs.Mnv2FullBSeal.sealResSmooth (N h w c mid : ) (hm : Mg N h w) (v : Vec (N * (c * h * w))) :
                  IVSmoothAtB N h w (sealResW c mid) v
                  theorem Proofs.Mnv2FullBSeal.sealStridedSmooth (N h w ic mid oc : ) (hme : Mg N (2 * h) (2 * w)) (hmd : Mg N h w) (v : Vec (N * (ic * (2 * h) * (2 * w)))) :
                  IVStridedSmoothAtB N h w (sealIVW ic mid oc) v
                  theorem Proofs.Mnv2FullBSeal.sealNoExpSmooth (N h w ic oc : ) (hm : Mg N h w) (v : Vec (N * (ic * h * w))) :
                  theorem Proofs.Mnv2FullBSeal.sealStemSmooth (N h w : ) {ic oc kH kW : } (Ws : Kernel4 oc ic kH kW) (bs : Vec oc) (hm : Mg N h w) (x : Vec (N * (ic * (2 * h) * (2 * w)))) :
                  MNV2StemSmoothAtB N h w Ws bs 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 3) x
                  theorem Proofs.Mnv2FullBSeal.sealHeadSmooth (N h w : ) {ic oc : } (Wh : Kernel4 oc ic 1 1) (bh : Vec oc) (hm : Mg N h w) (v : Vec (N * (ic * h * w))) :
                  MNV2HeadSmoothAtB N h w Wh bh 1 (BatchSeal.kv oc (1 / 64)) (BatchSeal.kv oc 3) v
                  theorem Proofs.Mnv2FullBSeal.scStem (nCls : ) (t : ) :
                  MNV2StemSmoothAtB 2 112 112 (sealW nCls).sW (sealW nCls).sb (sealW nCls). (sealW nCls). (sealW nCls). (sealX t)
                  theorem Proofs.Mnv2FullBSeal.sc1 (nCls : ) (t : ) :
                  IVNoExpSmoothAtB 2 112 112 (sealW nCls).b1 (mnv2PreB0 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc2 (nCls : ) (t : ) :
                  IVStridedSmoothAtB 2 56 56 (sealW nCls).b2 (mnv2PreB1 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc3 (nCls : ) (t : ) :
                  IVSmoothAtB 2 56 56 (sealW nCls).b3 (mnv2PreB2 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc4 (nCls : ) (t : ) :
                  IVStridedSmoothAtB 2 28 28 (sealW nCls).b4 (mnv2PreB3 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc5 (nCls : ) (t : ) :
                  IVSmoothAtB 2 28 28 (sealW nCls).b5 (mnv2PreB4 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc6 (nCls : ) (t : ) :
                  IVSmoothAtB 2 28 28 (sealW nCls).b6 (mnv2PreB5 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc7 (nCls : ) (t : ) :
                  IVStridedSmoothAtB 2 14 14 (sealW nCls).b7 (mnv2PreB6 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc8 (nCls : ) (t : ) :
                  IVSmoothAtB 2 14 14 (sealW nCls).b8 (mnv2PreB7 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc9 (nCls : ) (t : ) :
                  IVSmoothAtB 2 14 14 (sealW nCls).b9 (mnv2PreB8 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc10 (nCls : ) (t : ) :
                  IVSmoothAtB 2 14 14 (sealW nCls).b10 (mnv2PreB9 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc11 (nCls : ) (t : ) :
                  IVSmoothAtB 2 14 14 (sealW nCls).b11 (mnv2PreB10 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc12 (nCls : ) (t : ) :
                  IVSmoothAtB 2 14 14 (sealW nCls).b12 (mnv2PreB11 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc13 (nCls : ) (t : ) :
                  IVSmoothAtB 2 14 14 (sealW nCls).b13 (mnv2PreB12 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc14 (nCls : ) (t : ) :
                  IVStridedSmoothAtB 2 7 7 (sealW nCls).b14 (mnv2PreB13 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc15 (nCls : ) (t : ) :
                  IVSmoothAtB 2 7 7 (sealW nCls).b15 (mnv2PreB14 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc16 (nCls : ) (t : ) :
                  IVSmoothAtB 2 7 7 (sealW nCls).b16 (mnv2PreB15 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.sc17 (nCls : ) (t : ) :
                  IVSmoothAtB 2 7 7 (sealW nCls).b17 (mnv2PreB16 2 (sealW nCls) (sealX t))
                  theorem Proofs.Mnv2FullBSeal.scHead (nCls : ) (t : ) :
                  MNV2HeadSmoothAtB 2 7 7 (sealW nCls).hW (sealW nCls).hb (sealW nCls). (sealW nCls). (sealW nCls). (mnv2PreB17 2 (sealW nCls) (sealX t))
                  noncomputable def Proofs.Mnv2FullBSeal.sealVJP (nCls : ) (t : ) :

                  ⭐⭐ The whole-net VJP at the witness — all 19 bundles discharged, on mobilenetv2ForwardB_full itself (through mobilenetv2ForwardB_full_eq_chain).

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    noncomputable def Proofs.Mnv2FullBSeal.Z1d (nCls : ) (t : ) :
                    Vec (2 * (32 * 112 * 112))
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      noncomputable def Proofs.Mnv2FullBSeal.A1d (nCls : ) (t : ) :
                      Vec (2 * (32 * 112 * 112))
                      Equations
                      Instances For
                        noncomputable def Proofs.Mnv2FullBSeal.Z1p (nCls : ) (t : ) :
                        Vec (2 * (16 * 112 * 112))
                        Equations
                        Instances For
                          noncomputable def Proofs.Mnv2FullBSeal.Z2e (nCls : ) (t : ) :
                          Vec (2 * (96 * (2 * 56) * (2 * 56)))
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            noncomputable def Proofs.Mnv2FullBSeal.A2e (nCls : ) (t : ) :
                            Vec (2 * (96 * (2 * 56) * (2 * 56)))
                            Equations
                            Instances For
                              noncomputable def Proofs.Mnv2FullBSeal.A2d (nCls : ) (t : ) :
                              Vec (2 * (96 * 56 * 56))
                              Equations
                              Instances For
                                noncomputable def Proofs.Mnv2FullBSeal.Z2p (nCls : ) (t : ) :
                                Vec (2 * (24 * 56 * 56))
                                Equations
                                Instances For
                                  noncomputable def Proofs.Mnv2FullBSeal.Z4e (nCls : ) (t : ) :
                                  Vec (2 * (144 * (2 * 28) * (2 * 28)))
                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    noncomputable def Proofs.Mnv2FullBSeal.A4e (nCls : ) (t : ) :
                                    Vec (2 * (144 * (2 * 28) * (2 * 28)))
                                    Equations
                                    Instances For
                                      noncomputable def Proofs.Mnv2FullBSeal.Z4d (nCls : ) (t : ) :
                                      Vec (2 * (144 * 28 * 28))
                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        noncomputable def Proofs.Mnv2FullBSeal.A4d (nCls : ) (t : ) :
                                        Vec (2 * (144 * 28 * 28))
                                        Equations
                                        Instances For
                                          noncomputable def Proofs.Mnv2FullBSeal.Z4p (nCls : ) (t : ) :
                                          Vec (2 * (32 * 28 * 28))
                                          Equations
                                          Instances For
                                            noncomputable def Proofs.Mnv2FullBSeal.Z7e (nCls : ) (t : ) :
                                            Vec (2 * (192 * (2 * 14) * (2 * 14)))
                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              noncomputable def Proofs.Mnv2FullBSeal.A7e (nCls : ) (t : ) :
                                              Vec (2 * (192 * (2 * 14) * (2 * 14)))
                                              Equations
                                              Instances For
                                                noncomputable def Proofs.Mnv2FullBSeal.Z7d (nCls : ) (t : ) :
                                                Vec (2 * (192 * 14 * 14))
                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  noncomputable def Proofs.Mnv2FullBSeal.A7d (nCls : ) (t : ) :
                                                  Vec (2 * (192 * 14 * 14))
                                                  Equations
                                                  Instances For
                                                    noncomputable def Proofs.Mnv2FullBSeal.Z7p (nCls : ) (t : ) :
                                                    Vec (2 * (64 * 14 * 14))
                                                    Equations
                                                    Instances For
                                                      noncomputable def Proofs.Mnv2FullBSeal.Z11e (nCls : ) (t : ) :
                                                      Vec (2 * (384 * 14 * 14))
                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        noncomputable def Proofs.Mnv2FullBSeal.A11e (nCls : ) (t : ) :
                                                        Vec (2 * (384 * 14 * 14))
                                                        Equations
                                                        Instances For
                                                          noncomputable def Proofs.Mnv2FullBSeal.Z11d (nCls : ) (t : ) :
                                                          Vec (2 * (384 * 14 * 14))
                                                          Equations
                                                          Instances For
                                                            noncomputable def Proofs.Mnv2FullBSeal.A11d (nCls : ) (t : ) :
                                                            Vec (2 * (384 * 14 * 14))
                                                            Equations
                                                            Instances For
                                                              noncomputable def Proofs.Mnv2FullBSeal.Z11p (nCls : ) (t : ) :
                                                              Vec (2 * (96 * 14 * 14))
                                                              Equations
                                                              Instances For
                                                                noncomputable def Proofs.Mnv2FullBSeal.Z14e (nCls : ) (t : ) :
                                                                Vec (2 * (576 * (2 * 7) * (2 * 7)))
                                                                Equations
                                                                • One or more equations did not get rendered due to their size.
                                                                Instances For
                                                                  noncomputable def Proofs.Mnv2FullBSeal.A14e (nCls : ) (t : ) :
                                                                  Vec (2 * (576 * (2 * 7) * (2 * 7)))
                                                                  Equations
                                                                  Instances For
                                                                    noncomputable def Proofs.Mnv2FullBSeal.Z14d (nCls : ) (t : ) :
                                                                    Vec (2 * (576 * 7 * 7))
                                                                    Equations
                                                                    • One or more equations did not get rendered due to their size.
                                                                    Instances For
                                                                      noncomputable def Proofs.Mnv2FullBSeal.A14d (nCls : ) (t : ) :
                                                                      Vec (2 * (576 * 7 * 7))
                                                                      Equations
                                                                      Instances For
                                                                        noncomputable def Proofs.Mnv2FullBSeal.Z14p (nCls : ) (t : ) :
                                                                        Vec (2 * (160 * 7 * 7))
                                                                        Equations
                                                                        Instances For
                                                                          noncomputable def Proofs.Mnv2FullBSeal.Z17e (nCls : ) (t : ) :
                                                                          Vec (2 * (960 * 7 * 7))
                                                                          Equations
                                                                          • One or more equations did not get rendered due to their size.
                                                                          Instances For
                                                                            noncomputable def Proofs.Mnv2FullBSeal.A17e (nCls : ) (t : ) :
                                                                            Vec (2 * (960 * 7 * 7))
                                                                            Equations
                                                                            Instances For
                                                                              noncomputable def Proofs.Mnv2FullBSeal.Z17d (nCls : ) (t : ) :
                                                                              Vec (2 * (960 * 7 * 7))
                                                                              Equations
                                                                              Instances For
                                                                                noncomputable def Proofs.Mnv2FullBSeal.A17d (nCls : ) (t : ) :
                                                                                Vec (2 * (960 * 7 * 7))
                                                                                Equations
                                                                                Instances For
                                                                                  noncomputable def Proofs.Mnv2FullBSeal.Z17p (nCls : ) (t : ) :
                                                                                  Vec (2 * (320 * 7 * 7))
                                                                                  Equations
                                                                                  Instances For
                                                                                    noncomputable def Proofs.Mnv2FullBSeal.Zh (nCls : ) (t : ) :
                                                                                    Vec (2 * (1280 * 7 * 7))
                                                                                    Equations
                                                                                    • One or more equations did not get rendered due to their size.
                                                                                    Instances For
                                                                                      noncomputable def Proofs.Mnv2FullBSeal.Ah (nCls : ) (t : ) :
                                                                                      Vec (2 * (1280 * 7 * 7))
                                                                                      Equations
                                                                                      Instances For
                                                                                        theorem Proofs.Mnv2FullBSeal.pc0 (nCls : ) (t : ) :
                                                                                        mnv2PreB0 2 (sealW nCls) (sealX t) = StableHLO.bnBatchLA 2 32 112 112 1 (BatchSeal.kv 32 (1 / 64)) (BatchSeal.kv 32 3) (Zs t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc1 (nCls : ) (t : ) :
                                                                                        mnv2PreB1 2 (sealW nCls) (sealX t) = StableHLO.bnBatchLA 2 16 112 112 1 (BatchSeal.kv 16 (1 / 64)) (BatchSeal.kv 16 0) (Z1p nCls t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc2 (nCls : ) (t : ) :
                                                                                        mnv2PreB2 2 (sealW nCls) (sealX t) = StableHLO.bnBatchLA 2 24 56 56 1 (BatchSeal.kv 24 (1 / 64)) (BatchSeal.kv 24 0) (Z2p nCls t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc3 (nCls : ) (t : ) :
                                                                                        mnv2PreB3 2 (sealW nCls) (sealX t) = mnv2PreB2 2 (sealW nCls) (sealX t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc4 (nCls : ) (t : ) :
                                                                                        mnv2PreB4 2 (sealW nCls) (sealX t) = StableHLO.bnBatchLA 2 32 28 28 1 (BatchSeal.kv 32 (1 / 64)) (BatchSeal.kv 32 0) (Z4p nCls t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc5 (nCls : ) (t : ) :
                                                                                        mnv2PreB5 2 (sealW nCls) (sealX t) = mnv2PreB4 2 (sealW nCls) (sealX t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc6 (nCls : ) (t : ) :
                                                                                        mnv2PreB6 2 (sealW nCls) (sealX t) = mnv2PreB5 2 (sealW nCls) (sealX t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc7 (nCls : ) (t : ) :
                                                                                        mnv2PreB7 2 (sealW nCls) (sealX t) = StableHLO.bnBatchLA 2 64 14 14 1 (BatchSeal.kv 64 (1 / 64)) (BatchSeal.kv 64 0) (Z7p nCls t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc8 (nCls : ) (t : ) :
                                                                                        mnv2PreB8 2 (sealW nCls) (sealX t) = mnv2PreB7 2 (sealW nCls) (sealX t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc9 (nCls : ) (t : ) :
                                                                                        mnv2PreB9 2 (sealW nCls) (sealX t) = mnv2PreB8 2 (sealW nCls) (sealX t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc10 (nCls : ) (t : ) :
                                                                                        mnv2PreB10 2 (sealW nCls) (sealX t) = mnv2PreB9 2 (sealW nCls) (sealX t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc11 (nCls : ) (t : ) :
                                                                                        mnv2PreB11 2 (sealW nCls) (sealX t) = StableHLO.bnBatchLA 2 96 14 14 1 (BatchSeal.kv 96 (1 / 64)) (BatchSeal.kv 96 0) (Z11p nCls t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc12 (nCls : ) (t : ) :
                                                                                        mnv2PreB12 2 (sealW nCls) (sealX t) = mnv2PreB11 2 (sealW nCls) (sealX t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc13 (nCls : ) (t : ) :
                                                                                        mnv2PreB13 2 (sealW nCls) (sealX t) = mnv2PreB12 2 (sealW nCls) (sealX t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc14 (nCls : ) (t : ) :
                                                                                        mnv2PreB14 2 (sealW nCls) (sealX t) = StableHLO.bnBatchLA 2 160 7 7 1 (BatchSeal.kv 160 (1 / 64)) (BatchSeal.kv 160 0) (Z14p nCls t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc15 (nCls : ) (t : ) :
                                                                                        mnv2PreB15 2 (sealW nCls) (sealX t) = mnv2PreB14 2 (sealW nCls) (sealX t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc16 (nCls : ) (t : ) :
                                                                                        mnv2PreB16 2 (sealW nCls) (sealX t) = mnv2PreB15 2 (sealW nCls) (sealX t)
                                                                                        theorem Proofs.Mnv2FullBSeal.pc17 (nCls : ) (t : ) :
                                                                                        mnv2PreB17 2 (sealW nCls) (sealX t) = StableHLO.bnBatchLA 2 320 7 7 1 (BatchSeal.kv 320 (1 / 64)) (BatchSeal.kv 320 0) (Z17p nCls t)
                                                                                        noncomputable def Proofs.Mnv2FullBSeal.dS (t : ) :
                                                                                        Fin 32
                                                                                        Equations
                                                                                        Instances For
                                                                                          noncomputable def Proofs.Mnv2FullBSeal.d1d (nCls : ) (t : ) :
                                                                                          Fin 32
                                                                                          Equations
                                                                                          Instances For
                                                                                            noncomputable def Proofs.Mnv2FullBSeal.d1p (nCls : ) (t : ) :
                                                                                            Fin 16
                                                                                            Equations
                                                                                            • One or more equations did not get rendered due to their size.
                                                                                            Instances For
                                                                                              noncomputable def Proofs.Mnv2FullBSeal.d2e (nCls : ) (t : ) :
                                                                                              Fin 96
                                                                                              Equations
                                                                                              • One or more equations did not get rendered due to their size.
                                                                                              Instances For
                                                                                                noncomputable def Proofs.Mnv2FullBSeal.d2d (nCls : ) (t : ) :
                                                                                                Fin 96
                                                                                                Equations
                                                                                                Instances For
                                                                                                  noncomputable def Proofs.Mnv2FullBSeal.d2p (nCls : ) (t : ) :
                                                                                                  Fin 24
                                                                                                  Equations
                                                                                                  Instances For
                                                                                                    noncomputable def Proofs.Mnv2FullBSeal.d4e (nCls : ) (t : ) :
                                                                                                    Fin 144
                                                                                                    Equations
                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                    Instances For
                                                                                                      noncomputable def Proofs.Mnv2FullBSeal.d4d (nCls : ) (t : ) :
                                                                                                      Fin 144
                                                                                                      Equations
                                                                                                      Instances For
                                                                                                        noncomputable def Proofs.Mnv2FullBSeal.d4p (nCls : ) (t : ) :
                                                                                                        Fin 32
                                                                                                        Equations
                                                                                                        Instances For
                                                                                                          noncomputable def Proofs.Mnv2FullBSeal.d7e (nCls : ) (t : ) :
                                                                                                          Fin 192
                                                                                                          Equations
                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                          Instances For
                                                                                                            noncomputable def Proofs.Mnv2FullBSeal.d7d (nCls : ) (t : ) :
                                                                                                            Fin 192
                                                                                                            Equations
                                                                                                            Instances For
                                                                                                              noncomputable def Proofs.Mnv2FullBSeal.d7p (nCls : ) (t : ) :
                                                                                                              Fin 64
                                                                                                              Equations
                                                                                                              Instances For
                                                                                                                noncomputable def Proofs.Mnv2FullBSeal.d11e (nCls : ) (t : ) :
                                                                                                                Fin 384
                                                                                                                Equations
                                                                                                                Instances For
                                                                                                                  noncomputable def Proofs.Mnv2FullBSeal.d11d (nCls : ) (t : ) :
                                                                                                                  Fin 384
                                                                                                                  Equations
                                                                                                                  Instances For
                                                                                                                    noncomputable def Proofs.Mnv2FullBSeal.d11p (nCls : ) (t : ) :
                                                                                                                    Fin 96
                                                                                                                    Equations
                                                                                                                    Instances For
                                                                                                                      noncomputable def Proofs.Mnv2FullBSeal.d14e (nCls : ) (t : ) :
                                                                                                                      Fin 576
                                                                                                                      Equations
                                                                                                                      • One or more equations did not get rendered due to their size.
                                                                                                                      Instances For
                                                                                                                        noncomputable def Proofs.Mnv2FullBSeal.d14d (nCls : ) (t : ) :
                                                                                                                        Fin 576
                                                                                                                        Equations
                                                                                                                        Instances For
                                                                                                                          noncomputable def Proofs.Mnv2FullBSeal.d14p (nCls : ) (t : ) :
                                                                                                                          Fin 160
                                                                                                                          Equations
                                                                                                                          Instances For
                                                                                                                            noncomputable def Proofs.Mnv2FullBSeal.d17e (nCls : ) (t : ) :
                                                                                                                            Fin 960
                                                                                                                            Equations
                                                                                                                            Instances For
                                                                                                                              noncomputable def Proofs.Mnv2FullBSeal.d17d (nCls : ) (t : ) :
                                                                                                                              Fin 960
                                                                                                                              Equations
                                                                                                                              Instances For
                                                                                                                                noncomputable def Proofs.Mnv2FullBSeal.d17p (nCls : ) (t : ) :
                                                                                                                                Fin 320
                                                                                                                                Equations
                                                                                                                                Instances For
                                                                                                                                  noncomputable def Proofs.Mnv2FullBSeal.dH (nCls : ) (t : ) :
                                                                                                                                  Fin 1280
                                                                                                                                  Equations
                                                                                                                                  Instances For
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed0 (nCls : ) (t : ) :
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed1d (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d1d nCls t) (A1d nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed1 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d1p nCls t) (mnv2PreB1 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed2e (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d2e nCls t) (A2e nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed2d (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d2d nCls t) (A2d nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed2 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d2p nCls t) (mnv2PreB2 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed3 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d2p nCls t) (mnv2PreB3 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed4e (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d4e nCls t) (A4e nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed4d (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d4d nCls t) (A4d nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed4 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d4p nCls t) (mnv2PreB4 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed5 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d4p nCls t) (mnv2PreB5 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed6 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d4p nCls t) (mnv2PreB6 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed7e (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d7e nCls t) (A7e nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed7d (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d7d nCls t) (A7d nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed7 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d7p nCls t) (mnv2PreB7 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed8 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d7p nCls t) (mnv2PreB8 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed9 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d7p nCls t) (mnv2PreB9 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed10 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d7p nCls t) (mnv2PreB10 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed11e (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d11e nCls t) (A11e nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed11d (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d11d nCls t) (A11d nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed11 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d11p nCls t) (mnv2PreB11 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed12 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d11p nCls t) (mnv2PreB12 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed13 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d11p nCls t) (mnv2PreB13 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed14e (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d14e nCls t) (A14e nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed14d (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d14d nCls t) (A14d nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed14 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d14p nCls t) (mnv2PreB14 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed15 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d14p nCls t) (mnv2PreB15 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed16 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d14p nCls t) (mnv2PreB16 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed17e (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d17e nCls t) (A17e nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed17d (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d17d nCls t) (A17d nCls t)
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.ed17 (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (d17p nCls t) (mnv2PreB17 2 (sealW nCls) (sealX t))
                                                                                                                                    theorem Proofs.Mnv2FullBSeal.edH (nCls : ) (t : ) :
                                                                                                                                    BatchSeal.EDiff (dH nCls t) (Ah nCls t)
                                                                                                                                    noncomputable def Proofs.Mnv2FullBSeal.Rr (nCls : ) (t : ) :

                                                                                                                                    ⭐⭐ The positive, continuous nonlinear factor. MobileNetV2's channel-changing blocks have no skip, so the carrier threads every BatchNorm inside them: the stem, both of b1's, three each in b2, b4, b7, b11, b14, b17, and the head's. ⚠ No BatchNorm variance derivative is ever taken — Rr enters only through t * Rr t, whose derivative at 0 is Rr 0 for any Rr continuous there.

                                                                                                                                    Equations
                                                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                                                    Instances For
                                                                                                                                      theorem Proofs.Mnv2FullBSeal.Rr_pos (nCls : ) (t : ) :
                                                                                                                                      0 < Rr nCls t
                                                                                                                                      theorem Proofs.Mnv2FullBSeal.sealW_fcW (nCls : ) :
                                                                                                                                      (sealW nCls).fcW = fun (i : Fin 1280) (j : Fin nCls) => if i = 0 j = 0 then 1 else 0
                                                                                                                                      theorem Proofs.Mnv2FullBSeal.headA (nCls : ) (t : ) :
                                                                                                                                      mnv2HeadB 2 7 7 (sealW nCls).hW (sealW nCls).hb (sealW nCls). (sealW nCls). (sealW nCls). (sealW nCls).fcW (sealW nCls).fcb (mnv2PreB17 2 (sealW nCls) (sealX t)) = StableHLO.batchMap 2 (dense (sealW nCls).fcW (sealW nCls).fcb) (StableHLO.batchMap 2 (globalAvgPoolFlat 1280 7 7) (Ah nCls t))
                                                                                                                                      theorem Proofs.Mnv2FullBSeal.head_diff (nCls : ) (hn : 0 < nCls) (v : Vec (2 * (1280 * 7 * 7))) (δ : Fin 1280) (hv : BatchSeal.EDiff δ v) :
                                                                                                                                      theorem Proofs.Mnv2FullBSeal.gd_ray (nCls : ) (hn : 0 < nCls) (t : ) :

                                                                                                                                      ⭐⭐ The class-0 difference between the two examples, along the ray, is t · Rr t.

                                                                                                                                      ⭐⭐ Level 2 — the witness is non-degenerate: the full-width batch-BN MobileNetV2 at the structural weights is NOT constant in its input.

                                                                                                                                      ⭐⭐ Level 3 — the whole-net Jacobian is nonzero at the witness.

                                                                                                                                      theorem Proofs.Mnv2FullBSeal.sealX_backward_nontrivial (nCls : ) (hn : 0 < nCls) :
                                                                                                                                      ∃ (j₀ : Fin (2 * nCls)) (i₀ : Fin (2 * (3 * (2 * 112) * (2 * 112)))), (sealVJP nCls 0).backward (basisVec j₀) i₀ 0

                                                                                                                                      ⭐⭐ The seal: the proven whole-network backward of the full-width, batch-BatchNorm, seventeen-bottleneck, 224×224 MobileNetV2 — mobilenetv2ForwardB_full, the forward every MobileNetV2 artifact runs — is not the zero map at the witness.