Skip to content

Instantly share code, notes, and snippets.

@Aaron1011
Created December 21, 2025 20:09
Show Gist options
  • Select an option

  • Save Aaron1011/87d87639ebdd2e2f84a152a47cbadbcb to your computer and use it in GitHub Desktop.

Select an option

Save Aaron1011/87d87639ebdd2e2f84a152a47cbadbcb to your computer and use it in GitHub Desktop.
import Mathlib
lemma is_fg {n: ℕ} (H: AddSubgroup ((Fin n) → ℤ)): H.FG := by
let foo := H.toIntSubmodule
let foo_finite: Module.Finite ℤ foo := by
infer_instance
rw [Module.Finite.iff_fg] at foo_finite
--rw [Module.Finite.iff_addGroup_fg] at foo_finite
simp [foo] at foo_finite
rw [Submodule.fg_iff_addSubgroup_fg] at foo_finite
exact foo_finite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment