Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
awueth committed May 5, 2024
1 parent dbf0524 commit 217831d
Show file tree
Hide file tree
Showing 23 changed files with 3,078 additions and 0 deletions.
Empty file added blueprint/lean_decls
Empty file.
Binary file added blueprint/src/web.paux
Binary file not shown.
118 changes: 118 additions & 0 deletions blueprint/web/dep_graph_document.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@


<!DOCTYPE html>
<html>
<head>
<title>Dependency graph</title>
<meta name="generator" content="plasTeX" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="styles/theme-white.css" />
<link rel="stylesheet" href="styles/dep_graph.css" />

<script type="text/x-mathjax-config">

MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});

</script>

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"> </script>


<link rel="stylesheet" href="styles/extra_styles.css" />

</head>

<body>
<header>
<a class="toc" href="index.html">Home</a>
<h1 id="doc_title">Dependencies</h1>
</header>
<div class="wrapper">
<div class="content">
<div id="Legend">
<span id="legend_title" class="title">Legend
<div class="btn">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div></span>
<dl class="legend">

<dt>Boxes</dt><dd>definitions</dd>

<dt>Ellipses</dt><dd>theorems and lemmas</dd>

<dt>Blue border</dt><dd>the <em>statement</em> of this result is ready to be formalized; all prerequisites are done</dd>

<dt>Orange border</dt><dd>the <em>statement</em> of this result is not ready to be formalized; the blueprint needs more work</dd>

<dt>Blue background</dt><dd>the <em>proof</em> of this result is ready to be formalized; all prerequisites are done</dd>

<dt>Green border</dt><dd>the <em>statement</em> of this result is formalized</dd>

<dt>Green background</dt><dd>the <em>proof</em> of this result is formalized</dd>

<dt>Dark green background</dt><dd>the <em>proof</em> of this result and all its ancestors are formalized</dd>

</dl>
</div>
<div id="graph"></div>
<div id="statements"></div>
</div> <!-- content -->
</div> <!-- wrapper -->
<script src="js/jquery.min.js" type="text/javascript"></script>

<script src="js/d3.min.js"></script>
<script src="js/hpcc.min.js"></script>
<script src="js/d3-graphviz.js"></script>

<script type="text/javascript">
const graphContainer = d3.select("#graph");
const width = graphContainer.node().clientWidth;
const height = graphContainer.node().clientHeight;


graphContainer.graphviz({useWorker: true})
.width(width)
.height(height)
.fit(true)
.renderDot(`strict digraph "" { graph [bgcolor=transparent]; node [penwidth=1.8]; edge [arrowhead=vee];}`)
.on("end", interactive);

latexLabelEscaper = function(label) {
return label.replace(/\./g, '\\.').replace(/:/g, '\\:')
}

clickNode = function() {
$("#statements div").hide()
var node_id = $('text', this).text();
$('.thm').hide();
$('#'+latexLabelEscaper(node_id)).show().children().show();
}
function interactive() {
$("span#legend_title").on("click", function () {
$(this).siblings('dl').toggle();
})

d3.selectAll('.node')
.attr('pointer-events', 'fill')
.on('click', function () {
var title = d3.select(this).selectAll('title').text().trim();
$('#statements > div').hide()
$('.thm').hide();
$('#'+latexLabelEscaper(title)+'_modal').show().children().show().children().show();
$('#statements').show()
});

d3.selectAll('.dep-closebtn').on('click', function() {
var modal =
d3.select(this).node().parentNode.parentNode.parentNode ;
d3.select(modal).style('display', 'none');
});
}

</script>

</body>
</html>
56 changes: 56 additions & 0 deletions blueprint/web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script>
MathJax = {
tex: {
inlineMath: [['$','$'], ['\\(','\\)']]
} }
</script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>
<meta name="generator" content="plasTeX" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Formalising Cheeger’s inequality</title>
<link rel="stylesheet" href="styles/theme-white.css" />
<link rel="stylesheet" href="styles/amsthm.css" />
<link rel="stylesheet" href="styles/showmore.css" />
<link rel="stylesheet" href="styles/blueprint.css" />
<link rel="stylesheet" href="styles/extra_styles.css" />
</head>

<body>

<div class="wrapper">

<div class="content">
<div class="content-wrapper">


<div class="main-text">
<div class="titlepage">
<h1>Formalising Cheeger’s inequality</h1>
<p class="authors">
<span class="author">Adrian Wüthrich</span>
</p>
</div>
</div> <!--main-text -->
</div> <!-- content-wrapper -->
</div> <!-- content -->
</div> <!-- wrapper -->

<nav class="prev_up_next">
<svg id="showmore-minus" class="icon icon-eye-minus showmore"><use xlink:href="symbol-defs.svg#icon-eye-minus"></use></svg>

<svg id="showmore-plus" class="icon icon-eye-plus showmore"><use xlink:href="symbol-defs.svg#icon-eye-plus"></use></svg>

</nav>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/plastex.js"></script>
<script type="text/javascript" src="js/svgxuse.js"></script>
<script type="text/javascript" src="js/js.cookie.min.js"></script>
<script type="text/javascript" src="js/showmore.js"></script>
</body>
</html>
Loading

0 comments on commit 217831d

Please sign in to comment.