Zulip Chat Archive
Stream: PR reviews
Topic: !4#3354 (LinearAlgebra.Dimension)
Jeremy Tan (Apr 10 2023 at 03:59):
Most of the remaining errors deal with Module.rank
and using it to definitionally simplify (as in dsimp [Module.rank]
)
Jeremy Tan (Apr 10 2023 at 04:01):
In the very first theorem lift_dim_le_of_injective
, after dsimp [Module.rank]
the goal state in Lean 3 is
(⨆ (ι : {s // linear_independent R coe}), #↥↑ι).lift ≤
(⨆ (ι : {s // linear_independent R coe}), #↥↑ι).lift
but in Lean 4 it is the very strange
lift (Wrapper.value✝ wrapped✝ R M) ≤ lift (Wrapper.value✝ wrapped✝ R M')
It may have something to do with the use of the up-arrow to replace the coe
in Lean 3. Is there something wrong with the up-arrow replacement I've made in the Lean 4 definition?
protected irreducible_def Module.rank : Cardinal :=
⨆ ι : { s : Set V // LinearIndependent K ((↑) : s → V) }, #ι.1
Notification Bot (Apr 10 2023 at 04:43):
2 messages were moved here from #PR reviews > !4#3247 by Jeremy Tan.
Jeremy Tan (Apr 10 2023 at 05:07):
…right, @Pol'tta / Kô Miyahara got there first while I was opening a sync PR
Eric Wieser (Apr 10 2023 at 07:24):
(!4#3354)
Scott Morrison (Apr 10 2023 at 07:26):
Merged again!
Eric Wieser (Apr 10 2023 at 07:29):
@Jeremy Tan, for future reference it's best to restart with new mathport output (re-run start_port and rebase your changes onto the resulting commit) if you realize you started with the wrong mathport output
Last updated: Dec 20 2023 at 11:08 UTC