Skip to content

Commit 1ddc48d

Browse files
committed
remove whitespace
1 parent 3454871 commit 1ddc48d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Mathlib/ModelTheory/Arithmetic/Presburger/Definability.lean

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ lemma ProperLinear.compl [Fintype α] (hs : s.ProperLinear) : sᶜ.Semilinear :=
619619
classical
620620
rcases hs with ⟨v, t₁, ht₁, hs⟩
621621
have ht₁' := linearIndepOn_toRatVec ht₁
622-
622+
623623
let t := Finite.toFinset
624624
(s := ht₁'.extend (@subset_union_left _ (t₁ : Set (α → ℕ))
625625
((Finset.univ : Finset α).image (Pi.basisFun ℕ α))))
@@ -643,7 +643,7 @@ lemma ProperLinear.compl [Fintype α] (hs : s.ProperLinear) : sᶜ.Semilinear :=
643643
ext j
644644
simp [toRatVec, Pi.single_apply]
645645
rw [image_eq_range] at htspan
646-
646+
647647
let b := Basis.mk htindep htspan
648648
have hb : ∀ i, b i = toRatVec i.1 := by simp [b]
649649
let f : (α → ℕ) → t → ℤ := fun x i => ⌊b.repr (toRatVec x - toRatVec v) i⌋
@@ -730,7 +730,7 @@ lemma ProperLinear.compl [Fintype α] (hs : s.ProperLinear) : sᶜ.Semilinear :=
730730
simp [← hb, Finsupp.single_apply]
731731
· rw [hg_toRatVec, add_sub_cancel_left]
732732
simp [← hb, Finsupp.single_apply, Int.fract_lt_one]
733-
733+
734734
have hs' : ∀ x, x ∈ s ↔ g x = v ∧ ∀ i, 0 ≤ f x i ∧ (i.1 ∉ t₁ → f x i = 0) := by
735735
intro x
736736
simp only [hs, mem_vadd_set, SetLike.mem_coe, vadd_eq_add]
@@ -760,13 +760,13 @@ lemma ProperLinear.compl [Fintype α] (hs : s.ProperLinear) : sᶜ.Semilinear :=
760760
· simp
761761
· simp [(hfx i).2 hi]
762762
· simp [Int.toNat_eq_zero.2 (neg_nonpos.2 (hfx i).1)]
763-
763+
764764
let s₁ : Set (α → ℕ) := {x | x ≠ v ∧ ∃ y, x = g y}
765765
have hs₁ : s₁.Finite := by
766766
apply (Finset.Iic (v + ∑ i : t, i.1)).finite_toSet.subset
767767
rintro _ ⟨_, x, rfl⟩
768768
simpa only [Finset.coe_Iic, mem_Iic] using hg_le_v_add x
769-
769+
770770
let s₁' : Set (α → ℕ) := {x | g x ≠ v}
771771
have hs₁' : s₁'.Semilinear := by
772772
convert_to (⋃ u ∈ s₁, {x | ∃ y ∈ span ℕ t, ∃ y' ∈ span ℕ t, x + y' = u + y}).Semilinear using 1
@@ -798,7 +798,7 @@ lemma ProperLinear.compl [Fintype α] (hs : s.ProperLinear) : sᶜ.Semilinear :=
798798
simp only [mem_setOf, zero_add]
799799
conv => rhs; rw [← Sum.elim_comp_inl_inr x, ← Sum.elim_comp_inl_inr (x ∘ Sum.inl)]
800800
simp [-Sum.elim_comp_inl_inr]
801-
801+
802802
let s₂ : Set (α → ℕ) := {x | g x = v ∧ ∃ i, f x i < 0 ∨ i.1 ∉ t₁ ∧ 0 < f x i}
803803
have hs₂ : s₂.Semilinear := by
804804
convert_to ((⋃ i : t,
@@ -939,7 +939,7 @@ lemma ProperLinear.compl [Fintype α] (hs : s.ProperLinear) : sᶜ.Semilinear :=
939939
rw [← Sum.elim_comp_inl_inr x, ← Sum.elim_comp_inl_inr (x ∘ Sum.inl),
940940
← Sum.elim_comp_inl_inr ((x ∘ Sum.inl) ∘ Sum.inl)]
941941
simp [-Sum.elim_comp_inl_inr, add_assoc]
942-
942+
943943
convert hs₁'.union hs₂ using 1
944944
ext x
945945
simp only [s₁', s₂, mem_compl_iff, hs', Subtype.forall, not_and, not_forall, ne_eq,

0 commit comments

Comments
 (0)