{P : Sort u_1} →
  {carrier : Type u} →
    {semiring : Semiring carrier} →
      {carrier' : Type u} →
        {semiring' : Semiring carrier'} →
          { carrier := carrier, semiring := semiring } = { carrier := carrier', semiring := semiring' } →
            (carrier = carrier' → semiring ≍ semiring' → P) → P