Theorem: Lean4Lean.VEnv.IsDefEq.const_inv'
Proof state before:
case eta
env : VEnv
Γ : List VExpr
U : Nat
henv : Ordered env
e1 e2 V : VExpr
c : Name
ls : List VLevel
Γ✝ : List VExpr
A✝ : VExpr
u✝ : VLevel
B✝ : VExpr
v✝ : VLevel
e✝ : VExpr
a✝⁶ : VLevel.WF U u✝
a✝⁵ : VLevel.WF U v✝
a✝⁴ : IsDefEqStrong env U Γ✝ A✝ A✝ (VExpr.sort u✝)
a✝³ : IsDefEqStrong env U (A✝ :: Γ✝) B✝ B✝ (VExpr.sort v✝)
a✝² : IsDefEqStrong env U (lift A✝ :: A✝ :: Γ✝) (liftN 1 B✝ 1) (liftN 1 B✝ 1) (VExpr.sort v✝)
a✝¹ : IsDefEqStrong env U Γ✝ e✝ e✝ (VExpr.forallE A✝ B✝)
a✝ : IsDefEqStrong env U (A✝ :: Γ✝) (lift e✝) (lift e✝) (VExpr.forallE (lift A✝) (liftN 1 B✝ 1))
a_ih✝³ :
  A✝ = VExpr.const c ls ∨ A✝ = VExpr.const c ls →
    ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars
a_ih✝² :
  B✝ = VExpr.const c ls ∨ B✝ = VExpr.const c ls →
    ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars
a_ih✝¹ :
  liftN 1 B✝ 1 = VExpr.const c ls ∨ liftN 1 B✝ 1 = VExpr.const c ls →
    ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars
ih :
  e✝ = VExpr.const c ls ∨ e✝ = VExpr.const c ls →
    ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars
a_ih✝ :
  lift e✝ = VExpr.const c ls ∨ lift e✝ = VExpr.const c ls →
    ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars
eq : lam A✝ (app (lift e✝) (VExpr.bvar 0)) = VExpr.const c ls ∨ e✝ = VExpr.const c ls
⊢ ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars
Tactic:
obtain ⟨⟨⟩⟩ | eq := eq
Proof state after:
case eta.inr
env : VEnv
Γ : List VExpr
U : Nat
henv : Ordered env
e1 e2 V : VExpr
c : Name
ls : List VLevel
Γ✝ : List VExpr
A✝ : VExpr
u✝ : VLevel
B✝ : VExpr
v✝ : VLevel
e✝ : VExpr
a✝⁶ : VLevel.WF U u✝
a✝⁵ : VLevel.WF U v✝
a✝⁴ : IsDefEqStrong env U Γ✝ A✝ A✝ (VExpr.sort u✝)
a✝³ : IsDefEqStrong env U (A✝ :: Γ✝) B✝ B✝ (VExpr.sort v✝)
a✝² : IsDefEqStrong env U (lift A✝ :: A✝ :: Γ✝) (liftN 1 B✝ 1) (liftN 1 B✝ 1) (VExpr.sort v✝)
a✝¹ : IsDefEqStrong env U Γ✝ e✝ e✝ (VExpr.forallE A✝ B✝)
a✝ : IsDefEqStrong env U (A✝ :: Γ✝) (lift e✝) (lift e✝) (VExpr.forallE (lift A✝) (liftN 1 B✝ 1))
a_ih✝³ :
  A✝ = VExpr.const c ls ∨ A✝ = VExpr.const c ls →
    ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars
a_ih✝² :
  B✝ = VExpr.const c ls ∨ B✝ = VExpr.const c ls →
    ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars
a_ih✝¹ :
  liftN 1 B✝ 1 = VExpr.const c ls ∨ liftN 1 B✝ 1 = VExpr.const c ls →
    ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars
ih :
  e✝ = VExpr.const c ls ∨ e✝ = VExpr.const c ls →
    ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars
a_ih✝ :
  lift e✝ = VExpr.const c ls ∨ lift e✝ = VExpr.const c ls →
    ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars
eq : e✝ = VExpr.const c ls
⊢ ∃ ci, env.constants c = some (some ci) ∧ (∀ (l : VLevel), l ∈ ls → VLevel.WF U l) ∧ List.length ls = ci.uvars