byCases Hτ: τ' = τ
α σ : Type
ε : σ → Type
δ : Dialect α σ ε
name : SSAVal
scope : SSAScope δ
τ : MLIRType δ
v : MLIRType.eval τ
x✝ : Option ((τ : MLIRType δ) × MLIRType.eval τ)
τ' : MLIRType δ
v'✝ : MLIRType.eval τ'
Hget : getT name scope = some { fst := τ', snd := v'✝ }
⊢ (if h : τ' = τ then
        some
          (cast
            (_ :
              (match τ' with
                | MLIRType.float a => Float
                | MLIRType.int signedness sz => FinInt sz
                | MLIRType.tensor1d => Tensor1D
                | MLIRType.tensor2d => Tensor2D
                | MLIRType.tensor4d => Tensor4D
                | MLIRType.index => ℤ
                | MLIRType.undefined a => Unit
                | MLIRType.extended σ => ε σ
                | MLIRType.erased => Unit) =
                match τ with
                | MLIRType.float a => Float
                | MLIRType.int signedness sz => FinInt sz
                | MLIRType.tensor1d => Tensor1D
                | MLIRType.tensor2d => Tensor2D
                | MLIRType.tensor4d => Tensor4D
                | MLIRType.index => ℤ
                | MLIRType.undefined a => Unit
                | MLIRType.extended σ => ε σ
                | MLIRType.erased => Unit)
            v'✝)
      else none) =
      some v →
    getT name scope = some { fst := τ, snd := v }
case h1
α σ : Type
ε : σ → Type
δ : Dialect α σ ε
name : SSAVal
scope : SSAScope δ
τ : MLIRType δ
v : MLIRType.eval τ
x✝ : Option ((τ : MLIRType δ) × MLIRType.eval τ)
v'✝ : MLIRType.eval τ
Hget : getT name scope = some { fst := τ, snd := v'✝ }
⊢ cast
        (_ :
          (match τ with
            | MLIRType.float a => Float
            | MLIRType.int signedness sz => FinInt sz
            | MLIRType.tensor1d => Tensor1D
            | MLIRType.tensor2d => Tensor2D
            | MLIRType.tensor4d => Tensor4D
            | MLIRType.index => ℤ
            | MLIRType.undefined a => Unit
            | MLIRType.extended σ => ε σ
            | MLIRType.erased => Unit) =
            match τ with
            | MLIRType.float a => Float
            | MLIRType.int signedness sz => FinInt sz
            | MLIRType.tensor1d => Tensor1D
            | MLIRType.tensor2d => Tensor2D
            | MLIRType.tensor4d => Tensor4D
            | MLIRType.index => ℤ
            | MLIRType.undefined a => Unit
            | MLIRType.extended σ => ε σ
            | MLIRType.erased => Unit)
        v'✝ =
      v →
    getT name scope = some { fst := τ, snd := v }