Skip to content
Snippets Groups Projects
RectangleScroll.mmt 2.08 KiB
Newer Older
  • Learn to ignore specific revisions
  • Paul-Walcher's avatar
    Paul-Walcher committed
    
    /T Miscellaneous scrolls for playing around/testing that don't have a good home yet  ❚
    
    
    Paul-Walcher's avatar
    Paul-Walcher committed
    /T Miscellaneous scrolls for playing around/testing that don't have a good home yet  ❚
    
    Paul-Walcher's avatar
    Paul-Walcher committed
    namespace http://mathhub.info/FrameIT/frameworld ❚
    fixmeta ?FrameworldMeta ❚
    
    
    
    theory RectangleScroll =
        meta ?MetaAnnotations?problemTheory  ?RectangleScroll/Problem ❙
        meta ?MetaAnnotations?solutionTheory ?RectangleScroll/Solution ❙
    
    Paul-Walcher's avatar
    Paul-Walcher committed
        theory Problem =
    
    Paul-Walcher's avatar
    Paul-Walcher committed
            A: point
             ❘ meta ?MetaAnnotations?label "A"
             ❘ meta ?MetaAnnotations?description "The first point"
    
            B: point
             ❘ meta ?MetaAnnotations?label "B"
             ❘ meta ?MetaAnnotations?description "The second point"
    
            C: point
             ❘ meta ?MetaAnnotations?label "C"
             ❘ meta ?MetaAnnotations?description "The third point"
    
    
    
    Paul-Walcher's avatar
    Paul-Walcher committed
            rABC: ⊦ (∠ A,B,C) ≐ 90.0
    
             ❘ meta ?MetaAnnotations?label "rC"
             ❘ meta ?MetaAnnotations?description "A right angle between ABC, where B is the point enclosed by A and B"
    
    
            dAB: Σ x:ℝ . ⊦ (d- A B) ≐ x
             ❘ meta ?MetaAnnotations?label "dAB"
             ❘ meta ?MetaAnnotations?description "The distance from point A to point B"
    
    
            dBC: Σ x:ℝ . ⊦ (d- B C) ≐ x
             ❘ meta ?MetaAnnotations?label "dBC"
             ❘ meta ?MetaAnnotations?description "The distance from point B to point C"
    
    Paul-Walcher's avatar
    Paul-Walcher committed
    
    
    Paul-Walcher's avatar
    Paul-Walcher committed
    
    
    
    Paul-Walcher's avatar
    Paul-Walcher committed
            
    
    Paul-Walcher's avatar
    Paul-Walcher committed
    
        theory Solution =
    
            include ?RectangleScroll/Problem ❙
            meta ?MetaAnnotations?label "Rectangle" ❙
    
            meta ?MetaAnnotations?description s"Scrolls that takes three points and given a right-angle fact between those points
                                                and the distances from the first to the second and the second to the third point, constructs a rectangle." ❙
    
            ConstructedRectangle : Rectangle
                    ❘ = RectangleCons A B C
                    ❘ meta ?MetaAnnotations?label s"Rectangle"
                    ❘ meta ?MetaAnnotations?description s"The constructed Rectangle."
    
    Paul-Walcher's avatar
    Paul-Walcher committed
    
    
    Paul-Walcher's avatar
    Paul-Walcher committed