test: match equality proofs
This commit is contained in:
parent
bb261c51a6
commit
e9748dd0f9
1 changed files with 10 additions and 0 deletions
|
|
@ -38,3 +38,13 @@ begin
|
|||
subst h₁;
|
||||
assumption
|
||||
end
|
||||
|
||||
theorem ex7 (a : Bool) (p q : Prop) (h₁ : a = true → p) (h₂ : a = false → q) : p ∨ q :=
|
||||
match h:a with
|
||||
| true => Or.inl $ h₁ h
|
||||
| false => Or.inr $ h₂ h
|
||||
|
||||
def head {α} (xs : List α) (h : xs = [] → False) : α :=
|
||||
match he:xs with
|
||||
| [] => False.elim $ h he
|
||||
| x::_ => x
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue