Stream: Mirror: Isabelle Users Mailing List

Topic: [isabelle] two small theories about the unit interval


view this post on Zulip Email Gateway (Oct 02 2023 at 17:30):

From: Stepan Holub <holub@karlin.mff.cuni.cz>
Dear all,

find attached two little theories related to fractional parts.
The first one are useful facts about arithmetic of frac, which, somewhat
surprisingly, seem not available in the current distribution.
The second one contains motivation for the first one, namely the
interpretation of the addition modulo one as an Abelian group.

Is this of a general interest?

Stepan

P.S.: I also have a third little theory showing that the unit interval
is an abstract metric space with the obvious circular distance (the only
nontrivial part being the triangle inequality). However,  importing the 
"HOL-Analysis.Abstract_Metric_Spaces" takes quite some time, and the
theory is used only twice in HOL, and never in AFP.
BTW, the time required for import is hardly necessary.
Abstract_Metric_Spaces.thy itself takes over 5 minutes on my machine,
and it contains proofs requiring many seconds. These are mostly familiar
time consuming smt one-liners most likely found by sledgehammer.
For example, line 3995
      by (smt (verit, ccfv_threshold) comp_apply f g Pi_iff
uniformly_continuous_map_def)
taking over 7 sec. can be reduced to under 100ms by
  using f g
  unfolding uniformly_continuous_map_def comp_apply Pi_iff
  by metis.

Fractional_Part_Arithmetic.thy
Unit_Interval_Group.thy

view this post on Zulip Email Gateway (Oct 03 2023 at 11:52):

From: Lawrence Paulson <lp15@cam.ac.uk>
Dear Stepan, thanks for the fractional part material, which I’d like to incorporate into the repository. Also thanks for the suggestions to improve the build time of Abstract_Metric_Spaces, Which I have also incorporated. But remember, unless you are a developer (i.e. working with a regularly changing code base), you only ever have to build HOL-Analysis once.

It would be interesting to see your third example.

Larry

view this post on Zulip Email Gateway (Oct 03 2023 at 16:15):

From: Stepan Holub <holub@karlin.mff.cuni.cz>
Dear Larry,

thanks for you feedback. I enclose the third theory (I should mention
this is a joint work with Stepan Starosta). The theory also includes an
alternative approach using quotient_type of reals. I will appreciate any
comment concerning the comparison of the two approaches. My impression
is that the locale  approach is (and is considered) the better and more
flexible option, although it requires a lot of superscripts and carriers...
As I mentioned in am older post (which went unnoticed) an intermediate
goal was to show that an irrational number generates a dense subgroup of
the real unit interval. As far as I can see, existing theories,
including the abstract spaces are not of much help. I will be happy if I
am wrong.

Two more comments:

Best regards

Stepan

Real_Unit_Interval.thy


Last updated: Apr 29 2024 at 01:08 UTC