Download lean/OAI/GroupTheory/PolycyclicRecognition/Finiteness/BooleanStepProjective.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
theoremexists_booleanPrefix_contains (hb : Function.Surjective b) (s : FinsetI) :
∃ n, s ⊆ booleanPrefix b n :=by
proof · 10
lines
classical
induction s usingFinset.induction_on with
| empty => exact ⟨0, Finset.empty_subset _⟩
| @insert i s _ ih =>
obtain ⟨n, hn⟩ := ih
obtain ⟨m, hm⟩ := hb i
refine ⟨max n (m + 1), Finset.insert_subset_iff.mpr ⟨?_, ?_⟩⟩
· apply booleanPrefix_mono b (Nat.le_max_right n (m + 1))
exact Finset.mem_image.mpr ⟨m, Finset.mem_range.mpr (Nat.lt_succ_self m), hm⟩
· exact hn.trans (booleanPrefix_mono b (Nat.le_max_left n (m + 1)))
defbooleanPartitionDiagram : SequentialRepresentationDiagramPUnit.{1} where
body · 16
lines
obj n := booleanPartitionStage a (booleanPrefix b n)
map _ _ h := booleanPartitionMap a (booleanPrefix_mono b h)
map_id n :=by
apply Rep.hom_ext
apply Representation.IntertwiningMap.ext
apply LinearMap.ext
intro v
funext c
rfl
map_comp i j k hij hjk :=by
apply Rep.hom_ext
apply Representation.IntertwiningMap.ext
apply LinearMap.ext
intro v
funext c
rfl
defbooleanStepColimit (hb : Function.Surjective b) :
(booleanPartitionDiagram a b).ColimitCocone (booleanStepRepresentation a) where
body · 14
lines
ι n := booleanPartitionEvaluation a (booleanPrefix b n)
comm _ _ h := booleanPartitionMap_evaluation a (booleanPrefix_mono b h)
surj f :=by
obtain ⟨s, hs⟩ := f.property
obtain ⟨n, hn⟩ := exists_booleanPrefix_contains b hb s
obtain ⟨v, hv⟩ := dependsOnBoolean_factorization (hs.mono hn)
refine ⟨n, v, ?_⟩
apply Subtype.ext
exact hv.symm
zero_exact i v hv :=by
refine ⟨i, le_rfl, ?_⟩
haveh0 : v = 0:= booleanPartitionEvaluation_injective a (booleanPrefix b i)
(hv.trans (map_zero _).symm)
rw [h0, map_zero]
theorembooleanStepRepresentation_projective (hb : Function.Surjective b) :
Projective (booleanStepRepresentation a) :=by
proof · 7
lines
letD:= booleanPartitionDiagram a b
letr : ∀ i, D.obj (i + 1) ⟶D.obj i :=fun i =>
booleanPartitionRetraction a (booleanPrefix_mono b (Nat.le_succ i))
havehr : ∀ i, D.map i (i + 1) (Nat.le_succ i) ≫ r i = 𝟙 _ :=fun i => booleanPartitionMap_retraction a (booleanPrefix_mono b (Nat.le_succ i))
let : ∀ i, Projective (D.obj i) :=fun i => booleanPartitionStage_projective a _
exact D.split_colimit_projective r hr (booleanStepColimit a b hb)
The small step-function algebra required in the countable group application.
theorembooleanStepRing_integer_projective [CountableI] [NonemptyI] :
Module.Projectiveℤ (booleanStepRing a) :=by
proof · 3
lines
obtain ⟨b, hb⟩ := exists_surjective_nat Ilet:= booleanStepRepresentation_projective a b hb
exact integer_projective_of_projective_rep (booleanStepRepresentation a)