Skip to content

Commit

Permalink
disable annoying deprecation warnings & fix strange build error
Browse files Browse the repository at this point in the history
  • Loading branch information
forked-from-1kasper committed Oct 12, 2024
1 parent 836e8d7 commit f959e28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions GroundZero/Exercises/Chap4.lean
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ namespace «4.8»
open GroundZero.Structures
open GroundZero.Theorems

hott theorem injOutOfBoolChar {B : Type u} : (Σ (f : 𝟐 → B), injective f) ≃ (Σ (w : B × B), w.1 ≠ w.2) :=
-- TODO: what’s wrong with the code generation here?
noncomputable hott theorem injOutOfBoolChar {B : Type u} : (Σ (f : 𝟐 → B), injective f) ≃ (Σ (w : B × B), w.1 ≠ w.2) :=
begin
fapply Sigma.mk;
{ intro w; existsi (w.1 false, w.1 true);
Expand All @@ -453,7 +454,7 @@ namespace «4.8»
{ apply Theorems.funext; intro b; induction b using Bool.casesOn <;> reflexivity } }
end

hott theorem embdOutOfBoolChar {B : Type u} :
noncomputable hott theorem embdOutOfBoolChar {B : Type u} :
(𝟐 ↪ B) ≃ (Σ (w : B × B), w.1 ≠ w.2 × contr (w.1 = w.1) × contr (w.2 = w.2)) :=
begin
fapply Sigma.mk;
Expand Down
9 changes: 8 additions & 1 deletion lakefile.lean
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import Lake
open Lake DSL

package GroundZero { leanOptions := #[⟨`linter.unusedVariables, false⟩, ⟨`autoImplicit, false⟩] }
package GroundZero {
leanOptions := #[
`linter.deprecated, false⟩,
`linter.unusedVariables, false⟩,
`relaxedAutoImplicit, false⟩,
`autoImplicit, false
]
}

@[default_target]
lean_lib GroundZero
Expand Down

0 comments on commit f959e28

Please sign in to comment.