Skip to content

Commit 0d859b7

Browse files
keeganperry7awalterschulze
authored andcommitted
Simplify null_concat and finish proof
1 parent bf96693 commit 0d859b7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Sadol/Calculus.lean

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ def null_concat {α: Type u} {P Q: Lang α}:
146146
simp at hxy
147147
simp [hxy] at hx hy
148148
exact ⟨hx, hy⟩
149-
case invFun =>
150-
intro ⟨x, y⟩
151-
exact ⟨[], [], x, y, by simp⟩
149+
case invFun => exact fun ⟨x, y⟩ => ⟨[], [], x, y, rfl⟩
152150
case leftInv =>
153-
-- TODO
154-
sorry
155-
case rightInv =>
156-
intro
157-
exact trfl
151+
intro ⟨x, y, hx, hy, hxy⟩
152+
simp at hxy
153+
cases hxy.left with
154+
| refl =>
155+
cases hxy.right with
156+
| refl => exact trfl
157+
case rightInv => exact fun _ => trfl
158158

159159
-- ν✪ : ν (P ✪) ↔ (ν P) ✶
160160
-- ν✪ {P = P} = mk↔′ k k⁻¹ invˡ invʳ

0 commit comments

Comments
 (0)