Skip to content

Commit

Permalink
fix: re-add PFin2.elim0 (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: monsterkrampe <[email protected]>
  • Loading branch information
monsterkrampe and monsterkrampe authored Feb 20, 2024
1 parent 7e50897 commit 801eee8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Qpf/MathlibPort/Fin2.lean
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ inductive PFin2 : Nat → Type u

namespace PFin2

/-- Ex falso. The dependent eliminator for the empty `PFin2 0` type. -/
def elim0 {C : PFin2 0Sort u} : ∀ i : PFin2 0, C i :=
by intro i; cases i

/-- Converts a `PFin2` into a natural. -/
def toNat : ∀ {n}, PFin2 n → Nat
| _, @fz _ => 0
Expand Down

0 comments on commit 801eee8

Please sign in to comment.